Advertisement
tko_pb

oez_i_order

Feb 6th, 2019
578
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CREATE TABLE oez_i_order (
  2.     oez_i_order_id varchar(32) NOT NULL,
  3.     ad_client_id varchar(32) NULL,
  4.     ad_org_id varchar(32) NULL,
  5.     isactive bpchar(1) NULL DEFAULT 'Y'::bpchar,
  6.     created timestamp NULL DEFAULT now(),
  7.     createdby varchar(32) NULL,
  8.     updated timestamp NULL DEFAULT now(),
  9.     updatedby varchar(32) NULL,
  10.     i_isimported bpchar(1) NULL DEFAULT 'N'::bpchar,
  11.     i_errormsg varchar(2000) NULL,
  12.     c_order_id varchar(32) NULL,
  13.     c_orderline_id varchar(32) NULL,
  14.     processing bpchar(1) NULL,
  15.     processed bpchar(1) NULL DEFAULT 'N'::bpchar,
  16.     documentno varchar(30) NULL,
  17.     doctypename varchar(60) NULL,
  18.     c_doctype_id varchar(32) NULL,
  19.     dateordered timestamp NULL,
  20.     scheduleddeliverydate timestamp NULL,
  21.     bpartnersearchkey varchar(32) NULL,
  22.     c_bpartner_id varchar(32) NULL,
  23.     warehousesearchkey varchar(32) NULL,
  24.     m_warehouse_id varchar(32) NULL,
  25.     pricelistname varchar(60) NULL,
  26.     m_pricelist_id varchar(32) NULL,
  27.     paymentTermValue varchar(60) NULL,
  28.     c_paymentterm_id varchar(32) NULL,
  29.     paymentmethod varchar(60) NULL,
  30.     fin_paymentmethod_id varchar(32) NULL,
  31.     headerdescription varchar(255) NULL,
  32.     productsearchkey varchar(32) NULL,
  33.     m_product_id varchar(32) NULL,
  34.     orderReference varchar(60) NULL,
  35.     orderqty numeric NULL DEFAULT 0,
  36.     netunitprice numeric NULL DEFAULT 0,
  37.     netlistprice numeric NULL DEFAULT 0,
  38.     taxsearchkey varchar(32) NULL,
  39.     linedescription varchar(255) NULL
  40.     importOrder bpchar(1) null,
  41.     importProcessComplete bpchar(1) null default 'N'::bpchar,
  42.     CONSTRAINT oez_i_or_i_isimported_check CHECK ((i_isimported = ANY (ARRAY['Y'::bpchar, 'N'::bpchar]))),
  43.     CONSTRAINT oez_i_or_isactive_check CHECK ((isactive = ANY (ARRAY['Y'::bpchar, 'N'::bpchar]))),
  44.     CONSTRAINT oez_i_or_isd_chk CHECK ((isactive = ANY (ARRAY['Y'::bpchar, 'N'::bpchar]))),
  45.     CONSTRAINT oez_i_or_client FOREIGN KEY (AD_CLIENT_ID) REFERENCES AD_CLIENT (AD_CLIENT_ID),
  46.     CONSTRAINT oez_i_or_org FOREIGN KEY (ad_org_id) REFERENCES ad_org(ad_org_id),
  47.     CONSTRAINT oez_i_or_key PRIMARY KEY (oez_i_order_id),
  48.     CONSTRAINT oez_i_or_processed_check CHECK ((processed = ANY (ARRAY['Y'::bpchar, 'N'::bpchar]))),
  49.     CONSTRAINT oez_i_or_b_partner FOREIGN KEY (c_bpartner_id) REFERENCES c_bpartner(c_bpartner_id),
  50.     CONSTRAINT oez_i_or_warehouse FOREIGN KEY (m_warehouse_id) REFERENCES m_warehouse(m_warehouse_id),
  51.     CONSTRAINT oez_i_iv_product FOREIGN KEY (m_product_id) REFERENCES m_product(m_product_id),
  52.     CONSTRAINT oez_i_or_m_pricelist FOREIGN KEY (m_pricelist_id) REFERENCES m_pricelist(m_pricelist_id),
  53.     CONSTRAINT oez_i_or_order FOREIGN KEY (c_order_id) REFERENCES c_order(c_order_id),
  54.     CONSTRAINT oez_i_or_pay_term FOREIGN KEY (c_paymentterm_id) REFERENCES c_paymentterm(c_paymentterm_id),
  55.     CONSTRAINT oez_i_or_pay_meth FOREIGN KEY (fin_paymentmethod_id) REFERENCES fin_paymentmethod(fin_paymentmethod_id)
  56. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement