Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 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.
 DISCOUNTLIMITAPPLICATIONTYPECODE tinyint   Default = 0 The way to limit the discount.
 DISCOUNTLIMITAPPLICATIONTYPE nvarchar(20) (Computed) CASE [DISCOUNTLIMITAPPLICATIONTYPECODE] WHEN 0 THEN N'To all valid tickets' WHEN 1 THEN N'Once' END Provides a translation for the 'DISCOUNTLIMITAPPLICATIONTYPECODE' field.

Foreign Key Field Type Null Notes Description
 ID uniqueidentifier   DAILYSALEITEM.ID Primary Key.
 DISCOUNTID uniqueidentifier   DISCOUNT.ID The discount for this daily sale item.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_DAILYSALEITEMDISCOUNT_DATEADDED DATEADDED    
 IX_DAILYSALEITEMDISCOUNT_DATECHANGED DATECHANGED      
 PK_DAILYSALEITEMDISCOUNT ID  

Trigger Name Description
 TR_DAILYSALEITEMDISCOUNT_AUDIT_UPDATE
 TR_DAILYSALEITEMDISCOUNT_AUDIT_DELETE

Entity-Relationship diagram of this table