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

Revision 18007, 28.1 KB checked in by kajiwara, 15 years ago (diff)

2.4.0 正式版のコミット。コミット内容の詳細はこちら(http://svn.ec-cube.net/open_trac/query?status=closed&milestone=EC-CUBE2.4.0

  • 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) TYPE=InnoDB ;
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_favorite_products (
461    customer_id int NOT NULL,
462    product_id int NOT NULL,
463    create_date datetime NOT NULL,
464    update_date datetime NOT NULL
465) TYPE=InnoDB ;
466
467CREATE TABLE dtb_customer_reading (
468    reading_product_id int NOT NULL,
469    customer_id int NOT NULL,
470    create_date datetime NOT NULL,
471    update_date datetime NOT NULL
472) TYPE=InnoDB ;
473
474CREATE TABLE dtb_category_count (
475    category_id int NOT NULL,
476    product_count int NOT NULL,
477    create_date datetime NOT NULL
478) TYPE=InnoDB ;
479
480CREATE TABLE dtb_category_total_count (
481    category_id int NOT NULL,
482    product_count int,
483    create_date datetime NOT NULL
484) TYPE=InnoDB ;
485
486CREATE TABLE dtb_news (
487    news_id int auto_increment primary key NOT NULL UNIQUE,
488    news_date datetime,
489    rank int,
490    news_title text NOT NULL,
491    news_comment text,
492    news_url text,
493    news_select smallint NOT NULL DEFAULT 0,
494    link_method text,
495    creator_id int NOT NULL,
496    create_date datetime NOT NULL ,
497    update_date datetime,
498    del_flg  smallint NOT NULL DEFAULT 0
499) TYPE=InnoDB ;
500
501CREATE TABLE dtb_best_products (
502    best_id int auto_increment primary key NOT NULL,
503    category_id int NOT NULL,
504    rank int NOT NULL DEFAULT 0,
505    product_id int NOT NULL,
506    title text,
507    comment text,
508    creator_id int NOT NULL,
509    create_date datetime NOT NULL ,
510    update_date datetime,
511    del_flg  smallint NOT NULL DEFAULT 0
512) TYPE=InnoDB ;
513
514CREATE TABLE dtb_mail_history (
515    send_id int auto_increment primary key  NOT NULL,
516    order_id int NOT NULL,
517    send_date datetime,
518    template_id int,
519    creator_id int NOT NULL,
520    subject text,
521    mail_body text
522) TYPE=InnoDB ;
523
524CREATE TABLE dtb_customer (
525    customer_id int auto_increment primary key  NOT NULL,
526    name01 text NOT NULL,
527    name02 text NOT NULL,
528    kana01 text NOT NULL,
529    kana02 text NOT NULL,
530    zip01 text,
531    zip02 text,
532    pref smallint,
533    addr01 text,
534    addr02 text,
535    email text NOT NULL,
536    email_mobile text,
537    tel01 text,
538    tel02 text,
539    tel03 text,
540    fax01 text,
541    fax02 text,
542    fax03 text,
543    sex smallint,
544    job smallint,
545    birth datetime,
546    password text,
547    reminder smallint,
548    reminder_answer text,
549    secret_key varchar(50) NOT NULL UNIQUE,
550    first_buy_date datetime,
551    last_buy_date datetime,
552    buy_times numeric DEFAULT 0,
553    buy_total numeric DEFAULT 0,
554    point numeric DEFAULT 0,
555    note text,
556    status smallint NOT NULL DEFAULT 1,
557    create_date datetime NOT NULL ,
558    update_date datetime ,
559    del_flg  smallint NOT NULL DEFAULT 0,
560    cell01 text,
561    cell02 text,
562    cell03 text,
563    mobile_phone_id text,
564    mailmaga_flg smallint
565) TYPE=InnoDB ;
566
567CREATE INDEX dtb_customer_mobile_phone_id_key ON dtb_customer (mobile_phone_id(64));
568
569CREATE TABLE dtb_customer_mail_temp (
570    email varchar(50) NOT NULL UNIQUE,
571    mail_flag smallint,
572    temp_id varchar(50) NOT NULL UNIQUE,
573    end_flag smallint,
574    update_date datetime NOT NULL ,
575    create_data datetime NOT NULL
576) TYPE=InnoDB ;
577
578CREATE TABLE dtb_order (
579    order_id int auto_increment primary key NOT NULL,
580    order_temp_id text,
581    customer_id int NOT NULL,
582    message text,
583    order_name01 text,
584    order_name02 text,
585    order_kana01 text,
586    order_kana02 text,
587    order_email text,
588    order_tel01 text,
589    order_tel02 text,
590    order_tel03 text,
591    order_fax01 text,
592    order_fax02 text,
593    order_fax03 text,
594    order_zip01 text,
595    order_zip02 text,
596    order_pref text,
597    order_addr01 text,
598    order_addr02 text,
599    order_sex smallint,
600    order_birth datetime,
601    order_job int,
602    deliv_name01 text,
603    deliv_name02 text,
604    deliv_kana01 text,
605    deliv_kana02 text,
606    deliv_tel01 text,
607    deliv_tel02 text,
608    deliv_tel03 text,
609    deliv_fax01 text,
610    deliv_fax02 text,
611    deliv_fax03 text,
612    deliv_zip01 text,
613    deliv_zip02 text,
614    deliv_pref text,
615    deliv_addr01 text,
616    deliv_addr02 text,
617    subtotal numeric,
618    discount numeric,
619    deliv_fee numeric,
620    charge numeric,
621    use_point numeric,
622    add_point numeric,
623    birth_point numeric DEFAULT 0,
624    tax numeric,
625    total numeric,
626    payment_total numeric,
627    payment_id int,
628    payment_method text,
629    deliv_id int,
630    deliv_time_id int,
631    deliv_time text,
632    deliv_no text,
633    note text,
634    status smallint,
635    create_date datetime NOT NULL ,
636    loan_result text,
637    credit_result text,
638    credit_msg text,
639    update_date datetime,
640    commit_date datetime,
641    del_flg  smallint NOT NULL DEFAULT 0,
642    deliv_date text,
643    conveni_data text,
644    cell01 text,
645    cell02 text,
646    cell03 text,
647    memo01 text,
648    memo02 text,
649    memo03 text,
650    memo04 text,
651    memo05 text,
652    memo06 text,
653    memo07 text,
654    memo08 text,
655    memo09 text,
656    memo10 text,
657    campaign_id int
658) TYPE=InnoDB ;
659
660CREATE TABLE dtb_order_temp (
661    order_temp_id text NOT NULL,
662    customer_id int NOT NULL,
663    message text,
664    order_name01 text,
665    order_name02 text,
666    order_kana01 text,
667    order_kana02 text,
668    order_email text,
669    order_tel01 text,
670    order_tel02 text,
671    order_tel03 text,
672    order_fax01 text,
673    order_fax02 text,
674    order_fax03 text,
675    order_zip01 text,
676    order_zip02 text,
677    order_pref text,
678    order_addr01 text,
679    order_addr02 text,
680    order_sex smallint,
681    order_birth datetime,
682    order_job int,
683    deliv_name01 text,
684    deliv_name02 text,
685    deliv_kana01 text,
686    deliv_kana02 text,
687    deliv_tel01 text,
688    deliv_tel02 text,
689    deliv_tel03 text,
690    deliv_fax01 text,
691    deliv_fax02 text,
692    deliv_fax03 text,
693    deliv_zip01 text,
694    deliv_zip02 text,
695    deliv_pref text,
696    deliv_addr01 text,
697    deliv_addr02 text,
698    subtotal numeric,
699    discount numeric,
700    deliv_fee numeric,
701    charge numeric,
702    use_point numeric,
703    add_point numeric,
704    birth_point numeric DEFAULT 0,
705    tax numeric,
706    total numeric,
707    payment_total numeric,
708    payment_id int,
709    payment_method text,
710    deliv_id int,
711    deliv_time_id int,
712    deliv_time text,
713    deliv_no text,
714    note text,
715    mail_flag smallint,
716    status smallint,
717    deliv_check smallint,
718    point_check smallint,
719    loan_result text,
720    credit_result text,
721    credit_msg text,
722    create_date datetime NOT NULL ,
723    update_date datetime,
724    del_flg  smallint NOT NULL DEFAULT 0,
725    deliv_date text,
726    conveni_data text,
727    cell01 text,
728    cell02 text,
729    cell03 text,
730    order_id int4,
731    memo01 text,
732    memo02 text,
733    memo03 text,
734    memo04 text,
735    memo05 text,
736    memo06 text,
737    memo07 text,
738    memo08 text,
739    memo09 text,
740    memo10 text,
741    session text
742) TYPE=InnoDB ;
743
744CREATE TABLE dtb_other_deliv (
745    other_deliv_id int auto_increment primary key NOT NULL,
746    customer_id int NOT NULL,
747    name01 text,
748    name02 text,
749    kana01 text,
750    kana02 text,
751    zip01 text,
752    zip02 text,
753    pref text,
754    addr01 text,
755    addr02 text,
756    tel01 text,
757    tel02 text,
758    tel03 text
759) TYPE=InnoDB ;
760
761CREATE TABLE dtb_order_detail (
762    order_id int NOT NULL,
763    product_id int NOT NULL,
764    classcategory_id1 int NOT NULL,
765    classcategory_id2 int NOT NULL,
766    product_name text NOT NULL,
767    product_code text,
768    classcategory_name1 text,
769    classcategory_name2 text,
770    price numeric,
771    quantity numeric,
772    point_rate numeric
773) TYPE=InnoDB ;
774
775CREATE TABLE mtb_pref (
776    pref_id smallint NOT NULL,
777    pref_name text,
778    rank smallint NOT NULL DEFAULT 0
779) TYPE=InnoDB ;
780
781CREATE TABLE dtb_member (
782    member_id int auto_increment primary key NOT NULL,
783    name text,
784    department text,
785    login_id text NOT NULL,
786    password text NOT NULL,
787    authority smallint NOT NULL,
788    rank int NOT NULL DEFAULT 0,
789    work smallint NOT NULL DEFAULT 1,
790    del_flg smallint NOT NULL DEFAULT 0,
791    creator_id int NOT NULL,
792    update_date datetime,
793    create_date datetime NOT NULL ,
794    login_date datetime
795) TYPE=InnoDB ;
796
797CREATE TABLE dtb_question (
798    question_id int auto_increment primary key NOT NULL,
799    question_name text,
800    question text,
801    create_date datetime NOT NULL ,
802    del_flg  smallint NOT NULL DEFAULT 0
803) TYPE=InnoDB ;
804
805CREATE TABLE dtb_question_result (
806    result_id int auto_increment primary key NOT NULL,
807    question_id int NOT NULL,
808    question_date datetime,
809    question_name text,
810    name01 text,
811    name02 text,
812    kana01 text,
813    kana02 text,
814    zip01 text,
815    zip02 text,
816    pref smallint,
817    addr01 text,
818    addr02 text,
819    tel01 text,
820    tel02 text,
821    tel03 text,
822    mail01 text,
823    question01 text,
824    question02 text,
825    question03 text,
826    question04 text,
827    question05 text,
828    question06 text,
829    create_date datetime NOT NULL ,
830    del_flg  smallint NOT NULL DEFAULT 0
831) TYPE=InnoDB ;
832
833CREATE TABLE dtb_bat_relate_products (
834    product_id int,
835    relate_product_id int,
836    customer_id int,
837    create_date datetime
838) TYPE=InnoDB ;
839
840CREATE TABLE dtb_campaign (
841    campaign_id int auto_increment primary key NOT NULL,
842    campaign_name text,
843    campaign_point_rate numeric NOT NULL,
844    campaign_point_type smallint,
845    start_date datetime NOT NULL,
846    end_date datetime NOT NULL,
847    directory_name text NOT NULL,
848    limit_count int4 NOT NULL DEFAULT 0,
849    total_count int4 NOT NULL DEFAULT 0,
850    orverlapping_flg int2 NOT NULL DEFAULT 0,
851    cart_flg int2 NOT NULL DEFAULT 0,
852    deliv_free_flg int2 NOT NULL DEFAULT 0,
853    search_condition text,
854    del_flg smallint NOT NULL DEFAULT 0,
855    create_date datetime NOT NULL,
856    update_date datetime NOT NULL
857) TYPE=InnoDB ;
858
859CREATE TABLE dtb_campaign_detail (
860    campaign_id int NOT NULL,
861    product_id int NOT NULL,
862    campaign_point_rate numeric NOT NULL
863) TYPE=InnoDB ;
864
865CREATE TABLE dtb_pagelayout (
866    page_id int auto_increment primary key NOT NULL,
867    page_name text,
868    url text NOT NULL,
869    php_dir text,
870    tpl_dir text,
871    filename text,
872    header_chk smallint DEFAULT 1,
873    footer_chk smallint DEFAULT 1,
874    edit_flg smallint DEFAULT 1,
875    author text,
876    description text,
877    keyword text,
878    update_url text,
879    create_date datetime NOT NULL ,
880    update_date datetime NOT NULL
881) TYPE=InnoDB ;
882
883CREATE TABLE dtb_bloc (
884    bloc_id int auto_increment primary key NOT NULL,
885    bloc_name text,
886    tpl_path text,
887    filename varchar(50) NOT NULL UNIQUE,
888    create_date datetime NOT NULL ,
889    update_date datetime NOT NULL ,
890    php_path text,
891    del_flg smallint NOT NULL DEFAULT 0
892) TYPE=InnoDB ;
893
894CREATE TABLE dtb_blocposition (
895    page_id int NOT NULL,
896    target_id int,
897    bloc_id int,
898    bloc_row int,
899    filename text
900) TYPE=InnoDB ;
901
902CREATE TABLE dtb_csv (
903    no int auto_increment primary key,
904    csv_id int NOT NULL,
905    col text,
906    disp_name text,
907    rank int,
908    status smallint NOT NULL DEFAULT 1,
909    create_date datetime NOT NULL ,
910    update_date datetime NOT NULL
911) TYPE=InnoDB ;
912
913CREATE TABLE dtb_csv_sql (
914    sql_id int auto_increment primary key,
915    sql_name text NOT NULL,
916    csv_sql text,
917    update_date datetime NOT NULL,
918    create_date datetime NOT NULL
919) TYPE=InnoDB ;
920
921CREATE TABLE dtb_user_regist (
922    user_id int auto_increment primary key NOT NULL,
923    org_name text,
924    post_name text,
925    name01 text,
926    name02 text,
927    kana01 text,
928    kana02 text,
929    email text NOT NULL,
930    url text,
931    note text,
932    secret_key varchar(50) NOT NULL UNIQUE,
933    status smallint NOT NULL,
934    del_flg smallint DEFAULT 0,
935    create_date datetime NOT NULL,
936    update_date datetime NOT NULL
937) TYPE=InnoDB ;
938
939CREATE TABLE dtb_templates
940(
941    template_code        varchar(50) NOT NULL UNIQUE    ,
942    template_name        text            ,
943    create_date        datetime        NOT NULL    ,
944    update_date        datetime        NOT NULL
945) TYPE=InnoDB ;
946
947CREATE TABLE dtb_table_comment
948(
949    id    int auto_increment primary key,
950    table_name    text,
951    column_name    text,
952    description    text
953) TYPE=InnoDB ;
954
955CREATE TABLE mtb_permission (
956    id text,
957    name text,
958    rank int2 NOT NULL DEFAULT 0,
959    PRIMARY KEY (id(32))
960) TYPE=InnoDB;
961
962CREATE TABLE mtb_disable_logout (
963    id int2,
964    name text,
965    rank int2 NOT NULL DEFAULT 0,
966    PRIMARY KEY (id)
967) TYPE=InnoDB;
968
969CREATE TABLE mtb_authority (
970    id int2,
971    name text,
972    rank int2 NOT NULL DEFAULT 0,
973    PRIMARY KEY (id)
974) TYPE=InnoDB;
975
976CREATE TABLE mtb_work (
977    id int2,
978    name text,
979    rank int2 NOT NULL DEFAULT 0,
980    PRIMARY KEY (id)
981) TYPE=InnoDB;
982
983CREATE TABLE mtb_disp (
984    id int2,
985    name text,
986    rank int2 NOT NULL DEFAULT 0,
987    PRIMARY KEY (id)
988) TYPE=InnoDB;
989
990CREATE TABLE mtb_class (
991    id int2,
992    name text,
993    rank int2 NOT NULL DEFAULT 0,
994    PRIMARY KEY (id)
995) TYPE=InnoDB;
996
997CREATE TABLE mtb_srank (
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 (
1005    id int2,
1006    name text,
1007    rank int2 NOT NULL DEFAULT 0,
1008    PRIMARY KEY (id)
1009) TYPE=InnoDB;
1010
1011CREATE TABLE mtb_status_image (
1012    id int2,
1013    name text,
1014    rank int2 NOT NULL DEFAULT 0,
1015    PRIMARY KEY (id)
1016) TYPE=InnoDB;
1017
1018CREATE TABLE mtb_allowed_tag (
1019    id int2,
1020    name text,
1021    rank int2 NOT NULL DEFAULT 0,
1022    PRIMARY KEY (id)
1023) TYPE=InnoDB;
1024
1025CREATE TABLE mtb_page_max (
1026    id int2,
1027    name text,
1028    rank int2 NOT NULL DEFAULT 0,
1029    PRIMARY KEY (id)
1030) TYPE=InnoDB;
1031
1032CREATE TABLE mtb_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_mail_magazine_type (
1040    id int2,
1041    name text,
1042    rank int2 NOT NULL DEFAULT 0,
1043    PRIMARY KEY (id)
1044) TYPE=InnoDB;
1045
1046CREATE TABLE mtb_recommend (
1047    id int2,
1048    name text,
1049    rank int2 NOT NULL DEFAULT 0,
1050    PRIMARY KEY (id)
1051) TYPE=InnoDB;
1052
1053CREATE TABLE mtb_taxrule (
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_template (
1061    id int2,
1062    name text,
1063    rank int2 NOT NULL DEFAULT 0,
1064    PRIMARY KEY (id)
1065) TYPE=InnoDB;
1066
1067CREATE TABLE mtb_mail_tpl_path (
1068    id int2,
1069    name text,
1070    rank int2 NOT NULL DEFAULT 0,
1071    PRIMARY KEY (id)
1072) TYPE=InnoDB;
1073
1074CREATE TABLE mtb_job (
1075    id int2,
1076    name text,
1077    rank int2 NOT NULL DEFAULT 0,
1078    PRIMARY KEY (id)
1079) TYPE=InnoDB;
1080
1081CREATE TABLE mtb_reminder (
1082    id int2,
1083    name text,
1084    rank int2 NOT NULL DEFAULT 0,
1085    PRIMARY KEY (id)
1086) TYPE=InnoDB;
1087
1088CREATE TABLE mtb_sex (
1089    id int2,
1090    name text,
1091    rank int2 NOT NULL DEFAULT 0,
1092    PRIMARY KEY (id)
1093) TYPE=InnoDB;
1094
1095CREATE TABLE mtb_page_rows (
1096    id int2,
1097    name text,
1098    rank int2 NOT NULL DEFAULT 0,
1099    PRIMARY KEY (id)
1100) TYPE=InnoDB;
1101
1102CREATE TABLE mtb_mail_type (
1103    id int2,
1104    name text,
1105    rank int2 NOT NULL DEFAULT 0,
1106    PRIMARY KEY (id)
1107) TYPE=InnoDB;
1108
1109CREATE TABLE mtb_order_status (
1110    id int2,
1111    name text,
1112    rank int2 NOT NULL DEFAULT 0,
1113    PRIMARY KEY (id)
1114) TYPE=InnoDB;
1115
1116CREATE TABLE mtb_product_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_order_status_color (
1124    id int2,
1125    name text,
1126    rank int2 NOT NULL DEFAULT 0,
1127    PRIMARY KEY (id)
1128) TYPE=InnoDB;
1129
1130CREATE TABLE mtb_wday (
1131    id int2,
1132    name text,
1133    rank int2 NOT NULL DEFAULT 0,
1134    PRIMARY KEY (id)
1135) TYPE=InnoDB;
1136
1137CREATE TABLE mtb_delivery_date (
1138    id int2,
1139    name text,
1140    rank int2 NOT NULL DEFAULT 0,
1141    PRIMARY KEY (id)
1142) TYPE=InnoDB;
1143
1144CREATE TABLE mtb_product_list_max (
1145    id int2,
1146    name text,
1147    rank int2 NOT NULL DEFAULT 0,
1148    PRIMARY KEY (id)
1149) TYPE=InnoDB;
1150
1151CREATE TABLE mtb_convenience (
1152    id int2,
1153    name text,
1154    rank int2 NOT NULL DEFAULT 0,
1155    PRIMARY KEY (id)
1156) TYPE=InnoDB;
1157
1158CREATE TABLE mtb_conveni_message (
1159    id int2,
1160    name text,
1161    rank int2 NOT NULL DEFAULT 0,
1162    PRIMARY KEY (id)
1163) TYPE=InnoDB;
1164
1165CREATE TABLE mtb_db (
1166    id int2,
1167    name text,
1168    rank int2 NOT NULL DEFAULT 0,
1169    PRIMARY KEY (id)
1170) TYPE=InnoDB;
1171
1172CREATE TABLE mtb_target (
1173    id int2,
1174    name text,
1175    rank int2 NOT NULL DEFAULT 0,
1176    PRIMARY KEY (id)
1177) TYPE=InnoDB;
1178
1179CREATE TABLE mtb_review_deny_url (
1180    id int2,
1181    name text,
1182    rank int2 NOT NULL DEFAULT 0,
1183    PRIMARY KEY (id)
1184) TYPE=InnoDB;
1185
1186CREATE TABLE mtb_track_back_status (
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_track_back (
1194    id int2,
1195    name text,
1196    rank int2 NOT NULL DEFAULT 0,
1197    PRIMARY KEY (id)
1198) TYPE=InnoDB;
1199
1200CREATE TABLE mtb_site_control_affiliate (
1201    id int2,
1202    name text,
1203    rank int2 NOT NULL DEFAULT 0,
1204    PRIMARY KEY (id)
1205) TYPE=InnoDB;
1206
1207CREATE TABLE mtb_mobile_domain (
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_err (
1215    id int2,
1216    name text,
1217    rank int2 NOT NULL DEFAULT 0,
1218    PRIMARY KEY (id)
1219) TYPE=InnoDB;
1220
1221CREATE TABLE mtb_ownersstore_ips (
1222    id int2,
1223    name text,
1224    rank int2 NOT NULL DEFAULT 0,
1225    PRIMARY KEY (id)
1226) TYPE=InnoDB;
1227
1228CREATE TABLE mtb_constants (
1229    id text,
1230    name text,
1231    rank int2 NOT NULL DEFAULT 0,
1232    remarks text
1233) TYPE=InnoDB;
Note: See TracBrowser for help on using the repository browser.