This will allow me to mark when an oauth token fails and surface it to the user so that they can re-up on their auth token.
16 lines
296 B
SQL
16 lines
296 B
SQL
-- +goose Up
|
|
CREATE TYPE NotificationType AS ENUM (
|
|
'oauth_token_invalidated');
|
|
|
|
CREATE TABLE notification (
|
|
id SERIAL PRIMARY KEY,
|
|
user_id INTEGER REFERENCES user_(id),
|
|
message TEXT,
|
|
link TEXT,
|
|
type NotificationType);
|
|
|
|
|
|
|
|
-- +goose Down
|
|
DROP TABLE notification;
|
|
DROP TYPE NotificationType;
|