Initial project setup

This commit is contained in:
Arne Weiss
2022-09-02 22:40:21 +02:00
commit ce35c0300c
41 changed files with 1127 additions and 0 deletions

14
Application/Schema.sql Normal file
View 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
);