summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/schema.rb16
1 files changed, 15 insertions, 1 deletions
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