feat: add sqlstring and supports-color modules
- Introduced sqlstring module for SQL escape and formatting. - Added supports-color module to detect terminal color support. - Created dashboard and login views with Bootstrap styling. - Implemented user schema in SQL with mock data for testing.
This commit is contained in:
15
scheme.sql
Normal file
15
scheme.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
CREATE TABLE users (
|
||||
id INT PRIMARY KEY AUTO_INCREMENT,
|
||||
username VARCHAR(50) NOT NULL UNIQUE,
|
||||
first_name VARCHAR(50) NOT NULL,
|
||||
last_name VARCHAR(50) NOT NULL,
|
||||
email VARCHAR(100) NOT NULL UNIQUE,
|
||||
password VARCHAR(255) NOT NULL,
|
||||
created TIMESTAMP NOT NULL DEFAULT NOW()
|
||||
);
|
||||
|
||||
-- Mock data for users
|
||||
INSERT INTO users (username, first_name, last_name, email, password)
|
||||
VALUES
|
||||
('test1', 'John', 'Doe', 'jdoe@example.com', '1test'),
|
||||
('test2', 'Alice', 'Smith', 'asmith@example.com', '2test');
|
Reference in New Issue
Block a user