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

Revision 17623, 28.6 KB checked in by Yammy, 16 years ago (diff)

http://svn.ec-cube.net/open_trac/ticket/362
カレンダーブロックの定休日設定

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