Table: dbo.Office | |||
Columns | |||
Name | Type | Constraints | Description |
office_KEY | int (4) | NOT NULL | Database assigned primary key for this table. |
office_id | nvarchar (22) | NOT NULL | User defined identifier (unique). |
description | nvarchar (60) | NOT NULL | User defined description. |
contact_KEY | int (4) | NOT NULL | Key to the primary Contact record for this Client. |
office_id_sortable | varchar (48) | NOT NULL | A representation of the office_id column that sorts in natural order, meaning that digits are sorted as numbers while non-digits are sorted alphabetically. A trigger keeps this field synchronized with the content of office_id. |
Primary key | |||
Name | Columns | Description | |
PK_Office | office_KEY | ||
Unique constraints | |||
Name | Columns | Description | |
UK_Office$contact_KEY | contact_KEY | ||
UK_Office$office_id | office_id | ||
UK_Office$office_id_sortable | office_id_sortable |
Foreign keys | |||
Name | Columns | Referenced table | Description |
FK_Office__Contact__contact_KEY | contact_KEY | Contact (contact_KEY) |
Incoming foreign keys | |||
Name | Columns | Referencing table | Description |
FK_Staff__Office__office_KEY | office_KEY | Staff | |
FK_Firm__Office__office_KEY | office_KEY | Firm |