From 96ce018912ceffb7270b883a8982b1e2403cda1c Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 4 Apr 2023 20:08:37 -0600 Subject: AƱade modelo ProductCart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/schema.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'db/schema.rb') diff --git a/db/schema.rb b/db/schema.rb index 5c4292f..b974771 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2023_04_05_013826) do +ActiveRecord::Schema[7.0].define(version: 2023_04_05_015505) do create_table "active_storage_attachments", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| t.string "name", null: false t.string "record_type", null: false @@ -76,6 +76,17 @@ ActiveRecord::Schema[7.0].define(version: 2023_04_05_013826) do t.datetime "updated_at", null: false end + create_table "product_carts", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| + t.integer "quantity" + t.bigint "cart_id" + t.bigint "product_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["cart_id"], name: "index_product_carts_on_cart_id" + t.index ["product_id", "cart_id"], name: "index_product_carts_on_product_id_and_cart_id", unique: true + t.index ["product_id"], name: "index_product_carts_on_product_id" + end + create_table "product_reviews", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| t.bigint "user_account_id", null: false t.bigint "product_id", null: false -- cgit v1.2.3