syntax = "proto2";

package maps_adv.geosmb.landlord.proto.schedule;

message Schedule {
  optional sint32 tz_offset = 1; // UTC offset in seconds
  repeated ScheduleItem schedule = 2;
  optional string work_now_text = 3;  // text like 'Откроется через 10 минут'
}

message ScheduleItem {
  enum DayOfWeek {
    SUNDAY = 0;
    MONDAY = 1;
    TUESDAY = 2;
    WEDNESDAY = 3;
    THURSDAY = 4;
    FRIDAY = 5;
    SATURDAY = 6;
    EVERYDAY = 7;
  }
  required DayOfWeek day = 1;
  required uint32 opens_at = 2; // seconds from midnight in org timezone
  required uint32 closes_at = 3; // seconds from midnight in org timezone
}
