default

Romber

Database tables

romber_location.subproperty_types

Purpose

This table provides a list of valid subproperty types. This information is fairly static and requires its own data entry page.

Definition

Source romber_subproperty_types_tbl.sql

create table romber_location.subproperty_types (
  subproperty_type_code         romber_base.generic_code        not null,
  subproperty_type_id           romber_location.location_id     not null,
  subproperty_type_name         romber_base.generic_name        not null );

Constraints

Source romber_subproperty_types_pk.sql

alter table romber_location.subproperty_types
  add constraint romber_subproperty_types_pk
    primary key ( subproperty_type_id );

Source romber_subproperty_types_uk1.sql

alter table romber_location.subproperty_types
  add constraint romber_subproperty_types_uk1
    unique ( subproperty_type_code );

Source romber_subproperty_types_fk1.sql

alter table romber_location.subproperty_types
  add constraint romber_subproperty_types_fk1
    foreign key ( subproperty_type_id )
    references romber_location.locations ( location_id );

 

Copyright © Corpita Pty Ltd 1987 - 2024

Developed by romber.net
Page modified on 28-Apr-2023