BATCHREVENUELETTER
Stores letters for revenue update batch
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| LETTERTYPECODE |
tinyint |
|
Default = 0 |
Indicates whether the letter is a revenue letter or a tribute letter. |
| LETTERTYPE |
nvarchar(7) (Computed) |
yes |
CASE [LETTERTYPECODE] WHEN 0 THEN N'Revenue' WHEN 1 THEN N'Tribute' END |
Provides a translation for the 'LETTERTYPECODE' field. |
| PROCESSDATE |
datetime |
yes |
|
|
| ACKNOWLEDGEDATE |
datetime |
yes |
|
|
| LETTERCODEID |
uniqueidentifier |
yes |
|
|
| ACKNOWLEDGEEID |
uniqueidentifier |
|
|
FK to CONSTITUENT |
| REVENUELETTERID |
uniqueidentifier |
yes |
|
Used by update revenue batch |
| 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. |
| OUTOFDATE |
bit |
|
Default = 0 |
|
| CLEARDATES |
bit |
|
Default = 0 |
|
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| BATCHREVENUEID |
uniqueidentifier |
|
BATCHREVENUE.ID
|
FK to BATCHREVENUE |
| TRIBUTEID |
uniqueidentifier |
yes |
TRIBUTE.LOCALID
|
FK to TRIBUTE |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_BATCHREVENUELETTER_ACKNOWLEDGEEID |
ACKNOWLEDGEEID |
|
|
|
| IX_BATCHREVENUELETTER_DATEADDED |
DATEADDED |
|
|
yes |
| IX_BATCHREVENUELETTER_DATECHANGED |
DATECHANGED |
|
|
|
| PK_BATCHREVENUELETTER |
ID |
yes |
yes |
|
Triggers