update APIs

This commit is contained in:
2025-09-04 19:25:14 +09:00
parent 32f860af41
commit e0543e2b4e
8 changed files with 759 additions and 64 deletions

View File

@ -750,6 +750,15 @@ class Entry(models.Model):
staff_privileges = models.BooleanField(default=False, help_text="スタッフ権限フラグ")
can_access_private_events = models.BooleanField(default=False, help_text="非公開イベント参加権限")
# API変更要求書対応: 競技状態管理 (2025-09-04)
is_in_rog = models.BooleanField(default=False, help_text='ロゲイニング中=スタートしたらTrue')
rogaining_counted = models.BooleanField(default=False, help_text='ロゲイニングチェックイン履歴あり=一度でもスタート・ゴール以外でチェックインしたらTrue')
ready_for_goal = models.BooleanField(default=False, help_text='ゴール準備完了=スタートから遠くに移動した際にTrueになる')
is_at_goal = models.BooleanField(default=False, help_text='ゴール状態=ゴールしたらTrue')
start_time = models.DateTimeField(null=True, blank=True, help_text='スタート時刻')
goal_time = models.DateTimeField(null=True, blank=True, help_text='ゴール時刻')
last_checkin_time = models.DateTimeField(null=True, blank=True, help_text='最後のチェックイン時刻')
VALIDATION_STATUS_CHOICES = [
('approved', 'Approved'),
('pending', 'Pending'),