-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdb.txt
36 lines (32 loc) · 948 Bytes
/
db.txt
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
CREATE TABLE IF NOT EXISTS `employees` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`empid` varchar(10) NOT NULL,
`name` varchar(50) NOT NULL,
`password` varchar(33) NOT NULL,
`designation` varchar(50),
`photo` varchar(25),
`online` tinyint(1) NOT NULL default 0,
`email` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE IF NOT EXISTS `chats` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`msgtext` text,
`from_id` varchar(10) NOT NULL,
`to_id` varchar(10) NOT NULL,
`sendtime` bigint(13) NOT NULL,
`receivetime` bigint(13),
`msgstatus` varchar(2) NOT NULL DEFAULT "N",
PRIMARY KEY (`id`)
);
create table media(
msgid int(10) primary key,
filename varchar(50) not null,
diskfilename varchar(25) not null,
type varchar(5) not null,
foreign key (msgid) references chats(id) on delete cascade
);
create table passwordrecovery(
empid varchar(10) primary key,
token varchar(33) not null
);