minor
This commit is contained in:
5
db/60_stocks.sql
Normal file
5
db/60_stocks.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
CREATE TABLE IF NOT EXISTS stocks (
|
||||
product_id UUID PRIMARY KEY REFERENCES products(id) ON DELETE CASCADE,
|
||||
qty NUMERIC(12, 3) NOT NULL DEFAULT 0 CHECK (qty >= 0),
|
||||
reserved_qty NUMERIC(12, 3) NOT NULL DEFAULT 0 CHECK (reserved_qty >= 0)
|
||||
);
|
||||
Reference in New Issue
Block a user