Advertisement
henikseptiana15

in_product_balance_stock_reserved

May 27th, 2021
1,307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CREATE TABLE public.in_product_balance_stock_reserved
  2. (
  3.     product_balance_stock_reserved_id bigint NOT NULL DEFAULT nextval('product_balance_stock_reserved_seq'::regclass),
  4.     tenant_id bigint,
  5.     ou_id bigint,
  6.     product_id bigint,
  7.     base_uom_id bigint,
  8.     product_status character varying(50) COLLATE pg_catalog."default",
  9.     qty numeric,
  10.     version bigint NOT NULL,
  11.     create_datetime character varying(14) COLLATE pg_catalog."default",
  12.     create_user_id bigint,
  13.     update_datetime character varying(14) COLLATE pg_catalog."default",
  14.     update_user_id bigint,
  15.     CONSTRAINT in_product_balance_stock_reserved_pkey PRIMARY KEY (product_balance_stock_reserved_id)
  16. )
  17. WITH (
  18.     OIDS = FALSE
  19. )
  20. TABLESPACE pg_default;
  21.  
  22. ALTER TABLE public.in_product_balance_stock_reserved
  23.     OWNER to sts;
  24.  
  25. GRANT ALL ON TABLE public.in_product_balance_stock_reserved TO sts;
  26. -- Index: idx_in_product_balance_stock_reserved_01
  27.  
  28. -- DROP INDEX public.idx_in_product_balance_stock_reserved_01;
  29.  
  30. CREATE UNIQUE INDEX idx_in_product_balance_stock_reserved_01
  31.     ON public.in_product_balance_stock_reserved USING btree
  32.     (tenant_id ASC NULLS LAST, ou_id ASC NULLS LAST, product_id ASC NULLS LAST, product_status COLLATE pg_catalog."default" ASC NULLS LAST)
  33.     TABLESPACE pg_default;
  34. -- Index: idx_in_product_balance_stock_reserved_02
  35.  
  36. -- DROP INDEX public.idx_in_product_balance_stock_reserved_02;
  37.  
  38. CREATE INDEX idx_in_product_balance_stock_reserved_02
  39.     ON public.in_product_balance_stock_reserved USING btree
  40.     (tenant_id ASC NULLS LAST, ou_id ASC NULLS LAST, product_id ASC NULLS LAST)
  41.     TABLESPACE pg_default;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement