|
|
|
@@ -10,7 +10,7 @@ |
|
|
|
# |
|
|
|
# It's strongly recommended that you check this file into your version control system. |
|
|
|
|
|
|
|
ActiveRecord::Schema[8.0].define(version: 2026_03_11_232300) do |
|
|
|
ActiveRecord::Schema[8.0].define(version: 2026_03_16_083500) do |
|
|
|
create_table "active_storage_attachments", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t| |
|
|
|
t.string "name", null: false |
|
|
|
t.string "record_type", null: false |
|
|
|
@@ -167,6 +167,37 @@ ActiveRecord::Schema[8.0].define(version: 2026_03_11_232300) do |
|
|
|
t.index ["tag_name_id"], name: "index_tags_on_tag_name_id", unique: true |
|
|
|
end |
|
|
|
|
|
|
|
create_table "theatre_comments", primary_key: ["theatre_id", "no"], charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t| |
|
|
|
t.bigint "theatre_id", null: false |
|
|
|
t.integer "no", null: false |
|
|
|
t.bigint "user_id" |
|
|
|
t.text "content", null: false |
|
|
|
t.datetime "created_at", null: false |
|
|
|
t.datetime "updated_at", null: false |
|
|
|
t.datetime "discarded_at" |
|
|
|
t.index ["discarded_at"], name: "index_theatre_comments_on_discarded_at" |
|
|
|
t.index ["theatre_id"], name: "index_theatre_comments_on_theatre_id" |
|
|
|
t.index ["user_id"], name: "index_theatre_comments_on_user_id" |
|
|
|
end |
|
|
|
|
|
|
|
create_table "theatres", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t| |
|
|
|
t.string "name" |
|
|
|
t.datetime "opens_at", null: false |
|
|
|
t.datetime "closes_at" |
|
|
|
t.bigint "current_post_id" |
|
|
|
t.datetime "current_post_started_at" |
|
|
|
t.integer "next_comment_no", default: 1, null: false |
|
|
|
t.bigint "created_by_user_id", null: false |
|
|
|
t.datetime "created_at", null: false |
|
|
|
t.datetime "updated_at", null: false |
|
|
|
t.datetime "discarded_at" |
|
|
|
t.index ["closes_at"], name: "index_theatres_on_closes_at" |
|
|
|
t.index ["created_by_user_id"], name: "index_theatres_on_created_by_user_id" |
|
|
|
t.index ["current_post_id"], name: "index_theatres_on_current_post_id" |
|
|
|
t.index ["discarded_at"], name: "index_theatres_on_discarded_at" |
|
|
|
t.index ["opens_at"], name: "index_theatres_on_opens_at" |
|
|
|
end |
|
|
|
|
|
|
|
create_table "user_ips", primary_key: ["user_id", "ip_address_id"], charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t| |
|
|
|
t.bigint "user_id", null: false |
|
|
|
t.bigint "ip_address_id", null: false |
|
|
|
@@ -262,6 +293,10 @@ ActiveRecord::Schema[8.0].define(version: 2026_03_11_232300) do |
|
|
|
add_foreign_key "tag_similarities", "tags" |
|
|
|
add_foreign_key "tag_similarities", "tags", column: "target_tag_id" |
|
|
|
add_foreign_key "tags", "tag_names" |
|
|
|
add_foreign_key "theatre_comments", "theatres" |
|
|
|
add_foreign_key "theatre_comments", "users" |
|
|
|
add_foreign_key "theatres", "posts", column: "current_post_id" |
|
|
|
add_foreign_key "theatres", "users", column: "created_by_user_id" |
|
|
|
add_foreign_key "user_ips", "ip_addresses" |
|
|
|
add_foreign_key "user_ips", "users" |
|
|
|
add_foreign_key "user_post_views", "posts" |
|
|
|
|