Browse Source

sql tables

euromark 14 years ago
parent
commit
ea4f60386a
2 changed files with 19 additions and 0 deletions
  1. 12 0
      Config/sql/code_key.sql
  2. 7 0
      Config/sql/session.sql

+ 12 - 0
Config/sql/code_key.sql

@@ -0,0 +1,12 @@
+-- code_keys
+CREATE TABLE IF NOT EXISTS `{prefix}code_keys` (
+  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+  `user_id` char(36) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
+  `type` varchar(10) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT 'e.g.:activate,reactivate',
+  `key` varchar(60) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
+  `content` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '' COMMENT 'can transport some information',
+  `used` tinyint(1) unsigned NOT NULL DEFAULT '0',
+  `created` datetime NOT NULL,
+  `modified` datetime NOT NULL,
+  PRIMARY KEY (`id`)
+) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

+ 7 - 0
Config/sql/session.sql

@@ -0,0 +1,7 @@
+-- cake_sessions
+CREATE TABLE IF NOT EXISTS `{prefix}cake_sessions` (
+  `id` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
+  `data` text COLLATE utf8_unicode_ci,
+  `expires` int(10) unsigned NOT NULL default '0',
+  PRIMARY KEY (`id`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;