update location model

This commit is contained in:
Mohamed Nouffer
2022-06-18 15:28:30 +05:30
parent a213050f6c
commit 1a05113191
3 changed files with 121 additions and 1 deletions

View File

@ -203,7 +203,21 @@ class Location(models.Model):
tags=models.CharField(_('Tags'), max_length=2048, blank=True, null=True)
event_name = models.CharField(_('Event name'), max_length=2048, blank=True, null=True)
event_active = models.BooleanField(_("Is Event active"),default=True)
auto_checkin = models.BooleanField(_("Is Autologin"),default=False)
hidden_location = models.BooleanField(_("Is Hidden Location"),default=False)
auto_checkin = models.BooleanField(_("Is AutoCheckin"),default=False)
checkin_radius = models.IntegerField(_("Checkin radious"), blank=True, null=True, default=15)
checkin_point = models.IntegerField(_("Checkin Point"), blank=True, null=True, default=10)
buy_point = models.IntegerField(_("buy Point"), blank=True, null=True, default=0)
evaluation_value = models.CharField(_('Evaluation value (評価)'),max_length=2048, blank=True, null=True)
shop_closed = models.BooleanField(_("Shop Closed (休業)"),default=False)
shop_shutdown = models.BooleanField(_("Shop Shutdown (閉業)"),default=False)
opening_hours_mon = models.TimeField(_("Opening hours monday (月曜)"), blank=True, null=True)
opening_hours_tue = models.TimeField(_("Opening hours tuesday (火曜)"), blank=True, null=True)
opening_hours_wed = models.TimeField(_("Opening hours wednesday (水曜)"), blank=True, null=True)
opening_hours_thu = models.TimeField(_("Opening hours thursday (木曜)"), blank=True, null=True)
opening_hours_fri = models.TimeField(_("Opening hours frinday (金曜)"), blank=True, null=True)
opening_hours_sat = models.TimeField(_("Opening hours saturday (土曜)"), blank=True, null=True)
opening_hours_sun = models.TimeField(_("Opening hours sunday (日曜)"), blank=True, null=True)
checkin_radious = models.IntegerField(_("Checkin Radious"), blank=True, null=True)
parammeters=models.CharField(_('Parameters'), max_length=2048, blank=True, null=True)
created_at=models.DateTimeField(auto_now_add=True)