RELATIONSHIPCONFIGURATION
Stores configuration information for each relationship type.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
GENDERCODE |
tinyint |
|
Default = 0 |
Indicates the gender this relationship type applies to |
GENDER |
nvarchar(6) (Computed) |
yes |
CASE [GENDERCODE] WHEN 0 THEN N'Any' WHEN 1 THEN N'Male' WHEN 2 THEN N'Female' END |
Provides a translation for the 'GENDERCODE' field. |
APPLIESTOINDIVIDUALS |
bit |
|
Default = 0 |
Indicates this relationship type applies to individual constituents. |
APPLIESTOORGANIZATIONS |
bit |
|
Default = 0 |
Indicates this relationship type applies to organization constituents. |
APPLIESTOGROUPS |
bit |
|
Default = 0 |
Indicates this relationship type applies to group constituents. |
RELATESTOINDIVIDUALS |
bit |
|
Default = 0 |
Indicates this relationship type relates to individual constituents. |
RELATESTOORGANIZATIONS |
bit |
|
Default = 0 |
Indicates this relationship type relates to organization constituents. |
RELATESTOGROUPS |
bit |
|
Default = 0 |
Indicates this relationship type relates to group constituents. |
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. |
ISPEERRELATIONSHIPTYPE |
bit |
|
Default = 0 |
Indicates this relationship type is used for peer relationships. |
APPLIESTOSTUDENTS |
bit |
|
Default = 0 |
Indicates this relationship type applies to student constituents. |
RELATESTOSTUDENTS |
bit |
|
Default = 0 |
Indicates this relationship type relates to student constituents. |
Foreign Keys
Indexes
Index Name |
Fields |
Unique |
Primary |
Clustered |
IX_RELATIONSHIPCONFIGURATION_DATEADDED |
DATEADDED |
|
|
yes |
IX_RELATIONSHIPCONFIGURATION_DATECHANGED |
DATECHANGED |
|
|
|
PK_RELATIONSHIPCONFIGURATION |
ID |
yes |
yes |
|
Triggers