diff --git a/init/sql/000-init.sql b/init/sql/000-init.sql index 7db793e65829e5b96cabfec711aa19e3a5414e07..cbb714f65a5bdbeb5b6f0a3c8ca00d7d65562295 100644 --- a/init/sql/000-init.sql +++ b/init/sql/000-init.sql @@ -50,6 +50,13 @@ CREATE TABLE transactions ( ); +CREATE TABLE shares ( + uuid UUID NOT NULL PRIMARY KEY DEFAULT gen_random_uuid(), + combination_id INTEGER NULL + CONSTRAINT share_combination_id REFERENCES "combinations", + created_at TIMESTAMP NOT NULL DEFAULT NOW() +); + CREATE TABLE part_info_cpu ( part_id INTEGER NOT NULL CONSTRAINT cpu_part_id REFERENCES "parts",