-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.sql
38 lines (35 loc) · 904 Bytes
/
database.sql
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
30
31
32
33
34
35
36
37
38
CREATE DATABASE IF NOT EXISTS account;
USE account;
CREATE TABLE IF NOT EXISTS users (
id INT PRIMARY KEY AUTO_INCREMENT,
first_name VARCHAR(30) NOT NULL,
last_name VARCHAR(30) NOT NULL,
email VARCHAR(100) NOT NULL UNIQUE,
username VARCHAR(30) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL,
profile_picture VARCHAR(255) DEFAULT 'default.png',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
INSERT INTO
users (
first_name,
last_name,
email,
username,
password
)
VALUES
(
'Iqbolshoh',
'Ilhomjonov',
'iqbolshoh',
'65c2a32982abe41b1e6ff888d351ee6b7ade33affd4a595667ea7db910aecaa8'
),
(
'user',
'user',
'user',
'65c2a32982abe41b1e6ff888d351ee6b7ade33affd4a595667ea7db910aecaa8'
)