bazzar/db/migrate/202204191555_add_account_state.sql

9 lines
173 B
SQL

CREATE TYPE "AccountState" AS ENUM (
'active',
'suspended',
'banned'
);
ALTER TABLE accounts
ADD COLUMN state "AccountState" NOT NULL DEFAULT 'active';