diff options
Diffstat (limited to 'server/migrations')
| -rw-r--r-- | server/migrations/20221008120534_init.down.sql | 2 | ||||
| -rw-r--r-- | server/migrations/20221008120534_init.up.sql | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/server/migrations/20221008120534_init.down.sql b/server/migrations/20221008120534_init.down.sql new file mode 100644 index 0000000..3b80b80 --- /dev/null +++ b/server/migrations/20221008120534_init.down.sql @@ -0,0 +1,2 @@ +-- Add down migration script here +drop table if exists users; diff --git a/server/migrations/20221008120534_init.up.sql b/server/migrations/20221008120534_init.up.sql new file mode 100644 index 0000000..bcd9c2c --- /dev/null +++ b/server/migrations/20221008120534_init.up.sql @@ -0,0 +1,8 @@ +-- Add up migration script here +create table users ( + id uuid primary key, + username varchar(32) not null, + access_token varchar(2048) not null, + access_token_expiration timestamp with time zone not null, + refresh_token varchar(512) not null +); |
