Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
sql enum type
Browse files Browse the repository at this point in the history
  • Loading branch information
JibrilExe committed Mar 20, 2024
1 parent 2ab31c1 commit 6682bfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/db_construct.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
CREATE TYPE role_options AS ENUM ('student', 'teacher', 'admin');

CREATE TABLE users (
uid VARCHAR(255),
role ENUM('student', 'teacher', 'admin') NOT NULL,
role role_options NOT NULL,
PRIMARY KEY(uid)
);

Expand Down

0 comments on commit 6682bfc

Please sign in to comment.