feat(back+front): user roles expanded + frontend styling

This commit is contained in:
2024-07-28 14:34:54 +02:00
parent 75e1fe4c65
commit c20d621e2f
38 changed files with 229 additions and 52 deletions

View File

@@ -4,6 +4,7 @@ CREATE TABLE user (
username VARCHAR(50) NOT NULL,
password VARCHAR(255) NOT NULL,
roles VARCHAR(255) NOT NULL,
picture VARCHAR(255),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
@@ -15,9 +16,9 @@ CREATE TABLE example (
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
INSERT INTO user (username, password, roles) VALUES
('dqnid', '$2b$10$DDGh9u4yiTY9FJx2faFPlucBbTB6Y3i8YkH7AEztcpeaKv08AjdrW', 'admin'),
('albi', '$2b$10$DDGh9u4yiTY9FJx2faFPlucBbTB6Y3i8YkH7AEztcpeaKv08AjdrW', 'admin');
INSERT INTO user (username, password, roles, picture) VALUES
('dqnid', '$2b$10$DDGh9u4yiTY9FJx2faFPlucBbTB6Y3i8YkH7AEztcpeaKv08AjdrW', 'user;manager;admin', 'https://picsum.photos/200/300'),
('albi', '$2b$10$DDGh9u4yiTY9FJx2faFPlucBbTB6Y3i8YkH7AEztcpeaKv08AjdrW', 'admin', NULL);
INSERT INTO example (name, description, image) VALUES
('dqnid', 'This is a short text stored in a mysql database', 'https://picsum.photos/200/300'),