diff options
Diffstat (limited to 'migrations/2020-02-04-150559_entry/up.sql')
-rw-r--r-- | migrations/2020-02-04-150559_entry/up.sql | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/migrations/2020-02-04-150559_entry/up.sql b/migrations/2020-02-04-150559_entry/up.sql new file mode 100644 index 0000000..122dec7 --- /dev/null +++ b/migrations/2020-02-04-150559_entry/up.sql @@ -0,0 +1,9 @@ +create table entries ( + username varchar not null references users(username), + entry_type varchar(16) not null, + id bigserial not null, + timestamp timestamptz, + payload jsonb not null, + + primary key(username, entry_type, id) +); |