BATCHREVENUETRIBUTE
Stores tributes for batch rows.
Primary Key
Primary Key |
Field Type |
ID |
uniqueidentifier |
Fields
Field |
Field Type |
Null |
Notes |
Description |
AMOUNT |
money |
|
Default = 0 |
The amount of the revenue tribute. |
SEQUENCE |
int |
|
Default = 0 |
|
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. |
REVENUETRIBUTEID |
uniqueidentifier |
yes |
|
The id of the loaded revenue tribute |
Foreign Keys
Foreign Key |
Field Type |
Null |
Notes |
Description |
BATCHREVENUEID |
uniqueidentifier |
|
BATCHREVENUE.ID
|
Indicates the batch row this tribute applies to. |
TRIBUTEID |
uniqueidentifier |
|
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_BATCHREVENUETRIBUTE_BATCHREVENUEID |
BATCHREVENUEID |
|
|
|
IX_BATCHREVENUETRIBUTE_DATEADDED |
DATEADDED |
|
|
yes |
IX_BATCHREVENUETRIBUTE_DATECHANGED |
DATECHANGED |
|
|
|
PK_BATCHREVENUETRIBUTE |
ID |
yes |
yes |
|
Triggers