feat: update party model with promoter and time tracking
- Add promoter_id reference to parties table - Add start_time and end_time datetime fields - Replace venue fields with single location string - Update database schema and migration files - Add port configuration to database.yml - Update architecture documentation This commit enhances the party model to support better event tracking and management, including promoter information and precise timing.
This commit is contained in:
14
db/schema.rb
generated
14
db/schema.rb
generated
@@ -10,20 +10,18 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_08_23_171354) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_08_24_211013) do
|
||||
create_table "parties", charset: "utf8mb4", collation: "utf8mb4_uca1400_ai_ci", force: :cascade do |t|
|
||||
t.string "name", null: false
|
||||
t.text "description", null: false
|
||||
t.integer "state", default: 0, null: false
|
||||
t.string "venue_name", null: false
|
||||
t.string "venue_address", null: false
|
||||
t.decimal "latitude", precision: 10, scale: 6, null: false
|
||||
t.decimal "longitude", precision: 10, scale: 6, null: false
|
||||
t.boolean "featured", default: false, null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["featured"], name: "index_parties_on_featured"
|
||||
t.index ["latitude", "longitude"], name: "index_parties_on_latitude_and_longitude"
|
||||
t.integer "promoter_id"
|
||||
t.datetime "start_time"
|
||||
t.datetime "end_time"
|
||||
t.string "location"
|
||||
t.index ["promoter_id"], name: "index_parties_on_promoter_id"
|
||||
t.index ["state"], name: "index_parties_on_state"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user