diff --git a/db_deploy.sql b/db_deploy.sql index fee4ad3..9503177 100644 --- a/db_deploy.sql +++ b/db_deploy.sql @@ -35,7 +35,8 @@ CREATE TABLE evt.gl ( ,bpr_id INT REFERENCES evt.bpr (id) ,acct text REFERENCES evt.acct (acct) ,amount numeric (12,2) - ,bpr jsonb + ,gl_line INT + ,bpr_extract JSONB ); COMMENT ON COLUMN evt.gl.bpr_id IS 'id of initial basic pecuniary record'; COMMENT ON COLUMN evt.gl.acct IS 'account code'; diff --git a/schema/tables/gl.sql b/schema/tables/gl.sql index cae7ed3..9fde7fc 100644 --- a/schema/tables/gl.sql +++ b/schema/tables/gl.sql @@ -5,7 +5,8 @@ CREATE TABLE evt.gl ( ,bpr_id INT REFERENCES evt.bpr (id) ,acct text REFERENCES evt.acct (acct) ,amount numeric (12,2) - ,bpr jsonb + ,gl_line INT + ,bpr_extract JSONB ); COMMENT ON COLUMN evt.gl.bpr_id IS 'id of initial basic pecuniary record'; COMMENT ON COLUMN evt.gl.acct IS 'account code';