TITLECODECONFIGURATION

Associate the title code table with additional information such as gender.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
GENDERCODE tinyint Default = 0 0=Unknown, 1=Male, 2=Female
DATEADDED datetime Default = getdate() Indicates the date this record was added.
DATECHANGED datetime Default = getdate() Indicates the date this record was last changed.
TS timestamp Timestamp.
TSLONG bigint (Computed) yes CONVERT(bigint, TS) Numeric representation of the timestamp.
GENDER nvarchar(6) (Computed) yes CASE [GENDERCODE] WHEN 0 THEN N'Any' WHEN 1 THEN N'Male' WHEN 2 THEN N'Female' END

Foreign Keys

Foreign Key Field Type Null Notes Description
TITLECODEID uniqueidentifier yes TITLECODE.LOCALID FK to TITLECODE
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_TITLECODECONFIGURATION_DATEADDED DATEADDED yes
IX_TITLECODECONFIGURATION_DATECHANGED DATECHANGED
PK_TITLECODECONFIGURATION ID yes yes

Triggers

Trigger Name Description
TR_TITLECODECONFIGURATION_AUDIT_UPDATE
TR_TITLECODECONFIGURATION_AUDIT_DELETE