public
Created

Kalkun Cubrid database schema

  • Download Gist
cubrid_kalkun.sql
SQL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
--
-- Database: "kalkun"
--
 
-- --------------------------------------------------------
 
--
-- Table structure for table "kalkun"
--
 
CREATE TABLE "kalkun" (
"version" varchar(65535) NOT NULL
);
 
-- --------------------------------------------------------
 
--
-- Table structure for table "sms_used"
--
 
CREATE TABLE "sms_used" (
"id_sms_used" int(11) NOT NULL AUTO_INCREMENT,
"sms_date" date NOT NULL,
"id_user" int(11) NOT NULL,
"out_sms_count" int(11) NOT NULL DEFAULT '0',
"in_sms_count" int(11) NOT NULL DEFAULT '0',
PRIMARY KEY ("id_sms_used")
);
 
-- --------------------------------------------------------
 
--
-- Table structure for table "user"
--
 
CREATE TABLE "user" (
"id_user" int(11) NOT NULL AUTO_INCREMENT(2,1),
"username" varchar(12) NOT NULL,
"realname" varchar(100) NOT NULL,
"password" varchar(255) NOT NULL,
"phone_number" varchar(15) NOT NULL,
"level" varchar(255) NOT NULL DEFAULT 'user',
PRIMARY KEY ("id_user"),
UNIQUE KEY "username" ("username"),
UNIQUE KEY "phone_number" ("phone_number")
);
 
--
-- Dumping data for table "user"
--
 
INSERT INTO "user" ("id_user", "username", "realname", "password", "phone_number", "level") VALUES
(1, 'kalkun', 'Kalkun SMS', 'f0af18413d1c9e0366d8d1273160f55d5efeddfe', '123456789', 'admin');
 
 
-- --------------------------------------------------------
 
--
-- Table structure for table "user_folders"
--
 
CREATE TABLE "user_folders" (
"id_folder" int(11) NOT NULL AUTO_INCREMENT,
"name" varchar(50) NOT NULL,
"id_user" int(11) NOT NULL,
PRIMARY KEY ("id_folder")
);
 
--
-- Dumping data for table "user_folders"
--
 
INSERT INTO "user_folders" ("id_folder", "name", "id_user") VALUES
(1, 'inbox', 0),
(2, 'outbox', 0),
(3, 'sent_items', 0),
(4, 'draft', 0),
(5, 'Trash', 0),
(6, 'Spam', 0);
 
-- --------------------------------------------------------
 
--
-- Table structure for table "user_inbox"
--
 
CREATE TABLE "user_inbox" (
"id_inbox" int(11) NOT NULL,
"id_user" int(11) NOT NULL,
"trash" smallint NOT NULL DEFAULT '0',
PRIMARY KEY ("id_inbox")
);
 
-- --------------------------------------------------------
 
--
-- Table structure for table "user_outbox"
--
 
CREATE TABLE "user_outbox" (
"id_outbox" int(11) NOT NULL,
"id_user" int(11) NOT NULL,
PRIMARY KEY ("id_outbox")
);
 
-- --------------------------------------------------------
 
--
-- Table structure for table "user_sentitems"
--
 
CREATE TABLE "user_sentitems" (
"id_sentitems" int(11) NOT NULL,
"id_user" int(11) NOT NULL,
"trash" smallint NOT NULL DEFAULT '0',
PRIMARY KEY ("id_sentitems")
);
 
-- --------------------------------------------------------
 
--
-- Table structure for table "user_settings"
--
 
CREATE TABLE "user_settings" (
"id_user" int(11) NOT NULL,
"theme" varchar(10) NOT NULL DEFAULT 'blue',
"signature" varchar(50) NOT NULL,
"permanent_delete" varchar(255) NOT NULL DEFAULT 'false',
"paging" int(2) NOT NULL DEFAULT '10',
"bg_image" varchar(50) NOT NULL,
"delivery_report" varchar(255) NOT NULL DEFAULT 'default',
"language" varchar(20) NOT NULL DEFAULT 'english',
"conversation_sort" varchar(255) NOT NULL DEFAULT 'asc',
PRIMARY KEY ("id_user")
);
 
--
-- Dumping data for table "user_settings"
--
 
INSERT INTO "user_settings" ("id_user", "theme", "signature", "permanent_delete", "paging", "bg_image", "delivery_report", "language", "conversation_sort") VALUES
(1, 'green', 'false;--\nPut your signature here', 'false', 20, 'true;background.jpg', 'default' , 'english', 'asc');
 
 
-- --------------------------------------------------------
 
--
-- Alter table structure for table "inbox"
--
 
ALTER TABLE "inbox" ADD "id_folder" INT( 11 ) NOT NULL DEFAULT '1',
ADD "readed" varchar( 255 ) NOT NULL DEFAULT 'false';
 
 
-- --------------------------------------------------------
 
--
-- Alter table structure for table "sentitems"
--
 
ALTER TABLE "sentitems" ADD "id_folder" INT( 11 ) NOT NULL DEFAULT '3';
 
 
-- --------------------------------------------------------
 
--
-- Alter table structure for table "pbk"
--
 
ALTER TABLE "pbk" ADD "id_user" INT( 11 ) NOT NULL;
ALTER TABLE "pbk" ADD "is_public" varchar(255) NOT NULL DEFAULT 'false';
 
-- --------------------------------------------------------
 
--
-- Alter table structure for table "pbk_groups"
--
 
ALTER TABLE "pbk_groups" ADD "id_user" INT( 11 ) NOT NULL;
ALTER TABLE "pbk_groups" ADD "is_public" varchar(255) NOT NULL DEFAULT 'false';
 
 
-- --------------------------------------------------------
 
--
-- Table structure for table "user_group"
--
 
 
CREATE TABLE "user_group" (
"id_group" int(11) NOT NULL AUTO_INCREMENT,
"id_pbk" int(11) NOT NULL,
"id_pbk_groups" int(11) NOT NULL,
"id_user" int(11) NOT NULL,
PRIMARY KEY ("id_group")
);
 
 
-- --------------------------------------------------------
 
--
-- Table structure for table "user_templates"
--
 
CREATE TABLE "user_templates" (
"id_template" int(11) NOT NULL AUTO_INCREMENT,
"id_user" int(11) NOT NULL,
"Name" varchar(64) NOT NULL,
"Message" varchar(65535) NOT NULL,
PRIMARY KEY ("id_template")
);
 
 
-- --------------------------------------------------------
 
--
-- Table structure for table "b8_wordlist"
--
 
CREATE TABLE "b8_wordlist" (
"token" varchar(255) NOT NULL,
"count" varchar(255) default NULL,
PRIMARY KEY ("token")
);
 
INSERT INTO "b8_wordlist" VALUES ('bayes*dbversion', '2');
INSERT INTO "b8_wordlist" VALUES ('bayes*texts.ham', '0');
INSERT INTO "b8_wordlist" VALUES ('bayes*texts.spam', '0');
 
-- --------------------------------------------------------
 
--
-- Table structure for table "plugins"
--
 
CREATE TABLE "plugins" (
"plugin_id" bigint NOT NULL AUTO_INCREMENT,
"plugin_system_name" varchar(255) NOT NULL,
"plugin_name" varchar(255) NOT NULL,
"plugin_uri" varchar(120) DEFAULT NULL,
"plugin_version" varchar(30) NOT NULL,
"plugin_description" varchar(65535),
"plugin_author" varchar(120) DEFAULT NULL,
"plugin_author_uri" varchar(120) DEFAULT NULL,
"plugin_data" string,
PRIMARY KEY ("plugin_id"),
UNIQUE KEY "plugin_index" ("plugin_system_name")
);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.