|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -ActiveRecord::Schema.define(version: 2024_07_28_092034) do |
| 13 | +ActiveRecord::Schema[7.0].define(version: 2024_08_13_072347) do |
14 | 14 | create_table "forum_categories", force: :cascade do |t| |
15 | 15 | t.string "name", null: false |
16 | 16 | t.string "slug", null: false |
|
19 | 19 | t.datetime "updated_at" |
20 | 20 | end |
21 | 21 |
|
| 22 | + create_table "forum_leaderboards", force: :cascade do |t| |
| 23 | + t.integer "user_id", null: false |
| 24 | + t.integer "points", default: 0, null: false |
| 25 | + t.datetime "created_at", null: false |
| 26 | + t.datetime "updated_at", null: false |
| 27 | + t.index ["points"], name: "index_forum_leaderboards_on_points" |
| 28 | + t.index ["user_id"], name: "index_forum_leaderboards_on_user_id", unique: true |
| 29 | + end |
| 30 | + |
22 | 31 | create_table "forum_posts", force: :cascade do |t| |
23 | 32 | t.integer "forum_thread_id" |
24 | 33 | t.integer "user_id" |
|
68 | 77 | t.datetime "created_at", null: false |
69 | 78 | t.datetime "updated_at", null: false |
70 | 79 | t.string "name" |
| 80 | + t.boolean "moderator", default: false |
71 | 81 | t.index ["email"], name: "index_users_on_email", unique: true |
72 | 82 | t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true |
73 | 83 | end |
74 | 84 |
|
| 85 | + add_foreign_key "forum_leaderboards", "users" |
75 | 86 | add_foreign_key "forum_posts", "forum_threads" |
76 | 87 | add_foreign_key "forum_posts", "users" |
77 | 88 | add_foreign_key "forum_subscriptions", "forum_threads" |
|
0 commit comments