Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 AMOUNT money   Default = 0 Amount of the application
 STATUSCODE tinyint   Default = 0 Status of this application
 STATUS nvarchar(7) (Computed) CASE [STATUSCODE] WHEN 0 THEN N'Pending' WHEN 1 THEN N'Active' WHEN 2 THEN N'Deleted' END Provides a translation for the 'STATUSCODE' field.
 TYPECODE tinyint   Default = 0 Type of application
 TYPE nvarchar(8) (Computed) CASE [TYPECODE] WHEN 0 THEN N'Regular' WHEN 1 THEN N'Discount' END Provides a translation for the 'TYPECODE' field.
 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
 FINANCIALTRANSACTIONSCHEDULEID uniqueidentifier   FINANCIALTRANSACTIONSCHEDULE.ID Foreign key to the financial transaction schedule that this application is for.
 FINANCIALTRANSACTIONID uniqueidentifier FINANCIALTRANSACTION.ID Foreign key to the financial transaction that pays/applies the amount to the financial transaction schedule
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_FINANCIALTRANSACTIONAPPLICATION_DATEADDED DATEADDED    
 IX_FINANCIALTRANSACTIONAPPLICATION_DATECHANGED DATECHANGED      
 IX_FINANCIALTRANSACTIONAPPLICATION_FINANCIALTRANSACTIONID FINANCIALTRANSACTIONID      
 IX_FINANCIALTRANSACTIONAPPLICATION_FINANCIALTRANSACTIONSCHEDULEID FINANCIALTRANSACTIONSCHEDULEID      
 PK_FINANCIALTRANSACTIONAPPLICATION ID  

Trigger Name Description
 TR_FINANCIALTRANSACTIONAPPLICATION_INSERT_UPDATE
 TR_FINANCIALTRANSACTIONAPPLICATION_AUDIT_UPDATE
 TR_FINANCIALTRANSACTIONAPPLICATION_AUDIT_DELETE

Referenced by Field
 FINANCIALTRANSACTIONAPPLICATION1099DISTRIBUTION FINANCIALTRANSACTIONAPPLICATIONID

Entity-Relationship diagram of this table