|
|
|
@ -10,7 +10,16 @@
|
|
|
|
|
#
|
|
|
|
|
# It's strongly recommended that you check this file into your version control system.
|
|
|
|
|
|
|
|
|
|
ActiveRecord::Schema[7.0].define(version: 2023_09_27_122117) do
|
|
|
|
|
ActiveRecord::Schema[7.0].define(version: 2023_09_27_123732) do
|
|
|
|
|
create_table "favorites", force: :cascade do |t|
|
|
|
|
|
t.integer "movie_id", null: false
|
|
|
|
|
t.integer "user_id", null: false
|
|
|
|
|
t.datetime "created_at", null: false
|
|
|
|
|
t.datetime "updated_at", null: false
|
|
|
|
|
t.index ["movie_id"], name: "index_favorites_on_movie_id"
|
|
|
|
|
t.index ["user_id"], name: "index_favorites_on_user_id"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
create_table "movies", force: :cascade do |t|
|
|
|
|
|
t.string "title"
|
|
|
|
|
t.string "rating"
|
|
|
|
@ -43,5 +52,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_09_27_122117) do
|
|
|
|
|
t.boolean "admin", default: false
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
add_foreign_key "favorites", "movies"
|
|
|
|
|
add_foreign_key "favorites", "users"
|
|
|
|
|
add_foreign_key "reviews", "movies"
|
|
|
|
|
end
|
|
|
|
|