From 1af7c95f9f72d9608aa2bca1a2f261af26cfbe85 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Sat, 16 Jun 2018 22:53:37 +1000 Subject: [PATCH] * conf/schema.mysql.sql : add table --- conf/schema.mysql.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/conf/schema.mysql.sql b/conf/schema.mysql.sql index 41e31a3..b6884c9 100644 --- a/conf/schema.mysql.sql +++ b/conf/schema.mysql.sql @@ -6,3 +6,18 @@ CREATE TABLE zerobin ( PRIMARY KEY (id), UNIQUE KEY zerobin_uniq (created) ) ENGINE=InnoDB; + +CREATE TABLE filebin ( + id INTEGER AUTO_INCREMENT, + created INT(11) UNSIGNED NOT NULL DEFAULT 0, + expire INT(11) UNSIGNED NOT NULL DEFAULT 0, + ftype CHAR(1) NOT NULL DEFAULT 'b', -- 'b' for generic binary, 't' for text, 'i' for image, 'v' for video, 'a' for audio + fname VARCHAR(255) NOT NULL DEFAULT '', -- original filename + fext VARCHAR(16) NOT NULL DEFAULT '', -- separate file extension + fmime VARCHAR(32) NOT NULL DEFAULT '', + fsize INT(11) UNSIGNED NOT NULL DEFAULT 0, + res_w INT(11) UNSIGNED NOT NULL DEFAULT 0, + res_h INT(11) UNSIGNED NOT NULL DEFAULT 0, + PRIMARY KEY (id), + UNIQUE KEY filebin_uniq (created) +) ENGINE=InnoDB;