CREATE TABLE adempiere.JP_InvOrgBalance
(
  JP_InvOrgBalance_UU character varying(36) DEFAULT NULL::character varying,
  AD_Client_ID numeric(10,0) NOT NULL,
  AD_Org_ID numeric(10,0) NOT NULL,
  IsActive character(1) NOT NULL DEFAULT 'Y'::bpchar,
  Created timestamp without time zone NOT NULL DEFAULT now(),
  CreatedBy numeric(10,0) NOT NULL,
  Updated timestamp without time zone NOT NULL DEFAULT now(),
  UpdatedBy numeric(10,0) NOT NULL,

  C_AcctSchema_ID numeric(10,0) NOT NULL,
  M_Product_ID  numeric(10,0) NOT NULL,
  DateValue timestamp without time zone NOT NULL DEFAULT now(),
  Account_ID numeric(10,0) NOT NULL,
  QtyBook numeric NOT NULL DEFAULT 0,
  AmtAcctDr numeric NOT NULL DEFAULT 0,
  AmtAcctCr numeric NOT NULL DEFAULT 0,
  AmtAcctBalance numeric NOT NULL DEFAULT 0,
   
  PRIMARY KEY(C_AcctSchema_ID,DateValue,AD_Org_ID,M_Product_ID)
)