This table provides a list of valid periods. This information is static.
Source romber_periods_tbl.sql
create table romber_base.periods ( alignment_interval_id romber_base.measurement_unit_id not null, duration_interval_id romber_base.measurement_unit_id not null, period_code romber_base.generic_code not null, period_id romber_base.period_id not null default nextval ( 'romber_base.generic_id_seq' ), period_name romber_base.generic_name not null );
Source romber_periods_pk.sql
alter table romber_base.periods add constraint romber_periods_pk primary key ( period_id );
Source romber_periods_uk1.sql
alter table romber_base.periods add constraint romber_periods_uk1 unique ( period_code );
Source romber_periods_fk1.sql
alter table romber_base.periods add constraint romber_periods_fk1 foreign key ( alignment_interval_id ) references romber_base.measurement_units ( measurement_unit_id );
Source romber_periods_fk2.sql
alter table romber_base.periods add constraint romber_periods_fk2 foreign key ( duration_interval_id ) references romber_base.measurement_units ( measurement_unit_id );
Source romber_periods_load.sql
insert into romber_base.periods ( alignment_interval_id, duration_interval_id, period_code, period_id, period_name ) values ( 0, 0, '', 0, 'Unknown' );