summaryrefslogtreecommitdiff
path: root/schema.sql
diff options
context:
space:
mode:
authorNeku <neku@pomf.se>2014-12-07 19:33:55 +0100
committerNeku <neku@pomf.se>2014-12-07 19:33:55 +0100
commit88bc3d9cf3e249246375fbea3d841bcf9ea539e9 (patch)
tree9b651a806a5ab2710968bba995695ac6de86ae52 /schema.sql
parentf748aca4dc94154aee5d6a475cb09f8c69c41107 (diff)
Create schema.sql
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql101
1 files changed, 101 insertions, 0 deletions
diff --git a/schema.sql b/schema.sql
new file mode 100644
index 0000000..acbff89
--- /dev/null
+++ b/schema.sql
@@ -0,0 +1,101 @@
+-- MySQL dump 10.13 Distrib 5.6.21-70.1, for debian-linux-gnu (x86_64)
+--
+-- Host: localhost Database: pomf
+-- ------------------------------------------------------
+-- Server version 5.6.21-70.1
+
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
+/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
+/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
+/*!40101 SET NAMES utf8 */;
+/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
+/*!40103 SET TIME_ZONE='+00:00' */;
+/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
+/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
+
+--
+-- Table structure for table `accounts`
+--
+
+DROP TABLE IF EXISTS `accounts`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `accounts` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `email` varchar(255) NOT NULL,
+ `pass` varchar(255) NOT NULL,
+ `level` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=891 DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `files`
+--
+
+DROP TABLE IF EXISTS `files`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `files` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `hash` char(40) DEFAULT NULL,
+ `orginalname` varchar(255) DEFAULT NULL,
+ `filename` varchar(30) DEFAULT NULL,
+ `size` int(11) DEFAULT NULL,
+ `date` date DEFAULT NULL,
+ `expire` date DEFAULT NULL,
+ `delid` char(40) DEFAULT NULL,
+ `user` int(11) DEFAULT '0',
+ `dir` int(2) DEFAULT '0',
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB AUTO_INCREMENT=728886 DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `invites`
+--
+
+DROP TABLE IF EXISTS `invites`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `invites` (
+ `id` int(11) 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 AUTO_INCREMENT=35 DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `reports`
+--
+
+DROP TABLE IF EXISTS `reports`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `reports` (
+ `id` int(11) 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 AUTO_INCREMENT=106 DEFAULT CHARSET=latin1;
+/*!40101 SET character_set_client = @saved_cs_client */;
+/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
+
+/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
+/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
+/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
+/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
+/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
+/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
+
+-- Dump completed on 2014-12-07 19:30:13