This table provides a list of valid currency units by which charges can be made.
Source romber_currency_units_tbl.sql
create table romber_base.currency_units ( currency_id romber_base.currency_id not null, currency_unit_code romber_base.generic_code not null, currency_unit_id romber_base.currency_unit_id not null default nextval ( 'romber_base.generic_id_seq' ), currency_unit_name romber_base.generic_name not null, division_factor int not null );
Source romber_currency_units_pk.sql
alter table romber_base.currency_units add constraint romber_currency_units_pk primary key ( currency_unit_id );
Source romber_currency_units_uk1.sql
alter table romber_base.currency_units add constraint romber_currency_units_uk1 unique ( currency_id, currency_unit_code );
Source romber_currency_units_uk2.sql
alter table romber_base.currency_units add constraint romber_currency_units_uk2 unique ( currency_id, currency_unit_name );
Source romber_currency_units_fk1.sql
alter table romber_base.currency_units add constraint romber_currency_units_fk1 foreign key ( currency_unit_id ) references romber_meta.objects ( meta_object_id );
Source romber_currency_units_fk2.sql
alter table romber_base.currency_units add constraint romber_currency_units_fk2 foreign key ( currency_id ) references romber_base.currencies ( currency_id );
Source romber_currency_units_load.sql
insert into romber_base.currency_units ( currency_id, currency_unit_code, currency_unit_id, currency_unit_name, division_factor ) values ( 0, '', 0, '', 1 );