Add Ldap
This commit is contained in:
+5
-4
@@ -8,10 +8,11 @@ CREATE TABLE group_infos (
|
||||
|
||||
-- 2. Users — now with a direct group_id column
|
||||
CREATE TABLE users (
|
||||
user_id INT PRIMARY KEY AUTO_INCREMENT,
|
||||
username VARCHAR(100) NOT NULL UNIQUE,
|
||||
email VARCHAR(255) NOT NULL UNIQUE,
|
||||
group_id INT NULL, -- nullable if a user can exist with no group yet
|
||||
user_id INT PRIMARY KEY AUTO_INCREMENT,
|
||||
username VARCHAR(100) NOT NULL UNIQUE,
|
||||
email VARCHAR(255) NOT NULL,
|
||||
display_name VARCHAR(255) NULL,
|
||||
group_id INT NULL, -- nullable if a user can exist with no group yet
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
FOREIGN KEY (group_id) REFERENCES group_infos(group_id) ON DELETE SET NULL
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user