summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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