-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#22 add database tables for timekeeping boards and cards
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
); | ||
|
||
|