2018-09-20 20:07:54 -04:00
|
|
|
------------------------fiscal periods------------------------
|
|
|
|
CREATE TABLE evt.fspr (
|
2018-09-20 20:16:32 -04:00
|
|
|
id ltree PRIMARY KEY
|
2018-09-20 20:07:54 -04:00
|
|
|
,dur tstzrange
|
2018-09-21 00:38:49 -04:00
|
|
|
,prop jsonb
|
2018-09-20 20:16:32 -04:00
|
|
|
);
|
2018-09-27 12:49:12 -04:00
|
|
|
COMMENT ON TABLE evt.fspr IS 'fiscal period definitions';
|
2018-09-20 20:07:54 -04:00
|
|
|
COMMENT ON COLUMN evt.fspr.id IS 'fiscal period';
|
|
|
|
COMMENT ON COLUMN evt.fspr.dur IS 'duration of period as timestamp range';
|
2018-09-21 00:38:49 -04:00
|
|
|
COMMENT ON COLUMN evt.fspr.prop IS 'period properties';
|
2018-09-20 20:07:54 -04:00
|
|
|
CREATE INDEX id_gist ON evt.fspr USING GIST (id);
|