summaryrefslogtreecommitdiff
path: root/mysql_schema.sql
diff options
context:
space:
mode:
authorileyd <akpu1@inventati.org>2016-06-28 23:10:10 +0200
committerGitHub <noreply@github.com>2016-06-28 23:10:10 +0200
commit88cfdb49b4f0a293f792ef35406abdafb084fdcb (patch)
tree99c0be4c95eb0b977fe2004188e2a34958201ed6 /mysql_schema.sql
parente01670d1bb7204051e076069f50fd68d55e8c92c (diff)
parent186b9bf0aed3638845544c1dad9f54297cc23413 (diff)
Merge pull request #2 from pomf/master
e;
Diffstat (limited to 'mysql_schema.sql')
-rw-r--r--mysql_schema.sql27
1 files changed, 27 insertions, 0 deletions
diff --git a/mysql_schema.sql b/mysql_schema.sql
new file mode 100644
index 0000000..154f095
--- /dev/null
+++ b/mysql_schema.sql
@@ -0,0 +1,27 @@
+-- MySQL dump 10.13 Distrib 5.6.21-70.1, for debian-linux-gnu (x86_64)
+--
+-- Host: localhost Database: pomf
+
+--
+-- 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, -- Deprecated since version 2.1.0
+ `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
+
+
+-- Dump completed on 2014-12-07 19:30:13