Update db migration

This commit is contained in:
Dominic Grimm 2022-03-22 17:58:23 +01:00
parent e486a8940d
commit f02151bd5d
No known key found for this signature in database
GPG key ID: 27C59510125F3C8A

View file

@ -17,12 +17,12 @@
*/
-- +micrate Up
-- SQL in section ' Up ' is executed when this migration is applied
CREATE TYPE user_roles AS ENUM ('Teacher', 'Student');
CREATE TYPE user_role AS ENUM ('Teacher', 'Student');
CREATE TABLE users(
id BIGSERIAL PRIMARY KEY,
username TEXT UNIQUE NOT NULL,
role user_roles NOT NULL,
role user_role NOT NULL,
admin BOOLEAN NOT NULL
);