source: branches/version-2_4/html/install/sql/create_table_mysql.sql @ 17767

Revision 17767, 27.9 KB checked in by zeniya, 15 years ago (diff)

EC-CUBE2.4改修 #298

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