jl/schema/tables/bpr.sql
2018-09-27 12:49:12 -04:00

12 lines
428 B
SQL

--------------------------event log table-------------------------------------------
CREATE TABLE evt.bpr (
id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY
,bpr JSONB
,bprh JSONB
,stmp timestamptz
);
COMMENT ON TABLE evt.bpr IS 'log of events';
COMMENT ON COLUMN evt.bpr.bpr IS 'basic pecuniary record';
COMMENT ON COLUMN evt.bpr.bprh IS 'history';
COMMENT ON COLUMN evt.bpr.stmp IS 'insert time';