source: temp/trunk/html/install/create_table.sql @ 2569

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