fix migration

This commit is contained in:
nochill 2023-03-07 18:52:18 +07:00
parent 068a6d9320
commit bf09dc2318
2 changed files with 8 additions and 8 deletions

View File

@ -1,9 +1,9 @@
DROP TABLE IF EXISTS users;
DROP TABLE IF EXISTS merchants;
DROP TABLE IF EXISTS suppliers;
DROP TABLE IF EXISTS customers;
DROP TABLE IF EXISTS products;
DROP TABLE IF EXISTS purchase_order;
DROP TABLE IF EXISTS purchase_order_detail;
DROP TABLE IF EXISTS sale_order_detail;
DROP TABLE IF EXISTS purchase_order;
DROP TABLE IF EXISTS sale_order;
DROP TABLE IF EXISTS sale_order_detail;
DROP TABLE IF EXISTS products;
DROP TABLE IF EXISTS customers;
DROP TABLE IF EXISTS suppliers;
DROP TABLE IF EXISTS merchants;
DROP TABLE IF EXISTS users;

View File

@ -31,7 +31,7 @@ CREATE TABLE customers (
"index_id" bigserial not null,
"merchant_id" uuid references "merchants"("id") not null,
"name" varchar not null,
"detail" jsonb,
"detail" jsonb[],
"created_at" timestamp default(now()),
"updated_at" timestamp default(now())