From 5fec2e990709c971153855d28d8bc927d20e817b Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Tue, 14 Mar 2023 18:23:34 -0600 Subject: AƱade Product al database schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/schema.rb | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/db/schema.rb b/db/schema.rb index 144bd82..07de3af 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_03_09_235713) do +ActiveRecord::Schema[7.0].define(version: 2023_03_14_020111) 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 @@ -47,6 +47,19 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_09_235713) do t.datetime "updated_at", null: false end + create_table "products", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| + t.string "public_id" + t.string "name" + t.float "unitary_price" + t.float "bulk_price" + t.bigint "company_id", null: false + t.integer "available_quantity" + t.text "categories" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["company_id"], name: "index_products_on_company_id" + end + create_table "user_accounts", charset: "utf8mb4", collation: "utf8mb4_general_ci", force: :cascade do |t| t.string "email" t.string "password_digest" @@ -60,4 +73,5 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_09_235713) do add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id" add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id" + add_foreign_key "products", "companies" end -- cgit v1.2.3