Skip to content

Commit 1f24e90

Browse files
chore schema.rb: #23
add up to dated schema migration
1 parent 3b2d86c commit 1f24e90

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

db/schema.rb

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.0].define(version: 2023_09_06_013257) do
13+
ActiveRecord::Schema[7.0].define(version: 2023_11_29_174620) do
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "pgcrypto"
1616
enable_extension "plpgsql"
@@ -78,6 +78,15 @@
7878
t.string "store_id"
7979
t.datetime "created_at", null: false
8080
t.datetime "updated_at", null: false
81+
t.datetime "date"
82+
t.datetime "alteration_date"
83+
t.string "marketplace_code_id"
84+
t.integer "bling_id"
85+
t.bigint "account_id"
86+
t.decimal "value"
87+
t.jsonb "items"
88+
t.index ["account_id"], name: "index_bling_order_items_on_account_id"
89+
t.index ["bling_order_id"], name: "index_bling_order_items_on_bling_order_id", unique: true
8190
end
8291

8392
create_table "categories", force: :cascade do |t|
@@ -100,6 +109,15 @@
100109
t.index ["account_id"], name: "index_customers_on_account_id"
101110
end
102111

112+
create_table "finance_data", force: :cascade do |t|
113+
t.date "date"
114+
t.decimal "income"
115+
t.decimal "expense"
116+
t.decimal "fixed_amount"
117+
t.datetime "created_at", null: false
118+
t.datetime "updated_at", null: false
119+
end
120+
103121
create_table "good_job_batches", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
104122
t.datetime "created_at", null: false
105123
t.datetime "updated_at", null: false
@@ -245,6 +263,15 @@
245263
t.index ["supplier_id"], name: "index_purchases_on_supplier_id"
246264
end
247265

266+
create_table "revenue_estimations", force: :cascade do |t|
267+
t.decimal "average_ticket"
268+
t.integer "quantity"
269+
t.decimal "revenue"
270+
t.date "date"
271+
t.datetime "created_at", null: false
272+
t.datetime "updated_at", null: false
273+
end
274+
248275
create_table "sale_products", force: :cascade do |t|
249276
t.integer "quantity"
250277
t.float "value"
@@ -277,6 +304,14 @@
277304
t.index ["customer_id"], name: "index_sales_on_customer_id"
278305
end
279306

307+
create_table "shein_orders", force: :cascade do |t|
308+
t.jsonb "data"
309+
t.datetime "created_at", null: false
310+
t.datetime "updated_at", null: false
311+
t.integer "account_id"
312+
t.index ["account_id"], name: "index_shein_orders_on_account_id"
313+
end
314+
280315
create_table "simplo_clients", force: :cascade do |t|
281316
t.string "name"
282317
t.integer "age"

0 commit comments

Comments
 (0)