|
10 | 10 | #
|
11 | 11 | # It's strongly recommended that you check this file into your version control system.
|
12 | 12 |
|
13 |
| -ActiveRecord::Schema[7.0].define(version: 2023_09_06_013257) do |
| 13 | +ActiveRecord::Schema[7.0].define(version: 2023_11_29_174620) do |
14 | 14 | # These are extensions that must be enabled in order to support this database
|
15 | 15 | enable_extension "pgcrypto"
|
16 | 16 | enable_extension "plpgsql"
|
|
78 | 78 | t.string "store_id"
|
79 | 79 | t.datetime "created_at", null: false
|
80 | 80 | 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 |
81 | 90 | end
|
82 | 91 |
|
83 | 92 | create_table "categories", force: :cascade do |t|
|
|
100 | 109 | t.index ["account_id"], name: "index_customers_on_account_id"
|
101 | 110 | end
|
102 | 111 |
|
| 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 | + |
103 | 121 | create_table "good_job_batches", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
104 | 122 | t.datetime "created_at", null: false
|
105 | 123 | t.datetime "updated_at", null: false
|
|
245 | 263 | t.index ["supplier_id"], name: "index_purchases_on_supplier_id"
|
246 | 264 | end
|
247 | 265 |
|
| 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 | + |
248 | 275 | create_table "sale_products", force: :cascade do |t|
|
249 | 276 | t.integer "quantity"
|
250 | 277 | t.float "value"
|
|
277 | 304 | t.index ["customer_id"], name: "index_sales_on_customer_id"
|
278 | 305 | end
|
279 | 306 |
|
| 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 | + |
280 | 315 | create_table "simplo_clients", force: :cascade do |t|
|
281 | 316 | t.string "name"
|
282 | 317 | t.integer "age"
|
|
0 commit comments