source: temp/trunk/html/install/sql/create_table_mysql.sql @ 7569

Revision 7569, 21.2 KB checked in by kakinaka, 20 years ago (diff)

blank

  • Property svn:mime-type set to application/octet-stream
Line 
1CREATE TABLE dtb_kiyaku (
2    kiyaku_id int auto_increment primary key NOT NULL,
3    kiyaku_title text NOT NULL,
4    kiyaku_text text NOT NULL,
5    rank int NOT NULL DEFAULT 0,
6    creator_id int NOT NULL,
7    create_date datetime NOT NULL ,
8    update_date datetime NOT NULL,
9    del_flg  smallint NOT NULL DEFAULT 0
10) TYPE=InnoDB ;
11
12CREATE TABLE mtb_zip (
13    code text,
14    old_zipcode text,
15    zipcode text,
16    state_kana text,
17    city_kana text,
18    town_kana text,
19    state text,
20    city text,
21    town text,
22    flg1 text,
23    flg2 text,
24    flg3 text,
25    flg4 text,
26    flg5 text,
27    flg6 text
28) TYPE=InnoDB ;
29
30CREATE TABLE dtb_bat_order_daily_age (
31    order_count numeric NOT NULL DEFAULT 0,
32    total numeric NOT NULL DEFAULT 0,
33    total_average numeric NOT NULL DEFAULT 0,
34    start_age smallint,
35    end_age smallint,
36    member smallint,
37    order_date datetime,
38    create_date datetime NOT NULL
39) TYPE=InnoDB ;
40
41CREATE TABLE dtb_update (
42    module_id int NOT NULL UNIQUE,
43    module_name text NOT NULL,
44    now_version text,
45    latest_version text NOT NULL,
46    module_explain text,
47    main_php text NOT NULL,
48    extern_php text NOT NULL,
49    install_sql text,
50    uninstall_sql text,
51    other_files text,
52    del_flg smallint NOT NULL DEFAULT 0,
53    create_date datetime NOT NULL ,
54    update_date datetime,
55    release_date datetime NOT NULL
56) TYPE=InnoDB ;
57
58CREATE TABLE dtb_baseinfo (
59    company_name text,
60    company_kana text,
61    zip01 text,
62    zip02 text,
63    pref smallint,
64    addr01 text,
65    addr02 text,
66    tel01 text,
67    tel02 text,
68    tel03 text,
69    fax01 text,
70    fax02 text,
71    fax03 text,
72    business_hour text,
73    law_company text,
74    law_manager text,
75    law_zip01 text,
76    law_zip02 text,
77    law_pref smallint,
78    law_addr01 text,
79    law_addr02 text,
80    law_tel01 text,
81    law_tel02 text,
82    law_tel03 text,
83    law_fax01 text,
84    law_fax02 text,
85    law_fax03 text,
86    law_email text,
87    law_url text,
88    law_term01 text,
89    law_term02 text,
90    law_term03 text,
91    law_term04 text,
92    law_term05 text,
93    law_term06 text,
94    law_term07 text,
95    law_term08 text,
96    law_term09 text,
97    law_term10 text,
98    tax numeric DEFAULT 5,
99    tax_rule smallint DEFAULT 1,
100    email01 text,
101    email02 text,
102    email03 text,
103    email04 text,
104    email05 text,
105    free_rule numeric,
106    shop_name text,
107    shop_kana text,
108    point_rate numeric,
109    welcome_point numeric,
110    update_date datetime,
111    top_tpl text,
112    product_tpl text,
113    detail_tpl text,
114    mypage_tpl text,
115    good_traded text,
116    message text
117) TYPE=InnoDB ;
118
119CREATE TABLE dtb_deliv (
120    deliv_id int auto_increment primary key NOT NULL,
121    name text,
122    service_name text,
123    confirm_url text,
124    rank int,
125    status smallint NOT NULL DEFAULT 1,
126    del_flg smallint NOT NULL DEFAULT 0,
127    creator_id int NOT NULL,
128    create_date datetime NOT NULL ,
129    update_date datetime
130) TYPE=InnoDB ;
131
132CREATE TABLE dtb_delivtime (
133    deliv_id int NOT NULL,
134    time_id int auto_increment primary key NOT NULL,
135    deliv_time text NOT NULL
136) TYPE=InnoDB ;
137
138CREATE TABLE dtb_delivfee (
139    deliv_id int NOT NULL,
140    fee_id int auto_increment primary key NOT NULL,
141    fee text NOT NULL,
142    pref smallint
143) TYPE=InnoDB ;
144
145CREATE TABLE dtb_payment (
146    payment_id int auto_increment primary key NOT NULL,
147    payment_method text,
148    charge numeric,
149    rule numeric,
150    deliv_id int DEFAULT 0,
151    rank int,
152    note text,
153    fix smallint,
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    payment_image text,
160    upper_rule numeric
161    module_id int4,
162    module_path text,
163    memo01 text,
164    memo02 text,
165    memo03 text,
166    memo04 text,
167    memo05 text,
168    memo06 text,
169    memo07 text,
170    memo08 text,
171    memo09 text,
172    memo10 text
173) TYPE=InnoDB ;
174
175CREATE TABLE dtb_mailtemplate (
176    template_id int NOT NULL,
177    subject text,
178    header text,
179    footer text,
180    creator_id int NOT NULL,
181    del_flg smallint NOT NULL DEFAULT 0,
182    create_date datetime NOT NULL ,
183    update_date datetime NOT NULL
184) TYPE=InnoDB ;
185
186CREATE TABLE dtb_mailmaga_template (
187    template_id int auto_increment primary key NOT NULL UNIQUE,
188    subject text,
189    charge_image text,
190    mail_method int,
191    header text,
192    body text,
193    main_title text,
194    main_comment text,
195    main_product_id int,
196    sub_title text,
197    sub_comment text,
198    sub_product_id01 int,
199    sub_product_id02 int,
200    sub_product_id03 int,
201    sub_product_id04 int,
202    sub_product_id05 int,
203    sub_product_id06 int,
204    sub_product_id07 int,
205    sub_product_id08 int,
206    sub_product_id09 int,
207    sub_product_id10 int,
208    sub_product_id11 int,
209    sub_product_id12 int,
210    del_flg smallint NOT NULL DEFAULT 0,
211    creator_id int NOT NULL,
212    create_date datetime NOT NULL ,
213    update_date datetime
214) TYPE=InnoDB ;
215
216CREATE TABLE dtb_send_history (
217    send_id int auto_increment primary key NOT NULL,
218    mail_method smallint,
219    subject text,
220    body text,
221    send_count int,
222    complete_count int NOT NULL DEFAULT 0,
223    start_date datetime,
224    end_date datetime,
225    search_data text,
226    del_flg smallint NOT NULL DEFAULT 0,
227    creator_id int NOT NULL,
228    create_date datetime NOT NULL ,
229    update_date datetime NOT NULL
230) TYPE=InnoDB ;
231
232CREATE TABLE dtb_send_customer (
233    customer_id int,
234    send_id int auto_increment primary key NOT NULL,
235    email text,
236    name text,
237    send_flag smallint
238) TYPE=InnoDB ;
239
240CREATE TABLE dtb_products (
241    product_id int auto_increment primary key NOT NULL UNIQUE,
242    name text,
243    deliv_fee numeric,
244    sale_limit numeric,
245    sale_unlimited smallint DEFAULT 0,
246    category_id int,
247    rank int,
248    status smallint NOT NULL DEFAULT 2,
249    product_flag text,
250    point_rate numeric,
251    comment1 text,
252    comment2 text,
253    comment3 mediumtext,
254    comment4 text,
255    comment5 text,
256    comment6 text,
257    file1 text,
258    file2 text,
259    file3 text,
260    file4 text,
261    file5 text,
262    file6 text,
263    main_list_comment text,
264    main_list_image text,
265    main_comment mediumtext,
266    main_image text,
267    main_large_image text,
268    sub_title1 text,
269    sub_comment1 mediumtext,
270    sub_image1 text,
271    sub_large_image1 text,
272    sub_title2 text,
273    sub_comment2 mediumtext,
274    sub_image2 text,
275    sub_large_image2 text,
276    sub_title3 text,
277    sub_comment3 mediumtext,
278    sub_image3 text,
279    sub_large_image3 text,
280    sub_title4 text,
281    sub_comment4 mediumtext,
282    sub_image4 text,
283    sub_large_image4 text,
284    sub_title5 text,
285    sub_comment5 mediumtext,
286    sub_image5 text,
287    sub_large_image5 text,
288    sub_title6 text,
289    sub_comment6 mediumtext,
290    sub_image6 text,
291    sub_large_image6 text,
292    del_flg smallint NOT NULL DEFAULT 0,
293    creator_id int NOT NULL,
294    create_date datetime NOT NULL ,
295    update_date datetime,
296    deliv_date_id int
297) TYPE=InnoDB ;
298
299CREATE TABLE dtb_products_class (
300    product_class_id int auto_increment primary key NOT NULL UNIQUE,
301    product_id int NOT NULL,
302    classcategory_id1 int NOT NULL DEFAULT 0,
303    classcategory_id2 int NOT NULL DEFAULT 0,
304    product_code text,
305    stock numeric,
306    stock_unlimited smallint DEFAULT 0,
307    sale_limit numeric,
308    price01 numeric,
309    price02 numeric,
310    status smallint,
311    creator_id int NOT NULL,
312    create_date datetime NOT NULL ,
313    update_date datetime
314) TYPE=InnoDB ;
315
316CREATE TABLE dtb_class (
317    class_id int auto_increment primary key NOT NULL,
318    name text,
319    status smallint,
320    rank int,
321    creator_id int NOT NULL,
322    create_date datetime NOT NULL ,
323    update_date datetime,
324    del_flg  smallint NOT NULL DEFAULT 0,
325    product_id int
326) TYPE=InnoDB ;
327
328CREATE TABLE dtb_classcategory (
329    classcategory_id int auto_increment primary key NOT NULL,
330    name text,
331    class_id int NOT NULL,
332    status smallint,
333    rank int,
334    creator_id int NOT NULL,
335    create_date datetime NOT NULL ,
336    update_date datetime,
337    del_flg  smallint NOT NULL DEFAULT 0
338) TYPE=InnoDB ;
339
340CREATE TABLE dtb_category (
341    category_id int auto_increment primary key NOT NULL,
342    category_name text,
343    parent_category_id int NOT NULL DEFAULT 0,
344    level int NOT NULL,
345    rank int,
346    creator_id int NOT NULL,
347    create_date datetime NOT NULL ,
348    update_date datetime,
349    del_flg  smallint NOT NULL DEFAULT 0
350) TYPE=InnoDB ;
351
352CREATE TABLE dtb_bat_order_daily (
353    total_order numeric NOT NULL DEFAULT 0,
354    member numeric NOT NULL DEFAULT 0,
355    nonmember numeric NOT NULL DEFAULT 0,
356    men numeric NOT NULL DEFAULT 0,
357    women numeric NOT NULL DEFAULT 0,
358    men_member numeric NOT NULL DEFAULT 0,
359    men_nonmember numeric NOT NULL DEFAULT 0,
360    women_member numeric NOT NULL DEFAULT 0,
361    women_nonmember numeric NOT NULL DEFAULT 0,
362    total numeric NOT NULL DEFAULT 0,
363    total_average numeric NOT NULL DEFAULT 0,
364    order_date datetime NOT NULL ,
365    create_date datetime NOT NULL ,
366    year smallint NOT NULL,
367    month smallint NOT NULL,
368    day smallint NOT NULL,
369    wday smallint NOT NULL,
370    key_day text NOT NULL,
371    key_month text NOT NULL,
372    key_year text NOT NULL,
373    key_wday text NOT NULL
374) TYPE=InnoDB ;
375
376CREATE TABLE dtb_bat_order_daily_hour (
377    total_order numeric NOT NULL DEFAULT 0,
378    member numeric NOT NULL DEFAULT 0,
379    nonmember numeric NOT NULL DEFAULT 0,
380    men numeric NOT NULL DEFAULT 0,
381    women numeric NOT NULL DEFAULT 0,
382    men_member numeric NOT NULL DEFAULT 0,
383    men_nonmember numeric NOT NULL DEFAULT 0,
384    women_member numeric NOT NULL DEFAULT 0,
385    women_nonmember numeric NOT NULL DEFAULT 0,
386    total numeric NOT NULL DEFAULT 0,
387    total_average numeric NOT NULL DEFAULT 0,
388    hour smallint NOT NULL DEFAULT 0,
389    order_date datetime ,
390    create_date datetime NOT NULL
391) TYPE=InnoDB ;
392
393CREATE TABLE dtb_recommend_products (
394    product_id int NOT NULL,
395    recommend_product_id int,
396    rank int NOT NULL,
397    comment text,
398    status smallint NOT NULL DEFAULT 0,
399    creator_id int NOT NULL,
400    create_date datetime NOT NULL ,
401    update_date datetime NOT NULL
402) TYPE=InnoDB ;
403
404CREATE TABLE dtb_review (
405    review_id int auto_increment primary key NOT NULL,
406    product_id int NOT NULL,
407    reviewer_name text NOT NULL,
408    reviewer_url text,
409    sex smallint,
410    customer_id int,
411    recommend_level smallint NOT NULL,
412    title text NOT NULL,
413    comment text NOT NULL,
414    status smallint DEFAULT 2,
415    creator_id int NOT NULL,
416    create_date datetime,
417    update_date datetime,
418    del_flg  smallint NOT NULL DEFAULT 0
419) TYPE=InnoDB ;
420
421CREATE TABLE dtb_customer_reading (
422    reading_product_id int NOT NULL,
423    customer_id int NOT NULL,
424    create_date datetime NOT NULL,
425    update_date datetime NOT NULL
426) TYPE=InnoDB ;
427
428CREATE TABLE dtb_category_count (
429    category_id int NOT NULL,
430    product_count int NOT NULL,
431    create_date datetime NOT NULL
432) TYPE=InnoDB ;
433
434CREATE TABLE dtb_category_total_count (
435    category_id int NOT NULL,
436    product_count int,
437    create_date datetime NOT NULL
438) TYPE=InnoDB ;
439
440CREATE TABLE dtb_news (
441    news_id int auto_increment primary key NOT NULL UNIQUE,
442    news_date datetime,
443    rank int,
444    news_title text NOT NULL,
445    news_comment text,
446    news_url text,
447    news_select smallint NOT NULL DEFAULT 0,
448    link_method text,
449    creator_id int NOT NULL,
450    create_date datetime NOT NULL ,
451    update_date datetime,
452    del_flg  smallint NOT NULL DEFAULT 0
453) TYPE=InnoDB ;
454
455CREATE TABLE dtb_best_products (
456    best_id int auto_increment primary key NOT NULL,
457    category_id int NOT NULL,
458    rank int NOT NULL DEFAULT 0,
459    product_id int NOT NULL,
460    title text,
461    comment text,
462    creator_id int NOT NULL,
463    create_date datetime NOT NULL ,
464    update_date datetime,
465    del_flg  smallint NOT NULL DEFAULT 0
466) TYPE=InnoDB ;
467
468CREATE TABLE dtb_mail_history (
469    send_id int auto_increment primary key  NOT NULL,
470    order_id int NOT NULL,
471    send_date datetime,
472    template_id int,
473    creator_id int NOT NULL,
474    subject text,
475    mail_body text
476) TYPE=InnoDB ;
477
478CREATE TABLE dtb_customer (
479    customer_id int auto_increment primary key  NOT NULL,
480    name01 text NOT NULL,
481    name02 text NOT NULL,
482    kana01 text NOT NULL,
483    kana02 text NOT NULL,
484    zip01 text,
485    zip02 text,
486    pref smallint,
487    addr01 text,
488    addr02 text,
489    email text NOT NULL,
490    email_mobile text,
491    tel01 text,
492    tel02 text,
493    tel03 text,
494    fax01 text,
495    fax02 text,
496    fax03 text,
497    sex smallint,
498    job smallint,
499    birth datetime,
500    password text,
501    reminder smallint,
502    reminder_answer text,
503    secret_key varchar(50) NOT NULL UNIQUE,
504    first_buy_date datetime,
505    last_buy_date datetime,
506    buy_times numeric DEFAULT 0,
507    buy_total numeric DEFAULT 0,
508    point numeric DEFAULT 0,
509    note text,
510    status smallint NOT NULL DEFAULT 1,
511    create_date datetime NOT NULL ,
512    update_date datetime ,
513    del_flg  smallint NOT NULL DEFAULT 0,
514    cell01 text,
515    cell02 text,
516    cell03 text
517) TYPE=InnoDB ;
518
519CREATE TABLE dtb_customer_mail (
520    email varchar(50) NOT NULL UNIQUE,
521    mail_flag smallint,
522    create_date datetime NOT NULL ,
523    update_date datetime
524) TYPE=InnoDB ;
525
526CREATE TABLE dtb_customer_mail_temp (
527    email varchar(50) NOT NULL UNIQUE,
528    mail_flag smallint,
529    temp_id varchar(50) NOT NULL UNIQUE,
530    end_flag smallint,
531    update_date datetime NOT NULL ,
532    create_data datetime NOT NULL
533) TYPE=InnoDB ;
534
535CREATE TABLE dtb_order (
536    order_id int auto_increment primary key NOT NULL,
537    order_temp_id text,
538    customer_id int NOT NULL,
539    message text,
540    order_name01 text,
541    order_name02 text,
542    order_kana01 text,
543    order_kana02 text,
544    order_email text,
545    order_tel01 text,
546    order_tel02 text,
547    order_tel03 text,
548    order_fax01 text,
549    order_fax02 text,
550    order_fax03 text,
551    order_zip01 text,
552    order_zip02 text,
553    order_pref text,
554    order_addr01 text,
555    order_addr02 text,
556    order_sex smallint,
557    order_birth datetime,
558    order_job int,
559    deliv_name01 text,
560    deliv_name02 text,
561    deliv_kana01 text,
562    deliv_kana02 text,
563    deliv_tel01 text,
564    deliv_tel02 text,
565    deliv_tel03 text,
566    deliv_fax01 text,
567    deliv_fax02 text,
568    deliv_fax03 text,
569    deliv_zip01 text,
570    deliv_zip02 text,
571    deliv_pref text,
572    deliv_addr01 text,
573    deliv_addr02 text,
574    subtotal numeric,
575    discount numeric,
576    deliv_fee numeric,
577    charge numeric,
578    use_point numeric,
579    add_point numeric,
580    birth_point numeric DEFAULT 0,
581    tax numeric,
582    total numeric,
583    payment_total numeric,
584    payment_id int,
585    payment_method text,
586    deliv_id int,
587    deliv_time_id int,
588    deliv_time text,
589    deliv_no text,
590    note text,
591    status smallint,
592    create_date datetime NOT NULL ,
593    loan_result text,
594    credit_result text,
595    credit_msg text,
596    update_date datetime,
597    commit_date text,
598    del_flg  smallint NOT NULL DEFAULT 0,
599    deliv_date text,
600    conveni_data text,
601    cell01 text,
602    cell02 text,
603    cell03 text
604) TYPE=InnoDB ;
605
606CREATE TABLE dtb_order_temp (
607    order_temp_id text NOT NULL,
608    customer_id int NOT NULL,
609    message text,
610    order_name01 text,
611    order_name02 text,
612    order_kana01 text,
613    order_kana02 text,
614    order_email text,
615    order_tel01 text,
616    order_tel02 text,
617    order_tel03 text,
618    order_fax01 text,
619    order_fax02 text,
620    order_fax03 text,
621    order_zip01 text,
622    order_zip02 text,
623    order_pref text,
624    order_addr01 text,
625    order_addr02 text,
626    order_sex smallint,
627    order_birth datetime,
628    order_job int,
629    deliv_name01 text,
630    deliv_name02 text,
631    deliv_kana01 text,
632    deliv_kana02 text,
633    deliv_tel01 text,
634    deliv_tel02 text,
635    deliv_tel03 text,
636    deliv_fax01 text,
637    deliv_fax02 text,
638    deliv_fax03 text,
639    deliv_zip01 text,
640    deliv_zip02 text,
641    deliv_pref text,
642    deliv_addr01 text,
643    deliv_addr02 text,
644    subtotal numeric,
645    discount numeric,
646    deliv_fee numeric,
647    charge numeric,
648    use_point numeric,
649    add_point numeric,
650    birth_point numeric DEFAULT 0,
651    tax numeric,
652    total numeric,
653    payment_total numeric,
654    payment_id int,
655    payment_method text,
656    deliv_id int,
657    deliv_time_id int,
658    deliv_time text,
659    deliv_no text,
660    note text,
661    mail_flag smallint,
662    status smallint,
663    deliv_check smallint,
664    point_check smallint,
665    loan_result text,
666    credit_result text,
667    credit_msg text,
668    create_date datetime NOT NULL ,
669    update_date datetime,
670    del_flg  smallint NOT NULL DEFAULT 0,
671    deliv_date text,
672    conveni_data text,
673    cell01 text,
674    cell02 text,
675    cell03 text
676) TYPE=InnoDB ;
677
678CREATE TABLE dtb_other_deliv (
679    other_deliv_id int auto_increment primary key NOT NULL,
680    customer_id int NOT NULL,
681    name01 text,
682    name02 text,
683    kana01 text,
684    kana02 text,
685    zip01 text,
686    zip02 text,
687    pref text,
688    addr01 text,
689    addr02 text,
690    tel01 text,
691    tel02 text,
692    tel03 text
693) TYPE=InnoDB ;
694
695CREATE TABLE dtb_order_detail (
696    order_id int NOT NULL,
697    product_id int NOT NULL,
698    classcategory_id1 int NOT NULL,
699    classcategory_id2 int NOT NULL,
700    product_name text NOT NULL,
701    product_code text,
702    classcategory_name1 text,
703    classcategory_name2 text,
704    price numeric,
705    quantity numeric,
706    point_rate numeric
707) TYPE=InnoDB ;
708
709CREATE TABLE mtb_pref (
710    pref_id smallint NOT NULL,
711    pref_name text,
712    rank smallint NOT NULL DEFAULT 0
713) TYPE=InnoDB ;
714
715CREATE TABLE dtb_member (
716    member_id int auto_increment primary key NOT NULL,
717    name text,
718    department text,
719    login_id text NOT NULL,
720    password text NOT NULL,
721    authority smallint NOT NULL,
722    rank int NOT NULL DEFAULT 0,
723    work smallint NOT NULL DEFAULT 1,
724    del_flg smallint NOT NULL DEFAULT 0,
725    creator_id int NOT NULL,
726    update_date datetime,
727    create_date datetime NOT NULL ,
728    login_date datetime
729) TYPE=InnoDB ;
730
731CREATE TABLE dtb_question (
732    question_id int auto_increment primary key NOT NULL,
733    question_name text,
734    question text,
735    create_date datetime NOT NULL ,
736    del_flg  smallint NOT NULL DEFAULT 0
737) TYPE=InnoDB ;
738
739CREATE TABLE dtb_question_result (
740    result_id int auto_increment primary key NOT NULL,
741    question_id int NOT NULL,
742    question_date datetime,
743    question_name text,
744    name01 text,
745    name02 text,
746    kana01 text,
747    kana02 text,
748    zip01 text,
749    zip02 text,
750    pref smallint,
751    addr01 text,
752    addr02 text,
753    tel01 text,
754    tel02 text,
755    tel03 text,
756    mail01 text,
757    question01 text,
758    question02 text,
759    question03 text,
760    question04 text,
761    question05 text,
762    question06 text,
763    create_date datetime NOT NULL ,
764    del_flg  smallint NOT NULL DEFAULT 0
765) TYPE=InnoDB ;
766
767CREATE TABLE dtb_bat_relate_products (
768    product_id int,
769    relate_product_id int,
770    customer_id int,
771    create_date datetime
772) TYPE=InnoDB ;
773
774CREATE TABLE dtb_campaign (
775    campaign_id int auto_increment primary key NOT NULL,
776    campaign_name text,
777    campaign_point_rate numeric NOT NULL,
778    campaign_point_type smallint,
779    start_date datetime NOT NULL,
780    end_date datetime NOT NULL,
781    search_condition text,
782    del_flg smallint NOT NULL DEFAULT 0,
783    create_date datetime NOT NULL,
784    update_date datetime NOT NULL
785) TYPE=InnoDB ;
786
787CREATE TABLE dtb_campaign_detail (
788    campaign_id int NOT NULL,
789    product_id int NOT NULL,
790    campaign_point_rate numeric NOT NULL
791) TYPE=InnoDB ;
792
793CREATE TABLE dtb_pagelayout (
794    page_id int auto_increment primary key NOT NULL,
795    page_name text,
796    url text NOT NULL,
797    php_dir text,
798    tpl_dir text,
799    filename text,
800    header_chk smallint DEFAULT 1,
801    footer_chk smallint DEFAULT 1,
802    edit_flg smallint DEFAULT 1,
803    author text,
804    description text,
805    keyword text,
806    update_url text,
807    create_date datetime NOT NULL ,
808    update_date datetime NOT NULL
809) TYPE=InnoDB ;
810
811CREATE TABLE dtb_bloc (
812    bloc_id int auto_increment primary key NOT NULL,
813    bloc_name text,
814    tpl_path text,
815    filename varchar(50) NOT NULL UNIQUE,
816    create_date datetime NOT NULL ,
817    update_date datetime NOT NULL ,
818    php_path text,
819    del_flg smallint NOT NULL DEFAULT 0
820) TYPE=InnoDB ;
821
822CREATE TABLE dtb_blocposition (
823    page_id int NOT NULL,
824    target_id int,
825    bloc_id int,
826    bloc_row int,
827    filename text
828) TYPE=InnoDB ;
829
830CREATE TABLE dtb_csv (
831    no int auto_increment primary key,
832    csv_id int NOT NULL,
833    col text,
834    disp_name text,
835    rank int,
836    status smallint NOT NULL DEFAULT 1,
837    create_date datetime NOT NULL ,
838    update_date datetime NOT NULL
839) TYPE=InnoDB ;
840
841CREATE TABLE dtb_csv_sql (
842    sql_id int auto_increment primary key,
843    sql_name text NOT NULL,
844    csv_sql text,
845    update_date datetime NOT NULL,
846    create_date datetime NOT NULL
847) TYPE=InnoDB ;
848
849CREATE TABLE dtb_user_regist (
850    user_id int auto_increment primary key NOT NULL,
851    org_name text,
852    post_name text,
853    name01 text,
854    name02 text,
855    kana01 text,
856    kana02 text,
857    email text NOT NULL,
858    url text,
859    note text,
860    secret_key varchar(50) NOT NULL UNIQUE,
861    status smallint NOT NULL,
862    del_flg smallint DEFAULT 0,
863    create_date datetime NOT NULL,
864    update_date datetime NOT NULL
865) TYPE=InnoDB ;
866
867CREATE TABLE dtb_templates
868(
869    template_code       varchar(50) NOT NULL UNIQUE ,
870    template_name       text            ,
871    create_date     datetime        NOT NULL    ,
872    update_date     datetime        NOT NULL   
873) TYPE=InnoDB ;
874
875CREATE TABLE dtb_table_comment
876(
877    id  int auto_increment primary key,
878    table_name  text,
879    column_name text,
880    description text
881) TYPE=InnoDB ;
Note: See TracBrowser for help on using the repository browser.