Ignore:
Timestamp:
2013/03/15 19:12:17 (11 years ago)
Author:
h_yoshimoto
Message:

#2193 税率チームのコミットをマージ(from camp/camp-2_13-tax)

Location:
branches/version-2_13-dev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev

  • branches/version-2_13-dev/html/install/sql/create_table_pgsql.sql

    r22218 r22736  
    7474    zip01 text, 
    7575    zip02 text, 
     76    country_id int, 
    7677    pref smallint, 
    7778    addr01 text, 
     
    8889    law_zip01 text, 
    8990    law_zip02 text, 
     91    law_country_id int, 
    9092    law_pref smallint, 
    9193    law_addr01 text, 
     
    109111    law_term09 text, 
    110112    law_term10 text, 
    111     tax numeric NOT NULL DEFAULT 5, 
    112     tax_rule smallint NOT NULL DEFAULT 1, 
    113113    email01 text, 
    114114    email02 text, 
     
    485485    zip01 text, 
    486486    zip02 text, 
     487    country_id int, 
    487488    pref smallint, 
    488489    addr01 text, 
     
    538539    order_zip01 text, 
    539540    order_zip02 text, 
     541    order_country_id int, 
    540542    order_pref smallint, 
    541543    order_addr01 text, 
     
    597599    order_zip01 text, 
    598600    order_zip02 text, 
     601    order_country_id int, 
    599602    order_pref smallint, 
    600603    order_addr01 text, 
     
    655658    shipping_fax02 text, 
    656659    shipping_fax03 text, 
     660    shipping_country_id int, 
    657661    shipping_pref smallint, 
    658662    shipping_zip01 text, 
     
    694698    zip01 text, 
    695699    zip02 text, 
     700    country_id int, 
    696701    pref smallint, 
    697702    addr01 text, 
     
    11001105    name text, 
    11011106    rank smallint NOT NULL, 
     1107    PRIMARY KEY (id) 
     1108); 
     1109 
     1110CREATE TABLE mtb_country ( 
     1111    id int, 
     1112    name text, 
     1113    rank int NOT NULL, 
    11021114    PRIMARY KEY (id) 
    11031115); 
     
    12041216); 
    12051217 
     1218CREATE TABLE dtb_tax_rule ( 
     1219    tax_rule_id int NOT NULL, 
     1220    country_id int NOT NULL DEFAULT 0, 
     1221    pref_id int NOT NULL DEFAULT 0, 
     1222    product_id int NOT NULL DEFAULT 0, 
     1223    product_class_id int NOT NULL DEFAULT 0, 
     1224    calc_rule smallint NOT NULL DEFAULT 1, 
     1225    tax_rate numeric NOT NULL DEFAULT 5, 
     1226    tax_adjust numeric NOT NULL DEFAULT 0, 
     1227    apply_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, 
     1228    member_id int NOT NULL, 
     1229    del_flg smallint NOT NULL DEFAULT 0, 
     1230    create_date timestamp NOT NULL, 
     1231    update_date timestamp NOT NULL, 
     1232    PRIMARY KEY (tax_rule_id) 
     1233); 
    12061234 
    12071235CREATE INDEX dtb_customer_mobile_phone_id_key ON dtb_customer (mobile_phone_id); 
Note: See TracChangeset for help on using the changeset viewer.