jl/schema/tables/fspr.sql

10 lines
319 B
MySQL
Raw Normal View History

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-20 20:16:32 -04:00
);
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';
CREATE INDEX id_gist ON evt.fspr USING GIST (id);