source: temp/trunk/html/install/sql/create_table_pgsql.sql @ 7586

Revision 7586, 20.4 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 serial NOT NULL,
3    kiyaku_title text NOT NULL,
4    kiyaku_text text NOT NULL,
5    rank int4 NOT NULL DEFAULT 0,
6    creator_id int4 NOT NULL,
7    create_date timestamp NOT NULL DEFAULT now(),
8    update_date timestamp NOT NULL,
9    del_flg  int2 NOT NULL DEFAULT 0
10);
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);
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 int2,
35    end_age int2,
36    member int2,
37    order_date timestamp DEFAULT now(),
38    create_date timestamp NOT NULL DEFAULT now()
39);
40
41CREATE TABLE dtb_update (
42    module_id int4 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 int2 NOT NULL DEFAULT 0,
53    create_date timestamp NOT NULL DEFAULT now(),
54    update_date timestamp,
55    release_date timestamp NOT NULL
56);
57
58CREATE TABLE dtb_baseinfo (
59    company_name text,
60    company_kana text,
61    zip01 text,
62    zip02 text,
63    pref int2,
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 int2,
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 int2 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 timestamp,
111    top_tpl text,
112    product_tpl text,
113    detail_tpl text,
114    mypage_tpl text,
115    good_traded text,
116    message text
117);
118
119CREATE TABLE dtb_deliv (
120    deliv_id serial NOT NULL,
121    name text,
122    service_name text,
123    confirm_url text,
124    rank int4,
125    status int2 NOT NULL DEFAULT 1,
126    del_flg int2 NOT NULL DEFAULT 0,
127    creator_id int4 NOT NULL,
128    create_date timestamp NOT NULL DEFAULT now(),
129    update_date timestamp
130);
131
132CREATE TABLE dtb_delivtime (
133    deliv_id int4 NOT NULL,
134    time_id serial NOT NULL,
135    deliv_time text NOT NULL
136);
137
138CREATE TABLE dtb_delivfee (
139    deliv_id int4 NOT NULL,
140    fee_id serial NOT NULL,
141    fee text NOT NULL,
142    pref int2
143);
144
145CREATE TABLE dtb_payment (
146    payment_id serial NOT NULL,
147    payment_method text,
148    charge numeric,
149    rule numeric,
150    deliv_id int4 DEFAULT 0,
151    rank int4,
152    note text,
153    fix int2,
154    status int2 NOT NULL DEFAULT 1,
155    del_flg int2 NOT NULL DEFAULT 0,
156    creator_id int4 NOT NULL,
157    create_date timestamp NOT NULL DEFAULT now(),
158    update_date timestamp,
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);
174
175CREATE TABLE dtb_mailtemplate (
176    template_id int4 NOT NULL,
177    subject text,
178    header text,
179    footer text,
180    creator_id int4 NOT NULL,
181    del_flg int2 NOT NULL DEFAULT 0,
182    create_date timestamp NOT NULL DEFAULT now(),
183    update_date timestamp NOT NULL
184);
185
186CREATE TABLE dtb_mailmaga_template (
187    template_id serial NOT NULL UNIQUE,
188    subject text,
189    charge_image text,
190    mail_method int4,
191    header text,
192    body text,
193    main_title text,
194    main_comment text,
195    main_product_id int4,
196    sub_title text,
197    sub_comment text,
198    sub_product_id01 int4,
199    sub_product_id02 int4,
200    sub_product_id03 int4,
201    sub_product_id04 int4,
202    sub_product_id05 int4,
203    sub_product_id06 int4,
204    sub_product_id07 int4,
205    sub_product_id08 int4,
206    sub_product_id09 int4,
207    sub_product_id10 int4,
208    sub_product_id11 int4,
209    sub_product_id12 int4,
210    del_flg int2 NOT NULL DEFAULT 0,
211    creator_id int4 NOT NULL,
212    create_date timestamp NOT NULL DEFAULT now(),
213    update_date timestamp
214);
215
216CREATE TABLE dtb_send_history (
217    send_id serial NOT NULL,
218    mail_method int2,
219    subject text,
220    body text,
221    send_count int4,
222    complete_count int4 NOT NULL DEFAULT 0,
223    start_date timestamp,
224    end_date timestamp,
225    search_data text,
226    del_flg int2 NOT NULL DEFAULT 0,
227    creator_id int4 NOT NULL,
228    create_date timestamp NOT NULL DEFAULT now(),
229    update_date timestamp NOT NULL DEFAULT now()
230);
231
232CREATE TABLE dtb_send_customer (
233    customer_id int4,
234    send_id serial NOT NULL,
235    email text,
236    name text,
237    send_flag int2
238);
239
240CREATE TABLE dtb_products (
241    product_id serial NOT NULL UNIQUE,
242    name text,
243    deliv_fee numeric,
244    sale_limit numeric,
245    sale_unlimited int2 DEFAULT 0,
246    category_id int4,
247    rank int4,
248    status int2 NOT NULL DEFAULT 2,
249    product_flag text,
250    point_rate numeric,
251    comment1 text,
252    comment2 text,
253    comment3 text,
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 text,
266    main_image text,
267    main_large_image text,
268    sub_title1 text,
269    sub_comment1 text,
270    sub_image1 text,
271    sub_large_image1 text,
272    sub_title2 text,
273    sub_comment2 text,
274    sub_image2 text,
275    sub_large_image2 text,
276    sub_title3 text,
277    sub_comment3 text,
278    sub_image3 text,
279    sub_large_image3 text,
280    sub_title4 text,
281    sub_comment4 text,
282    sub_image4 text,
283    sub_large_image4 text,
284    sub_title5 text,
285    sub_comment5 text,
286    sub_image5 text,
287    sub_large_image5 text,
288    sub_title6 text,
289    sub_comment6 text,
290    sub_image6 text,
291    sub_large_image6 text,
292    del_flg int2 NOT NULL DEFAULT 0,
293    creator_id int4 NOT NULL,
294    create_date timestamp NOT NULL DEFAULT now(),
295    update_date timestamp,
296    deliv_date_id int4
297);
298
299CREATE TABLE dtb_products_class (
300    product_class_id serial NOT NULL UNIQUE,
301    product_id int4 NOT NULL,
302    classcategory_id1 int4 NOT NULL DEFAULT 0,
303    classcategory_id2 int4 NOT NULL DEFAULT 0,
304    product_code text,
305    stock numeric,
306    stock_unlimited int2 DEFAULT 0,
307    sale_limit numeric,
308    price01 numeric,
309    price02 numeric,
310    status int2,
311    creator_id int4 NOT NULL,
312    create_date timestamp NOT NULL DEFAULT now(),
313    update_date timestamp
314);
315
316CREATE TABLE dtb_class (
317    class_id serial NOT NULL,
318    name text,
319    status int2,
320    rank int4,
321    creator_id int4 NOT NULL,
322    create_date timestamp NOT NULL DEFAULT now(),
323    update_date timestamp,
324    del_flg  int2 NOT NULL DEFAULT 0,
325    product_id int4
326);
327
328CREATE TABLE dtb_classcategory (
329    classcategory_id serial NOT NULL,
330    name text,
331    class_id int4 NOT NULL,
332    status int2,
333    rank int4,
334    creator_id int4 NOT NULL,
335    create_date timestamp NOT NULL DEFAULT now(),
336    update_date timestamp,
337    del_flg  int2 NOT NULL DEFAULT 0
338);
339
340CREATE TABLE dtb_category (
341    category_id serial NOT NULL,
342    category_name text,
343    parent_category_id int4 NOT NULL DEFAULT 0,
344    level int4 NOT NULL,
345    rank int4,
346    creator_id int4 NOT NULL,
347    create_date timestamp NOT NULL DEFAULT now(),
348    update_date timestamp,
349    del_flg  int2 NOT NULL DEFAULT 0
350);
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 timestamp NOT NULL DEFAULT now(),
365    create_date timestamp NOT NULL DEFAULT now(),
366    year int2 NOT NULL,
367    month int2 NOT NULL,
368    day int2 NOT NULL,
369    wday int2 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);
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 int2 NOT NULL DEFAULT 0,
389    order_date timestamp DEFAULT now(),
390    create_date timestamp NOT NULL DEFAULT now()
391);
392
393CREATE TABLE dtb_recommend_products (
394    product_id int4 NOT NULL,
395    recommend_product_id serial NOT NULL,
396    rank int4 NOT NULL,
397    comment text,
398    status int2 NOT NULL DEFAULT 0,
399    creator_id int4 NOT NULL,
400    create_date timestamp NOT NULL DEFAULT now(),
401    update_date timestamp NOT NULL DEFAULT now()
402);
403
404CREATE TABLE dtb_review (
405    review_id serial NOT NULL,
406    product_id int4 NOT NULL,
407    reviewer_name text NOT NULL,
408    reviewer_url text,
409    sex int2,
410    customer_id int4,
411    recommend_level int2 NOT NULL,
412    title text NOT NULL,
413    comment text NOT NULL,
414    status int2 DEFAULT 2,
415    creator_id int4 NOT NULL,
416    create_date timestamp NOT NULL DEFAULT now(),
417    update_date timestamp,
418    del_flg  int2 NOT NULL DEFAULT 0
419);
420
421CREATE TABLE dtb_customer_reading (
422    reading_product_id int4 NOT NULL,
423    customer_id int4 NOT NULL,
424    create_date timestamp NOT NULL,
425    update_date timestamp NOT NULL DEFAULT NOW()
426);
427
428CREATE TABLE dtb_category_count (
429    category_id int4 NOT NULL,
430    product_count int4 NOT NULL,
431    create_date timestamp NOT NULL DEFAULT Now()
432);
433
434CREATE TABLE dtb_category_total_count (
435    category_id int4 NOT NULL,
436    product_count int4,
437    create_date timestamp NOT NULL DEFAULT Now()
438);
439
440CREATE TABLE dtb_news (
441    news_id serial NOT NULL UNIQUE,
442    news_date timestamp,
443    rank int4,
444    news_title text NOT NULL,
445    news_comment text,
446    news_url text,
447    news_select int2 NOT NULL DEFAULT 0,
448    link_method text,
449    creator_id int4 NOT NULL,
450    create_date timestamp NOT NULL DEFAULT now(),
451    update_date timestamp,
452    del_flg  int2 NOT NULL DEFAULT 0
453);
454
455CREATE TABLE dtb_best_products (
456    best_id serial NOT NULL,
457    category_id int4 NOT NULL,
458    rank int4 NOT NULL DEFAULT 0,
459    product_id int4 NOT NULL,
460    title text,
461    comment text,
462    creator_id int4 NOT NULL,
463    create_date timestamp NOT NULL DEFAULT now(),
464    update_date timestamp,
465    del_flg  int2 NOT NULL DEFAULT 0
466);
467
468CREATE TABLE dtb_mail_history (
469    send_id serial  NOT NULL,
470    order_id int4 NOT NULL,
471    send_date timestamp,
472    template_id int4,
473    creator_id int4 NOT NULL,
474    subject text,
475    mail_body text
476);
477
478CREATE TABLE dtb_customer (
479    customer_id serial  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 int2,
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 int2,
498    job int2,
499    birth timestamp,
500    password text,
501    reminder int2,
502    reminder_answer text,
503    secret_key text NOT NULL UNIQUE,
504    first_buy_date timestamp,
505    last_buy_date timestamp,
506    buy_times numeric DEFAULT 0,
507    buy_total numeric DEFAULT 0,
508    point numeric DEFAULT 0,
509    note text,
510    status int2 NOT NULL DEFAULT 1,
511    create_date timestamp NOT NULL DEFAULT now(),
512    update_date timestamp DEFAULT now(),
513    del_flg  int2 NOT NULL DEFAULT 0,
514    cell01 text,
515    cell02 text,
516    cell03 text
517);
518
519CREATE TABLE dtb_customer_mail (
520    email text NOT NULL UNIQUE,
521    mail_flag int2,
522    create_date timestamp NOT NULL DEFAULT now(),
523    update_date timestamp DEFAULT now()
524);
525
526CREATE TABLE dtb_customer_mail_temp (
527    email text NOT NULL UNIQUE,
528    mail_flag int2,
529    temp_id text NOT NULL UNIQUE,
530    end_flag int2,
531    update_date timestamp NOT NULL DEFAULT Now(),
532    create_data timestamp NOT NULL DEFAULT Now()
533);
534
535CREATE TABLE dtb_order (
536    order_id serial NOT NULL,
537    order_temp_id text,
538    customer_id int4 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 int2,
557    order_birth timestamp,
558    order_job int4,
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 int4,
585    payment_method text,
586    deliv_id int4,
587    deliv_time_id int4,
588    deliv_time text,
589    deliv_no text,
590    note text,
591    status int2,
592    create_date timestamp NOT NULL DEFAULT now(),
593    loan_result text,
594    credit_result text,
595    credit_msg text,
596    update_date timestamp,
597    commit_date timestamp,
598    del_flg  int2 NOT NULL DEFAULT 0,
599    deliv_date text,
600    conveni_data text,
601    cell01 text,
602    cell02 text,
603    cell03 text
604);
605
606CREATE TABLE dtb_order_temp (
607    order_temp_id text NOT NULL,
608    customer_id int4 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 int2,
627    order_birth timestamp,
628    order_job int4,
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 int4,
655    payment_method text,
656    deliv_id int4,
657    deliv_time_id int4,
658    deliv_time text,
659    deliv_no text,
660    note text,
661    mail_flag int2,
662    status int2,
663    deliv_check int2,
664    point_check int2,
665    loan_result text,
666    credit_result text,
667    credit_msg text,
668    create_date timestamp NOT NULL DEFAULT now(),
669    update_date timestamp,
670    del_flg  int2 NOT NULL DEFAULT 0,
671    deliv_date text,
672    conveni_data text,
673    cell01 text,
674    cell02 text,
675    cell03 text,
676    order_id int4
677);
678
679CREATE TABLE dtb_other_deliv (
680    other_deliv_id serial NOT NULL,
681    customer_id int4 NOT NULL,
682    name01 text,
683    name02 text,
684    kana01 text,
685    kana02 text,
686    zip01 text,
687    zip02 text,
688    pref text,
689    addr01 text,
690    addr02 text,
691    tel01 text,
692    tel02 text,
693    tel03 text
694);
695
696CREATE TABLE dtb_order_detail (
697    order_id int4 NOT NULL,
698    product_id int4 NOT NULL,
699    classcategory_id1 int4 NOT NULL,
700    classcategory_id2 int4 NOT NULL,
701    product_name text NOT NULL,
702    product_code text,
703    classcategory_name1 text,
704    classcategory_name2 text,
705    price numeric,
706    quantity numeric,
707    point_rate numeric
708);
709
710CREATE TABLE mtb_pref (
711    pref_id int2 NOT NULL,
712    pref_name text,
713    rank int2 NOT NULL DEFAULT 0
714);
715
716CREATE TABLE dtb_member (
717    member_id serial NOT NULL,
718    name text,
719    department text,
720    login_id text NOT NULL,
721    password text NOT NULL,
722    authority int2 NOT NULL,
723    rank int4 NOT NULL DEFAULT 0,
724    work int2 NOT NULL DEFAULT 1,
725    del_flg int2 NOT NULL DEFAULT 0,
726    creator_id int4 NOT NULL,
727    update_date timestamp,
728    create_date timestamp NOT NULL DEFAULT now(),
729    login_date timestamp
730);
731
732CREATE TABLE dtb_question (
733    question_id serial NOT NULL,
734    question_name text,
735    question text,
736    create_date timestamp NOT NULL DEFAULT now(),
737    del_flg  int2 NOT NULL DEFAULT 0
738);
739
740CREATE TABLE dtb_question_result (
741    result_id serial NOT NULL,
742    question_id int4 NOT NULL,
743    question_date timestamp,
744    question_name text,
745    name01 text,
746    name02 text,
747    kana01 text,
748    kana02 text,
749    zip01 text,
750    zip02 text,
751    pref int2,
752    addr01 text,
753    addr02 text,
754    tel01 text,
755    tel02 text,
756    tel03 text,
757    mail01 text,
758    question01 text,
759    question02 text,
760    question03 text,
761    question04 text,
762    question05 text,
763    question06 text,
764    create_date timestamp NOT NULL DEFAULT now(),
765    del_flg  int2 NOT NULL DEFAULT 0
766);
767
768CREATE TABLE dtb_bat_relate_products (
769    product_id int4,
770    relate_product_id int4,
771    customer_id int4,
772    create_date timestamp DEFAULT now()
773);
774
775CREATE TABLE dtb_campaign (
776    campaign_id serial NOT NULL,
777    campaign_name text,
778    campaign_point_rate numeric NOT NULL,
779    campaign_point_type int2,
780    start_date timestamp NOT NULL,
781    end_date timestamp NOT NULL,
782    search_condition text,
783    del_flg int2 NOT NULL DEFAULT 0,
784    create_date timestamp NOT NULL,
785    update_date timestamp NOT NULL DEFAULT now()
786);
787
788CREATE TABLE dtb_campaign_detail (
789    campaign_id int4 NOT NULL,
790    product_id int4 NOT NULL,
791    campaign_point_rate numeric NOT NULL
792);
793
794CREATE TABLE dtb_pagelayout (
795    page_id serial NOT NULL,
796    page_name text,
797    url text NOT NULL,
798    php_dir text,
799    tpl_dir text,
800    filename text,
801    header_chk int2 DEFAULT 1,
802    footer_chk int2 DEFAULT 1,
803    edit_flg int2 DEFAULT 1,
804    author text,
805    description text,
806    keyword text,
807    update_url text,
808    create_date timestamp NOT NULL DEFAULT now(),
809    update_date timestamp NOT NULL DEFAULT now()
810);
811
812CREATE TABLE dtb_bloc (
813    bloc_id serial NOT NULL,
814    bloc_name text,
815    tpl_path text,
816    filename text NOT NULL UNIQUE,
817    create_date timestamp NOT NULL DEFAULT now(),
818    update_date timestamp NOT NULL DEFAULT now(),
819    php_path text,
820    del_flg int2 NOT NULL DEFAULT 0
821);
822
823CREATE TABLE dtb_blocposition (
824    page_id int4 NOT NULL,
825    target_id int4,
826    bloc_id int4,
827    bloc_row int4,
828    filename text
829);
830
831CREATE TABLE dtb_csv (
832    no serial,
833    csv_id int4 NOT NULL,
834    col text,
835    disp_name text,
836    rank int4,
837    status int2 NOT NULL DEFAULT 1,
838    create_date timestamp NOT NULL DEFAULT now(),
839    update_date timestamp NOT NULL DEFAULT now()
840);
841
842CREATE TABLE dtb_csv_sql (
843    sql_id serial,
844    sql_name text NOT NULL,
845    csv_sql text,
846    update_date timestamp NOT NULL DEFAULT now(),
847    create_date timestamp NOT NULL DEFAULT now()
848);
849
850CREATE TABLE dtb_user_regist (
851    user_id serial NOT NULL,
852    org_name text,
853    post_name text,
854    name01 text,
855    name02 text,
856    kana01 text,
857    kana02 text,
858    email text NOT NULL,
859    url text,
860    note text,
861    secret_key text NOT NULL UNIQUE,
862    status int2 NOT NULL,
863    del_flg int2 DEFAULT 0,
864    create_date timestamp NOT NULL,
865    update_date timestamp NOT NULL DEFAULT now()
866);
867
868create table dtb_templates
869(
870template_code       text        NOT NULL UNIQUE ,
871template_name       text            ,
872create_date     timestamp       NOT NULL    default now(),
873update_date     timestamp       NOT NULL    default now()
874);
875
876create table dtb_table_comment
877(
878id  serial,
879table_name  text,
880column_name text,
881description text
882);
Note: See TracBrowser for help on using the repository browser.