This table provides a list of organization member units. This information is dynamic and does need a data entry page.
Source romber_member_org_units_tbl.sql
create table romber_member.org_units ( location_id romber_location.location_id not null, member_basemember_id romber_member.basemember_id not null, meta_transaction_id romber_meta.transaction_id not null, organization_id romber_member.basemember_id not null );
Source romber_member_org_units_pk.sql
alter table romber_member.org_units
add constraint romber_member_org_units_pk
primary key (
member_basemember_id,
meta_transaction_id );
Source romber_member_org_units_uk1.sql
alter table romber_member.org_units
add constraint romber_member_org_units_uk1
unique (
organization_id,
location_id );
Source romber_member_org_units_fk1.sql
alter table romber_member.org_units
add constraint romber_member_org_units_fk1
foreign key (
member_basemember_id,
meta_transaction_id )
references romber_member.basemember__versions (
member_basemember_id,
meta_transaction_id );
Source romber_member_org_units_fk2.sql
alter table romber_member.org_units
add constraint romber_member_org_units_fk2
foreign key ( organization_id )
references romber_member.basemembers ( member_basemember_id );
Source romber_member_org_units_fk3.sql
alter table romber_member.org_units
add constraint romber_member_org_units_fk3
foreign key ( location_id )
references romber_location.locations ( location_id );