EMAILCATEGORYPRIORITY
Email Type Priorities
Primary Key
| Primary Key | Field Type |
|---|---|
| ID | uniqueidentifier |
Fields
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
| DESCRIPTION | nvarchar(255) | Default = '' | Name of the email category. All active email categories must be defined in this table. | |
| PRIORITY | int | Default = 50 | ||
| 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. |
| CATEGORYID | int | Default = 0 | The ID of the category. This maps to the Category enum in the code, and the category field in the queue table. |
Foreign Keys
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
| ADDEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
| CHANGEDBYID | uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. |
Indexes
| Index Name | Fields | Unique | Primary | Clustered |
|---|---|---|---|---|
| IX_EMAILCATEGORYPRIORITY_DATEADDED | DATEADDED | yes | ||
| IX_EMAILCATEGORYPRIORITY_DATECHANGED | DATECHANGED | |||
| PK_EMAILCATEGORYPRIORITY | ID | yes | yes | |
| UC_EMAILCATEGORYPRIORITY_DESCRIPTION | DESCRIPTION | yes |
Triggers
| Trigger Name | Description |
|---|---|
| TR_EMAILCATEGORYPRIORITY_AUDIT_UPDATE | |
| TR_EMAILCATEGORYPRIORITY_AUDIT_DELETE |