| 1 | create table dtb_module_update_logs( |
|---|
| 2 | log_id int auto_increment primary key NOT NULL, |
|---|
| 3 | module_id int not null, |
|---|
| 4 | buckup_path text, |
|---|
| 5 | error_flg smallint DEFAULT 0, |
|---|
| 6 | error text, |
|---|
| 7 | ok text, |
|---|
| 8 | create_date datetime NOT NULL, |
|---|
| 9 | update_date datetime NOT NULL |
|---|
| 10 | ); |
|---|
| 11 | |
|---|
| 12 | CREATE TABLE dtb_ownersstore_settings ( |
|---|
| 13 | public_key text |
|---|
| 14 | ) TYPE=InnoDB ; |
|---|
| 15 | |
|---|
| 16 | CREATE TABLE dtb_kiyaku ( |
|---|
| 17 | kiyaku_id int auto_increment primary key NOT NULL, |
|---|
| 18 | kiyaku_title text NOT NULL, |
|---|
| 19 | kiyaku_text text NOT NULL, |
|---|
| 20 | rank int NOT NULL DEFAULT 0, |
|---|
| 21 | creator_id int NOT NULL, |
|---|
| 22 | create_date datetime NOT NULL , |
|---|
| 23 | update_date datetime NOT NULL, |
|---|
| 24 | del_flg smallint NOT NULL DEFAULT 0 |
|---|
| 25 | ) TYPE=InnoDB ; |
|---|
| 26 | |
|---|
| 27 | CREATE TABLE mtb_zip ( |
|---|
| 28 | code text, |
|---|
| 29 | old_zipcode text, |
|---|
| 30 | zipcode text, |
|---|
| 31 | state_kana text, |
|---|
| 32 | city_kana text, |
|---|
| 33 | town_kana text, |
|---|
| 34 | state text, |
|---|
| 35 | city text, |
|---|
| 36 | town text, |
|---|
| 37 | flg1 text, |
|---|
| 38 | flg2 text, |
|---|
| 39 | flg3 text, |
|---|
| 40 | flg4 text, |
|---|
| 41 | flg5 text, |
|---|
| 42 | flg6 text |
|---|
| 43 | ) TYPE=InnoDB ; |
|---|
| 44 | |
|---|
| 45 | CREATE TABLE dtb_bat_order_daily_age ( |
|---|
| 46 | order_count numeric NOT NULL DEFAULT 0, |
|---|
| 47 | total numeric NOT NULL DEFAULT 0, |
|---|
| 48 | total_average numeric NOT NULL DEFAULT 0, |
|---|
| 49 | start_age smallint, |
|---|
| 50 | end_age smallint, |
|---|
| 51 | member smallint, |
|---|
| 52 | order_date datetime, |
|---|
| 53 | create_date datetime NOT NULL |
|---|
| 54 | ) TYPE=InnoDB ; |
|---|
| 55 | |
|---|
| 56 | CREATE TABLE dtb_update ( |
|---|
| 57 | module_id int NOT NULL UNIQUE, |
|---|
| 58 | module_name text NOT NULL, |
|---|
| 59 | now_version text, |
|---|
| 60 | latest_version text NOT NULL, |
|---|
| 61 | module_explain text, |
|---|
| 62 | main_php text NOT NULL, |
|---|
| 63 | extern_php text NOT NULL, |
|---|
| 64 | install_sql text, |
|---|
| 65 | uninstall_sql text, |
|---|
| 66 | other_files text, |
|---|
| 67 | del_flg smallint NOT NULL DEFAULT 0, |
|---|
| 68 | create_date datetime NOT NULL , |
|---|
| 69 | update_date datetime, |
|---|
| 70 | release_date datetime NOT NULL |
|---|
| 71 | ) TYPE=InnoDB ; |
|---|
| 72 | |
|---|
| 73 | CREATE TABLE dtb_baseinfo ( |
|---|
| 74 | company_name text, |
|---|
| 75 | company_kana text, |
|---|
| 76 | zip01 text, |
|---|
| 77 | zip02 text, |
|---|
| 78 | pref smallint, |
|---|
| 79 | addr01 text, |
|---|
| 80 | addr02 text, |
|---|
| 81 | tel01 text, |
|---|
| 82 | tel02 text, |
|---|
| 83 | tel03 text, |
|---|
| 84 | fax01 text, |
|---|
| 85 | fax02 text, |
|---|
| 86 | fax03 text, |
|---|
| 87 | business_hour text, |
|---|
| 88 | law_company text, |
|---|
| 89 | law_manager text, |
|---|
| 90 | law_zip01 text, |
|---|
| 91 | law_zip02 text, |
|---|
| 92 | law_pref smallint, |
|---|
| 93 | law_addr01 text, |
|---|
| 94 | law_addr02 text, |
|---|
| 95 | law_tel01 text, |
|---|
| 96 | law_tel02 text, |
|---|
| 97 | law_tel03 text, |
|---|
| 98 | law_fax01 text, |
|---|
| 99 | law_fax02 text, |
|---|
| 100 | law_fax03 text, |
|---|
| 101 | law_email text, |
|---|
| 102 | law_url text, |
|---|
| 103 | law_term01 text, |
|---|
| 104 | law_term02 text, |
|---|
| 105 | law_term03 text, |
|---|
| 106 | law_term04 text, |
|---|
| 107 | law_term05 text, |
|---|
| 108 | law_term06 text, |
|---|
| 109 | law_term07 text, |
|---|
| 110 | law_term08 text, |
|---|
| 111 | law_term09 text, |
|---|
| 112 | law_term10 text, |
|---|
| 113 | tax numeric DEFAULT 5, |
|---|
| 114 | tax_rule smallint DEFAULT 1, |
|---|
| 115 | email01 text, |
|---|
| 116 | email02 text, |
|---|
| 117 | email03 text, |
|---|
| 118 | email04 text, |
|---|
| 119 | email05 text, |
|---|
| 120 | free_rule numeric, |
|---|
| 121 | shop_name text, |
|---|
| 122 | shop_kana text, |
|---|
| 123 | point_rate numeric, |
|---|
| 124 | welcome_point numeric, |
|---|
| 125 | update_date datetime, |
|---|
| 126 | top_tpl text, |
|---|
| 127 | product_tpl text, |
|---|
| 128 | detail_tpl text, |
|---|
| 129 | mypage_tpl text, |
|---|
| 130 | good_traded text, |
|---|
| 131 | message text |
|---|
| 132 | ) TYPE=InnoDB ; |
|---|
| 133 | |
|---|
| 134 | CREATE TABLE dtb_deliv ( |
|---|
| 135 | deliv_id int auto_increment primary key NOT NULL, |
|---|
| 136 | name text, |
|---|
| 137 | service_name text, |
|---|
| 138 | confirm_url text, |
|---|
| 139 | rank int, |
|---|
| 140 | status smallint NOT NULL DEFAULT 1, |
|---|
| 141 | del_flg smallint NOT NULL DEFAULT 0, |
|---|
| 142 | creator_id int NOT NULL, |
|---|
| 143 | create_date datetime NOT NULL , |
|---|
| 144 | update_date datetime |
|---|
| 145 | ) TYPE=InnoDB ; |
|---|
| 146 | |
|---|
| 147 | CREATE TABLE dtb_delivtime ( |
|---|
| 148 | deliv_id int NOT NULL, |
|---|
| 149 | time_id int auto_increment primary key NOT NULL, |
|---|
| 150 | deliv_time text NOT NULL |
|---|
| 151 | ) TYPE=InnoDB ; |
|---|
| 152 | |
|---|
| 153 | CREATE TABLE dtb_delivfee ( |
|---|
| 154 | deliv_id int NOT NULL, |
|---|
| 155 | fee_id int auto_increment primary key NOT NULL, |
|---|
| 156 | fee text NOT NULL, |
|---|
| 157 | pref smallint |
|---|
| 158 | ) TYPE=InnoDB ; |
|---|
| 159 | |
|---|
| 160 | CREATE TABLE dtb_payment ( |
|---|
| 161 | payment_id int auto_increment primary key NOT NULL, |
|---|
| 162 | payment_method text, |
|---|
| 163 | charge numeric, |
|---|
| 164 | rule numeric, |
|---|
| 165 | deliv_id int DEFAULT 0, |
|---|
| 166 | rank int, |
|---|
| 167 | note text, |
|---|
| 168 | fix smallint, |
|---|
| 169 | status smallint NOT NULL DEFAULT 1, |
|---|
| 170 | del_flg smallint NOT NULL DEFAULT 0, |
|---|
| 171 | creator_id int NOT NULL, |
|---|
| 172 | create_date datetime NOT NULL , |
|---|
| 173 | update_date datetime, |
|---|
| 174 | payment_image text, |
|---|
| 175 | upper_rule numeric, |
|---|
| 176 | charge_flg int2 DEFAULT 1, |
|---|
| 177 | rule_min numeric, |
|---|
| 178 | upper_rule_max numeric, |
|---|
| 179 | module_id int4, |
|---|
| 180 | module_path text, |
|---|
| 181 | memo01 text, |
|---|
| 182 | memo02 text, |
|---|
| 183 | memo03 text, |
|---|
| 184 | memo04 text, |
|---|
| 185 | memo05 text, |
|---|
| 186 | memo06 text, |
|---|
| 187 | memo07 text, |
|---|
| 188 | memo08 text, |
|---|
| 189 | memo09 text, |
|---|
| 190 | memo10 text |
|---|
| 191 | ) TYPE=InnoDB ; |
|---|
| 192 | |
|---|
| 193 | CREATE TABLE dtb_mailtemplate ( |
|---|
| 194 | template_id int NOT NULL, |
|---|
| 195 | subject text, |
|---|
| 196 | header text, |
|---|
| 197 | footer text, |
|---|
| 198 | creator_id int NOT NULL, |
|---|
| 199 | del_flg smallint NOT NULL DEFAULT 0, |
|---|
| 200 | create_date datetime NOT NULL , |
|---|
| 201 | update_date datetime NOT NULL |
|---|
| 202 | ) TYPE=InnoDB ; |
|---|
| 203 | |
|---|
| 204 | CREATE TABLE dtb_mailmaga_template ( |
|---|
| 205 | template_id int auto_increment primary key NOT NULL UNIQUE, |
|---|
| 206 | subject text, |
|---|
| 207 | charge_image text, |
|---|
| 208 | mail_method int, |
|---|
| 209 | header text, |
|---|
| 210 | body text, |
|---|
| 211 | main_title text, |
|---|
| 212 | main_comment text, |
|---|
| 213 | main_product_id int, |
|---|
| 214 | sub_title text, |
|---|
| 215 | sub_comment text, |
|---|
| 216 | sub_product_id01 int, |
|---|
| 217 | sub_product_id02 int, |
|---|
| 218 | sub_product_id03 int, |
|---|
| 219 | sub_product_id04 int, |
|---|
| 220 | sub_product_id05 int, |
|---|
| 221 | sub_product_id06 int, |
|---|
| 222 | sub_product_id07 int, |
|---|
| 223 | sub_product_id08 int, |
|---|
| 224 | sub_product_id09 int, |
|---|
| 225 | sub_product_id10 int, |
|---|
| 226 | sub_product_id11 int, |
|---|
| 227 | sub_product_id12 int, |
|---|
| 228 | del_flg smallint NOT NULL DEFAULT 0, |
|---|
| 229 | creator_id int NOT NULL, |
|---|
| 230 | create_date datetime NOT NULL , |
|---|
| 231 | update_date datetime |
|---|
| 232 | ) TYPE=InnoDB ; |
|---|
| 233 | |
|---|
| 234 | CREATE TABLE dtb_send_history ( |
|---|
| 235 | send_id int auto_increment primary key NOT NULL, |
|---|
| 236 | mail_method smallint, |
|---|
| 237 | subject text, |
|---|
| 238 | body text, |
|---|
| 239 | send_count int, |
|---|
| 240 | complete_count int NOT NULL DEFAULT 0, |
|---|
| 241 | start_date datetime, |
|---|
| 242 | end_date datetime, |
|---|
| 243 | search_data text, |
|---|
| 244 | del_flg smallint NOT NULL DEFAULT 0, |
|---|
| 245 | creator_id int NOT NULL, |
|---|
| 246 | create_date datetime NOT NULL , |
|---|
| 247 | update_date datetime NOT NULL |
|---|
| 248 | ) TYPE=InnoDB ; |
|---|
| 249 | |
|---|
| 250 | CREATE TABLE dtb_send_customer ( |
|---|
| 251 | customer_id int, |
|---|
| 252 | send_id int NOT NULL, |
|---|
| 253 | email text, |
|---|
| 254 | name text, |
|---|
| 255 | send_flag smallint |
|---|
| 256 | ) TYPE=InnoDB ; |
|---|
| 257 | |
|---|
| 258 | CREATE TABLE dtb_products ( |
|---|
| 259 | product_id int auto_increment primary key NOT NULL UNIQUE, |
|---|
| 260 | name text, |
|---|
| 261 | deliv_fee numeric, |
|---|
| 262 | sale_limit numeric, |
|---|
| 263 | sale_unlimited smallint DEFAULT 0, |
|---|
| 264 | category_id int, |
|---|
| 265 | rank int, |
|---|
| 266 | status smallint NOT NULL DEFAULT 2, |
|---|
| 267 | product_flag text, |
|---|
| 268 | point_rate numeric, |
|---|
| 269 | comment1 text, |
|---|
| 270 | comment2 text, |
|---|
| 271 | comment3 mediumtext, |
|---|
| 272 | comment4 text, |
|---|
| 273 | comment5 text, |
|---|
| 274 | comment6 text, |
|---|
| 275 | file1 text, |
|---|
| 276 | file2 text, |
|---|
| 277 | file3 text, |
|---|
| 278 | file4 text, |
|---|
| 279 | file5 text, |
|---|
| 280 | file6 text, |
|---|
| 281 | main_list_comment text, |
|---|
| 282 | main_list_image text, |
|---|
| 283 | main_comment mediumtext, |
|---|
| 284 | main_image text, |
|---|
| 285 | main_large_image text, |
|---|
| 286 | sub_title1 text, |
|---|
| 287 | sub_comment1 mediumtext, |
|---|
| 288 | sub_image1 text, |
|---|
| 289 | sub_large_image1 text, |
|---|
| 290 | sub_title2 text, |
|---|
| 291 | sub_comment2 mediumtext, |
|---|
| 292 | sub_image2 text, |
|---|
| 293 | sub_large_image2 text, |
|---|
| 294 | sub_title3 text, |
|---|
| 295 | sub_comment3 mediumtext, |
|---|
| 296 | sub_image3 text, |
|---|
| 297 | sub_large_image3 text, |
|---|
| 298 | sub_title4 text, |
|---|
| 299 | sub_comment4 mediumtext, |
|---|
| 300 | sub_image4 text, |
|---|
| 301 | sub_large_image4 text, |
|---|
| 302 | sub_title5 text, |
|---|
| 303 | sub_comment5 mediumtext, |
|---|
| 304 | sub_image5 text, |
|---|
| 305 | sub_large_image5 text, |
|---|
| 306 | sub_title6 text, |
|---|
| 307 | sub_comment6 mediumtext, |
|---|
| 308 | sub_image6 text, |
|---|
| 309 | sub_large_image6 text, |
|---|
| 310 | del_flg smallint NOT NULL DEFAULT 0, |
|---|
| 311 | creator_id int NOT NULL, |
|---|
| 312 | create_date datetime NOT NULL , |
|---|
| 313 | update_date datetime, |
|---|
| 314 | deliv_date_id int |
|---|
| 315 | ) TYPE=InnoDB ; |
|---|
| 316 | |
|---|
| 317 | CREATE TABLE dtb_products_class ( |
|---|
| 318 | product_class_id int auto_increment primary key NOT NULL UNIQUE, |
|---|
| 319 | product_id int NOT NULL, |
|---|
| 320 | classcategory_id1 int NOT NULL DEFAULT 0, |
|---|
| 321 | classcategory_id2 int NOT NULL DEFAULT 0, |
|---|
| 322 | product_code text, |
|---|
| 323 | stock numeric, |
|---|
| 324 | stock_unlimited smallint DEFAULT 0, |
|---|
| 325 | sale_limit numeric, |
|---|
| 326 | price01 numeric, |
|---|
| 327 | price02 numeric, |
|---|
| 328 | status smallint, |
|---|
| 329 | creator_id int NOT NULL, |
|---|
| 330 | create_date datetime NOT NULL , |
|---|
| 331 | update_date datetime |
|---|
| 332 | ) TYPE=InnoDB ; |
|---|
| 333 | |
|---|
| 334 | CREATE TABLE dtb_class ( |
|---|
| 335 | class_id int auto_increment primary key NOT NULL, |
|---|
| 336 | name text, |
|---|
| 337 | status smallint, |
|---|
| 338 | rank int, |
|---|
| 339 | creator_id int NOT NULL, |
|---|
| 340 | create_date datetime NOT NULL , |
|---|
| 341 | update_date datetime, |
|---|
| 342 | del_flg smallint NOT NULL DEFAULT 0, |
|---|
| 343 | product_id int |
|---|
| 344 | ) TYPE=InnoDB ; |
|---|
| 345 | |
|---|
| 346 | CREATE TABLE dtb_classcategory ( |
|---|
| 347 | classcategory_id int auto_increment primary key NOT NULL, |
|---|
| 348 | name text, |
|---|
| 349 | class_id int NOT NULL, |
|---|
| 350 | status smallint, |
|---|
| 351 | rank int, |
|---|
| 352 | creator_id int NOT NULL, |
|---|
| 353 | create_date datetime NOT NULL , |
|---|
| 354 | update_date datetime, |
|---|
| 355 | del_flg smallint NOT NULL DEFAULT 0 |
|---|
| 356 | ) TYPE=InnoDB ; |
|---|
| 357 | |
|---|
| 358 | CREATE TABLE dtb_category ( |
|---|
| 359 | category_id int auto_increment primary key NOT NULL, |
|---|
| 360 | category_name text, |
|---|
| 361 | parent_category_id int NOT NULL DEFAULT 0, |
|---|
| 362 | level int NOT NULL, |
|---|
| 363 | rank int, |
|---|
| 364 | creator_id int NOT NULL, |
|---|
| 365 | create_date datetime NOT NULL , |
|---|
| 366 | update_date datetime, |
|---|
| 367 | del_flg smallint NOT NULL DEFAULT 0 |
|---|
| 368 | ) TYPE=InnoDB ; |
|---|
| 369 | |
|---|
| 370 | CREATE TABLE dtb_product_categories ( |
|---|
| 371 | product_id int4 NOT NULL, |
|---|
| 372 | category_id int4 NOT NULL, |
|---|
| 373 | rank int4, |
|---|
| 374 | PRIMARY KEY(product_id, category_id) |
|---|
| 375 | ) TYPE=InnoDB; |
|---|
| 376 | |
|---|
| 377 | CREATE TABLE dtb_bat_order_daily ( |
|---|
| 378 | total_order numeric NOT NULL DEFAULT 0, |
|---|
| 379 | member numeric NOT NULL DEFAULT 0, |
|---|
| 380 | nonmember numeric NOT NULL DEFAULT 0, |
|---|
| 381 | men numeric NOT NULL DEFAULT 0, |
|---|
| 382 | women numeric NOT NULL DEFAULT 0, |
|---|
| 383 | men_member numeric NOT NULL DEFAULT 0, |
|---|
| 384 | men_nonmember numeric NOT NULL DEFAULT 0, |
|---|
| 385 | women_member numeric NOT NULL DEFAULT 0, |
|---|
| 386 | women_nonmember numeric NOT NULL DEFAULT 0, |
|---|
| 387 | total numeric NOT NULL DEFAULT 0, |
|---|
| 388 | total_average numeric NOT NULL DEFAULT 0, |
|---|
| 389 | order_date datetime NOT NULL , |
|---|
| 390 | create_date datetime NOT NULL , |
|---|
| 391 | year smallint NOT NULL, |
|---|
| 392 | month smallint NOT NULL, |
|---|
| 393 | day smallint NOT NULL, |
|---|
| 394 | wday smallint NOT NULL, |
|---|
| 395 | key_day text NOT NULL, |
|---|
| 396 | key_month text NOT NULL, |
|---|
| 397 | key_year text NOT NULL, |
|---|
| 398 | key_wday text NOT NULL |
|---|
| 399 | ) TYPE=InnoDB ; |
|---|
| 400 | |
|---|
| 401 | CREATE TABLE dtb_bat_order_daily_hour ( |
|---|
| 402 | total_order numeric NOT NULL DEFAULT 0, |
|---|
| 403 | member numeric NOT NULL DEFAULT 0, |
|---|
| 404 | nonmember numeric NOT NULL DEFAULT 0, |
|---|
| 405 | men numeric NOT NULL DEFAULT 0, |
|---|
| 406 | women numeric NOT NULL DEFAULT 0, |
|---|
| 407 | men_member numeric NOT NULL DEFAULT 0, |
|---|
| 408 | men_nonmember numeric NOT NULL DEFAULT 0, |
|---|
| 409 | women_member numeric NOT NULL DEFAULT 0, |
|---|
| 410 | women_nonmember numeric NOT NULL DEFAULT 0, |
|---|
| 411 | total numeric NOT NULL DEFAULT 0, |
|---|
| 412 | total_average numeric NOT NULL DEFAULT 0, |
|---|
| 413 | hour smallint NOT NULL DEFAULT 0, |
|---|
| 414 | order_date datetime , |
|---|
| 415 | create_date datetime NOT NULL |
|---|
| 416 | ) TYPE=InnoDB ; |
|---|
| 417 | |
|---|
| 418 | CREATE TABLE dtb_recommend_products ( |
|---|
| 419 | product_id int NOT NULL, |
|---|
| 420 | recommend_product_id int NOT NULL, |
|---|
| 421 | rank int NOT NULL, |
|---|
| 422 | comment text, |
|---|
| 423 | status smallint NOT NULL DEFAULT 0, |
|---|
| 424 | creator_id int NOT NULL, |
|---|
| 425 | create_date datetime NOT NULL , |
|---|
| 426 | update_date datetime NOT NULL |
|---|
| 427 | ) TYPE=InnoDB ; |
|---|
| 428 | |
|---|
| 429 | CREATE TABLE dtb_review ( |
|---|
| 430 | review_id int auto_increment primary key NOT NULL, |
|---|
| 431 | product_id int NOT NULL, |
|---|
| 432 | reviewer_name text NOT NULL, |
|---|
| 433 | reviewer_url text, |
|---|
| 434 | sex smallint, |
|---|
| 435 | customer_id int, |
|---|
| 436 | recommend_level smallint NOT NULL, |
|---|
| 437 | title text NOT NULL, |
|---|
| 438 | comment text NOT NULL, |
|---|
| 439 | status smallint DEFAULT 2, |
|---|
| 440 | creator_id int NOT NULL, |
|---|
| 441 | create_date datetime, |
|---|
| 442 | update_date datetime, |
|---|
| 443 | del_flg smallint NOT NULL DEFAULT 0 |
|---|
| 444 | ) TYPE=InnoDB ; |
|---|
| 445 | |
|---|
| 446 | CREATE TABLE dtb_customer_reading ( |
|---|
| 447 | reading_product_id int NOT NULL, |
|---|
| 448 | customer_id int NOT NULL, |
|---|
| 449 | create_date datetime NOT NULL, |
|---|
| 450 | update_date datetime NOT NULL |
|---|
| 451 | ) TYPE=InnoDB ; |
|---|
| 452 | |
|---|
| 453 | CREATE TABLE dtb_category_count ( |
|---|
| 454 | category_id int NOT NULL, |
|---|
| 455 | product_count int NOT NULL, |
|---|
| 456 | create_date datetime NOT NULL |
|---|
| 457 | ) TYPE=InnoDB ; |
|---|
| 458 | |
|---|
| 459 | CREATE TABLE dtb_category_total_count ( |
|---|
| 460 | category_id int NOT NULL, |
|---|
| 461 | product_count int, |
|---|
| 462 | create_date datetime NOT NULL |
|---|
| 463 | ) TYPE=InnoDB ; |
|---|
| 464 | |
|---|
| 465 | CREATE TABLE dtb_news ( |
|---|
| 466 | news_id int auto_increment primary key NOT NULL UNIQUE, |
|---|
| 467 | news_date datetime, |
|---|
| 468 | rank int, |
|---|
| 469 | news_title text NOT NULL, |
|---|
| 470 | news_comment text, |
|---|
| 471 | news_url text, |
|---|
| 472 | news_select smallint NOT NULL DEFAULT 0, |
|---|
| 473 | link_method text, |
|---|
| 474 | creator_id int NOT NULL, |
|---|
| 475 | create_date datetime NOT NULL , |
|---|
| 476 | update_date datetime, |
|---|
| 477 | del_flg smallint NOT NULL DEFAULT 0 |
|---|
| 478 | ) TYPE=InnoDB ; |
|---|
| 479 | |
|---|
| 480 | CREATE TABLE dtb_best_products ( |
|---|
| 481 | best_id int auto_increment primary key NOT NULL, |
|---|
| 482 | category_id int NOT NULL, |
|---|
| 483 | rank int NOT NULL DEFAULT 0, |
|---|
| 484 | product_id int NOT NULL, |
|---|
| 485 | title text, |
|---|
| 486 | comment text, |
|---|
| 487 | creator_id int NOT NULL, |
|---|
| 488 | create_date datetime NOT NULL , |
|---|
| 489 | update_date datetime, |
|---|
| 490 | del_flg smallint NOT NULL DEFAULT 0 |
|---|
| 491 | ) TYPE=InnoDB ; |
|---|
| 492 | |
|---|
| 493 | CREATE TABLE dtb_mail_history ( |
|---|
| 494 | send_id int auto_increment primary key NOT NULL, |
|---|
| 495 | order_id int NOT NULL, |
|---|
| 496 | send_date datetime, |
|---|
| 497 | template_id int, |
|---|
| 498 | creator_id int NOT NULL, |
|---|
| 499 | subject text, |
|---|
| 500 | mail_body text |
|---|
| 501 | ) TYPE=InnoDB ; |
|---|
| 502 | |
|---|
| 503 | CREATE TABLE dtb_customer ( |
|---|
| 504 | customer_id int auto_increment primary key NOT NULL, |
|---|
| 505 | name01 text NOT NULL, |
|---|
| 506 | name02 text NOT NULL, |
|---|
| 507 | kana01 text NOT NULL, |
|---|
| 508 | kana02 text NOT NULL, |
|---|
| 509 | zip01 text, |
|---|
| 510 | zip02 text, |
|---|
| 511 | pref smallint, |
|---|
| 512 | addr01 text, |
|---|
| 513 | addr02 text, |
|---|
| 514 | email text NOT NULL, |
|---|
| 515 | email_mobile text, |
|---|
| 516 | tel01 text, |
|---|
| 517 | tel02 text, |
|---|
| 518 | tel03 text, |
|---|
| 519 | fax01 text, |
|---|
| 520 | fax02 text, |
|---|
| 521 | fax03 text, |
|---|
| 522 | sex smallint, |
|---|
| 523 | job smallint, |
|---|
| 524 | birth datetime, |
|---|
| 525 | password text, |
|---|
| 526 | reminder smallint, |
|---|
| 527 | reminder_answer text, |
|---|
| 528 | secret_key varchar(50) NOT NULL UNIQUE, |
|---|
| 529 | first_buy_date datetime, |
|---|
| 530 | last_buy_date datetime, |
|---|
| 531 | buy_times numeric DEFAULT 0, |
|---|
| 532 | buy_total numeric DEFAULT 0, |
|---|
| 533 | point numeric DEFAULT 0, |
|---|
| 534 | note text, |
|---|
| 535 | status smallint NOT NULL DEFAULT 1, |
|---|
| 536 | create_date datetime NOT NULL , |
|---|
| 537 | update_date datetime , |
|---|
| 538 | del_flg smallint NOT NULL DEFAULT 0, |
|---|
| 539 | cell01 text, |
|---|
| 540 | cell02 text, |
|---|
| 541 | cell03 text, |
|---|
| 542 | mobile_phone_id text, |
|---|
| 543 | mailmaga_flg smallint |
|---|
| 544 | ) TYPE=InnoDB ; |
|---|
| 545 | |
|---|
| 546 | CREATE INDEX dtb_customer_mobile_phone_id_key ON dtb_customer (mobile_phone_id(64)); |
|---|
| 547 | |
|---|
| 548 | CREATE TABLE dtb_customer_mail_temp ( |
|---|
| 549 | email varchar(50) NOT NULL UNIQUE, |
|---|
| 550 | mail_flag smallint, |
|---|
| 551 | temp_id varchar(50) NOT NULL UNIQUE, |
|---|
| 552 | end_flag smallint, |
|---|
| 553 | update_date datetime NOT NULL , |
|---|
| 554 | create_data datetime NOT NULL |
|---|
| 555 | ) TYPE=InnoDB ; |
|---|
| 556 | |
|---|
| 557 | CREATE TABLE dtb_order ( |
|---|
| 558 | order_id int auto_increment primary key NOT NULL, |
|---|
| 559 | order_temp_id text, |
|---|
| 560 | customer_id int NOT NULL, |
|---|
| 561 | message text, |
|---|
| 562 | order_name01 text, |
|---|
| 563 | order_name02 text, |
|---|
| 564 | order_kana01 text, |
|---|
| 565 | order_kana02 text, |
|---|
| 566 | order_email text, |
|---|
| 567 | order_tel01 text, |
|---|
| 568 | order_tel02 text, |
|---|
| 569 | order_tel03 text, |
|---|
| 570 | order_fax01 text, |
|---|
| 571 | order_fax02 text, |
|---|
| 572 | order_fax03 text, |
|---|
| 573 | order_zip01 text, |
|---|
| 574 | order_zip02 text, |
|---|
| 575 | order_pref text, |
|---|
| 576 | order_addr01 text, |
|---|
| 577 | order_addr02 text, |
|---|
| 578 | order_sex smallint, |
|---|
| 579 | order_birth datetime, |
|---|
| 580 | order_job int, |
|---|
| 581 | deliv_name01 text, |
|---|
| 582 | deliv_name02 text, |
|---|
| 583 | deliv_kana01 text, |
|---|
| 584 | deliv_kana02 text, |
|---|
| 585 | deliv_tel01 text, |
|---|
| 586 | deliv_tel02 text, |
|---|
| 587 | deliv_tel03 text, |
|---|
| 588 | deliv_fax01 text, |
|---|
| 589 | deliv_fax02 text, |
|---|
| 590 | deliv_fax03 text, |
|---|
| 591 | deliv_zip01 text, |
|---|
| 592 | deliv_zip02 text, |
|---|
| 593 | deliv_pref text, |
|---|
| 594 | deliv_addr01 text, |
|---|
| 595 | deliv_addr02 text, |
|---|
| 596 | subtotal numeric, |
|---|
| 597 | discount numeric, |
|---|
| 598 | deliv_fee numeric, |
|---|
| 599 | charge numeric, |
|---|
| 600 | use_point numeric, |
|---|
| 601 | add_point numeric, |
|---|
| 602 | birth_point numeric DEFAULT 0, |
|---|
| 603 | tax numeric, |
|---|
| 604 | total numeric, |
|---|
| 605 | payment_total numeric, |
|---|
| 606 | payment_id int, |
|---|
| 607 | payment_method text, |
|---|
| 608 | deliv_id int, |
|---|
| 609 | deliv_time_id int, |
|---|
| 610 | deliv_time text, |
|---|
| 611 | deliv_no text, |
|---|
| 612 | note text, |
|---|
| 613 | status smallint, |
|---|
| 614 | create_date datetime NOT NULL , |
|---|
| 615 | loan_result text, |
|---|
| 616 | credit_result text, |
|---|
| 617 | credit_msg text, |
|---|
| 618 | update_date datetime, |
|---|
| 619 | commit_date datetime, |
|---|
| 620 | del_flg smallint NOT NULL DEFAULT 0, |
|---|
| 621 | deliv_date text, |
|---|
| 622 | conveni_data text, |
|---|
| 623 | cell01 text, |
|---|
| 624 | cell02 text, |
|---|
| 625 | cell03 text, |
|---|
| 626 | memo01 text, |
|---|
| 627 | memo02 text, |
|---|
| 628 | memo03 text, |
|---|
| 629 | memo04 text, |
|---|
| 630 | memo05 text, |
|---|
| 631 | memo06 text, |
|---|
| 632 | memo07 text, |
|---|
| 633 | memo08 text, |
|---|
| 634 | memo09 text, |
|---|
| 635 | memo10 text, |
|---|
| 636 | campaign_id int |
|---|
| 637 | ) TYPE=InnoDB ; |
|---|
| 638 | |
|---|
| 639 | CREATE TABLE dtb_order_temp ( |
|---|
| 640 | order_temp_id text NOT NULL, |
|---|
| 641 | customer_id int NOT NULL, |
|---|
| 642 | message text, |
|---|
| 643 | order_name01 text, |
|---|
| 644 | order_name02 text, |
|---|
| 645 | order_kana01 text, |
|---|
| 646 | order_kana02 text, |
|---|
| 647 | order_email text, |
|---|
| 648 | order_tel01 text, |
|---|
| 649 | order_tel02 text, |
|---|
| 650 | order_tel03 text, |
|---|
| 651 | order_fax01 text, |
|---|
| 652 | order_fax02 text, |
|---|
| 653 | order_fax03 text, |
|---|
| 654 | order_zip01 text, |
|---|
| 655 | order_zip02 text, |
|---|
| 656 | order_pref text, |
|---|
| 657 | order_addr01 text, |
|---|
| 658 | order_addr02 text, |
|---|
| 659 | order_sex smallint, |
|---|
| 660 | order_birth datetime, |
|---|
| 661 | order_job int, |
|---|
| 662 | deliv_name01 text, |
|---|
| 663 | deliv_name02 text, |
|---|
| 664 | deliv_kana01 text, |
|---|
| 665 | deliv_kana02 text, |
|---|
| 666 | deliv_tel01 text, |
|---|
| 667 | deliv_tel02 text, |
|---|
| 668 | deliv_tel03 text, |
|---|
| 669 | deliv_fax01 text, |
|---|
| 670 | deliv_fax02 text, |
|---|
| 671 | deliv_fax03 text, |
|---|
| 672 | deliv_zip01 text, |
|---|
| 673 | deliv_zip02 text, |
|---|
| 674 | deliv_pref text, |
|---|
| 675 | deliv_addr01 text, |
|---|
| 676 | deliv_addr02 text, |
|---|
| 677 | subtotal numeric, |
|---|
| 678 | discount numeric, |
|---|
| 679 | deliv_fee numeric, |
|---|
| 680 | charge numeric, |
|---|
| 681 | use_point numeric, |
|---|
| 682 | add_point numeric, |
|---|
| 683 | birth_point numeric DEFAULT 0, |
|---|
| 684 | tax numeric, |
|---|
| 685 | total numeric, |
|---|
| 686 | payment_total numeric, |
|---|
| 687 | payment_id int, |
|---|
| 688 | payment_method text, |
|---|
| 689 | deliv_id int, |
|---|
| 690 | deliv_time_id int, |
|---|
| 691 | deliv_time text, |
|---|
| 692 | deliv_no text, |
|---|
| 693 | note text, |
|---|
| 694 | mail_flag smallint, |
|---|
| 695 | status smallint, |
|---|
| 696 | deliv_check smallint, |
|---|
| 697 | point_check smallint, |
|---|
| 698 | loan_result text, |
|---|
| 699 | credit_result text, |
|---|
| 700 | credit_msg text, |
|---|
| 701 | create_date datetime NOT NULL , |
|---|
| 702 | update_date datetime, |
|---|
| 703 | del_flg smallint NOT NULL DEFAULT 0, |
|---|
| 704 | deliv_date text, |
|---|
| 705 | conveni_data text, |
|---|
| 706 | cell01 text, |
|---|
| 707 | cell02 text, |
|---|
| 708 | cell03 text, |
|---|
| 709 | order_id int4, |
|---|
| 710 | memo01 text, |
|---|
| 711 | memo02 text, |
|---|
| 712 | memo03 text, |
|---|
| 713 | memo04 text, |
|---|
| 714 | memo05 text, |
|---|
| 715 | memo06 text, |
|---|
| 716 | memo07 text, |
|---|
| 717 | memo08 text, |
|---|
| 718 | memo09 text, |
|---|
| 719 | memo10 text, |
|---|
| 720 | session text |
|---|
| 721 | ) TYPE=InnoDB ; |
|---|
| 722 | |
|---|
| 723 | CREATE TABLE dtb_other_deliv ( |
|---|
| 724 | other_deliv_id int auto_increment primary key NOT NULL, |
|---|
| 725 | customer_id int NOT NULL, |
|---|
| 726 | name01 text, |
|---|
| 727 | name02 text, |
|---|
| 728 | kana01 text, |
|---|
| 729 | kana02 text, |
|---|
| 730 | zip01 text, |
|---|
| 731 | zip02 text, |
|---|
| 732 | pref text, |
|---|
| 733 | addr01 text, |
|---|
| 734 | addr02 text, |
|---|
| 735 | tel01 text, |
|---|
| 736 | tel02 text, |
|---|
| 737 | tel03 text |
|---|
| 738 | ) TYPE=InnoDB ; |
|---|
| 739 | |
|---|
| 740 | CREATE TABLE dtb_order_detail ( |
|---|
| 741 | order_id int NOT NULL, |
|---|
| 742 | product_id int NOT NULL, |
|---|
| 743 | classcategory_id1 int NOT NULL, |
|---|
| 744 | classcategory_id2 int NOT NULL, |
|---|
| 745 | product_name text NOT NULL, |
|---|
| 746 | product_code text, |
|---|
| 747 | classcategory_name1 text, |
|---|
| 748 | classcategory_name2 text, |
|---|
| 749 | price numeric, |
|---|
| 750 | quantity numeric, |
|---|
| 751 | point_rate numeric |
|---|
| 752 | ) TYPE=InnoDB ; |
|---|
| 753 | |
|---|
| 754 | CREATE TABLE mtb_pref ( |
|---|
| 755 | pref_id smallint NOT NULL, |
|---|
| 756 | pref_name text, |
|---|
| 757 | rank smallint NOT NULL DEFAULT 0 |
|---|
| 758 | ) TYPE=InnoDB ; |
|---|
| 759 | |
|---|
| 760 | CREATE TABLE dtb_member ( |
|---|
| 761 | member_id int auto_increment primary key NOT NULL, |
|---|
| 762 | name text, |
|---|
| 763 | department text, |
|---|
| 764 | login_id text NOT NULL, |
|---|
| 765 | password text NOT NULL, |
|---|
| 766 | authority smallint NOT NULL, |
|---|
| 767 | rank int NOT NULL DEFAULT 0, |
|---|
| 768 | work smallint NOT NULL DEFAULT 1, |
|---|
| 769 | del_flg smallint NOT NULL DEFAULT 0, |
|---|
| 770 | creator_id int NOT NULL, |
|---|
| 771 | update_date datetime, |
|---|
| 772 | create_date datetime NOT NULL , |
|---|
| 773 | login_date datetime |
|---|
| 774 | ) TYPE=InnoDB ; |
|---|
| 775 | |
|---|
| 776 | CREATE TABLE dtb_question ( |
|---|
| 777 | question_id int auto_increment primary key NOT NULL, |
|---|
| 778 | question_name text, |
|---|
| 779 | question text, |
|---|
| 780 | create_date datetime NOT NULL , |
|---|
| 781 | del_flg smallint NOT NULL DEFAULT 0 |
|---|
| 782 | ) TYPE=InnoDB ; |
|---|
| 783 | |
|---|
| 784 | CREATE TABLE dtb_question_result ( |
|---|
| 785 | result_id int auto_increment primary key NOT NULL, |
|---|
| 786 | question_id int NOT NULL, |
|---|
| 787 | question_date datetime, |
|---|
| 788 | question_name text, |
|---|
| 789 | name01 text, |
|---|
| 790 | name02 text, |
|---|
| 791 | kana01 text, |
|---|
| 792 | kana02 text, |
|---|
| 793 | zip01 text, |
|---|
| 794 | zip02 text, |
|---|
| 795 | pref smallint, |
|---|
| 796 | addr01 text, |
|---|
| 797 | addr02 text, |
|---|
| 798 | tel01 text, |
|---|
| 799 | tel02 text, |
|---|
| 800 | tel03 text, |
|---|
| 801 | mail01 text, |
|---|
| 802 | question01 text, |
|---|
| 803 | question02 text, |
|---|
| 804 | question03 text, |
|---|
| 805 | question04 text, |
|---|
| 806 | question05 text, |
|---|
| 807 | question06 text, |
|---|
| 808 | create_date datetime NOT NULL , |
|---|
| 809 | del_flg smallint NOT NULL DEFAULT 0 |
|---|
| 810 | ) TYPE=InnoDB ; |
|---|
| 811 | |
|---|
| 812 | CREATE TABLE dtb_bat_relate_products ( |
|---|
| 813 | product_id int, |
|---|
| 814 | relate_product_id int, |
|---|
| 815 | customer_id int, |
|---|
| 816 | create_date datetime |
|---|
| 817 | ) TYPE=InnoDB ; |
|---|
| 818 | |
|---|
| 819 | CREATE TABLE dtb_campaign ( |
|---|
| 820 | campaign_id int auto_increment primary key NOT NULL, |
|---|
| 821 | campaign_name text, |
|---|
| 822 | campaign_point_rate numeric NOT NULL, |
|---|
| 823 | campaign_point_type smallint, |
|---|
| 824 | start_date datetime NOT NULL, |
|---|
| 825 | end_date datetime NOT NULL, |
|---|
| 826 | directory_name text NOT NULL, |
|---|
| 827 | limit_count int4 NOT NULL DEFAULT 0, |
|---|
| 828 | total_count int4 NOT NULL DEFAULT 0, |
|---|
| 829 | orverlapping_flg int2 NOT NULL DEFAULT 0, |
|---|
| 830 | cart_flg int2 NOT NULL DEFAULT 0, |
|---|
| 831 | deliv_free_flg int2 NOT NULL DEFAULT 0, |
|---|
| 832 | search_condition text, |
|---|
| 833 | del_flg smallint NOT NULL DEFAULT 0, |
|---|
| 834 | create_date datetime NOT NULL, |
|---|
| 835 | update_date datetime NOT NULL |
|---|
| 836 | ) TYPE=InnoDB ; |
|---|
| 837 | |
|---|
| 838 | CREATE TABLE dtb_campaign_detail ( |
|---|
| 839 | campaign_id int NOT NULL, |
|---|
| 840 | product_id int NOT NULL, |
|---|
| 841 | campaign_point_rate numeric NOT NULL |
|---|
| 842 | ) TYPE=InnoDB ; |
|---|
| 843 | |
|---|
| 844 | CREATE TABLE dtb_pagelayout ( |
|---|
| 845 | page_id int auto_increment primary key NOT NULL, |
|---|
| 846 | page_name text, |
|---|
| 847 | url text NOT NULL, |
|---|
| 848 | php_dir text, |
|---|
| 849 | tpl_dir text, |
|---|
| 850 | filename text, |
|---|
| 851 | header_chk smallint DEFAULT 1, |
|---|
| 852 | footer_chk smallint DEFAULT 1, |
|---|
| 853 | edit_flg smallint DEFAULT 1, |
|---|
| 854 | author text, |
|---|
| 855 | description text, |
|---|
| 856 | keyword text, |
|---|
| 857 | update_url text, |
|---|
| 858 | create_date datetime NOT NULL , |
|---|
| 859 | update_date datetime NOT NULL |
|---|
| 860 | ) TYPE=InnoDB ; |
|---|
| 861 | |
|---|
| 862 | CREATE TABLE dtb_bloc ( |
|---|
| 863 | bloc_id int auto_increment primary key NOT NULL, |
|---|
| 864 | bloc_name text, |
|---|
| 865 | tpl_path text, |
|---|
| 866 | filename varchar(50) NOT NULL UNIQUE, |
|---|
| 867 | create_date datetime NOT NULL , |
|---|
| 868 | update_date datetime NOT NULL , |
|---|
| 869 | php_path text, |
|---|
| 870 | del_flg smallint NOT NULL DEFAULT 0 |
|---|
| 871 | ) TYPE=InnoDB ; |
|---|
| 872 | |
|---|
| 873 | CREATE TABLE dtb_blocposition ( |
|---|
| 874 | page_id int NOT NULL, |
|---|
| 875 | target_id int, |
|---|
| 876 | bloc_id int, |
|---|
| 877 | bloc_row int, |
|---|
| 878 | filename text |
|---|
| 879 | ) TYPE=InnoDB ; |
|---|
| 880 | |
|---|
| 881 | CREATE TABLE dtb_csv ( |
|---|
| 882 | no int auto_increment primary key, |
|---|
| 883 | csv_id int NOT NULL, |
|---|
| 884 | col text, |
|---|
| 885 | disp_name text, |
|---|
| 886 | rank int, |
|---|
| 887 | status smallint NOT NULL DEFAULT 1, |
|---|
| 888 | create_date datetime NOT NULL , |
|---|
| 889 | update_date datetime NOT NULL |
|---|
| 890 | ) TYPE=InnoDB ; |
|---|
| 891 | |
|---|
| 892 | CREATE TABLE dtb_csv_sql ( |
|---|
| 893 | sql_id int auto_increment primary key, |
|---|
| 894 | sql_name text NOT NULL, |
|---|
| 895 | csv_sql text, |
|---|
| 896 | update_date datetime NOT NULL, |
|---|
| 897 | create_date datetime NOT NULL |
|---|
| 898 | ) TYPE=InnoDB ; |
|---|
| 899 | |
|---|
| 900 | CREATE TABLE dtb_user_regist ( |
|---|
| 901 | user_id int auto_increment primary key NOT NULL, |
|---|
| 902 | org_name text, |
|---|
| 903 | post_name text, |
|---|
| 904 | name01 text, |
|---|
| 905 | name02 text, |
|---|
| 906 | kana01 text, |
|---|
| 907 | kana02 text, |
|---|
| 908 | email text NOT NULL, |
|---|
| 909 | url text, |
|---|
| 910 | note text, |
|---|
| 911 | secret_key varchar(50) NOT NULL UNIQUE, |
|---|
| 912 | status smallint NOT NULL, |
|---|
| 913 | del_flg smallint DEFAULT 0, |
|---|
| 914 | create_date datetime NOT NULL, |
|---|
| 915 | update_date datetime NOT NULL |
|---|
| 916 | ) TYPE=InnoDB ; |
|---|
| 917 | |
|---|
| 918 | CREATE TABLE dtb_templates |
|---|
| 919 | ( |
|---|
| 920 | template_code varchar(50) NOT NULL UNIQUE , |
|---|
| 921 | template_name text , |
|---|
| 922 | create_date datetime NOT NULL , |
|---|
| 923 | update_date datetime NOT NULL |
|---|
| 924 | ) TYPE=InnoDB ; |
|---|
| 925 | |
|---|
| 926 | CREATE TABLE dtb_table_comment |
|---|
| 927 | ( |
|---|
| 928 | id int auto_increment primary key, |
|---|
| 929 | table_name text, |
|---|
| 930 | column_name text, |
|---|
| 931 | description text |
|---|
| 932 | ) TYPE=InnoDB ; |
|---|
| 933 | |
|---|
| 934 | CREATE TABLE mtb_permission ( |
|---|
| 935 | id text, |
|---|
| 936 | name text, |
|---|
| 937 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 938 | PRIMARY KEY (id(32)) |
|---|
| 939 | ) TYPE=InnoDB; |
|---|
| 940 | |
|---|
| 941 | CREATE TABLE mtb_disable_logout ( |
|---|
| 942 | id int2, |
|---|
| 943 | name text, |
|---|
| 944 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 945 | PRIMARY KEY (id) |
|---|
| 946 | ) TYPE=InnoDB; |
|---|
| 947 | |
|---|
| 948 | CREATE TABLE mtb_authority ( |
|---|
| 949 | id int2, |
|---|
| 950 | name text, |
|---|
| 951 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 952 | PRIMARY KEY (id) |
|---|
| 953 | ) TYPE=InnoDB; |
|---|
| 954 | |
|---|
| 955 | CREATE TABLE mtb_work ( |
|---|
| 956 | id int2, |
|---|
| 957 | name text, |
|---|
| 958 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 959 | PRIMARY KEY (id) |
|---|
| 960 | ) TYPE=InnoDB; |
|---|
| 961 | |
|---|
| 962 | CREATE TABLE mtb_disp ( |
|---|
| 963 | id int2, |
|---|
| 964 | name text, |
|---|
| 965 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 966 | PRIMARY KEY (id) |
|---|
| 967 | ) TYPE=InnoDB; |
|---|
| 968 | |
|---|
| 969 | CREATE TABLE mtb_class ( |
|---|
| 970 | id int2, |
|---|
| 971 | name text, |
|---|
| 972 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 973 | PRIMARY KEY (id) |
|---|
| 974 | ) TYPE=InnoDB; |
|---|
| 975 | |
|---|
| 976 | CREATE TABLE mtb_srank ( |
|---|
| 977 | id int2, |
|---|
| 978 | name text, |
|---|
| 979 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 980 | PRIMARY KEY (id) |
|---|
| 981 | ) TYPE=InnoDB; |
|---|
| 982 | |
|---|
| 983 | CREATE TABLE mtb_status ( |
|---|
| 984 | id int2, |
|---|
| 985 | name text, |
|---|
| 986 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 987 | PRIMARY KEY (id) |
|---|
| 988 | ) TYPE=InnoDB; |
|---|
| 989 | |
|---|
| 990 | CREATE TABLE mtb_status_image ( |
|---|
| 991 | id int2, |
|---|
| 992 | name text, |
|---|
| 993 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 994 | PRIMARY KEY (id) |
|---|
| 995 | ) TYPE=InnoDB; |
|---|
| 996 | |
|---|
| 997 | CREATE TABLE mtb_allowed_tag ( |
|---|
| 998 | id int2, |
|---|
| 999 | name text, |
|---|
| 1000 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1001 | PRIMARY KEY (id) |
|---|
| 1002 | ) TYPE=InnoDB; |
|---|
| 1003 | |
|---|
| 1004 | CREATE TABLE mtb_page_max ( |
|---|
| 1005 | id int2, |
|---|
| 1006 | name text, |
|---|
| 1007 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1008 | PRIMARY KEY (id) |
|---|
| 1009 | ) TYPE=InnoDB; |
|---|
| 1010 | |
|---|
| 1011 | CREATE TABLE mtb_magazine_type ( |
|---|
| 1012 | id int2, |
|---|
| 1013 | name text, |
|---|
| 1014 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1015 | PRIMARY KEY (id) |
|---|
| 1016 | ) TYPE=InnoDB; |
|---|
| 1017 | |
|---|
| 1018 | CREATE TABLE mtb_mail_magazine_type ( |
|---|
| 1019 | id int2, |
|---|
| 1020 | name text, |
|---|
| 1021 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1022 | PRIMARY KEY (id) |
|---|
| 1023 | ) TYPE=InnoDB; |
|---|
| 1024 | |
|---|
| 1025 | CREATE TABLE mtb_recommend ( |
|---|
| 1026 | id int2, |
|---|
| 1027 | name text, |
|---|
| 1028 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1029 | PRIMARY KEY (id) |
|---|
| 1030 | ) TYPE=InnoDB; |
|---|
| 1031 | |
|---|
| 1032 | CREATE TABLE mtb_taxrule ( |
|---|
| 1033 | id int2, |
|---|
| 1034 | name text, |
|---|
| 1035 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1036 | PRIMARY KEY (id) |
|---|
| 1037 | ) TYPE=InnoDB; |
|---|
| 1038 | |
|---|
| 1039 | CREATE TABLE mtb_mail_template ( |
|---|
| 1040 | id int2, |
|---|
| 1041 | name text, |
|---|
| 1042 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1043 | PRIMARY KEY (id) |
|---|
| 1044 | ) TYPE=InnoDB; |
|---|
| 1045 | |
|---|
| 1046 | CREATE TABLE mtb_mail_tpl_path ( |
|---|
| 1047 | id int2, |
|---|
| 1048 | name text, |
|---|
| 1049 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1050 | PRIMARY KEY (id) |
|---|
| 1051 | ) TYPE=InnoDB; |
|---|
| 1052 | |
|---|
| 1053 | CREATE TABLE mtb_job ( |
|---|
| 1054 | id int2, |
|---|
| 1055 | name text, |
|---|
| 1056 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1057 | PRIMARY KEY (id) |
|---|
| 1058 | ) TYPE=InnoDB; |
|---|
| 1059 | |
|---|
| 1060 | CREATE TABLE mtb_reminder ( |
|---|
| 1061 | id int2, |
|---|
| 1062 | name text, |
|---|
| 1063 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1064 | PRIMARY KEY (id) |
|---|
| 1065 | ) TYPE=InnoDB; |
|---|
| 1066 | |
|---|
| 1067 | CREATE TABLE mtb_sex ( |
|---|
| 1068 | id int2, |
|---|
| 1069 | name text, |
|---|
| 1070 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1071 | PRIMARY KEY (id) |
|---|
| 1072 | ) TYPE=InnoDB; |
|---|
| 1073 | |
|---|
| 1074 | CREATE TABLE mtb_page_rows ( |
|---|
| 1075 | id int2, |
|---|
| 1076 | name text, |
|---|
| 1077 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1078 | PRIMARY KEY (id) |
|---|
| 1079 | ) TYPE=InnoDB; |
|---|
| 1080 | |
|---|
| 1081 | CREATE TABLE mtb_mail_type ( |
|---|
| 1082 | id int2, |
|---|
| 1083 | name text, |
|---|
| 1084 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1085 | PRIMARY KEY (id) |
|---|
| 1086 | ) TYPE=InnoDB; |
|---|
| 1087 | |
|---|
| 1088 | CREATE TABLE mtb_order_status ( |
|---|
| 1089 | id int2, |
|---|
| 1090 | name text, |
|---|
| 1091 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1092 | PRIMARY KEY (id) |
|---|
| 1093 | ) TYPE=InnoDB; |
|---|
| 1094 | |
|---|
| 1095 | CREATE TABLE mtb_product_status_color ( |
|---|
| 1096 | id int2, |
|---|
| 1097 | name text, |
|---|
| 1098 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1099 | PRIMARY KEY (id) |
|---|
| 1100 | ) TYPE=InnoDB; |
|---|
| 1101 | |
|---|
| 1102 | CREATE TABLE mtb_order_status_color ( |
|---|
| 1103 | id int2, |
|---|
| 1104 | name text, |
|---|
| 1105 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1106 | PRIMARY KEY (id) |
|---|
| 1107 | ) TYPE=InnoDB; |
|---|
| 1108 | |
|---|
| 1109 | CREATE TABLE mtb_wday ( |
|---|
| 1110 | id int2, |
|---|
| 1111 | name text, |
|---|
| 1112 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1113 | PRIMARY KEY (id) |
|---|
| 1114 | ) TYPE=InnoDB; |
|---|
| 1115 | |
|---|
| 1116 | CREATE TABLE mtb_delivery_date ( |
|---|
| 1117 | id int2, |
|---|
| 1118 | name text, |
|---|
| 1119 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1120 | PRIMARY KEY (id) |
|---|
| 1121 | ) TYPE=InnoDB; |
|---|
| 1122 | |
|---|
| 1123 | CREATE TABLE mtb_product_list_max ( |
|---|
| 1124 | id int2, |
|---|
| 1125 | name text, |
|---|
| 1126 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1127 | PRIMARY KEY (id) |
|---|
| 1128 | ) TYPE=InnoDB; |
|---|
| 1129 | |
|---|
| 1130 | CREATE TABLE mtb_convenience ( |
|---|
| 1131 | id int2, |
|---|
| 1132 | name text, |
|---|
| 1133 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1134 | PRIMARY KEY (id) |
|---|
| 1135 | ) TYPE=InnoDB; |
|---|
| 1136 | |
|---|
| 1137 | CREATE TABLE mtb_conveni_message ( |
|---|
| 1138 | id int2, |
|---|
| 1139 | name text, |
|---|
| 1140 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1141 | PRIMARY KEY (id) |
|---|
| 1142 | ) TYPE=InnoDB; |
|---|
| 1143 | |
|---|
| 1144 | CREATE TABLE mtb_db ( |
|---|
| 1145 | id int2, |
|---|
| 1146 | name text, |
|---|
| 1147 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1148 | PRIMARY KEY (id) |
|---|
| 1149 | ) TYPE=InnoDB; |
|---|
| 1150 | |
|---|
| 1151 | CREATE TABLE mtb_target ( |
|---|
| 1152 | id int2, |
|---|
| 1153 | name text, |
|---|
| 1154 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1155 | PRIMARY KEY (id) |
|---|
| 1156 | ) TYPE=InnoDB; |
|---|
| 1157 | |
|---|
| 1158 | CREATE TABLE mtb_review_deny_url ( |
|---|
| 1159 | id int2, |
|---|
| 1160 | name text, |
|---|
| 1161 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1162 | PRIMARY KEY (id) |
|---|
| 1163 | ) TYPE=InnoDB; |
|---|
| 1164 | |
|---|
| 1165 | CREATE TABLE mtb_track_back_status ( |
|---|
| 1166 | id int2, |
|---|
| 1167 | name text, |
|---|
| 1168 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1169 | PRIMARY KEY (id) |
|---|
| 1170 | ) TYPE=InnoDB; |
|---|
| 1171 | |
|---|
| 1172 | CREATE TABLE mtb_site_control_track_back ( |
|---|
| 1173 | id int2, |
|---|
| 1174 | name text, |
|---|
| 1175 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1176 | PRIMARY KEY (id) |
|---|
| 1177 | ) TYPE=InnoDB; |
|---|
| 1178 | |
|---|
| 1179 | CREATE TABLE mtb_site_control_affiliate ( |
|---|
| 1180 | id int2, |
|---|
| 1181 | name text, |
|---|
| 1182 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1183 | PRIMARY KEY (id) |
|---|
| 1184 | ) TYPE=InnoDB; |
|---|
| 1185 | |
|---|
| 1186 | CREATE TABLE mtb_mobile_domain ( |
|---|
| 1187 | id int2, |
|---|
| 1188 | name text, |
|---|
| 1189 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1190 | PRIMARY KEY (id) |
|---|
| 1191 | ) TYPE=InnoDB; |
|---|
| 1192 | |
|---|
| 1193 | CREATE TABLE mtb_ownersstore_err ( |
|---|
| 1194 | id int2, |
|---|
| 1195 | name text, |
|---|
| 1196 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1197 | PRIMARY KEY (id) |
|---|
| 1198 | ) TYPE=InnoDB; |
|---|
| 1199 | |
|---|
| 1200 | CREATE TABLE mtb_ownersstore_ips ( |
|---|
| 1201 | id int2, |
|---|
| 1202 | name text, |
|---|
| 1203 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1204 | PRIMARY KEY (id) |
|---|
| 1205 | ) TYPE=InnoDB; |
|---|
| 1206 | |
|---|
| 1207 | CREATE TABLE mtb_constants ( |
|---|
| 1208 | id text, |
|---|
| 1209 | name text, |
|---|
| 1210 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1211 | remarks text |
|---|
| 1212 | ) TYPE=InnoDB; |
|---|