-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb.sql
More file actions
29 lines (21 loc) · 774 Bytes
/
Copy pathdb.sql
File metadata and controls
29 lines (21 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
CREATE TABLE `available_times` (
`id` int NOT NULL,
`date` date DEFAULT NULL,
`start_time` time DEFAULT NULL,
`end_time` time DEFAULT NULL,
`is_booked` tinyint(1) DEFAULT '0',
`model_name` varchar(100) DEFAULT NULL,
`instagram_link` varchar(255) DEFAULT NULL,
`mobile_number` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
ALTER TABLE `available_times`
ADD PRIMARY KEY (`id`);
ALTER TABLE `available_times`
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
COMMIT;
CREATE TABLE users (
id INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(255) NOT NULL,
password VARCHAR(255) NOT NULL
);
INSERT INTO users (username, password) VALUES ('set-a-username', 'set-a-strong-password');