summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2013-09-21 12:31:48 +0200
committerKevin Chabowski <kevin@kch42.de>2013-09-21 12:31:48 +0200
commitcaaaeb49d99e1e6bef34cd4b13541259a9240abc (patch)
tree3f0dd42bb760660d40ad33f4f1071ce1a7aa12e6
parent3d42ddb5f4b465cd78b792d12e426f18b2ca3dc4 (diff)
downloadmailremind-caaaeb49d99e1e6bef34cd4b13541259a9240abc.tar.gz
mailremind-caaaeb49d99e1e6bef34cd4b13541259a9240abc.tar.bz2
mailremind-caaaeb49d99e1e6bef34cd4b13541259a9240abc.zip
Added SQL schema
-rw-r--r--model/mysql/schema.sql23
1 files changed, 23 insertions, 0 deletions
diff --git a/model/mysql/schema.sql b/model/mysql/schema.sql
new file mode 100644
index 0000000..c104e85
--- /dev/null
+++ b/model/mysql/schema.sql
@@ -0,0 +1,23 @@
+SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
+SET time_zone = "+00:00";
+
+CREATE TABLE IF NOT EXISTS `jobs` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT,
+ `user` bigint(20) NOT NULL,
+ `subject` text COLLATE utf8_unicode_ci NOT NULL,
+ `content` blob NOT NULL,
+ `next` bigint(20) NOT NULL,
+ `schedule` text COLLATE utf8_unicode_ci NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
+
+CREATE TABLE IF NOT EXISTS `users` (
+ `id` bigint(20) NOT NULL AUTO_INCREMENT,
+ `email` text COLLATE utf8_unicode_ci NOT NULL,
+ `passwd` text COLLATE utf8_unicode_ci NOT NULL,
+ `location` text COLLATE utf8_unicode_ci NOT NULL,
+ `active` tinyint(1) NOT NULL,
+ `activationcode` text COLLATE utf8_unicode_ci NOT NULL,
+ `added` bigint(20) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; \ No newline at end of file