Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 STUDENTDUEDATE datetime Default Due Date for the student to complete assignment.
 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
 COURSEID uniqueidentifier   COURSE.ID A foreign key to the course table.
 ASSIGNMENTID uniqueidentifier   ASSIGNMENT.ID A foreign key to the assignment table.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_COURSEASSIGNMENT_DATEADDED DATEADDED    
 IX_COURSEASSIGNMENT_DATECHANGED DATECHANGED      
 PK_COURSEASSIGNMENT ID  

Trigger Name Description
 TR_COURSEASSIGNMENT_AUDIT_UPDATE
 TR_COURSEASSIGNMENT_AUDIT_DELETE

Entity-Relationship diagram of this table