source: branches/comu-ver2/html/install/sql/create_table_mysql.sql @ 17162

Revision 17162, 28.1 KB checked in by Yammy, 16 years ago (diff)

http://svn.ec-cube.net/open_trac/ticket/254
お気に入り商品登録機能 一式コミット

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