Primary Key | Field Type |
---|---|
ID | uniqueidentifier |
Field | Field Type | Null | Notes | Description |
---|---|---|---|---|
BIRTHPLACE | nvarchar(50) | Default = '' | The constituent's place of birth | |
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) | CONVERT(bigint, TS) | Numeric representation of the timestamp. | |
ISHISPANICLATINO | bit | Default = 0 | Used by schools for government reporting. |
Foreign Key | Field Type | Null | Notes | Description |
---|---|---|---|---|
ID | uniqueidentifier | CONSTITUENT.LOCALID | Primary Key. | |
ETHNICITYCODEID | uniqueidentifier | ETHNICITYCODE.LOCALID | This field is now obsolete. Use DEMOGRAPHICETHNICITY table to track one or more ethnicities for an individual. | |
RELIGIONCODEID | uniqueidentifier | RELIGIONCODE.LOCALID | FK to RELIGIONCODE | |
TARGETCODEID | uniqueidentifier | TARGETCODE.ID | FK to TARGETCODE | |
INCOMECODEID | uniqueidentifier | INCOMECODE.LOCALID | FK to INCOMECODE | |
ADDEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
DENOMINATIONCODEID | uniqueidentifier | DENOMINATIONCODE.ID | Religious denomination an individual is affliated with. | |
CHURCHAFFILIATIONCODEID | uniqueidentifier | CHURCHAFFILIATIONCODE.ID | The church an individual is affliated with. |
Index Name | Field(s) | Unique | Primary | Clustered |
---|---|---|---|---|
IX_DEMOGRAPHIC_DATEADDED | DATEADDED | |||
IX_DEMOGRAPHIC_DATECHANGED | DATECHANGED | |||
PK_DEMOGRAPHIC | ID |
Trigger Name | Description |
---|---|
TR_DEMOGRAPHIC_ETHNICITY_INSERT | |
TR_DEMOGRAPHIC_AUDIT_UPDATE | |
TR_DEMOGRAPHIC_AUDIT_DELETE |
Referenced by | Field |
---|---|
DEMOGRAPHICETHNICITY | DEMOGRAPHICID |