From 58944490abd9fba84dc7ffd8d7ba811717942a4e Mon Sep 17 00:00:00 2001 From: Eunhak Lee <lee@enak.kr> Date: Sun, 8 Dec 2024 05:51:51 +0900 Subject: [PATCH] chore: add share table --- init/sql/000-init.sql | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init/sql/000-init.sql b/init/sql/000-init.sql index 7db793e..cbb714f 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", -- GitLab