-
Notifications
You must be signed in to change notification settings - Fork 1
/
localhost.sql
57 lines (50 loc) · 1.36 KB
/
localhost.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
SET NAMES utf8;
SET foreign_key_checks = 0;
SET time_zone = 'SYSTEM';
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
CREATE TABLE `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` text NOT NULL,
`picture` text NOT NULL,
`author` text NOT NULL,
`content` text NOT NULL,
`date` text NOT NULL,
`status` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `notifications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` text NOT NULL,
`toUser` text NOT NULL,
`type` text NOT NULL,
`picture` text NOT NULL,
`user` text NOT NULL,
`comment` text NOT NULL,
`date` text NOT NULL,
`status` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `pics` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` text NOT NULL,
`path` text NOT NULL,
`content` longtext NOT NULL,
`md5` text NOT NULL,
`date` text NOT NULL,
`prints` text NOT NULL,
`author` text NOT NULL,
`status` text NOT NULL,
`width` int(11) NOT NULL,
`height` int(11) NOT NULL,
`mimetype` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fbid` text NOT NULL,
`username` text NOT NULL,
`name` text NOT NULL,
`date` text NOT NULL,
`role` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;