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