diff --git a/%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E5%AE%9A%E7%BE%A9%E6%9B%B8%3Atheatre_watching_users.md b/%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E5%AE%9A%E7%BE%A9%E6%9B%B8%3Atheatre_watching_users.md index 46901af..ec596b3 100644 --- a/%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E5%AE%9A%E7%BE%A9%E6%9B%B8%3Atheatre_watching_users.md +++ b/%E3%83%86%E3%83%BC%E3%83%96%E3%83%AB%E5%AE%9A%E7%BE%A9%E6%9B%B8%3Atheatre_watching_users.md @@ -1 +1,15 @@ -## theatre_watching_users: 上映会視聴中のユーザ \ No newline at end of file +## theatre_watching_users: 上映会視聴中のユーザ +| 物理名 | 論理名 | 型 | サイズ | NULL 許容 | デフォルト | 備考 | +| :---: | :--: | :-: | :---: | :------: | :--: | :-- | +| theatre_id | 上映会場 Id. | BIGINT | | | | | +| user_id | ユーザ Id. | BIGINT | | | | | + +### 制約 +- 主キー: + - (theatre_id, user_id) +- 外部キー: + - theatre_id -> theatres.id + - user_id -> users.id + +### インデクス +- user_id \ No newline at end of file