|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema[7.2].define(version: 2025_09_20_103432) do |
| 13 | +ActiveRecord::Schema[7.2].define(version: 2025_10_07_224207) do |
14 | 14 | create_table "abilities", charset: "utf8mb4", collation: "utf8mb4_0900_ai_ci", force: :cascade do |t| |
15 | 15 | t.bigint "community_id" |
16 | 16 | t.string "name" |
|
233 | 233 | t.index ["user_id"], name: "index_community_users_on_user_id" |
234 | 234 | end |
235 | 235 |
|
| 236 | + create_table "complaint_comments", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t| |
| 237 | + t.bigint "complaint_id", null: false |
| 238 | + t.bigint "user_id" |
| 239 | + t.text "content", null: false |
| 240 | + t.boolean "internal", null: false |
| 241 | + t.datetime "created_at", null: false |
| 242 | + t.datetime "updated_at", null: false |
| 243 | + t.index ["complaint_id"], name: "index_complaint_comments_on_complaint_id" |
| 244 | + t.index ["user_id"], name: "index_complaint_comments_on_user_id" |
| 245 | + end |
| 246 | + |
| 247 | + create_table "complaints", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t| |
| 248 | + t.bigint "user_id" |
| 249 | + t.string "report_type" |
| 250 | + t.string "status" |
| 251 | + t.bigint "assignee_id" |
| 252 | + t.boolean "user_wants_updates" |
| 253 | + t.string "access_token" |
| 254 | + t.datetime "created_at", null: false |
| 255 | + t.datetime "updated_at", null: false |
| 256 | + t.index ["access_token"], name: "index_complaints_on_access_token", unique: true |
| 257 | + t.index ["assignee_id"], name: "index_complaints_on_assignee_id" |
| 258 | + t.index ["report_type"], name: "index_complaints_on_report_type" |
| 259 | + t.index ["status"], name: "index_complaints_on_status" |
| 260 | + t.index ["user_id"], name: "index_complaints_on_user_id" |
| 261 | + end |
| 262 | + |
236 | 263 | create_table "email_logs", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", force: :cascade do |t| |
237 | 264 | t.string "log_type" |
238 | 265 | t.string "destination" |
|
823 | 850 | add_foreign_key "community_users", "communities" |
824 | 851 | add_foreign_key "community_users", "users" |
825 | 852 | add_foreign_key "community_users", "users", column: "deleted_by_id" |
| 853 | + add_foreign_key "complaint_comments", "complaints" |
| 854 | + add_foreign_key "complaint_comments", "users" |
| 855 | + add_foreign_key "complaints", "users" |
| 856 | + add_foreign_key "complaints", "users", column: "assignee_id" |
826 | 857 | add_foreign_key "error_logs", "communities" |
827 | 858 | add_foreign_key "error_logs", "users" |
828 | 859 | add_foreign_key "filters", "users" |
|
0 commit comments