forked from nokonoko/Pomf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.sql
67 lines (57 loc) · 1.77 KB
/
schema.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
58
59
60
61
62
63
64
65
66
67
-- MySQL dump 10.13 Distrib 5.6.21-70.1, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: pomf
--
-- Table structure for table `accounts`
--
CREATE TABLE `accounts` (
`id` int(10) unsigned NOT NULL auto_increment,
`email` varchar(255) NOT NULL,
`pass` varchar(255) NOT NULL,
`level` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
--
-- Table structure for table `files`
--
CREATE TABLE `files` (
`id` int(10) unsigned NOT NULL auto_increment,
`hash` char(40) default NULL,
`originalname` varchar(255) default NULL,
`filename` varchar(30) default NULL,
`size` int(10) unsigned default NULL,
`date` date default NULL,
`expire` date default NULL,
`delid` char(40) default NULL,
`user` int(10) unsigned default '0',
`dir` int(2) default '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
-- `filename` length (30) may be a bit excessive, since the average length would be smaller
-- [6 for the name + the file extension length], but since there is no limit for the file
-- extension length (at the moment, at least) let's keep it high in order to avoid problems
--
-- Table structure for table `invites`
--
CREATE TABLE `invites` (
`id` int(10) unsigned NOT NULL auto_increment,
`email` varchar(50) default '0',
`code` varchar(50) default '0',
`used` int(11) default '0',
`level` int(11) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
--
-- Table structure for table `reports`
--
CREATE TABLE `reports` (
`id` int(10) unsigned NOT NULL auto_increment,
`hash` char(40) default '0',
`date` date default NULL,
`file` varchar(255) NOT NULL default '0',
`fileid` int(11) default '0',
`reporter` varchar(255) NOT NULL default '0',
`status` int(11) default '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
-- Dump completed on 2014-12-07 19:30:13