|
10 | 10 | #
|
11 | 11 | # It's strongly recommended that you check this file into your version control system.
|
12 | 12 |
|
13 |
| -ActiveRecord::Schema[7.1].define(version: 2024_02_01_014607) do |
| 13 | +ActiveRecord::Schema[7.1].define(version: 2024_02_07_040004) do |
14 | 14 | # These are extensions that must be enabled in order to support this database
|
15 | 15 | enable_extension "pgcrypto"
|
16 | 16 | enable_extension "plpgsql"
|
|
233 | 233 | t.index ["marketplace_id"], name: "index_marketplace_tax_rates_on_marketplace_id"
|
234 | 234 | end
|
235 | 235 |
|
| 236 | + create_table "marketplace_vendor_representatives", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| |
| 237 | + t.uuid "marketplace_id" |
| 238 | + t.uuid "person_id" |
| 239 | + t.string "email_address" |
| 240 | + t.datetime "created_at", null: false |
| 241 | + t.datetime "updated_at", null: false |
| 242 | + t.index ["marketplace_id"], name: "index_marketplace_vendor_representatives_on_marketplace_id" |
| 243 | + t.index ["person_id"], name: "index_marketplace_vendor_representatives_on_person_id" |
| 244 | + end |
| 245 | + |
236 | 246 | create_table "media", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
237 | 247 | t.datetime "created_at", null: false
|
238 | 248 | t.datetime "updated_at", null: false
|
|
324 | 334 | add_foreign_key "marketplace_shoppers", "people"
|
325 | 335 | add_foreign_key "marketplace_tax_rates", "furnitures", column: "marketplace_id"
|
326 | 336 | add_foreign_key "marketplace_tax_rates", "spaces", column: "bazaar_id"
|
| 337 | + add_foreign_key "marketplace_vendor_representatives", "furnitures", column: "marketplace_id" |
| 338 | + add_foreign_key "marketplace_vendor_representatives", "people" |
327 | 339 | add_foreign_key "memberships", "invitations"
|
328 | 340 | add_foreign_key "rooms", "media", column: "hero_image_id"
|
329 | 341 | add_foreign_key "space_agreements", "spaces"
|
|
0 commit comments