Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyKomarovCoder committed Dec 12, 2023
1 parent b4814dc commit 4cd2683
Showing 1 changed file with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions build/schema/initdb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,30 +53,17 @@ CREATE TABLE IF NOT EXISTS TransactionCategory (
PRIMARY KEY (transaction_id, category_id)
);

<<<<<<< HEAD
--CREATE TABLE IF NOT EXISTS goal (
-- id UUID DEFAULT uuid_generate_v4() PRIMARY KEY,
-- user_id UUID REFERENCES "user"(user_id) NOT NULL,
-- "name" TEXT CHECK(LENGTH("name") <= 50) NOT NULL,
-- "description" TEXT DEFAULT '' CHECK(LENGTH("description") <= 255),
-- "target" NUMERIC(10,2) NOT NULL,
-- "date" DATE,
-- created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL,
-- updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL
--);
=======
CREATE TABLE IF NOT EXISTS goal (
id UUID DEFAULT uuid_generate_v4() PRIMARY KEY,
user_id UUID REFERENCES Users(id) NOT NULL,
"name" TEXT CHECK(LENGTH("name") <= 50) NOT NULL,
"description" TEXT DEFAULT '' CHECK(LENGTH("description") <= 255),
"target" NUMERIC(10,2) NOT NULL,
"date" DATE,
"state" TEXT DEFAULT '' CHECK(LENGTH("state") <= 20),
created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL,
updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL
);
>>>>>>> 159fe381c65bd448a92e0c9b63cdcaeff611df79
-- CREATE TABLE IF NOT EXISTS goal (
-- id UUID DEFAULT uuid_generate_v4() PRIMARY KEY,
-- user_id UUID REFERENCES Users(id) NOT NULL,
-- "name" TEXT CHECK(LENGTH("name") <= 50) NOT NULL,
-- "description" TEXT DEFAULT '' CHECK(LENGTH("description") <= 255),
-- "target" NUMERIC(10,2) NOT NULL,
-- "date" DATE,
-- "state" TEXT DEFAULT '' CHECK(LENGTH("state") <= 20),
-- created_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL,
-- updated_at TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP NOT NULL
-- );

--========================================================================

Expand Down

0 comments on commit 4cd2683

Please sign in to comment.