taskcafe/migrations/20220221173356_create_access_token_table.sql
Jordan Knott 64093e19f6 redesign
2022-05-06 16:44:31 -05:00

10 lines
271 B
SQL

-- +goose Up
-- +goose StatementBegin
CREATE TABLE access_token (
token text PRIMARY KEY,
user_id uuid NOT NULL REFERENCES user_account(user_id) ON DELETE CASCADE,
expires_at timestamptz NOT NULL,
created_at timestamptz NOT NULL
);
-- +goose StatementEnd