Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 DESCRIPTION nvarchar(60)   Default = '' Description of the closing requirement.
 NETASSETCLASSIFICATIONCODE tinyint   Default = 0 Net Asset Classification
 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.
 NETASSETCLASSIFICATION nvarchar(33) (Computed) CASE [NETASSETCLASSIFICATIONCODE] WHEN 1 THEN N'Unrestricted net assets' WHEN 2 THEN N'Temporarily restricted net assets' WHEN 3 THEN N'Permanently restricted net assets' END Provides a translation for the 'NETASSETCLASSIFICATIONCODE' field.

Foreign Key Field Type Null Notes Description
 LEDGERACCOUNTID uniqueidentifier GLACCOUNT.ID Closing account string
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 DATAELEMENTID uniqueidentifier PDACCOUNTSEGMENTVALUE.ID Specific item ID
 DATAELEMENTQUERYID uniqueidentifier IDSETREGISTER.ID Selection ID
 PDACCOUNTSYSTEMID uniqueidentifier   PDACCOUNTSYSTEM.ID FK to PDACCOUNTSYSTEM

Index Name Field(s) Unique Primary Clustered
 IX_CLOSINGREQUIREMENT_DATEADDED DATEADDED    
 IX_CLOSINGREQUIREMENT_DATECHANGED DATECHANGED      
 PK_CLOSINGREQUIREMENT ID  
 UC_CLOSINGREQUIREMENT_DESCRIPTION DESCRIPTION    

Trigger Name Description
 TR_CLOSINGREQUIREMENT_AUDIT_UPDATE
 TR_CLOSINGREQUIREMENT_AUDIT_DELETE

Referenced by Field
 CLOSINGREQUIREMENTDETAIL CLOSINGREQUIREMENTID

Entity-Relationship diagram of this table