-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusers.sql
26 lines (24 loc) · 881 Bytes
/
users.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
DROP TABLE IF EXISTS users;
CREATE TABLE users
(
id smallint unsigned NOT NULL auto_increment,
username VARCHAR(50) NOT NULL,
password VARCHAR(50) NOT NULL,
joinDateTime date NOT NULL,
lastLoginDateTime date NOT NULL,
lastLoginFrom VARCHAR(50) NOT NULL,
userType VARCHAR(50) NOT NULL,
name VARCHAR(50) NOT NULL,
rollNo VARCHAR(20) NOT NULL,
hostel VARCHAR(20) NOT NULL,
room VARCHAR(20) NOT NULL,
phone VARCHAR(20) NOT NULL,
email VARCHAR(20) NOT NULL UNIQUE,
socialMediaUrl VARCHAR(50) NOT NULL,
avatarLocation VARCHAR(50) NOT NULL,
expertise VARCHAR(20) NOT NULL,
rating VARCHAR(20) NOT NULL,
aboutMe text NOT NULL,
coreRemark text NOT NULL,
PRIMARY KEY (id)
);