From caaaeb49d99e1e6bef34cd4b13541259a9240abc Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sat, 21 Sep 2013 12:31:48 +0200 Subject: Added SQL schema --- model/mysql/schema.sql | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 model/mysql/schema.sql 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 -- cgit v1.2.3-54-g00ecf