diff --git a/src/main/resources/db/migration/V202407091914__create_order_table.sql b/src/main/resources/db/migration/V202407091914__create_order_table.sql new file mode 100644 index 0000000..2989da6 --- /dev/null +++ b/src/main/resources/db/migration/V202407091914__create_order_table.sql @@ -0,0 +1,11 @@ +CREATE TABLE tborder ( + idorder UUID PRIMARY KEY DEFAULT gen_random_uuid(), + orderdate DATE NOT NULL, + status VARCHAR(255) NOT NULL, + grossstotal NUMERIC(19,2), + discount NUMERIC(19,2) CHECK (discount >= 0), + nettotal NUMERIC(19,2), + dthreg TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + dthalt TIMESTAMP DEFAULT CURRENT_TIMESTAMP, + version BIGINT +);