Initial project setup
This commit is contained in:
14
Application/Schema.sql
Normal file
14
Application/Schema.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
-- Your database schema. Use the Schema Designer at http://localhost:8001/ to add some tables.
|
||||
CREATE TABLE entries (
|
||||
id UUID DEFAULT uuid_generate_v4() PRIMARY KEY NOT NULL,
|
||||
started TIMESTAMP WITH TIME ZONE DEFAULT date_trunc(('minute'::TEXT), now()) NOT NULL,
|
||||
till TIMESTAMP WITH TIME ZONE,
|
||||
"day" INT DEFAULT day_epoch(now()) NOT NULL,
|
||||
"comment" TEXT DEFAULT NULL,
|
||||
isfree BOOLEAN DEFAULT false NOT NULL
|
||||
);
|
||||
CREATE TABLE weekly_worktimes (
|
||||
"month" INT NOT NULL,
|
||||
"year" INT NOT NULL,
|
||||
worktime INT NOT NULL
|
||||
);
|
||||
Reference in New Issue
Block a user