bazzar/migrations/202204191555_add_account_state.sql
2022-05-04 21:34:26 +02:00

9 lines
173 B
SQL

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