today_ai_weather/db/schema.rb
songtianlun c00e336009
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
feat: add cities and weather_arts tables
- 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.
2025-01-17 18:08:41 +08:00

49 lines
1.7 KiB
Ruby
Generated

# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# This file is the source Rails uses to define your schema when running `bin/rails
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
# be faster and is potentially less error prone than running all of your
# migrations from scratch. Old migrations may fail to apply correctly if those
# migrations use external dependencies or application code.
#
# It's strongly recommended that you check this file into your version control system.
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|
t.string "name"
t.string "email"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "password_digest"
t.string "remember_digest"
t.boolean "admin", default: false
t.string "activation_digest"
t.boolean "activated", default: false
t.datetime "activated_at"
t.string "reset_digest"
t.datetime "reset_send_at"
t.index ["email"], name: "index_users_on_email", unique: true
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