GROUPDATA
This table contains data that is specific to group constituents.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| GROUPTYPECODE |
tinyint |
|
Default = 0 |
Indicates the type of group. A group type of Custom indicates that GROUPTYPEID will point to a custom group type record in the GROUPTYPE table. |
| STARTDATE |
datetime |
yes |
|
The date of the group's inception |
| 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. |
| DESCRIPTION |
nvarchar(300) |
|
Default = '' |
Provides a user-friendly description of the purpose of a group. |
| GROUPTYPE |
nvarchar(9) (Computed) |
yes |
CASE [GROUPTYPECODE] WHEN 0 THEN N'Household' WHEN 1 THEN N'Custom' END |
Provides a translation for the 'GROUPTYPECODE' field. |
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| ID |
uniqueidentifier |
|
CONSTITUENT.LOCALID
|
Primary Key. |
| GROUPTYPEID |
uniqueidentifier |
yes |
GROUPTYPE.ID
|
Points to a custom group type definition in the GROUPTYPE table |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| NAMEFORMATFUNCTIONID |
uniqueidentifier |
yes |
NAMEFORMATFUNCTION.ID
|
The name format function which will be used to generate the household name if specified. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_GROUPDATA_DATEADDED |
DATEADDED |
|
|
yes |
| IX_GROUPDATA_DATECHANGED |
DATECHANGED |
|
|
|
| IX_GROUPDATA_ID |
ID |
|
|
|
| PK_GROUPDATA |
ID |
yes |
yes |
|
Triggers
Referenced by