Add initial sql tables

This commit is contained in:
Joshua Coles 2024-07-16 19:04:12 +01:00
parent 08ed00a555
commit 5969a1b3d8

View File

@ -0,0 +1,16 @@
CREATE TABLE time_entries (
id BIGINT PRIMARY KEY,
workspace_id BIGINT NOT NULL,
user_id BIGINT NOT NULL,
project_id BIGINT,
task_id BIGINT,
start TIMESTAMP WITH TIME ZONE NOT NULL,
stop TIMESTAMP WITH TIME ZONE,
duration INTEGER,
updated_at TIMESTAMP WITH TIME ZONE NOT NULL,
description TEXT NOT NULL,
tag_ids BIGINT[] NOT NULL,
billable BOOLEAN NOT NULL,
server_deleted_at TIMESTAMP WITH TIME ZONE,
permissions TEXT
);