| 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 | ) TYPE=InnoDB ; |
---|
| 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 dtb_holiday ( |
---|
| 28 | holiday_id int auto_increment primary key NOT NULL, |
---|
| 29 | title text NOT NULL, |
---|
| 30 | month smallint NOT NULL, |
---|
| 31 | day smallint NOT NULL, |
---|
| 32 | rank int NOT NULL DEFAULT 0, |
---|
| 33 | creator_id int NOT NULL, |
---|
| 34 | create_date datetime NOT NULL, |
---|
| 35 | update_date datetime NOT NULL, |
---|
| 36 | del_flg smallint NOT NULL DEFAULT 0 |
---|
| 37 | ) TYPE=InnoDB ; |
---|
| 38 | |
---|
| 39 | CREATE TABLE mtb_zip ( |
---|
| 40 | code text, |
---|
| 41 | old_zipcode text, |
---|
| 42 | zipcode text, |
---|
| 43 | state_kana text, |
---|
| 44 | city_kana text, |
---|
| 45 | town_kana text, |
---|
| 46 | state text, |
---|
| 47 | city text, |
---|
| 48 | town text, |
---|
| 49 | flg1 text, |
---|
| 50 | flg2 text, |
---|
| 51 | flg3 text, |
---|
| 52 | flg4 text, |
---|
| 53 | flg5 text, |
---|
| 54 | flg6 text |
---|
| 55 | ) TYPE=InnoDB ; |
---|
| 56 | |
---|
| 57 | CREATE TABLE dtb_bat_order_daily_age ( |
---|
| 58 | order_count numeric NOT NULL DEFAULT 0, |
---|
| 59 | total numeric NOT NULL DEFAULT 0, |
---|
| 60 | total_average numeric NOT NULL DEFAULT 0, |
---|
| 61 | start_age smallint, |
---|
| 62 | end_age smallint, |
---|
| 63 | member smallint, |
---|
| 64 | order_date datetime, |
---|
| 65 | create_date datetime NOT NULL |
---|
| 66 | ) TYPE=InnoDB ; |
---|
| 67 | |
---|
| 68 | CREATE TABLE dtb_update ( |
---|
| 69 | module_id int NOT NULL, |
---|
| 70 | module_name text NOT NULL, |
---|
| 71 | now_version text, |
---|
| 72 | latest_version text NOT NULL, |
---|
| 73 | module_explain text, |
---|
| 74 | main_php text NOT NULL, |
---|
| 75 | extern_php text NOT NULL, |
---|
| 76 | install_sql text, |
---|
| 77 | uninstall_sql text, |
---|
| 78 | other_files text, |
---|
| 79 | del_flg smallint NOT NULL DEFAULT 0, |
---|
| 80 | create_date datetime NOT NULL , |
---|
| 81 | update_date datetime, |
---|
| 82 | release_date datetime NOT NULL, |
---|
| 83 | PRIMARY KEY (module_id) |
---|
| 84 | ) TYPE=InnoDB ; |
---|
| 85 | |
---|
| 86 | CREATE TABLE dtb_baseinfo ( |
---|
| 87 | company_name text, |
---|
| 88 | company_kana text, |
---|
| 89 | zip01 text, |
---|
| 90 | zip02 text, |
---|
| 91 | pref smallint, |
---|
| 92 | addr01 text, |
---|
| 93 | addr02 text, |
---|
| 94 | tel01 text, |
---|
| 95 | tel02 text, |
---|
| 96 | tel03 text, |
---|
| 97 | fax01 text, |
---|
| 98 | fax02 text, |
---|
| 99 | fax03 text, |
---|
| 100 | business_hour text, |
---|
| 101 | law_company text, |
---|
| 102 | law_manager text, |
---|
| 103 | law_zip01 text, |
---|
| 104 | law_zip02 text, |
---|
| 105 | law_pref smallint, |
---|
| 106 | law_addr01 text, |
---|
| 107 | law_addr02 text, |
---|
| 108 | law_tel01 text, |
---|
| 109 | law_tel02 text, |
---|
| 110 | law_tel03 text, |
---|
| 111 | law_fax01 text, |
---|
| 112 | law_fax02 text, |
---|
| 113 | law_fax03 text, |
---|
| 114 | law_email text, |
---|
| 115 | law_url text, |
---|
| 116 | law_term01 text, |
---|
| 117 | law_term02 text, |
---|
| 118 | law_term03 text, |
---|
| 119 | law_term04 text, |
---|
| 120 | law_term05 text, |
---|
| 121 | law_term06 text, |
---|
| 122 | law_term07 text, |
---|
| 123 | law_term08 text, |
---|
| 124 | law_term09 text, |
---|
| 125 | law_term10 text, |
---|
| 126 | tax numeric NOT NULL DEFAULT 5, |
---|
| 127 | tax_rule smallint NOT NULL DEFAULT 1, |
---|
| 128 | email01 text, |
---|
| 129 | email02 text, |
---|
| 130 | email03 text, |
---|
| 131 | email04 text, |
---|
| 132 | email05 text, |
---|
| 133 | free_rule numeric, |
---|
| 134 | shop_name text, |
---|
| 135 | shop_kana text, |
---|
| 136 | point_rate numeric NOT NULL DEFAULT 0, |
---|
| 137 | welcome_point numeric NOT NULL DEFAULT 0, |
---|
| 138 | update_date datetime, |
---|
| 139 | top_tpl text, |
---|
| 140 | product_tpl text, |
---|
| 141 | detail_tpl text, |
---|
| 142 | mypage_tpl text, |
---|
| 143 | good_traded text, |
---|
| 144 | message text, |
---|
| 145 | regular_holiday_ids text |
---|
| 146 | ) TYPE=InnoDB ; |
---|
| 147 | |
---|
| 148 | CREATE TABLE dtb_deliv ( |
---|
| 149 | deliv_id int auto_increment primary key NOT NULL, |
---|
| 150 | name text, |
---|
| 151 | service_name text, |
---|
| 152 | confirm_url text, |
---|
| 153 | rank int, |
---|
| 154 | status smallint NOT NULL DEFAULT 1, |
---|
| 155 | del_flg smallint NOT NULL DEFAULT 0, |
---|
| 156 | creator_id int NOT NULL, |
---|
| 157 | create_date datetime NOT NULL , |
---|
| 158 | update_date datetime |
---|
| 159 | ) TYPE=InnoDB ; |
---|
| 160 | |
---|
| 161 | CREATE TABLE dtb_delivtime ( |
---|
| 162 | deliv_id int NOT NULL, |
---|
| 163 | time_id int NOT NULL, |
---|
| 164 | deliv_time text NOT NULL, |
---|
| 165 | PRIMARY KEY (deliv_id, time_id) |
---|
| 166 | ) TYPE=InnoDB ; |
---|
| 167 | |
---|
| 168 | CREATE TABLE dtb_delivfee ( |
---|
| 169 | deliv_id int NOT NULL, |
---|
| 170 | fee_id int auto_increment primary key NOT NULL, |
---|
| 171 | fee text NOT NULL, |
---|
| 172 | pref smallint |
---|
| 173 | ) TYPE=InnoDB ; |
---|
| 174 | |
---|
| 175 | CREATE TABLE dtb_payment ( |
---|
| 176 | payment_id int auto_increment primary key NOT NULL, |
---|
| 177 | payment_method text, |
---|
| 178 | charge numeric, |
---|
| 179 | rule numeric, |
---|
| 180 | deliv_id int DEFAULT 0, |
---|
| 181 | rank int, |
---|
| 182 | note text, |
---|
| 183 | fix smallint, |
---|
| 184 | status smallint NOT NULL DEFAULT 1, |
---|
| 185 | del_flg smallint NOT NULL DEFAULT 0, |
---|
| 186 | creator_id int NOT NULL, |
---|
| 187 | create_date datetime NOT NULL , |
---|
| 188 | update_date datetime, |
---|
| 189 | payment_image text, |
---|
| 190 | upper_rule numeric, |
---|
| 191 | charge_flg int2 DEFAULT 1, |
---|
| 192 | rule_min numeric, |
---|
| 193 | upper_rule_max numeric, |
---|
| 194 | module_id int4, |
---|
| 195 | module_path text, |
---|
| 196 | memo01 text, |
---|
| 197 | memo02 text, |
---|
| 198 | memo03 text, |
---|
| 199 | memo04 text, |
---|
| 200 | memo05 text, |
---|
| 201 | memo06 text, |
---|
| 202 | memo07 text, |
---|
| 203 | memo08 text, |
---|
| 204 | memo09 text, |
---|
| 205 | memo10 text |
---|
| 206 | ) TYPE=InnoDB ; |
---|
| 207 | |
---|
| 208 | CREATE TABLE dtb_mailtemplate ( |
---|
| 209 | template_id int NOT NULL, |
---|
| 210 | subject text, |
---|
| 211 | header text, |
---|
| 212 | footer text, |
---|
| 213 | creator_id int NOT NULL, |
---|
| 214 | del_flg smallint NOT NULL DEFAULT 0, |
---|
| 215 | create_date datetime NOT NULL , |
---|
| 216 | update_date datetime NOT NULL |
---|
| 217 | ) TYPE=InnoDB ; |
---|
| 218 | |
---|
| 219 | CREATE TABLE dtb_mailmaga_template ( |
---|
| 220 | template_id int auto_increment primary key NOT NULL, |
---|
| 221 | subject text, |
---|
| 222 | charge_image text, |
---|
| 223 | mail_method int, |
---|
| 224 | header text, |
---|
| 225 | body text, |
---|
| 226 | main_title text, |
---|
| 227 | main_comment text, |
---|
| 228 | main_product_id int, |
---|
| 229 | sub_title text, |
---|
| 230 | sub_comment text, |
---|
| 231 | sub_product_id01 int, |
---|
| 232 | sub_product_id02 int, |
---|
| 233 | sub_product_id03 int, |
---|
| 234 | sub_product_id04 int, |
---|
| 235 | sub_product_id05 int, |
---|
| 236 | sub_product_id06 int, |
---|
| 237 | sub_product_id07 int, |
---|
| 238 | sub_product_id08 int, |
---|
| 239 | sub_product_id09 int, |
---|
| 240 | sub_product_id10 int, |
---|
| 241 | sub_product_id11 int, |
---|
| 242 | sub_product_id12 int, |
---|
| 243 | del_flg smallint NOT NULL DEFAULT 0, |
---|
| 244 | creator_id int NOT NULL, |
---|
| 245 | create_date datetime NOT NULL , |
---|
| 246 | update_date datetime |
---|
| 247 | ) TYPE=InnoDB ; |
---|
| 248 | |
---|
| 249 | CREATE TABLE dtb_send_history ( |
---|
| 250 | send_id int auto_increment primary key NOT NULL, |
---|
| 251 | mail_method smallint, |
---|
| 252 | subject text, |
---|
| 253 | body text, |
---|
| 254 | send_count int, |
---|
| 255 | complete_count int NOT NULL DEFAULT 0, |
---|
| 256 | start_date datetime, |
---|
| 257 | end_date datetime, |
---|
| 258 | search_data text, |
---|
| 259 | del_flg smallint NOT NULL DEFAULT 0, |
---|
| 260 | creator_id int NOT NULL, |
---|
| 261 | create_date datetime NOT NULL , |
---|
| 262 | update_date datetime NOT NULL |
---|
| 263 | ) TYPE=InnoDB ; |
---|
| 264 | |
---|
| 265 | CREATE TABLE dtb_send_customer ( |
---|
| 266 | customer_id int, |
---|
| 267 | send_id int NOT NULL, |
---|
| 268 | email text, |
---|
| 269 | name text, |
---|
| 270 | send_flag smallint |
---|
| 271 | ) TYPE=InnoDB ; |
---|
| 272 | |
---|
| 273 | CREATE TABLE dtb_products ( |
---|
| 274 | product_id int auto_increment primary key NOT NULL, |
---|
| 275 | name text, |
---|
| 276 | deliv_fee numeric, |
---|
| 277 | sale_limit numeric, |
---|
| 278 | sale_unlimited smallint DEFAULT 0, |
---|
| 279 | category_id int, |
---|
| 280 | maker_id int, |
---|
| 281 | rank int, |
---|
| 282 | status smallint NOT NULL DEFAULT 2, |
---|
| 283 | product_flag text, |
---|
| 284 | point_rate numeric, |
---|
| 285 | comment1 text, |
---|
| 286 | comment2 text, |
---|
| 287 | comment3 mediumtext, |
---|
| 288 | comment4 text, |
---|
| 289 | comment5 text, |
---|
| 290 | comment6 text, |
---|
| 291 | note text, |
---|
| 292 | file1 text, |
---|
| 293 | file2 text, |
---|
| 294 | file3 text, |
---|
| 295 | file4 text, |
---|
| 296 | file5 text, |
---|
| 297 | file6 text, |
---|
| 298 | main_list_comment text, |
---|
| 299 | main_list_image text, |
---|
| 300 | main_comment mediumtext, |
---|
| 301 | main_image text, |
---|
| 302 | main_large_image text, |
---|
| 303 | sub_title1 text, |
---|
| 304 | sub_comment1 mediumtext, |
---|
| 305 | sub_image1 text, |
---|
| 306 | sub_large_image1 text, |
---|
| 307 | sub_title2 text, |
---|
| 308 | sub_comment2 mediumtext, |
---|
| 309 | sub_image2 text, |
---|
| 310 | sub_large_image2 text, |
---|
| 311 | sub_title3 text, |
---|
| 312 | sub_comment3 mediumtext, |
---|
| 313 | sub_image3 text, |
---|
| 314 | sub_large_image3 text, |
---|
| 315 | sub_title4 text, |
---|
| 316 | sub_comment4 mediumtext, |
---|
| 317 | sub_image4 text, |
---|
| 318 | sub_large_image4 text, |
---|
| 319 | sub_title5 text, |
---|
| 320 | sub_comment5 mediumtext, |
---|
| 321 | sub_image5 text, |
---|
| 322 | sub_large_image5 text, |
---|
| 323 | sub_title6 text, |
---|
| 324 | sub_comment6 mediumtext, |
---|
| 325 | sub_image6 text, |
---|
| 326 | sub_large_image6 text, |
---|
| 327 | del_flg smallint NOT NULL DEFAULT 0, |
---|
| 328 | creator_id int NOT NULL, |
---|
| 329 | create_date datetime NOT NULL , |
---|
| 330 | update_date datetime, |
---|
| 331 | deliv_date_id int |
---|
| 332 | ) TYPE=InnoDB ; |
---|
| 333 | |
---|
| 334 | CREATE TABLE dtb_products_class ( |
---|
| 335 | product_class_id int auto_increment primary key NOT NULL, |
---|
| 336 | product_id int NOT NULL, |
---|
| 337 | classcategory_id1 int NOT NULL DEFAULT 0, |
---|
| 338 | classcategory_id2 int NOT NULL DEFAULT 0, |
---|
| 339 | product_code text, |
---|
| 340 | stock numeric, |
---|
| 341 | stock_unlimited smallint NOT NULL DEFAULT 0, |
---|
| 342 | sale_limit numeric, |
---|
| 343 | price01 numeric, |
---|
| 344 | price02 numeric, |
---|
| 345 | status smallint, |
---|
| 346 | creator_id int NOT NULL, |
---|
| 347 | create_date datetime NOT NULL , |
---|
| 348 | update_date datetime |
---|
| 349 | ) TYPE=InnoDB ; |
---|
| 350 | |
---|
| 351 | CREATE TABLE dtb_class ( |
---|
| 352 | class_id int auto_increment primary key NOT NULL, |
---|
| 353 | name text, |
---|
| 354 | status smallint, |
---|
| 355 | rank int, |
---|
| 356 | creator_id int NOT NULL, |
---|
| 357 | create_date datetime NOT NULL , |
---|
| 358 | update_date datetime, |
---|
| 359 | del_flg smallint NOT NULL DEFAULT 0, |
---|
| 360 | product_id int |
---|
| 361 | ) TYPE=InnoDB ; |
---|
| 362 | |
---|
| 363 | CREATE TABLE dtb_classcategory ( |
---|
| 364 | classcategory_id int auto_increment primary key NOT NULL, |
---|
| 365 | name text, |
---|
| 366 | class_id int NOT NULL, |
---|
| 367 | status smallint, |
---|
| 368 | rank int, |
---|
| 369 | creator_id int NOT NULL, |
---|
| 370 | create_date datetime NOT NULL , |
---|
| 371 | update_date datetime, |
---|
| 372 | del_flg smallint NOT NULL DEFAULT 0 |
---|
| 373 | ) TYPE=InnoDB ; |
---|
| 374 | |
---|
| 375 | CREATE TABLE dtb_category ( |
---|
| 376 | category_id int auto_increment primary key NOT NULL, |
---|
| 377 | category_name text, |
---|
| 378 | parent_category_id int NOT NULL DEFAULT 0, |
---|
| 379 | level int NOT NULL, |
---|
| 380 | rank int, |
---|
| 381 | creator_id int NOT NULL, |
---|
| 382 | create_date datetime NOT NULL , |
---|
| 383 | update_date datetime, |
---|
| 384 | del_flg smallint NOT NULL DEFAULT 0 |
---|
| 385 | ) TYPE=InnoDB ; |
---|
| 386 | |
---|
| 387 | CREATE TABLE dtb_product_categories ( |
---|
| 388 | product_id int4 NOT NULL, |
---|
| 389 | category_id int4 NOT NULL, |
---|
| 390 | rank int4 NOT NULL, |
---|
| 391 | PRIMARY KEY(product_id, category_id) |
---|
| 392 | ) TYPE=InnoDB; |
---|
| 393 | |
---|
| 394 | CREATE TABLE dtb_bat_order_daily ( |
---|
| 395 | total_order numeric NOT NULL DEFAULT 0, |
---|
| 396 | member numeric NOT NULL DEFAULT 0, |
---|
| 397 | nonmember numeric NOT NULL DEFAULT 0, |
---|
| 398 | men numeric NOT NULL DEFAULT 0, |
---|
| 399 | women numeric NOT NULL DEFAULT 0, |
---|
| 400 | men_member numeric NOT NULL DEFAULT 0, |
---|
| 401 | men_nonmember numeric NOT NULL DEFAULT 0, |
---|
| 402 | women_member numeric NOT NULL DEFAULT 0, |
---|
| 403 | women_nonmember numeric NOT NULL DEFAULT 0, |
---|
| 404 | total numeric NOT NULL DEFAULT 0, |
---|
| 405 | total_average numeric NOT NULL DEFAULT 0, |
---|
| 406 | order_date datetime NOT NULL , |
---|
| 407 | create_date datetime NOT NULL , |
---|
| 408 | year smallint NOT NULL, |
---|
| 409 | month smallint NOT NULL, |
---|
| 410 | day smallint NOT NULL, |
---|
| 411 | wday smallint NOT NULL, |
---|
| 412 | key_day text NOT NULL, |
---|
| 413 | key_month text NOT NULL, |
---|
| 414 | key_year text NOT NULL, |
---|
| 415 | key_wday text NOT NULL |
---|
| 416 | ) TYPE=InnoDB ; |
---|
| 417 | |
---|
| 418 | CREATE TABLE dtb_bat_order_daily_hour ( |
---|
| 419 | total_order numeric NOT NULL DEFAULT 0, |
---|
| 420 | member numeric NOT NULL DEFAULT 0, |
---|
| 421 | nonmember numeric NOT NULL DEFAULT 0, |
---|
| 422 | men numeric NOT NULL DEFAULT 0, |
---|
| 423 | women numeric NOT NULL DEFAULT 0, |
---|
| 424 | men_member numeric NOT NULL DEFAULT 0, |
---|
| 425 | men_nonmember numeric NOT NULL DEFAULT 0, |
---|
| 426 | women_member numeric NOT NULL DEFAULT 0, |
---|
| 427 | women_nonmember numeric NOT NULL DEFAULT 0, |
---|
| 428 | total numeric NOT NULL DEFAULT 0, |
---|
| 429 | total_average numeric NOT NULL DEFAULT 0, |
---|
| 430 | hour smallint NOT NULL DEFAULT 0, |
---|
| 431 | order_date datetime , |
---|
| 432 | create_date datetime NOT NULL |
---|
| 433 | ) TYPE=InnoDB ; |
---|
| 434 | |
---|
| 435 | CREATE TABLE dtb_recommend_products ( |
---|
| 436 | product_id int NOT NULL, |
---|
| 437 | recommend_product_id int NOT NULL, |
---|
| 438 | rank int NOT NULL, |
---|
| 439 | comment text, |
---|
| 440 | status smallint NOT NULL DEFAULT 0, |
---|
| 441 | creator_id int NOT NULL, |
---|
| 442 | create_date datetime NOT NULL , |
---|
| 443 | update_date datetime NOT NULL |
---|
| 444 | ) TYPE=InnoDB ; |
---|
| 445 | |
---|
| 446 | CREATE TABLE dtb_review ( |
---|
| 447 | review_id int auto_increment primary key NOT NULL, |
---|
| 448 | product_id int NOT NULL, |
---|
| 449 | reviewer_name text NOT NULL, |
---|
| 450 | reviewer_url text, |
---|
| 451 | sex smallint, |
---|
| 452 | customer_id int, |
---|
| 453 | recommend_level smallint NOT NULL, |
---|
| 454 | title text NOT NULL, |
---|
| 455 | comment text NOT NULL, |
---|
| 456 | status smallint DEFAULT 2, |
---|
| 457 | creator_id int NOT NULL, |
---|
| 458 | create_date datetime, |
---|
| 459 | update_date datetime, |
---|
| 460 | del_flg smallint NOT NULL DEFAULT 0 |
---|
| 461 | ) TYPE=InnoDB ; |
---|
| 462 | |
---|
| 463 | CREATE TABLE dtb_customer_reading ( |
---|
| 464 | reading_product_id int NOT NULL, |
---|
| 465 | customer_id int NOT NULL, |
---|
| 466 | create_date datetime NOT NULL, |
---|
| 467 | update_date datetime NOT NULL |
---|
| 468 | ) TYPE=InnoDB ; |
---|
| 469 | |
---|
| 470 | CREATE TABLE dtb_customer_favorite_products ( |
---|
| 471 | customer_id int NOT NULL, |
---|
| 472 | product_id int NOT NULL, |
---|
| 473 | create_date datetime NOT NULL, |
---|
| 474 | update_date datetime NOT NULL |
---|
| 475 | ) TYPE=InnoDB ; |
---|
| 476 | |
---|
| 477 | CREATE TABLE dtb_category_count ( |
---|
| 478 | category_id int NOT NULL, |
---|
| 479 | product_count int NOT NULL, |
---|
| 480 | create_date datetime NOT NULL |
---|
| 481 | ) TYPE=InnoDB ; |
---|
| 482 | |
---|
| 483 | CREATE TABLE dtb_category_total_count ( |
---|
| 484 | category_id int NOT NULL, |
---|
| 485 | product_count int, |
---|
| 486 | create_date datetime NOT NULL |
---|
| 487 | ) TYPE=InnoDB ; |
---|
| 488 | |
---|
| 489 | CREATE TABLE dtb_news ( |
---|
| 490 | news_id int auto_increment primary key NOT NULL, |
---|
| 491 | news_date datetime, |
---|
| 492 | rank int, |
---|
| 493 | news_title text NOT NULL, |
---|
| 494 | news_comment text, |
---|
| 495 | news_url text, |
---|
| 496 | news_select smallint NOT NULL DEFAULT 0, |
---|
| 497 | link_method text, |
---|
| 498 | creator_id int NOT NULL, |
---|
| 499 | create_date datetime NOT NULL , |
---|
| 500 | update_date datetime, |
---|
| 501 | del_flg smallint NOT NULL DEFAULT 0 |
---|
| 502 | ) TYPE=InnoDB ; |
---|
| 503 | |
---|
| 504 | CREATE TABLE dtb_best_products ( |
---|
| 505 | best_id int auto_increment primary key NOT NULL, |
---|
| 506 | category_id int NOT NULL, |
---|
| 507 | rank int NOT NULL DEFAULT 0, |
---|
| 508 | product_id int NOT NULL, |
---|
| 509 | title text, |
---|
| 510 | comment text, |
---|
| 511 | creator_id int NOT NULL, |
---|
| 512 | create_date datetime NOT NULL , |
---|
| 513 | update_date datetime, |
---|
| 514 | del_flg smallint NOT NULL DEFAULT 0 |
---|
| 515 | ) TYPE=InnoDB ; |
---|
| 516 | |
---|
| 517 | CREATE TABLE dtb_mail_history ( |
---|
| 518 | send_id int auto_increment primary key NOT NULL, |
---|
| 519 | order_id int NOT NULL, |
---|
| 520 | send_date datetime, |
---|
| 521 | template_id int, |
---|
| 522 | creator_id int NOT NULL, |
---|
| 523 | subject text, |
---|
| 524 | mail_body text |
---|
| 525 | ) TYPE=InnoDB ; |
---|
| 526 | |
---|
| 527 | CREATE TABLE dtb_customer ( |
---|
| 528 | customer_id int auto_increment primary key NOT NULL, |
---|
| 529 | name01 text NOT NULL, |
---|
| 530 | name02 text NOT NULL, |
---|
| 531 | kana01 text NOT NULL, |
---|
| 532 | kana02 text NOT NULL, |
---|
| 533 | zip01 text, |
---|
| 534 | zip02 text, |
---|
| 535 | pref smallint, |
---|
| 536 | addr01 text, |
---|
| 537 | addr02 text, |
---|
| 538 | email text NOT NULL, |
---|
| 539 | email_mobile text, |
---|
| 540 | tel01 text, |
---|
| 541 | tel02 text, |
---|
| 542 | tel03 text, |
---|
| 543 | fax01 text, |
---|
| 544 | fax02 text, |
---|
| 545 | fax03 text, |
---|
| 546 | sex smallint, |
---|
| 547 | job smallint, |
---|
| 548 | birth datetime, |
---|
| 549 | password text, |
---|
| 550 | reminder smallint, |
---|
| 551 | reminder_answer text, |
---|
| 552 | secret_key varchar(50) NOT NULL UNIQUE, |
---|
| 553 | first_buy_date datetime, |
---|
| 554 | last_buy_date datetime, |
---|
| 555 | buy_times numeric DEFAULT 0, |
---|
| 556 | buy_total numeric DEFAULT 0, |
---|
| 557 | point numeric DEFAULT 0, |
---|
| 558 | note text, |
---|
| 559 | status smallint NOT NULL DEFAULT 1, |
---|
| 560 | create_date datetime NOT NULL , |
---|
| 561 | update_date datetime , |
---|
| 562 | del_flg smallint NOT NULL DEFAULT 0, |
---|
| 563 | cell01 text, |
---|
| 564 | cell02 text, |
---|
| 565 | cell03 text, |
---|
| 566 | mobile_phone_id text, |
---|
| 567 | mailmaga_flg smallint |
---|
| 568 | ) TYPE=InnoDB ; |
---|
| 569 | |
---|
| 570 | CREATE INDEX dtb_customer_mobile_phone_id_key ON dtb_customer (mobile_phone_id(64)); |
---|
| 571 | |
---|
| 572 | CREATE TABLE dtb_customer_mail_temp ( |
---|
| 573 | email varchar(50) NOT NULL UNIQUE, |
---|
| 574 | mail_flag smallint, |
---|
| 575 | temp_id varchar(50) NOT NULL, |
---|
| 576 | end_flag smallint, |
---|
| 577 | update_date datetime NOT NULL, |
---|
| 578 | create_data datetime NOT NULL, |
---|
| 579 | PRIMARY KEY (temp_id) |
---|
| 580 | ) TYPE=InnoDB ; |
---|
| 581 | |
---|
| 582 | CREATE TABLE dtb_order ( |
---|
| 583 | order_id int auto_increment primary key NOT NULL, |
---|
| 584 | order_temp_id text, |
---|
| 585 | customer_id int NOT NULL, |
---|
| 586 | message text, |
---|
| 587 | order_name01 text, |
---|
| 588 | order_name02 text, |
---|
| 589 | order_kana01 text, |
---|
| 590 | order_kana02 text, |
---|
| 591 | order_email text, |
---|
| 592 | order_tel01 text, |
---|
| 593 | order_tel02 text, |
---|
| 594 | order_tel03 text, |
---|
| 595 | order_fax01 text, |
---|
| 596 | order_fax02 text, |
---|
| 597 | order_fax03 text, |
---|
| 598 | order_zip01 text, |
---|
| 599 | order_zip02 text, |
---|
| 600 | order_pref text, |
---|
| 601 | order_addr01 text, |
---|
| 602 | order_addr02 text, |
---|
| 603 | order_sex smallint, |
---|
| 604 | order_birth datetime, |
---|
| 605 | order_job int, |
---|
| 606 | deliv_name01 text, |
---|
| 607 | deliv_name02 text, |
---|
| 608 | deliv_kana01 text, |
---|
| 609 | deliv_kana02 text, |
---|
| 610 | deliv_tel01 text, |
---|
| 611 | deliv_tel02 text, |
---|
| 612 | deliv_tel03 text, |
---|
| 613 | deliv_fax01 text, |
---|
| 614 | deliv_fax02 text, |
---|
| 615 | deliv_fax03 text, |
---|
| 616 | deliv_zip01 text, |
---|
| 617 | deliv_zip02 text, |
---|
| 618 | deliv_pref text, |
---|
| 619 | deliv_addr01 text, |
---|
| 620 | deliv_addr02 text, |
---|
| 621 | subtotal numeric, |
---|
| 622 | discount numeric, |
---|
| 623 | deliv_fee numeric, |
---|
| 624 | charge numeric, |
---|
| 625 | use_point numeric, |
---|
| 626 | add_point numeric, |
---|
| 627 | birth_point numeric DEFAULT 0, |
---|
| 628 | tax numeric, |
---|
| 629 | total numeric, |
---|
| 630 | payment_total numeric, |
---|
| 631 | payment_id int, |
---|
| 632 | payment_method text, |
---|
| 633 | deliv_id int, |
---|
| 634 | deliv_time_id int, |
---|
| 635 | deliv_time text, |
---|
| 636 | deliv_no text, |
---|
| 637 | note text, |
---|
| 638 | status smallint, |
---|
| 639 | create_date datetime NOT NULL , |
---|
| 640 | loan_result text, |
---|
| 641 | credit_result text, |
---|
| 642 | credit_msg text, |
---|
| 643 | update_date datetime, |
---|
| 644 | commit_date datetime, |
---|
| 645 | del_flg smallint NOT NULL DEFAULT 0, |
---|
| 646 | deliv_date text, |
---|
| 647 | conveni_data text, |
---|
| 648 | cell01 text, |
---|
| 649 | cell02 text, |
---|
| 650 | cell03 text, |
---|
| 651 | memo01 text, |
---|
| 652 | memo02 text, |
---|
| 653 | memo03 text, |
---|
| 654 | memo04 text, |
---|
| 655 | memo05 text, |
---|
| 656 | memo06 text, |
---|
| 657 | memo07 text, |
---|
| 658 | memo08 text, |
---|
| 659 | memo09 text, |
---|
| 660 | memo10 text, |
---|
| 661 | campaign_id int |
---|
| 662 | ) TYPE=InnoDB ; |
---|
| 663 | |
---|
| 664 | CREATE TABLE dtb_order_temp ( |
---|
| 665 | order_temp_id text NOT NULL, |
---|
| 666 | customer_id int NOT NULL, |
---|
| 667 | message text, |
---|
| 668 | order_name01 text, |
---|
| 669 | order_name02 text, |
---|
| 670 | order_kana01 text, |
---|
| 671 | order_kana02 text, |
---|
| 672 | order_email text, |
---|
| 673 | order_tel01 text, |
---|
| 674 | order_tel02 text, |
---|
| 675 | order_tel03 text, |
---|
| 676 | order_fax01 text, |
---|
| 677 | order_fax02 text, |
---|
| 678 | order_fax03 text, |
---|
| 679 | order_zip01 text, |
---|
| 680 | order_zip02 text, |
---|
| 681 | order_pref text, |
---|
| 682 | order_addr01 text, |
---|
| 683 | order_addr02 text, |
---|
| 684 | order_sex smallint, |
---|
| 685 | order_birth datetime, |
---|
| 686 | order_job int, |
---|
| 687 | deliv_name01 text, |
---|
| 688 | deliv_name02 text, |
---|
| 689 | deliv_kana01 text, |
---|
| 690 | deliv_kana02 text, |
---|
| 691 | deliv_tel01 text, |
---|
| 692 | deliv_tel02 text, |
---|
| 693 | deliv_tel03 text, |
---|
| 694 | deliv_fax01 text, |
---|
| 695 | deliv_fax02 text, |
---|
| 696 | deliv_fax03 text, |
---|
| 697 | deliv_zip01 text, |
---|
| 698 | deliv_zip02 text, |
---|
| 699 | deliv_pref text, |
---|
| 700 | deliv_addr01 text, |
---|
| 701 | deliv_addr02 text, |
---|
| 702 | subtotal numeric, |
---|
| 703 | discount numeric, |
---|
| 704 | deliv_fee numeric, |
---|
| 705 | charge numeric, |
---|
| 706 | use_point numeric, |
---|
| 707 | add_point numeric, |
---|
| 708 | birth_point numeric DEFAULT 0, |
---|
| 709 | tax numeric, |
---|
| 710 | total numeric, |
---|
| 711 | payment_total numeric, |
---|
| 712 | payment_id int, |
---|
| 713 | payment_method text, |
---|
| 714 | deliv_id int, |
---|
| 715 | deliv_time_id int, |
---|
| 716 | deliv_time text, |
---|
| 717 | deliv_no text, |
---|
| 718 | note text, |
---|
| 719 | mail_flag smallint, |
---|
| 720 | status smallint, |
---|
| 721 | deliv_check smallint, |
---|
| 722 | point_check smallint, |
---|
| 723 | loan_result text, |
---|
| 724 | credit_result text, |
---|
| 725 | credit_msg text, |
---|
| 726 | create_date datetime NOT NULL , |
---|
| 727 | update_date datetime, |
---|
| 728 | del_flg smallint NOT NULL DEFAULT 0, |
---|
| 729 | deliv_date text, |
---|
| 730 | conveni_data text, |
---|
| 731 | cell01 text, |
---|
| 732 | cell02 text, |
---|
| 733 | cell03 text, |
---|
| 734 | order_id int4, |
---|
| 735 | memo01 text, |
---|
| 736 | memo02 text, |
---|
| 737 | memo03 text, |
---|
| 738 | memo04 text, |
---|
| 739 | memo05 text, |
---|
| 740 | memo06 text, |
---|
| 741 | memo07 text, |
---|
| 742 | memo08 text, |
---|
| 743 | memo09 text, |
---|
| 744 | memo10 text, |
---|
| 745 | session text |
---|
| 746 | ) TYPE=InnoDB ; |
---|
| 747 | |
---|
| 748 | CREATE TABLE dtb_other_deliv ( |
---|
| 749 | other_deliv_id int auto_increment primary key NOT NULL, |
---|
| 750 | customer_id int NOT NULL, |
---|
| 751 | name01 text, |
---|
| 752 | name02 text, |
---|
| 753 | kana01 text, |
---|
| 754 | kana02 text, |
---|
| 755 | zip01 text, |
---|
| 756 | zip02 text, |
---|
| 757 | pref text, |
---|
| 758 | addr01 text, |
---|
| 759 | addr02 text, |
---|
| 760 | tel01 text, |
---|
| 761 | tel02 text, |
---|
| 762 | tel03 text |
---|
| 763 | ) TYPE=InnoDB ; |
---|
| 764 | |
---|
| 765 | CREATE TABLE dtb_order_detail ( |
---|
| 766 | order_id int NOT NULL, |
---|
| 767 | product_id int NOT NULL, |
---|
| 768 | classcategory_id1 int NOT NULL, |
---|
| 769 | classcategory_id2 int NOT NULL, |
---|
| 770 | product_name text NOT NULL, |
---|
| 771 | product_code text, |
---|
| 772 | classcategory_name1 text, |
---|
| 773 | classcategory_name2 text, |
---|
| 774 | price numeric, |
---|
| 775 | quantity numeric, |
---|
| 776 | point_rate numeric |
---|
| 777 | ) TYPE=InnoDB ; |
---|
| 778 | |
---|
| 779 | CREATE TABLE mtb_pref ( |
---|
| 780 | pref_id smallint primary key NOT NULL, |
---|
| 781 | pref_name text, |
---|
| 782 | rank smallint NOT NULL DEFAULT 0 |
---|
| 783 | ) TYPE=InnoDB ; |
---|
| 784 | |
---|
| 785 | CREATE TABLE dtb_member ( |
---|
| 786 | member_id int auto_increment primary key NOT NULL, |
---|
| 787 | name text, |
---|
| 788 | department text, |
---|
| 789 | login_id text NOT NULL, |
---|
| 790 | password text NOT NULL, |
---|
| 791 | authority smallint NOT NULL, |
---|
| 792 | rank int NOT NULL DEFAULT 0, |
---|
| 793 | work smallint NOT NULL DEFAULT 1, |
---|
| 794 | del_flg smallint NOT NULL DEFAULT 0, |
---|
| 795 | creator_id int NOT NULL, |
---|
| 796 | update_date datetime, |
---|
| 797 | create_date datetime NOT NULL , |
---|
| 798 | login_date datetime |
---|
| 799 | ) TYPE=InnoDB ; |
---|
| 800 | |
---|
| 801 | CREATE TABLE dtb_question ( |
---|
| 802 | question_id int auto_increment primary key NOT NULL, |
---|
| 803 | question_name text, |
---|
| 804 | question text, |
---|
| 805 | create_date datetime NOT NULL , |
---|
| 806 | del_flg smallint NOT NULL DEFAULT 0 |
---|
| 807 | ) TYPE=InnoDB ; |
---|
| 808 | |
---|
| 809 | CREATE TABLE dtb_question_result ( |
---|
| 810 | result_id int auto_increment primary key NOT NULL, |
---|
| 811 | question_id int NOT NULL, |
---|
| 812 | question_date datetime, |
---|
| 813 | question_name text, |
---|
| 814 | name01 text, |
---|
| 815 | name02 text, |
---|
| 816 | kana01 text, |
---|
| 817 | kana02 text, |
---|
| 818 | zip01 text, |
---|
| 819 | zip02 text, |
---|
| 820 | pref smallint, |
---|
| 821 | addr01 text, |
---|
| 822 | addr02 text, |
---|
| 823 | tel01 text, |
---|
| 824 | tel02 text, |
---|
| 825 | tel03 text, |
---|
| 826 | mail01 text, |
---|
| 827 | question01 text, |
---|
| 828 | question02 text, |
---|
| 829 | question03 text, |
---|
| 830 | question04 text, |
---|
| 831 | question05 text, |
---|
| 832 | question06 text, |
---|
| 833 | create_date datetime NOT NULL , |
---|
| 834 | del_flg smallint NOT NULL DEFAULT 0 |
---|
| 835 | ) TYPE=InnoDB ; |
---|
| 836 | |
---|
| 837 | CREATE TABLE dtb_bat_relate_products ( |
---|
| 838 | product_id int, |
---|
| 839 | relate_product_id int, |
---|
| 840 | customer_id int, |
---|
| 841 | create_date datetime |
---|
| 842 | ) TYPE=InnoDB ; |
---|
| 843 | |
---|
| 844 | CREATE TABLE dtb_campaign ( |
---|
| 845 | campaign_id int auto_increment primary key NOT NULL, |
---|
| 846 | campaign_name text, |
---|
| 847 | campaign_point_rate numeric NOT NULL, |
---|
| 848 | campaign_point_type smallint, |
---|
| 849 | start_date datetime NOT NULL, |
---|
| 850 | end_date datetime NOT NULL, |
---|
| 851 | directory_name text NOT NULL, |
---|
| 852 | limit_count int4 NOT NULL DEFAULT 0, |
---|
| 853 | total_count int4 NOT NULL DEFAULT 0, |
---|
| 854 | orverlapping_flg int2 NOT NULL DEFAULT 0, |
---|
| 855 | cart_flg int2 NOT NULL DEFAULT 0, |
---|
| 856 | deliv_free_flg int2 NOT NULL DEFAULT 0, |
---|
| 857 | search_condition text, |
---|
| 858 | del_flg smallint NOT NULL DEFAULT 0, |
---|
| 859 | create_date datetime NOT NULL, |
---|
| 860 | update_date datetime NOT NULL |
---|
| 861 | ) TYPE=InnoDB ; |
---|
| 862 | |
---|
| 863 | CREATE TABLE dtb_campaign_detail ( |
---|
| 864 | campaign_id int NOT NULL, |
---|
| 865 | product_id int NOT NULL, |
---|
| 866 | campaign_point_rate numeric NOT NULL |
---|
| 867 | ) TYPE=InnoDB ; |
---|
| 868 | |
---|
| 869 | CREATE TABLE dtb_pagelayout ( |
---|
| 870 | page_id int auto_increment primary key NOT NULL, |
---|
| 871 | page_name text, |
---|
| 872 | url text NOT NULL, |
---|
| 873 | php_dir text, |
---|
| 874 | tpl_dir text, |
---|
| 875 | filename text, |
---|
| 876 | header_chk smallint DEFAULT 1, |
---|
| 877 | footer_chk smallint DEFAULT 1, |
---|
| 878 | edit_flg smallint DEFAULT 1, |
---|
| 879 | author text, |
---|
| 880 | description text, |
---|
| 881 | keyword text, |
---|
| 882 | update_url text, |
---|
| 883 | create_date datetime NOT NULL , |
---|
| 884 | update_date datetime NOT NULL |
---|
| 885 | ) TYPE=InnoDB ; |
---|
| 886 | |
---|
| 887 | CREATE TABLE dtb_bloc ( |
---|
| 888 | bloc_id int auto_increment primary key NOT NULL, |
---|
| 889 | bloc_name text, |
---|
| 890 | tpl_path text, |
---|
| 891 | filename varchar(50) NOT NULL UNIQUE, |
---|
| 892 | create_date datetime NOT NULL , |
---|
| 893 | update_date datetime NOT NULL , |
---|
| 894 | php_path text, |
---|
| 895 | del_flg smallint NOT NULL DEFAULT 0 |
---|
| 896 | ) TYPE=InnoDB ; |
---|
| 897 | |
---|
| 898 | CREATE TABLE dtb_blocposition ( |
---|
| 899 | page_id int NOT NULL, |
---|
| 900 | target_id int, |
---|
| 901 | bloc_id int, |
---|
| 902 | bloc_row int, |
---|
| 903 | filename text |
---|
| 904 | ) TYPE=InnoDB ; |
---|
| 905 | |
---|
| 906 | CREATE TABLE dtb_csv ( |
---|
| 907 | no int auto_increment primary key, |
---|
| 908 | csv_id int NOT NULL, |
---|
| 909 | col text, |
---|
| 910 | disp_name text, |
---|
| 911 | rank int, |
---|
| 912 | status smallint NOT NULL DEFAULT 1, |
---|
| 913 | create_date datetime NOT NULL , |
---|
| 914 | update_date datetime NOT NULL |
---|
| 915 | ) TYPE=InnoDB ; |
---|
| 916 | |
---|
| 917 | CREATE TABLE dtb_csv_sql ( |
---|
| 918 | sql_id int auto_increment primary key, |
---|
| 919 | sql_name text NOT NULL, |
---|
| 920 | csv_sql text, |
---|
| 921 | update_date datetime NOT NULL, |
---|
| 922 | create_date datetime NOT NULL |
---|
| 923 | ) TYPE=InnoDB ; |
---|
| 924 | |
---|
| 925 | CREATE TABLE dtb_user_regist ( |
---|
| 926 | user_id int auto_increment primary key NOT NULL, |
---|
| 927 | org_name text, |
---|
| 928 | post_name text, |
---|
| 929 | name01 text, |
---|
| 930 | name02 text, |
---|
| 931 | kana01 text, |
---|
| 932 | kana02 text, |
---|
| 933 | email text NOT NULL, |
---|
| 934 | url text, |
---|
| 935 | note text, |
---|
| 936 | secret_key varchar(50) NOT NULL UNIQUE, |
---|
| 937 | status smallint NOT NULL, |
---|
| 938 | del_flg smallint DEFAULT 0, |
---|
| 939 | create_date datetime NOT NULL, |
---|
| 940 | update_date datetime NOT NULL |
---|
| 941 | ) TYPE=InnoDB ; |
---|
| 942 | |
---|
| 943 | CREATE TABLE dtb_templates |
---|
| 944 | ( |
---|
| 945 | template_code varchar(50) primary key NOT NULL, |
---|
| 946 | template_name text , |
---|
| 947 | create_date datetime NOT NULL , |
---|
| 948 | update_date datetime NOT NULL |
---|
| 949 | ) TYPE=InnoDB ; |
---|
| 950 | |
---|
| 951 | CREATE TABLE dtb_table_comment |
---|
| 952 | ( |
---|
| 953 | id int auto_increment primary key, |
---|
| 954 | table_name text, |
---|
| 955 | column_name text, |
---|
| 956 | description text |
---|
| 957 | ) TYPE=InnoDB ; |
---|
| 958 | |
---|
| 959 | CREATE TABLE dtb_maker ( |
---|
| 960 | maker_id INT auto_increment primary key, |
---|
| 961 | name text NOT NULL, |
---|
| 962 | rank int NOT NULL DEFAULT 0, |
---|
| 963 | creator_id int NOT NULL, |
---|
| 964 | create_date datetime NOT NULL, |
---|
| 965 | update_date datetime NOT NULL, |
---|
| 966 | del_flg smallint NOT NULL DEFAULT 0 |
---|
| 967 | ) TYPE=InnoDB ; |
---|
| 968 | |
---|
| 969 | CREATE TABLE dtb_maker_count ( |
---|
| 970 | maker_id int NOT NULL, |
---|
| 971 | product_count int NOT NULL, |
---|
| 972 | create_date datetime NOT NULL |
---|
| 973 | ) TYPE=InnoDB ; |
---|
| 974 | |
---|
| 975 | |
---|
| 976 | CREATE TABLE mtb_permission ( |
---|
| 977 | id text, |
---|
| 978 | name text, |
---|
| 979 | rank int2 NOT NULL DEFAULT 0, |
---|
| 980 | PRIMARY KEY (id(32)) |
---|
| 981 | ) TYPE=InnoDB; |
---|
| 982 | |
---|
| 983 | CREATE TABLE mtb_disable_logout ( |
---|
| 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_authority ( |
---|
| 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_work ( |
---|
| 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_disp ( |
---|
| 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_class ( |
---|
| 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_srank ( |
---|
| 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_status ( |
---|
| 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_status_image ( |
---|
| 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_allowed_tag ( |
---|
| 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_page_max ( |
---|
| 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_magazine_type ( |
---|
| 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_mail_magazine_type ( |
---|
| 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_recommend ( |
---|
| 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_taxrule ( |
---|
| 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_template ( |
---|
| 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_mail_tpl_path ( |
---|
| 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_job ( |
---|
| 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_reminder ( |
---|
| 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_sex ( |
---|
| 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_page_rows ( |
---|
| 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_mail_type ( |
---|
| 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_order_status ( |
---|
| 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_product_status_color ( |
---|
| 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_order_status_color ( |
---|
| 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_wday ( |
---|
| 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_delivery_date ( |
---|
| 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_product_list_max ( |
---|
| 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_convenience ( |
---|
| 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_conveni_message ( |
---|
| 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_db ( |
---|
| 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_target ( |
---|
| 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_review_deny_url ( |
---|
| 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_track_back_status ( |
---|
| 1208 | id int2, |
---|
| 1209 | name text, |
---|
| 1210 | rank int2 NOT NULL DEFAULT 0, |
---|
| 1211 | PRIMARY KEY (id) |
---|
| 1212 | ) TYPE=InnoDB; |
---|
| 1213 | |
---|
| 1214 | CREATE TABLE mtb_site_control_track_back ( |
---|
| 1215 | id int2, |
---|
| 1216 | name text, |
---|
| 1217 | rank int2 NOT NULL DEFAULT 0, |
---|
| 1218 | PRIMARY KEY (id) |
---|
| 1219 | ) TYPE=InnoDB; |
---|
| 1220 | |
---|
| 1221 | CREATE TABLE mtb_site_control_affiliate ( |
---|
| 1222 | id int2, |
---|
| 1223 | name text, |
---|
| 1224 | rank int2 NOT NULL DEFAULT 0, |
---|
| 1225 | PRIMARY KEY (id) |
---|
| 1226 | ) TYPE=InnoDB; |
---|
| 1227 | |
---|
| 1228 | CREATE TABLE mtb_mobile_domain ( |
---|
| 1229 | id int2, |
---|
| 1230 | name text, |
---|
| 1231 | rank int2 NOT NULL DEFAULT 0, |
---|
| 1232 | PRIMARY KEY (id) |
---|
| 1233 | ) TYPE=InnoDB; |
---|
| 1234 | |
---|
| 1235 | CREATE TABLE mtb_ownersstore_err ( |
---|
| 1236 | id int2, |
---|
| 1237 | name text, |
---|
| 1238 | rank int2 NOT NULL DEFAULT 0, |
---|
| 1239 | PRIMARY KEY (id) |
---|
| 1240 | ) TYPE=InnoDB; |
---|
| 1241 | |
---|
| 1242 | CREATE TABLE mtb_ownersstore_ips ( |
---|
| 1243 | id int2, |
---|
| 1244 | name text, |
---|
| 1245 | rank int2 NOT NULL DEFAULT 0, |
---|
| 1246 | PRIMARY KEY (id) |
---|
| 1247 | ) TYPE=InnoDB; |
---|
| 1248 | |
---|
| 1249 | CREATE TABLE mtb_constants ( |
---|
| 1250 | id text, |
---|
| 1251 | name text, |
---|
| 1252 | rank int2 NOT NULL DEFAULT 0, |
---|
| 1253 | remarks text |
---|
| 1254 | ) TYPE=InnoDB; |
---|