]> iEval git - app-web-oof.git/blobdiff - db.sql
Bump version and update Changes
[app-web-oof.git] / db.sql
diff --git a/db.sql b/db.sql
index d8691f4d5cafa479137ca5a2c27f2c3f5ef1ff26..1cd64f348aaa22c90270d0ac75d196036ba9f12b 100644 (file)
--- a/db.sql
+++ b/db.sql
@@ -1,10 +1,13 @@
 CREATE TABLE IF NOT EXISTS products (
 CREATE TABLE IF NOT EXISTS products (
-       product  serial PRIMARY KEY,
-       title    TEXT   NOT NULL,
-       subtitle TEXT   NOT NULL,
-       summary  TEXT   NOT NULL,
-       price    INT    NOT NULL,
-       stock    INT    NOT NULL,
+       product  serial  PRIMARY KEY,
+       title    TEXT    NOT NULL,
+       subtitle TEXT    NOT NULL,
+       summary  TEXT    NOT NULL,
+       price    INT     NOT NULL,
+       stock    INT     NOT NULL,
+       freepost BOOLEAN NOT NULL DEFAULT FALSE,
+       model    TEXT,
+       brand    TEXT,
        CONSTRAINT positive_stock CHECK (stock >= 0)
 );
 
        CONSTRAINT positive_stock CHECK (stock >= 0)
 );
 
@@ -17,6 +20,7 @@ CREATE TABLE IF NOT EXISTS discounts (
 
 CREATE TABLE IF NOT EXISTS orders (
        id       TEXT PRIMARY KEY,
 
 CREATE TABLE IF NOT EXISTS orders (
        id       TEXT PRIMARY KEY,
+       date     BIGINT NOT NULL,
        products JSON NOT NULL,
        total    INT NOT NULL,
        discount VARCHAR(20) REFERENCES discounts UNIQUE,
        products JSON NOT NULL,
        total    INT NOT NULL,
        discount VARCHAR(20) REFERENCES discounts UNIQUE,
This page took 0.025258 seconds and 4 git commands to generate.