Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 NAME nvarchar(60)   Default = '' Name of the promotion schedule.
 DESCRIPTION nvarchar(255)   Default = '' Description of the promotion schedule.
 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.

Foreign Key Field Type Null Notes Description
 SCHOOLID uniqueidentifier   SCHOOL.ID A foreign key to the school using the promotion schedule.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 NEXTSCHOOLGRADELEVELID uniqueidentifier SCHOOLGRADELEVEL.ID A foreign key to the next step schoolgradelevel.

Index Name Field(s) Unique Primary Clustered
 IX_PROMOTIONSCHEDULE_DATEADDED DATEADDED    
 IX_PROMOTIONSCHEDULE_DATECHANGED DATECHANGED      
 PK_PROMOTIONSCHEDULE ID  
 UIX_PROMOTIONSCHEDULE_NAME NAME    

Trigger Name Description
 TR_PROMOTIONSCHEDULE_AUDIT_UPDATE
 TR_PROMOTIONSCHEDULE_AUDIT_DELETE

Referenced by Field
 PROMOTIONSCHEDULEENTRY PROMOTIONSCHEDULEID

Entity-Relationship diagram of this table