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

Revision 17306, 28.5 KB checked in by Yammy, 16 years ago (diff)

ショップ専用の商品備考欄
http://svn.ec-cube.net/open_trac/ticket/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) 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    maker_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_customer_favorite_products (
468    customer_id int NOT NULL,
469    product_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 dtb_maker (
956    maker_id INT auto_increment primary key,
957    name text NOT NULL,
958    rank int NOT NULL DEFAULT 0,
959    creator_id int NOT NULL,
960    create_date datetime NOT NULL,
961    update_date datetime NOT NULL,
962    del_flg  smallint NOT NULL DEFAULT 0
963) TYPE=InnoDB ;
964
965CREATE TABLE dtb_maker_count (
966    maker_id int NOT NULL,
967    product_count int NOT NULL,
968    create_date datetime NOT NULL
969) TYPE=InnoDB ;
970
971
972CREATE TABLE mtb_permission (
973    id text,
974    name text,
975    rank int2 NOT NULL DEFAULT 0,
976    PRIMARY KEY (id(32))
977) TYPE=InnoDB;
978
979CREATE TABLE mtb_disable_logout (
980    id int2,
981    name text,
982    rank int2 NOT NULL DEFAULT 0,
983    PRIMARY KEY (id)
984) TYPE=InnoDB;
985
986CREATE TABLE mtb_authority (
987    id int2,
988    name text,
989    rank int2 NOT NULL DEFAULT 0,
990    PRIMARY KEY (id)
991) TYPE=InnoDB;
992
993CREATE TABLE mtb_work (
994    id int2,
995    name text,
996    rank int2 NOT NULL DEFAULT 0,
997    PRIMARY KEY (id)
998) TYPE=InnoDB;
999
1000CREATE TABLE mtb_disp (
1001    id int2,
1002    name text,
1003    rank int2 NOT NULL DEFAULT 0,
1004    PRIMARY KEY (id)
1005) TYPE=InnoDB;
1006
1007CREATE TABLE mtb_class (
1008    id int2,
1009    name text,
1010    rank int2 NOT NULL DEFAULT 0,
1011    PRIMARY KEY (id)
1012) TYPE=InnoDB;
1013
1014CREATE TABLE mtb_srank (
1015    id int2,
1016    name text,
1017    rank int2 NOT NULL DEFAULT 0,
1018    PRIMARY KEY (id)
1019) TYPE=InnoDB;
1020
1021CREATE TABLE mtb_status (
1022    id int2,
1023    name text,
1024    rank int2 NOT NULL DEFAULT 0,
1025    PRIMARY KEY (id)
1026) TYPE=InnoDB;
1027
1028CREATE TABLE mtb_status_image (
1029    id int2,
1030    name text,
1031    rank int2 NOT NULL DEFAULT 0,
1032    PRIMARY KEY (id)
1033) TYPE=InnoDB;
1034
1035CREATE TABLE mtb_allowed_tag (
1036    id int2,
1037    name text,
1038    rank int2 NOT NULL DEFAULT 0,
1039    PRIMARY KEY (id)
1040) TYPE=InnoDB;
1041
1042CREATE TABLE mtb_page_max (
1043    id int2,
1044    name text,
1045    rank int2 NOT NULL DEFAULT 0,
1046    PRIMARY KEY (id)
1047) TYPE=InnoDB;
1048
1049CREATE TABLE mtb_magazine_type (
1050    id int2,
1051    name text,
1052    rank int2 NOT NULL DEFAULT 0,
1053    PRIMARY KEY (id)
1054) TYPE=InnoDB;
1055
1056CREATE TABLE mtb_mail_magazine_type (
1057    id int2,
1058    name text,
1059    rank int2 NOT NULL DEFAULT 0,
1060    PRIMARY KEY (id)
1061) TYPE=InnoDB;
1062
1063CREATE TABLE mtb_recommend (
1064    id int2,
1065    name text,
1066    rank int2 NOT NULL DEFAULT 0,
1067    PRIMARY KEY (id)
1068) TYPE=InnoDB;
1069
1070CREATE TABLE mtb_taxrule (
1071    id int2,
1072    name text,
1073    rank int2 NOT NULL DEFAULT 0,
1074    PRIMARY KEY (id)
1075) TYPE=InnoDB;
1076
1077CREATE TABLE mtb_mail_template (
1078    id int2,
1079    name text,
1080    rank int2 NOT NULL DEFAULT 0,
1081    PRIMARY KEY (id)
1082) TYPE=InnoDB;
1083
1084CREATE TABLE mtb_mail_tpl_path (
1085    id int2,
1086    name text,
1087    rank int2 NOT NULL DEFAULT 0,
1088    PRIMARY KEY (id)
1089) TYPE=InnoDB;
1090
1091CREATE TABLE mtb_job (
1092    id int2,
1093    name text,
1094    rank int2 NOT NULL DEFAULT 0,
1095    PRIMARY KEY (id)
1096) TYPE=InnoDB;
1097
1098CREATE TABLE mtb_reminder (
1099    id int2,
1100    name text,
1101    rank int2 NOT NULL DEFAULT 0,
1102    PRIMARY KEY (id)
1103) TYPE=InnoDB;
1104
1105CREATE TABLE mtb_sex (
1106    id int2,
1107    name text,
1108    rank int2 NOT NULL DEFAULT 0,
1109    PRIMARY KEY (id)
1110) TYPE=InnoDB;
1111
1112CREATE TABLE mtb_page_rows (
1113    id int2,
1114    name text,
1115    rank int2 NOT NULL DEFAULT 0,
1116    PRIMARY KEY (id)
1117) TYPE=InnoDB;
1118
1119CREATE TABLE mtb_mail_type (
1120    id int2,
1121    name text,
1122    rank int2 NOT NULL DEFAULT 0,
1123    PRIMARY KEY (id)
1124) TYPE=InnoDB;
1125
1126CREATE TABLE mtb_order_status (
1127    id int2,
1128    name text,
1129    rank int2 NOT NULL DEFAULT 0,
1130    PRIMARY KEY (id)
1131) TYPE=InnoDB;
1132
1133CREATE TABLE mtb_product_status_color (
1134    id int2,
1135    name text,
1136    rank int2 NOT NULL DEFAULT 0,
1137    PRIMARY KEY (id)
1138) TYPE=InnoDB;
1139
1140CREATE TABLE mtb_order_status_color (
1141    id int2,
1142    name text,
1143    rank int2 NOT NULL DEFAULT 0,
1144    PRIMARY KEY (id)
1145) TYPE=InnoDB;
1146
1147CREATE TABLE mtb_wday (
1148    id int2,
1149    name text,
1150    rank int2 NOT NULL DEFAULT 0,
1151    PRIMARY KEY (id)
1152) TYPE=InnoDB;
1153
1154CREATE TABLE mtb_delivery_date (
1155    id int2,
1156    name text,
1157    rank int2 NOT NULL DEFAULT 0,
1158    PRIMARY KEY (id)
1159) TYPE=InnoDB;
1160
1161CREATE TABLE mtb_product_list_max (
1162    id int2,
1163    name text,
1164    rank int2 NOT NULL DEFAULT 0,
1165    PRIMARY KEY (id)
1166) TYPE=InnoDB;
1167
1168CREATE TABLE mtb_convenience (
1169    id int2,
1170    name text,
1171    rank int2 NOT NULL DEFAULT 0,
1172    PRIMARY KEY (id)
1173) TYPE=InnoDB;
1174
1175CREATE TABLE mtb_conveni_message (
1176    id int2,
1177    name text,
1178    rank int2 NOT NULL DEFAULT 0,
1179    PRIMARY KEY (id)
1180) TYPE=InnoDB;
1181
1182CREATE TABLE mtb_db (
1183    id int2,
1184    name text,
1185    rank int2 NOT NULL DEFAULT 0,
1186    PRIMARY KEY (id)
1187) TYPE=InnoDB;
1188
1189CREATE TABLE mtb_target (
1190    id int2,
1191    name text,
1192    rank int2 NOT NULL DEFAULT 0,
1193    PRIMARY KEY (id)
1194) TYPE=InnoDB;
1195
1196CREATE TABLE mtb_review_deny_url (
1197    id int2,
1198    name text,
1199    rank int2 NOT NULL DEFAULT 0,
1200    PRIMARY KEY (id)
1201) TYPE=InnoDB;
1202
1203CREATE TABLE mtb_track_back_status (
1204    id int2,
1205    name text,
1206    rank int2 NOT NULL DEFAULT 0,
1207    PRIMARY KEY (id)
1208) TYPE=InnoDB;
1209
1210CREATE TABLE mtb_site_control_track_back (
1211    id int2,
1212    name text,
1213    rank int2 NOT NULL DEFAULT 0,
1214    PRIMARY KEY (id)
1215) TYPE=InnoDB;
1216
1217CREATE TABLE mtb_site_control_affiliate (
1218    id int2,
1219    name text,
1220    rank int2 NOT NULL DEFAULT 0,
1221    PRIMARY KEY (id)
1222) TYPE=InnoDB;
1223
1224CREATE TABLE mtb_mobile_domain (
1225    id int2,
1226    name text,
1227    rank int2 NOT NULL DEFAULT 0,
1228    PRIMARY KEY (id)
1229) TYPE=InnoDB;
1230
1231CREATE TABLE mtb_ownersstore_err (
1232    id int2,
1233    name text,
1234    rank int2 NOT NULL DEFAULT 0,
1235    PRIMARY KEY (id)
1236) TYPE=InnoDB;
1237
1238CREATE TABLE mtb_ownersstore_ips (
1239    id int2,
1240    name text,
1241    rank int2 NOT NULL DEFAULT 0,
1242    PRIMARY KEY (id)
1243) TYPE=InnoDB;
1244
1245CREATE TABLE mtb_constants (
1246    id text,
1247    name text,
1248    rank int2 NOT NULL DEFAULT 0,
1249    remarks text
1250) TYPE=InnoDB;
Note: See TracBrowser for help on using the repository browser.