Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 APPLICATIONCODE tinyint   Default = 0 Selects the application to which the aging periods belong.
 APPLICATION nvarchar(8) (Computed) CASE [APPLICATIONCODE] WHEN 0 THEN N'Defaults' WHEN 1 THEN N'Payables' END Provides a translation for the 'APPLICATIONCODE' field.
 PERIODNUMBER int   Default = 0 Aging period number
 PERIODSTART smallint   Default = ((0)) Start day for aging period
 PERIODEND smallint   Default = ((32767)) End day for aging period
 PERIODDESCRIPTION nvarchar(20)   Default = '' Description of aging period
 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
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_AGINGBUCKET_DATEADDED DATEADDED    
 IX_AGINGBUCKET_DATECHANGED DATECHANGED      
 PK_AGINGBUCKET ID  
 UIX_AGINGBUCKET_APPLICATIONCODE_PERIODNUMBER APPLICATIONCODE, PERIODNUMBER    

Trigger Name Description
 TR_AGINGBUCKET_AUDIT_UPDATE
 TR_AGINGBUCKET_AUDIT_DELETE