taskcafe/api/migrations/0039_add-role-column-to-user_account-table.up.sql

3 lines
120 B
SQL

ALTER TABLE user_account ADD COLUMN role_code text
NOT NULL REFERENCES role(code) ON DELETE CASCADE DEFAULT 'member';