aadddrr

cb_in_out_cashbank_cost

Sep 30th, 2017
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Table: cb_in_out_cashbank_cost
  2.  
  3. -- DROP TABLE cb_in_out_cashbank_cost;
  4.  
  5. CREATE TABLE cb_in_out_cashbank_cost
  6. (
  7.   in_out_cashbank_cost_id bigint NOT NULL DEFAULT nextval('cb_in_out_cashbank_cost_seq'::regclass),
  8.   tenant_id bigint,
  9.   in_out_cashbank_id bigint,
  10.   line_no bigint,
  11.   activity_gl_id bigint,
  12.   ou_rc_id bigint,
  13.   segment_id bigint,
  14.   curr_code character varying(5),
  15.   cost_amount numeric,
  16.   payment_amount numeric,
  17.   remark character varying(1024),
  18.   version bigint NOT NULL,
  19.   create_datetime character varying(14),
  20.   create_user_id bigint,
  21.   update_datetime character varying(14),
  22.   update_user_id bigint,
  23.   CONSTRAINT cb_in_out_cashbank_cost_pkey PRIMARY KEY (in_out_cashbank_cost_id)
  24. )
  25. WITH (
  26.   OIDS=FALSE
  27. );
  28. ALTER TABLE cb_in_out_cashbank_cost
  29.   OWNER TO sts;
  30.  
  31. -- Index: idx_cb_in_out_cashbank_02
  32.  
  33. -- DROP INDEX idx_cb_in_out_cashbank_02;
  34.  
  35. CREATE INDEX idx_cb_in_out_cashbank_02
  36.   ON cb_in_out_cashbank_cost
  37.   USING btree
  38.   (tenant_id, in_out_cashbank_id, activity_gl_id);
  39.  
  40. -- Index: idx_cb_in_out_cashbank_cost_01
  41.  
  42. -- DROP INDEX idx_cb_in_out_cashbank_cost_01;
  43.  
  44. CREATE UNIQUE INDEX idx_cb_in_out_cashbank_cost_01
  45.   ON cb_in_out_cashbank_cost
  46.   USING btree
  47.   (tenant_id, in_out_cashbank_id, line_no);
Add Comment
Please, Sign In to add comment