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