website/migrations/20240330145503_tokens.up.sql

7 lines
186 B
SQL

-- Add up migration script here
CREATE TABLE IF NOT EXISTS tokens (
token TEXT NOT NULL UNIQUE,
owner_id UUID NOT NULL,
permissions BIGINT NOT NULL,
PRIMARY KEY (token)
)