STUDENTRELATIONCONSTITUENCYSETTINGS
Contains a list of settings to determine constituency for records with a relationship to a student.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| ISCONSTITUENTAFTERGRADUATE |
bit |
|
Default = 0 |
THIS FIELD IS NO LONGER USED |
| 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. |
| RELATEDTOCODE |
tinyint |
|
Default = 0 |
The constituency type of the student status. |
| RELATEDTO |
nvarchar(7) (Computed) |
yes |
CASE [RELATEDTOCODE] WHEN 0 THEN N'Student' WHEN 1 THEN N'Alumni' END |
Provides a translation for the 'RELATEDTOCODE' field. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CONSTITUENCYCODEID |
uniqueidentifier |
|
CONSTITUENCYCODE.LOCALID
|
Determines what constituency the relation of the student will have. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_STUDENTRELATIONCONSTITUENCYSETTINGS_DATEADDED |
DATEADDED |
|
|
yes |
| IX_STUDENTRELATIONCONSTITUENCYSETTINGS_DATECHANGED |
DATECHANGED |
|
|
|
| PK_STUDENTRELATIONCONSTITUENCYSETTINGS |
ID |
yes |
yes |
|
| UIX_STUDENTRELATIONCONSTITUENCYSETTINGS_CONSTITUENCYCODEID_RELATEDTOCODE |
CONSTITUENCYCODEID, RELATEDTOCODE |
yes |
|
|
Triggers
Referenced by