feat: add 'guest' user type to user_type enum in database schema
This commit is contained in:
parent
f02a0868a4
commit
ccf2f0212e
@ -167,7 +167,7 @@ const createDatabase = async () => {
|
|||||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
email VARCHAR(255) UNIQUE NOT NULL,
|
email VARCHAR(255) UNIQUE NOT NULL,
|
||||||
password VARCHAR(255) NOT NULL,
|
password VARCHAR(255) NOT NULL,
|
||||||
user_type ENUM('personal', 'company') NOT NULL,
|
user_type ENUM('personal', 'company', 'guest') NOT NULL,
|
||||||
role ENUM('user', 'admin', 'super_admin', 'guest') DEFAULT 'user',
|
role ENUM('user', 'admin', 'super_admin', 'guest') DEFAULT 'user',
|
||||||
iban VARCHAR(34),
|
iban VARCHAR(34),
|
||||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user