feat: add cities and weather_arts tables
Some checks are pending
CI / scan_ruby (push) Waiting to run
CI / scan_js (push) Waiting to run
CI / lint (push) Waiting to run
CI / test (push) Waiting to run

- Create cities table with fields for name, country, latitude, and longitude
- Add featured boolean field to cities table
- Create weather_arts table with fields for weather_date, weather_condition, description, and prompt

These changes enhance the database schema by introducing new tables that will support
future features related to city and weather data management.
This commit is contained in:
songtianlun 2025-01-17 18:08:41 +08:00
parent 6dccace0c8
commit c00e336009

21
db/schema.rb generated
View File

@ -10,7 +10,17 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.0].define(version: 2025_01_07_093124) do ActiveRecord::Schema[8.0].define(version: 2025_01_17_095400) do
create_table "cities", force: :cascade do |t|
t.string "name"
t.string "country"
t.decimal "latitude"
t.decimal "longitude"
t.boolean "featured"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "users", force: :cascade do |t| create_table "users", force: :cascade do |t|
t.string "name" t.string "name"
t.string "email" t.string "email"
@ -26,4 +36,13 @@ ActiveRecord::Schema[8.0].define(version: 2025_01_07_093124) do
t.datetime "reset_send_at" t.datetime "reset_send_at"
t.index ["email"], name: "index_users_on_email", unique: true t.index ["email"], name: "index_users_on_email", unique: true
end end
create_table "weather_arts", force: :cascade do |t|
t.date "weather_date"
t.string "weather_condition"
t.text "description"
t.string "prompt"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
end end