14
テーブル定義書:theatres
みてるぞ edited this page 2026-03-17 01:49:30 +09:00

theatres: 上映会場

物理名 論理名 サイズ NULL 許容 デフォルト 備考
id 代理キー BIGINT
name 会場名 VARCHAR 255 NULL
opens_at 開始日時 DATETIME
closes_at 終了日時 DATETIME NULL
kind 種別 INT 1: 全件
current_post_id 再生中の投稿 Id. BIGINT NULL
current_post_started_at 再生中の投稿の再生開始日時 DATETIME NULL
next_comment_no 次のコメ番 INT 1
host_user_id 現在ホストのユーザ Id. BIGINT NULL
created_by_user_id 作成ユーザ Id. BIGINT
created_at 作成日時 DATETIME
updated_at 更新日時 DATETIME
discarded_at 削除日時 DATETIME NULL

制約

  • 主キー:
    • id
  • 外部キー:
    • current_post_id -> posts.id
    • host_user_id -> users.id
    • created_by_user_id -> users.id

インデクス

  • opens_at
  • discarded_at