summaryrefslogtreecommitdiff
path: root/db/schema.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/schema.rb')
-rw-r--r--db/schema.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/db/schema.rb b/db/schema.rb
index 4020c8d..6a0f312 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -113,10 +113,10 @@ ActiveRecord::Schema[7.0].define(version: 2023_04_05_015505) do
end
create_table "user_account_addresses", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t|
+ t.bigint "user_account_id", null: false
+ t.bigint "address_id", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
- t.bigint "user_account_id"
- t.bigint "address_id"
t.index ["address_id", "user_account_id"], name: "index_user_account_addresses_on_address_id_and_user_account_id", unique: true
t.index ["address_id"], name: "index_user_account_addresses_on_address_id"
t.index ["user_account_id"], name: "index_user_account_addresses_on_user_account_id"
@@ -142,5 +142,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_04_05_015505) do
add_foreign_key "product_reviews", "products"
add_foreign_key "product_reviews", "user_accounts"
add_foreign_key "products", "companies"
+ add_foreign_key "user_account_addresses", "addresses"
+ add_foreign_key "user_account_addresses", "user_accounts"
add_foreign_key "user_accounts", "carts"
end