Update db migration
This commit is contained in:
parent
e486a8940d
commit
f02151bd5d
|
@ -17,12 +17,12 @@
|
||||||
*/
|
*/
|
||||||
-- +micrate Up
|
-- +micrate Up
|
||||||
-- SQL in section ' Up ' is executed when this migration is applied
|
-- 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(
|
CREATE TABLE users(
|
||||||
id BIGSERIAL PRIMARY KEY,
|
id BIGSERIAL PRIMARY KEY,
|
||||||
username TEXT UNIQUE NOT NULL,
|
username TEXT UNIQUE NOT NULL,
|
||||||
role user_roles NOT NULL,
|
role user_role NOT NULL,
|
||||||
admin BOOLEAN NOT NULL
|
admin BOOLEAN NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue