Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE SEQUENCE tr_current_sales_gross_profit_by_ctgr_product_seq
- INCREMENT 1
- MINVALUE 1
- MAXVALUE 9223372036854775807
- START 10
- CACHE 1;
- CREATE TABLE tr_current_sales_gross_profit_by_ctgr_product
- (
- current_sales_gross_profit_by_ctgr_product_id bigint NOT NULL DEFAULT nextval('tr_current_sales_gross_profit_by_ctgr_product_seq'),
- session_id character varying(50),
- tenant_id bigint,
- ou_id bigint,
- partner_id bigint,
- partner_code character varying(50),
- partner_name character varying(100),
- ctgr_product_id bigint,
- ctgr_product_code character varying(50),
- ctgr_product_name character varying(100),
- curr_code character varying(5),
- current_sales_amount numeric,
- current_monthly_price_amount numeric,
- current_gross_profit numeric,
- product_id bigint DEFAULT -99,
- qty numeric,
- CONSTRAINT tr_current_sales_gross_profit_by_ctgr_product_pkey PRIMARY KEY (current_sales_gross_profit_by_ctgr_product_id)
- )
- WITH (
- OIDS=FALSE
- );
- CREATE INDEX idx_tr_current_sales_gross_profit_by_ctgr_product_01
- ON tr_current_sales_gross_profit_by_ctgr_product
- USING btree
- (session_id, tenant_id, ou_id, partner_id, ctgr_product_id, curr_code);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement