Add initial sql tables
This commit is contained in:
parent
08ed00a555
commit
5969a1b3d8
16
migrations/20240716162450_add_time_entries.sql
Normal file
16
migrations/20240716162450_add_time_entries.sql
Normal 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
|
||||||
|
);
|
||||||
Loading…
Reference in New Issue
Block a user