initial rough pass for a stored token implementation

This commit is contained in:
Cam Otts
2023-01-09 11:00:37 -06:00
parent 0d8a3def4d
commit e5b749be71
24 changed files with 1186 additions and 19 deletions

View File

@ -0,0 +1,16 @@
-- +migrate Up
--
-- invites
---
create table invites (
id serial primary key,
token varchar(32) not null unique,
token_status varchar(1024) not null unique,
created_at timestamp not null default(current_timestamp),
updated_at timestamp not null default(current_timestamp),
constraint chk_token check(token <> ''),
constraint chk_status check(token_status <> '')
);