Skip to content

Commit

Permalink
#22 add database tables for timekeeping boards and cards
Browse files Browse the repository at this point in the history
  • Loading branch information
scmet committed Oct 26, 2024
1 parent 8f92dd8 commit 584c97f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions backend/database/setup/scripts/05-timekeeping-staff.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
CREATE TABLE IF NOT EXISTS timekeeping_board (
timekeeping_board_id SERIAL PRIMARY KEY,
user_id INTEGER,
name TEXT,
year INTEGER,
hours SMALLINT
);

CREATE TABLE IF NOT EXISTS time_entry (
time_entry_id SERIAL PRIMARY KEY,
timekeeping_board_id INTEGER REFERENCES timekeeping_board(timekeeping_board_id),
name TEXT,
description TEXT,
start TIMESTAMP WITHOUT TIME ZONE,
duration SMALLINT, -- duration in HOURS
month SMALLINT
);


0 comments on commit 584c97f

Please sign in to comment.