userver: samples/postgres_auth/schemas/postgresql/auth/migrations/V001__create_db.sql
Loading...
Searching...
No Matches
samples/postgres_auth/schemas/postgresql/auth/migrations/V001__create_db.sql
DROP SCHEMA IF EXISTS auth_schema CASCADE;
CREATE SCHEMA IF NOT EXISTS auth_schema;
CREATE TABLE IF NOT EXISTS auth_schema.tokens (
token TEXT PRIMARY KEY NOT NULL,
user_id INTEGER NOT NULL,
scopes TEXT[] NOT NULL,
updated TIMESTAMPTZ NOT NULL DEFAULT NOW()
);