| 1 | create table dtb_module_update_logs( |
|---|
| 2 | log_id serial NOT NULL, |
|---|
| 3 | module_id int NOT NULL, |
|---|
| 4 | buckup_path text, |
|---|
| 5 | error_flg int2 default 0, |
|---|
| 6 | error text, |
|---|
| 7 | ok text, |
|---|
| 8 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 9 | update_date timestamp NOT NULL DEFAULT now() |
|---|
| 10 | ); |
|---|
| 11 | |
|---|
| 12 | CREATE TABLE dtb_ownersstore_settings ( |
|---|
| 13 | public_key text |
|---|
| 14 | ); |
|---|
| 15 | |
|---|
| 16 | CREATE TABLE dtb_kiyaku ( |
|---|
| 17 | kiyaku_id serial NOT NULL, |
|---|
| 18 | kiyaku_title text NOT NULL, |
|---|
| 19 | kiyaku_text text NOT NULL, |
|---|
| 20 | rank int4 NOT NULL DEFAULT 0, |
|---|
| 21 | creator_id int4 NOT NULL, |
|---|
| 22 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 23 | update_date timestamp NOT NULL, |
|---|
| 24 | del_flg int2 NOT NULL DEFAULT 0 |
|---|
| 25 | ); |
|---|
| 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 | ); |
|---|
| 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 int2, |
|---|
| 50 | end_age int2, |
|---|
| 51 | member int2, |
|---|
| 52 | order_date timestamp DEFAULT now(), |
|---|
| 53 | create_date timestamp NOT NULL DEFAULT now() |
|---|
| 54 | ); |
|---|
| 55 | |
|---|
| 56 | CREATE TABLE dtb_update ( |
|---|
| 57 | module_id int4 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 int2 NOT NULL DEFAULT 0, |
|---|
| 68 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 69 | update_date timestamp, |
|---|
| 70 | release_date timestamp NOT NULL |
|---|
| 71 | ); |
|---|
| 72 | |
|---|
| 73 | CREATE TABLE dtb_baseinfo ( |
|---|
| 74 | company_name text, |
|---|
| 75 | company_kana text, |
|---|
| 76 | zip01 text, |
|---|
| 77 | zip02 text, |
|---|
| 78 | pref int2, |
|---|
| 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 int2, |
|---|
| 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 int2 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 timestamp, |
|---|
| 126 | top_tpl text, |
|---|
| 127 | product_tpl text, |
|---|
| 128 | detail_tpl text, |
|---|
| 129 | mypage_tpl text, |
|---|
| 130 | good_traded text, |
|---|
| 131 | message text |
|---|
| 132 | ); |
|---|
| 133 | |
|---|
| 134 | CREATE TABLE dtb_deliv ( |
|---|
| 135 | deliv_id serial NOT NULL, |
|---|
| 136 | name text, |
|---|
| 137 | service_name text, |
|---|
| 138 | confirm_url text, |
|---|
| 139 | rank int4, |
|---|
| 140 | status int2 NOT NULL DEFAULT 1, |
|---|
| 141 | del_flg int2 NOT NULL DEFAULT 0, |
|---|
| 142 | creator_id int4 NOT NULL, |
|---|
| 143 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 144 | update_date timestamp |
|---|
| 145 | ); |
|---|
| 146 | |
|---|
| 147 | CREATE TABLE dtb_delivtime ( |
|---|
| 148 | deliv_id int4 NOT NULL, |
|---|
| 149 | time_id serial NOT NULL, |
|---|
| 150 | deliv_time text NOT NULL |
|---|
| 151 | ); |
|---|
| 152 | |
|---|
| 153 | CREATE TABLE dtb_delivfee ( |
|---|
| 154 | deliv_id int4 NOT NULL, |
|---|
| 155 | fee_id serial NOT NULL, |
|---|
| 156 | fee text NOT NULL, |
|---|
| 157 | pref int2 |
|---|
| 158 | ); |
|---|
| 159 | |
|---|
| 160 | CREATE TABLE dtb_payment ( |
|---|
| 161 | payment_id serial NOT NULL, |
|---|
| 162 | payment_method text, |
|---|
| 163 | charge numeric, |
|---|
| 164 | rule numeric, |
|---|
| 165 | deliv_id int4 DEFAULT 0, |
|---|
| 166 | rank int4, |
|---|
| 167 | note text, |
|---|
| 168 | fix int2, |
|---|
| 169 | status int2 NOT NULL DEFAULT 1, |
|---|
| 170 | del_flg int2 NOT NULL DEFAULT 0, |
|---|
| 171 | creator_id int4 NOT NULL, |
|---|
| 172 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 173 | update_date timestamp, |
|---|
| 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 | ); |
|---|
| 192 | |
|---|
| 193 | CREATE TABLE dtb_mailtemplate ( |
|---|
| 194 | template_id int4 NOT NULL, |
|---|
| 195 | subject text, |
|---|
| 196 | header text, |
|---|
| 197 | footer text, |
|---|
| 198 | creator_id int4 NOT NULL, |
|---|
| 199 | del_flg int2 NOT NULL DEFAULT 0, |
|---|
| 200 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 201 | update_date timestamp NOT NULL |
|---|
| 202 | ); |
|---|
| 203 | |
|---|
| 204 | CREATE TABLE dtb_mailmaga_template ( |
|---|
| 205 | template_id serial NOT NULL UNIQUE, |
|---|
| 206 | subject text, |
|---|
| 207 | charge_image text, |
|---|
| 208 | mail_method int4, |
|---|
| 209 | header text, |
|---|
| 210 | body text, |
|---|
| 211 | main_title text, |
|---|
| 212 | main_comment text, |
|---|
| 213 | main_product_id int4, |
|---|
| 214 | sub_title text, |
|---|
| 215 | sub_comment text, |
|---|
| 216 | sub_product_id01 int4, |
|---|
| 217 | sub_product_id02 int4, |
|---|
| 218 | sub_product_id03 int4, |
|---|
| 219 | sub_product_id04 int4, |
|---|
| 220 | sub_product_id05 int4, |
|---|
| 221 | sub_product_id06 int4, |
|---|
| 222 | sub_product_id07 int4, |
|---|
| 223 | sub_product_id08 int4, |
|---|
| 224 | sub_product_id09 int4, |
|---|
| 225 | sub_product_id10 int4, |
|---|
| 226 | sub_product_id11 int4, |
|---|
| 227 | sub_product_id12 int4, |
|---|
| 228 | del_flg int2 NOT NULL DEFAULT 0, |
|---|
| 229 | creator_id int4 NOT NULL, |
|---|
| 230 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 231 | update_date timestamp |
|---|
| 232 | ); |
|---|
| 233 | |
|---|
| 234 | CREATE TABLE dtb_send_history ( |
|---|
| 235 | send_id serial NOT NULL, |
|---|
| 236 | mail_method int2, |
|---|
| 237 | subject text, |
|---|
| 238 | body text, |
|---|
| 239 | send_count int4, |
|---|
| 240 | complete_count int4 NOT NULL DEFAULT 0, |
|---|
| 241 | start_date timestamp, |
|---|
| 242 | end_date timestamp, |
|---|
| 243 | search_data text, |
|---|
| 244 | del_flg int2 NOT NULL DEFAULT 0, |
|---|
| 245 | creator_id int4 NOT NULL, |
|---|
| 246 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 247 | update_date timestamp NOT NULL DEFAULT now() |
|---|
| 248 | ); |
|---|
| 249 | |
|---|
| 250 | CREATE TABLE dtb_send_customer ( |
|---|
| 251 | customer_id int4, |
|---|
| 252 | send_id serial NOT NULL, |
|---|
| 253 | email text, |
|---|
| 254 | name text, |
|---|
| 255 | send_flag int2 |
|---|
| 256 | ); |
|---|
| 257 | |
|---|
| 258 | CREATE TABLE dtb_products ( |
|---|
| 259 | product_id serial NOT NULL UNIQUE, |
|---|
| 260 | name text, |
|---|
| 261 | deliv_fee numeric, |
|---|
| 262 | sale_limit numeric, |
|---|
| 263 | sale_unlimited int2 DEFAULT 0, |
|---|
| 264 | category_id int4, |
|---|
| 265 | rank int4, |
|---|
| 266 | status int2 NOT NULL DEFAULT 2, |
|---|
| 267 | product_flag text, |
|---|
| 268 | point_rate numeric, |
|---|
| 269 | comment1 text, |
|---|
| 270 | comment2 text, |
|---|
| 271 | comment3 text, |
|---|
| 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 text, |
|---|
| 284 | main_image text, |
|---|
| 285 | main_large_image text, |
|---|
| 286 | sub_title1 text, |
|---|
| 287 | sub_comment1 text, |
|---|
| 288 | sub_image1 text, |
|---|
| 289 | sub_large_image1 text, |
|---|
| 290 | sub_title2 text, |
|---|
| 291 | sub_comment2 text, |
|---|
| 292 | sub_image2 text, |
|---|
| 293 | sub_large_image2 text, |
|---|
| 294 | sub_title3 text, |
|---|
| 295 | sub_comment3 text, |
|---|
| 296 | sub_image3 text, |
|---|
| 297 | sub_large_image3 text, |
|---|
| 298 | sub_title4 text, |
|---|
| 299 | sub_comment4 text, |
|---|
| 300 | sub_image4 text, |
|---|
| 301 | sub_large_image4 text, |
|---|
| 302 | sub_title5 text, |
|---|
| 303 | sub_comment5 text, |
|---|
| 304 | sub_image5 text, |
|---|
| 305 | sub_large_image5 text, |
|---|
| 306 | sub_title6 text, |
|---|
| 307 | sub_comment6 text, |
|---|
| 308 | sub_image6 text, |
|---|
| 309 | sub_large_image6 text, |
|---|
| 310 | del_flg int2 NOT NULL DEFAULT 0, |
|---|
| 311 | creator_id int4 NOT NULL, |
|---|
| 312 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 313 | update_date timestamp, |
|---|
| 314 | deliv_date_id int4 |
|---|
| 315 | ); |
|---|
| 316 | |
|---|
| 317 | CREATE TABLE dtb_products_class ( |
|---|
| 318 | product_class_id serial NOT NULL UNIQUE, |
|---|
| 319 | product_id int4 NOT NULL, |
|---|
| 320 | classcategory_id1 int4 NOT NULL DEFAULT 0, |
|---|
| 321 | classcategory_id2 int4 NOT NULL DEFAULT 0, |
|---|
| 322 | product_code text, |
|---|
| 323 | stock numeric, |
|---|
| 324 | stock_unlimited int2 DEFAULT 0, |
|---|
| 325 | sale_limit numeric, |
|---|
| 326 | price01 numeric, |
|---|
| 327 | price02 numeric, |
|---|
| 328 | status int2, |
|---|
| 329 | creator_id int4 NOT NULL, |
|---|
| 330 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 331 | update_date timestamp |
|---|
| 332 | ); |
|---|
| 333 | |
|---|
| 334 | CREATE TABLE dtb_class ( |
|---|
| 335 | class_id serial NOT NULL, |
|---|
| 336 | name text, |
|---|
| 337 | status int2, |
|---|
| 338 | rank int4, |
|---|
| 339 | creator_id int4 NOT NULL, |
|---|
| 340 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 341 | update_date timestamp, |
|---|
| 342 | del_flg int2 NOT NULL DEFAULT 0, |
|---|
| 343 | product_id int4 |
|---|
| 344 | ); |
|---|
| 345 | |
|---|
| 346 | CREATE TABLE dtb_classcategory ( |
|---|
| 347 | classcategory_id serial NOT NULL, |
|---|
| 348 | name text, |
|---|
| 349 | class_id int4 NOT NULL, |
|---|
| 350 | status int2, |
|---|
| 351 | rank int4, |
|---|
| 352 | creator_id int4 NOT NULL, |
|---|
| 353 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 354 | update_date timestamp, |
|---|
| 355 | del_flg int2 NOT NULL DEFAULT 0 |
|---|
| 356 | ); |
|---|
| 357 | |
|---|
| 358 | CREATE TABLE dtb_category ( |
|---|
| 359 | category_id serial NOT NULL, |
|---|
| 360 | category_name text, |
|---|
| 361 | parent_category_id int4 NOT NULL DEFAULT 0, |
|---|
| 362 | level int4 NOT NULL, |
|---|
| 363 | rank int4, |
|---|
| 364 | creator_id int4 NOT NULL, |
|---|
| 365 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 366 | update_date timestamp, |
|---|
| 367 | del_flg int2 NOT NULL DEFAULT 0 |
|---|
| 368 | ); |
|---|
| 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 | ); |
|---|
| 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 timestamp NOT NULL DEFAULT now(), |
|---|
| 390 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 391 | year int2 NOT NULL, |
|---|
| 392 | month int2 NOT NULL, |
|---|
| 393 | day int2 NOT NULL, |
|---|
| 394 | wday int2 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 | ); |
|---|
| 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 int2 NOT NULL DEFAULT 0, |
|---|
| 414 | order_date timestamp DEFAULT now(), |
|---|
| 415 | create_date timestamp NOT NULL DEFAULT now() |
|---|
| 416 | ); |
|---|
| 417 | |
|---|
| 418 | CREATE TABLE dtb_recommend_products ( |
|---|
| 419 | product_id int4 NOT NULL, |
|---|
| 420 | recommend_product_id int4 NOT NULL, |
|---|
| 421 | rank int4 NOT NULL, |
|---|
| 422 | comment text, |
|---|
| 423 | status int2 NOT NULL DEFAULT 0, |
|---|
| 424 | creator_id int4 NOT NULL, |
|---|
| 425 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 426 | update_date timestamp NOT NULL DEFAULT now() |
|---|
| 427 | ); |
|---|
| 428 | |
|---|
| 429 | CREATE TABLE dtb_review ( |
|---|
| 430 | review_id serial NOT NULL, |
|---|
| 431 | product_id int4 NOT NULL, |
|---|
| 432 | reviewer_name text NOT NULL, |
|---|
| 433 | reviewer_url text, |
|---|
| 434 | sex int2, |
|---|
| 435 | customer_id int4, |
|---|
| 436 | recommend_level int2 NOT NULL, |
|---|
| 437 | title text NOT NULL, |
|---|
| 438 | comment text NOT NULL, |
|---|
| 439 | status int2 DEFAULT 2, |
|---|
| 440 | creator_id int4 NOT NULL, |
|---|
| 441 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 442 | update_date timestamp, |
|---|
| 443 | del_flg int2 NOT NULL DEFAULT 0 |
|---|
| 444 | ); |
|---|
| 445 | |
|---|
| 446 | CREATE TABLE dtb_customer_reading ( |
|---|
| 447 | reading_product_id int4 NOT NULL, |
|---|
| 448 | customer_id int4 NOT NULL, |
|---|
| 449 | create_date timestamp NOT NULL, |
|---|
| 450 | update_date timestamp NOT NULL DEFAULT NOW() |
|---|
| 451 | ); |
|---|
| 452 | |
|---|
| 453 | CREATE TABLE dtb_category_count ( |
|---|
| 454 | category_id int4 NOT NULL, |
|---|
| 455 | product_count int4 NOT NULL, |
|---|
| 456 | create_date timestamp NOT NULL DEFAULT Now() |
|---|
| 457 | ); |
|---|
| 458 | |
|---|
| 459 | CREATE TABLE dtb_category_total_count ( |
|---|
| 460 | category_id int4 NOT NULL, |
|---|
| 461 | product_count int4, |
|---|
| 462 | create_date timestamp NOT NULL DEFAULT Now() |
|---|
| 463 | ); |
|---|
| 464 | |
|---|
| 465 | CREATE TABLE dtb_news ( |
|---|
| 466 | news_id serial NOT NULL UNIQUE, |
|---|
| 467 | news_date timestamp, |
|---|
| 468 | rank int4, |
|---|
| 469 | news_title text NOT NULL, |
|---|
| 470 | news_comment text, |
|---|
| 471 | news_url text, |
|---|
| 472 | news_select int2 NOT NULL DEFAULT 0, |
|---|
| 473 | link_method text, |
|---|
| 474 | creator_id int4 NOT NULL, |
|---|
| 475 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 476 | update_date timestamp, |
|---|
| 477 | del_flg int2 NOT NULL DEFAULT 0 |
|---|
| 478 | ); |
|---|
| 479 | |
|---|
| 480 | CREATE TABLE dtb_best_products ( |
|---|
| 481 | best_id serial NOT NULL, |
|---|
| 482 | category_id int4 NOT NULL, |
|---|
| 483 | rank int4 NOT NULL DEFAULT 0, |
|---|
| 484 | product_id int4 NOT NULL, |
|---|
| 485 | title text, |
|---|
| 486 | comment text, |
|---|
| 487 | creator_id int4 NOT NULL, |
|---|
| 488 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 489 | update_date timestamp, |
|---|
| 490 | del_flg int2 NOT NULL DEFAULT 0 |
|---|
| 491 | ); |
|---|
| 492 | |
|---|
| 493 | CREATE TABLE dtb_mail_history ( |
|---|
| 494 | send_id serial NOT NULL, |
|---|
| 495 | order_id int4 NOT NULL, |
|---|
| 496 | send_date timestamp, |
|---|
| 497 | template_id int4, |
|---|
| 498 | creator_id int4 NOT NULL, |
|---|
| 499 | subject text, |
|---|
| 500 | mail_body text |
|---|
| 501 | ); |
|---|
| 502 | |
|---|
| 503 | CREATE TABLE dtb_customer ( |
|---|
| 504 | customer_id serial 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 int2, |
|---|
| 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 int2, |
|---|
| 523 | job int2, |
|---|
| 524 | birth timestamp, |
|---|
| 525 | password text, |
|---|
| 526 | reminder int2, |
|---|
| 527 | reminder_answer text, |
|---|
| 528 | secret_key text NOT NULL UNIQUE, |
|---|
| 529 | first_buy_date timestamp, |
|---|
| 530 | last_buy_date timestamp, |
|---|
| 531 | buy_times numeric DEFAULT 0, |
|---|
| 532 | buy_total numeric DEFAULT 0, |
|---|
| 533 | point numeric DEFAULT 0, |
|---|
| 534 | note text, |
|---|
| 535 | status int2 NOT NULL DEFAULT 1, |
|---|
| 536 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 537 | update_date timestamp DEFAULT now(), |
|---|
| 538 | del_flg int2 NOT NULL DEFAULT 0, |
|---|
| 539 | cell01 text, |
|---|
| 540 | cell02 text, |
|---|
| 541 | cell03 text, |
|---|
| 542 | mobile_phone_id text, |
|---|
| 543 | mailmaga_flg int2 |
|---|
| 544 | ); |
|---|
| 545 | |
|---|
| 546 | CREATE INDEX dtb_customer_mobile_phone_id_key ON dtb_customer (mobile_phone_id); |
|---|
| 547 | |
|---|
| 548 | CREATE TABLE dtb_customer_mail_temp ( |
|---|
| 549 | email text NOT NULL UNIQUE, |
|---|
| 550 | mail_flag int2, |
|---|
| 551 | temp_id text NOT NULL UNIQUE, |
|---|
| 552 | end_flag int2, |
|---|
| 553 | update_date timestamp NOT NULL DEFAULT Now(), |
|---|
| 554 | create_data timestamp NOT NULL DEFAULT Now() |
|---|
| 555 | ); |
|---|
| 556 | |
|---|
| 557 | CREATE TABLE dtb_order ( |
|---|
| 558 | order_id serial NOT NULL, |
|---|
| 559 | order_temp_id text, |
|---|
| 560 | customer_id int4 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 int2, |
|---|
| 579 | order_birth timestamp, |
|---|
| 580 | order_job int4, |
|---|
| 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 int4, |
|---|
| 607 | payment_method text, |
|---|
| 608 | deliv_id int4, |
|---|
| 609 | deliv_time_id int4, |
|---|
| 610 | deliv_time text, |
|---|
| 611 | deliv_no text, |
|---|
| 612 | note text, |
|---|
| 613 | status int2, |
|---|
| 614 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 615 | loan_result text, |
|---|
| 616 | credit_result text, |
|---|
| 617 | credit_msg text, |
|---|
| 618 | update_date timestamp, |
|---|
| 619 | commit_date timestamp, |
|---|
| 620 | del_flg int2 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 int4 |
|---|
| 637 | ); |
|---|
| 638 | |
|---|
| 639 | CREATE TABLE dtb_order_temp ( |
|---|
| 640 | order_temp_id text NOT NULL, |
|---|
| 641 | customer_id int4 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 int2, |
|---|
| 660 | order_birth timestamp, |
|---|
| 661 | order_job int4, |
|---|
| 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 int4, |
|---|
| 688 | payment_method text, |
|---|
| 689 | deliv_id int4, |
|---|
| 690 | deliv_time_id int4, |
|---|
| 691 | deliv_time text, |
|---|
| 692 | deliv_no text, |
|---|
| 693 | note text, |
|---|
| 694 | mail_flag int2, |
|---|
| 695 | status int2, |
|---|
| 696 | deliv_check int2, |
|---|
| 697 | point_check int2, |
|---|
| 698 | loan_result text, |
|---|
| 699 | credit_result text, |
|---|
| 700 | credit_msg text, |
|---|
| 701 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 702 | update_date timestamp, |
|---|
| 703 | del_flg int2 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 | ); |
|---|
| 722 | |
|---|
| 723 | CREATE TABLE dtb_other_deliv ( |
|---|
| 724 | other_deliv_id serial NOT NULL, |
|---|
| 725 | customer_id int4 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 | ); |
|---|
| 739 | |
|---|
| 740 | CREATE TABLE dtb_order_detail ( |
|---|
| 741 | order_id int4 NOT NULL, |
|---|
| 742 | product_id int4 NOT NULL, |
|---|
| 743 | classcategory_id1 int4 NOT NULL, |
|---|
| 744 | classcategory_id2 int4 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 | ); |
|---|
| 753 | |
|---|
| 754 | CREATE TABLE mtb_pref ( |
|---|
| 755 | pref_id int2 NOT NULL, |
|---|
| 756 | pref_name text, |
|---|
| 757 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 758 | PRIMARY KEY (pref_id) |
|---|
| 759 | ); |
|---|
| 760 | |
|---|
| 761 | CREATE TABLE dtb_member ( |
|---|
| 762 | member_id serial NOT NULL, |
|---|
| 763 | name text, |
|---|
| 764 | department text, |
|---|
| 765 | login_id text NOT NULL, |
|---|
| 766 | password text NOT NULL, |
|---|
| 767 | authority int2 NOT NULL, |
|---|
| 768 | rank int4 NOT NULL DEFAULT 0, |
|---|
| 769 | work int2 NOT NULL DEFAULT 1, |
|---|
| 770 | del_flg int2 NOT NULL DEFAULT 0, |
|---|
| 771 | creator_id int4 NOT NULL, |
|---|
| 772 | update_date timestamp, |
|---|
| 773 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 774 | login_date timestamp |
|---|
| 775 | ); |
|---|
| 776 | |
|---|
| 777 | CREATE TABLE dtb_question ( |
|---|
| 778 | question_id serial NOT NULL, |
|---|
| 779 | question_name text, |
|---|
| 780 | question text, |
|---|
| 781 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 782 | del_flg int2 NOT NULL DEFAULT 0 |
|---|
| 783 | ); |
|---|
| 784 | |
|---|
| 785 | CREATE TABLE dtb_question_result ( |
|---|
| 786 | result_id serial NOT NULL, |
|---|
| 787 | question_id int4 NOT NULL, |
|---|
| 788 | question_date timestamp, |
|---|
| 789 | question_name text, |
|---|
| 790 | name01 text, |
|---|
| 791 | name02 text, |
|---|
| 792 | kana01 text, |
|---|
| 793 | kana02 text, |
|---|
| 794 | zip01 text, |
|---|
| 795 | zip02 text, |
|---|
| 796 | pref int2, |
|---|
| 797 | addr01 text, |
|---|
| 798 | addr02 text, |
|---|
| 799 | tel01 text, |
|---|
| 800 | tel02 text, |
|---|
| 801 | tel03 text, |
|---|
| 802 | mail01 text, |
|---|
| 803 | question01 text, |
|---|
| 804 | question02 text, |
|---|
| 805 | question03 text, |
|---|
| 806 | question04 text, |
|---|
| 807 | question05 text, |
|---|
| 808 | question06 text, |
|---|
| 809 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 810 | del_flg int2 NOT NULL DEFAULT 0 |
|---|
| 811 | ); |
|---|
| 812 | |
|---|
| 813 | CREATE TABLE dtb_bat_relate_products ( |
|---|
| 814 | product_id int4, |
|---|
| 815 | relate_product_id int4, |
|---|
| 816 | customer_id int4, |
|---|
| 817 | create_date timestamp DEFAULT now() |
|---|
| 818 | ); |
|---|
| 819 | |
|---|
| 820 | CREATE TABLE dtb_campaign ( |
|---|
| 821 | campaign_id serial NOT NULL, |
|---|
| 822 | campaign_name text, |
|---|
| 823 | campaign_point_rate numeric NOT NULL, |
|---|
| 824 | campaign_point_type int2, |
|---|
| 825 | start_date timestamp NOT NULL, |
|---|
| 826 | end_date timestamp NOT NULL, |
|---|
| 827 | directory_name text NOT NULL, |
|---|
| 828 | limit_count int4 NOT NULL DEFAULT 0, |
|---|
| 829 | total_count int4 NOT NULL DEFAULT 0, |
|---|
| 830 | orverlapping_flg int2 NOT NULL DEFAULT 0, |
|---|
| 831 | cart_flg int2 NOT NULL DEFAULT 0, |
|---|
| 832 | deliv_free_flg int2 NOT NULL DEFAULT 0, |
|---|
| 833 | search_condition text, |
|---|
| 834 | del_flg int2 NOT NULL DEFAULT 0, |
|---|
| 835 | create_date timestamp NOT NULL, |
|---|
| 836 | update_date timestamp NOT NULL DEFAULT now() |
|---|
| 837 | ); |
|---|
| 838 | |
|---|
| 839 | CREATE TABLE dtb_campaign_detail ( |
|---|
| 840 | campaign_id int4 NOT NULL, |
|---|
| 841 | product_id int4 NOT NULL, |
|---|
| 842 | campaign_point_rate numeric NOT NULL |
|---|
| 843 | ); |
|---|
| 844 | |
|---|
| 845 | CREATE TABLE dtb_pagelayout ( |
|---|
| 846 | page_id serial NOT NULL, |
|---|
| 847 | page_name text, |
|---|
| 848 | url text NOT NULL, |
|---|
| 849 | php_dir text, |
|---|
| 850 | tpl_dir text, |
|---|
| 851 | filename text, |
|---|
| 852 | header_chk int2 DEFAULT 1, |
|---|
| 853 | footer_chk int2 DEFAULT 1, |
|---|
| 854 | edit_flg int2 DEFAULT 1, |
|---|
| 855 | author text, |
|---|
| 856 | description text, |
|---|
| 857 | keyword text, |
|---|
| 858 | update_url text, |
|---|
| 859 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 860 | update_date timestamp NOT NULL DEFAULT now() |
|---|
| 861 | ); |
|---|
| 862 | |
|---|
| 863 | CREATE TABLE dtb_bloc ( |
|---|
| 864 | bloc_id serial NOT NULL, |
|---|
| 865 | bloc_name text, |
|---|
| 866 | tpl_path text, |
|---|
| 867 | filename text NOT NULL UNIQUE, |
|---|
| 868 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 869 | update_date timestamp NOT NULL DEFAULT now(), |
|---|
| 870 | php_path text, |
|---|
| 871 | del_flg int2 NOT NULL DEFAULT 0 |
|---|
| 872 | ); |
|---|
| 873 | |
|---|
| 874 | CREATE TABLE dtb_blocposition ( |
|---|
| 875 | page_id int4 NOT NULL, |
|---|
| 876 | target_id int4, |
|---|
| 877 | bloc_id int4, |
|---|
| 878 | bloc_row int4, |
|---|
| 879 | filename text |
|---|
| 880 | ); |
|---|
| 881 | |
|---|
| 882 | CREATE TABLE dtb_csv ( |
|---|
| 883 | no serial, |
|---|
| 884 | csv_id int4 NOT NULL, |
|---|
| 885 | col text, |
|---|
| 886 | disp_name text, |
|---|
| 887 | rank int4, |
|---|
| 888 | status int2 NOT NULL DEFAULT 1, |
|---|
| 889 | create_date timestamp NOT NULL DEFAULT now(), |
|---|
| 890 | update_date timestamp NOT NULL DEFAULT now() |
|---|
| 891 | ); |
|---|
| 892 | |
|---|
| 893 | CREATE TABLE dtb_csv_sql ( |
|---|
| 894 | sql_id serial, |
|---|
| 895 | sql_name text NOT NULL, |
|---|
| 896 | csv_sql text, |
|---|
| 897 | update_date timestamp NOT NULL DEFAULT now(), |
|---|
| 898 | create_date timestamp NOT NULL DEFAULT now() |
|---|
| 899 | ); |
|---|
| 900 | |
|---|
| 901 | CREATE TABLE dtb_user_regist ( |
|---|
| 902 | user_id serial NOT NULL, |
|---|
| 903 | org_name text, |
|---|
| 904 | post_name text, |
|---|
| 905 | name01 text, |
|---|
| 906 | name02 text, |
|---|
| 907 | kana01 text, |
|---|
| 908 | kana02 text, |
|---|
| 909 | email text NOT NULL, |
|---|
| 910 | url text, |
|---|
| 911 | note text, |
|---|
| 912 | secret_key text NOT NULL UNIQUE, |
|---|
| 913 | status int2 NOT NULL, |
|---|
| 914 | del_flg int2 DEFAULT 0, |
|---|
| 915 | create_date timestamp NOT NULL, |
|---|
| 916 | update_date timestamp NOT NULL DEFAULT now() |
|---|
| 917 | ); |
|---|
| 918 | |
|---|
| 919 | create table dtb_templates |
|---|
| 920 | ( |
|---|
| 921 | template_code text NOT NULL UNIQUE , |
|---|
| 922 | template_name text , |
|---|
| 923 | create_date timestamp NOT NULL default now(), |
|---|
| 924 | update_date timestamp NOT NULL default now() |
|---|
| 925 | ); |
|---|
| 926 | |
|---|
| 927 | create table dtb_table_comment |
|---|
| 928 | ( |
|---|
| 929 | id serial, |
|---|
| 930 | table_name text, |
|---|
| 931 | column_name text, |
|---|
| 932 | description text |
|---|
| 933 | ); |
|---|
| 934 | |
|---|
| 935 | CREATE TABLE mtb_permission ( |
|---|
| 936 | id text, |
|---|
| 937 | name text, |
|---|
| 938 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 939 | PRIMARY KEY (id) |
|---|
| 940 | ); |
|---|
| 941 | |
|---|
| 942 | CREATE TABLE mtb_disable_logout ( |
|---|
| 943 | id int2, |
|---|
| 944 | name text, |
|---|
| 945 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 946 | PRIMARY KEY (id) |
|---|
| 947 | ); |
|---|
| 948 | |
|---|
| 949 | CREATE TABLE mtb_authority ( |
|---|
| 950 | id int2, |
|---|
| 951 | name text, |
|---|
| 952 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 953 | PRIMARY KEY (id) |
|---|
| 954 | ); |
|---|
| 955 | |
|---|
| 956 | CREATE TABLE mtb_work ( |
|---|
| 957 | id int2, |
|---|
| 958 | name text, |
|---|
| 959 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 960 | PRIMARY KEY (id) |
|---|
| 961 | ); |
|---|
| 962 | |
|---|
| 963 | CREATE TABLE mtb_disp ( |
|---|
| 964 | id int2, |
|---|
| 965 | name text, |
|---|
| 966 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 967 | PRIMARY KEY (id) |
|---|
| 968 | ); |
|---|
| 969 | |
|---|
| 970 | CREATE TABLE mtb_class ( |
|---|
| 971 | id int2, |
|---|
| 972 | name text, |
|---|
| 973 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 974 | PRIMARY KEY (id) |
|---|
| 975 | ); |
|---|
| 976 | |
|---|
| 977 | CREATE TABLE mtb_srank ( |
|---|
| 978 | id int2, |
|---|
| 979 | name text, |
|---|
| 980 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 981 | PRIMARY KEY (id) |
|---|
| 982 | ); |
|---|
| 983 | |
|---|
| 984 | CREATE TABLE mtb_status ( |
|---|
| 985 | id int2, |
|---|
| 986 | name text, |
|---|
| 987 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 988 | PRIMARY KEY (id) |
|---|
| 989 | ); |
|---|
| 990 | |
|---|
| 991 | CREATE TABLE mtb_status_image ( |
|---|
| 992 | id int2, |
|---|
| 993 | name text, |
|---|
| 994 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 995 | PRIMARY KEY (id) |
|---|
| 996 | ); |
|---|
| 997 | |
|---|
| 998 | CREATE TABLE mtb_allowed_tag ( |
|---|
| 999 | id int2, |
|---|
| 1000 | name text, |
|---|
| 1001 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1002 | PRIMARY KEY (id) |
|---|
| 1003 | ); |
|---|
| 1004 | |
|---|
| 1005 | CREATE TABLE mtb_page_max ( |
|---|
| 1006 | id int2, |
|---|
| 1007 | name text, |
|---|
| 1008 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1009 | PRIMARY KEY (id) |
|---|
| 1010 | ); |
|---|
| 1011 | |
|---|
| 1012 | CREATE TABLE mtb_magazine_type ( |
|---|
| 1013 | id int2, |
|---|
| 1014 | name text, |
|---|
| 1015 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1016 | PRIMARY KEY (id) |
|---|
| 1017 | ); |
|---|
| 1018 | |
|---|
| 1019 | CREATE TABLE mtb_mail_magazine_type ( |
|---|
| 1020 | id int2, |
|---|
| 1021 | name text, |
|---|
| 1022 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1023 | PRIMARY KEY (id) |
|---|
| 1024 | ); |
|---|
| 1025 | |
|---|
| 1026 | CREATE TABLE mtb_recommend ( |
|---|
| 1027 | id int2, |
|---|
| 1028 | name text, |
|---|
| 1029 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1030 | PRIMARY KEY (id) |
|---|
| 1031 | ); |
|---|
| 1032 | |
|---|
| 1033 | CREATE TABLE mtb_taxrule ( |
|---|
| 1034 | id int2, |
|---|
| 1035 | name text, |
|---|
| 1036 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1037 | PRIMARY KEY (id) |
|---|
| 1038 | ); |
|---|
| 1039 | |
|---|
| 1040 | CREATE TABLE mtb_mail_template ( |
|---|
| 1041 | id int2, |
|---|
| 1042 | name text, |
|---|
| 1043 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1044 | PRIMARY KEY (id) |
|---|
| 1045 | ); |
|---|
| 1046 | |
|---|
| 1047 | CREATE TABLE mtb_mail_tpl_path ( |
|---|
| 1048 | id int2, |
|---|
| 1049 | name text, |
|---|
| 1050 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1051 | PRIMARY KEY (id) |
|---|
| 1052 | ); |
|---|
| 1053 | |
|---|
| 1054 | CREATE TABLE mtb_job ( |
|---|
| 1055 | id int2, |
|---|
| 1056 | name text, |
|---|
| 1057 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1058 | PRIMARY KEY (id) |
|---|
| 1059 | ); |
|---|
| 1060 | |
|---|
| 1061 | CREATE TABLE mtb_reminder ( |
|---|
| 1062 | id int2, |
|---|
| 1063 | name text, |
|---|
| 1064 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1065 | PRIMARY KEY (id) |
|---|
| 1066 | ); |
|---|
| 1067 | |
|---|
| 1068 | CREATE TABLE mtb_sex ( |
|---|
| 1069 | id int2, |
|---|
| 1070 | name text, |
|---|
| 1071 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1072 | PRIMARY KEY (id) |
|---|
| 1073 | ); |
|---|
| 1074 | |
|---|
| 1075 | CREATE TABLE mtb_page_rows ( |
|---|
| 1076 | id int2, |
|---|
| 1077 | name text, |
|---|
| 1078 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1079 | PRIMARY KEY (id) |
|---|
| 1080 | ); |
|---|
| 1081 | |
|---|
| 1082 | CREATE TABLE mtb_mail_type ( |
|---|
| 1083 | id int2, |
|---|
| 1084 | name text, |
|---|
| 1085 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1086 | PRIMARY KEY (id) |
|---|
| 1087 | ); |
|---|
| 1088 | |
|---|
| 1089 | CREATE TABLE mtb_order_status ( |
|---|
| 1090 | id int2, |
|---|
| 1091 | name text, |
|---|
| 1092 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1093 | PRIMARY KEY (id) |
|---|
| 1094 | ); |
|---|
| 1095 | |
|---|
| 1096 | CREATE TABLE mtb_product_status_color ( |
|---|
| 1097 | id int2, |
|---|
| 1098 | name text, |
|---|
| 1099 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1100 | PRIMARY KEY (id) |
|---|
| 1101 | ); |
|---|
| 1102 | |
|---|
| 1103 | CREATE TABLE mtb_order_status_color ( |
|---|
| 1104 | id int2, |
|---|
| 1105 | name text, |
|---|
| 1106 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1107 | PRIMARY KEY (id) |
|---|
| 1108 | ); |
|---|
| 1109 | |
|---|
| 1110 | CREATE TABLE mtb_wday ( |
|---|
| 1111 | id int2, |
|---|
| 1112 | name text, |
|---|
| 1113 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1114 | PRIMARY KEY (id) |
|---|
| 1115 | ); |
|---|
| 1116 | |
|---|
| 1117 | CREATE TABLE mtb_delivery_date ( |
|---|
| 1118 | id int2, |
|---|
| 1119 | name text, |
|---|
| 1120 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1121 | PRIMARY KEY (id) |
|---|
| 1122 | ); |
|---|
| 1123 | |
|---|
| 1124 | CREATE TABLE mtb_product_list_max ( |
|---|
| 1125 | id int2, |
|---|
| 1126 | name text, |
|---|
| 1127 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1128 | PRIMARY KEY (id) |
|---|
| 1129 | ); |
|---|
| 1130 | |
|---|
| 1131 | CREATE TABLE mtb_convenience ( |
|---|
| 1132 | id int2, |
|---|
| 1133 | name text, |
|---|
| 1134 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1135 | PRIMARY KEY (id) |
|---|
| 1136 | ); |
|---|
| 1137 | |
|---|
| 1138 | CREATE TABLE mtb_conveni_message ( |
|---|
| 1139 | id int2, |
|---|
| 1140 | name text, |
|---|
| 1141 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1142 | PRIMARY KEY (id) |
|---|
| 1143 | ); |
|---|
| 1144 | |
|---|
| 1145 | CREATE TABLE mtb_db ( |
|---|
| 1146 | id int2, |
|---|
| 1147 | name text, |
|---|
| 1148 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1149 | PRIMARY KEY (id) |
|---|
| 1150 | ); |
|---|
| 1151 | |
|---|
| 1152 | CREATE TABLE mtb_target ( |
|---|
| 1153 | id int2, |
|---|
| 1154 | name text, |
|---|
| 1155 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1156 | PRIMARY KEY (id) |
|---|
| 1157 | ); |
|---|
| 1158 | |
|---|
| 1159 | CREATE TABLE mtb_review_deny_url ( |
|---|
| 1160 | id int2, |
|---|
| 1161 | name text, |
|---|
| 1162 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1163 | PRIMARY KEY (id) |
|---|
| 1164 | ); |
|---|
| 1165 | |
|---|
| 1166 | CREATE TABLE mtb_track_back_status ( |
|---|
| 1167 | id int2, |
|---|
| 1168 | name text, |
|---|
| 1169 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1170 | PRIMARY KEY (id) |
|---|
| 1171 | ); |
|---|
| 1172 | |
|---|
| 1173 | CREATE TABLE mtb_site_control_track_back ( |
|---|
| 1174 | id int2, |
|---|
| 1175 | name text, |
|---|
| 1176 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1177 | PRIMARY KEY (id) |
|---|
| 1178 | ); |
|---|
| 1179 | |
|---|
| 1180 | CREATE TABLE mtb_site_control_affiliate ( |
|---|
| 1181 | id int2, |
|---|
| 1182 | name text, |
|---|
| 1183 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1184 | PRIMARY KEY (id) |
|---|
| 1185 | ); |
|---|
| 1186 | |
|---|
| 1187 | CREATE TABLE mtb_mobile_domain ( |
|---|
| 1188 | id int2, |
|---|
| 1189 | name text, |
|---|
| 1190 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1191 | PRIMARY KEY (id) |
|---|
| 1192 | ); |
|---|
| 1193 | |
|---|
| 1194 | CREATE TABLE mtb_ownersstore_err ( |
|---|
| 1195 | id text, |
|---|
| 1196 | name text, |
|---|
| 1197 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1198 | PRIMARY KEY (id) |
|---|
| 1199 | ); |
|---|
| 1200 | |
|---|
| 1201 | CREATE TABLE mtb_ownersstore_ips ( |
|---|
| 1202 | id text, |
|---|
| 1203 | name text, |
|---|
| 1204 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1205 | PRIMARY KEY (id) |
|---|
| 1206 | ); |
|---|
| 1207 | |
|---|
| 1208 | CREATE TABLE mtb_constants ( |
|---|
| 1209 | id text, |
|---|
| 1210 | name text, |
|---|
| 1211 | rank int2 NOT NULL DEFAULT 0, |
|---|
| 1212 | remarks text, |
|---|
| 1213 | PRIMARY KEY (id) |
|---|
| 1214 | ); |
|---|