Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 AMOUNTTENDERED money   Default = 0 The amount tendered for this payment.
 AMOUNT money   Default = 0 The actual amount of the payment.
 CHANGEDUE money   Default = 0 The change due for this payment.
 PAYMENTDATEWITHTIMEOFFSET datetimeoffset The date the payment was made with time zone awareness.
 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.
 DEPOSITED bit   Default = 0

Foreign Key Field Type Null Notes Description
 RESERVATIONID uniqueidentifier   RESERVATION.ID The reservation record for this payment.
 PAYMENTID uniqueidentifier   FINANCIALTRANSACTION.ID The payment record for this security deposit.
 APPUSERID uniqueidentifier APPUSER.ID The application user who entered the payment.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 RECONCILIATIONID uniqueidentifier RECONCILIATION.ID The reconciliation record for this payment.

Index Name Field(s) Unique Primary Clustered
 IX_RESERVATIONSECURITYDEPOSITPAYMENT_APPUSERID APPUSERID      
 IX_RESERVATIONSECURITYDEPOSITPAYMENT_DATEADDED DATEADDED    
 IX_RESERVATIONSECURITYDEPOSITPAYMENT_DATECHANGED DATECHANGED      
 IX_RESERVATIONSECURITYDEPOSITPAYMENT_PAYMENTID PAYMENTID      
 IX_RESERVATIONSECURITYDEPOSITPAYMENT_RESERVATIONID RESERVATIONID      
 PK_RESERVATIONSECURITYDEPOSITPAYMENT ID  

Trigger Name Description
 TR_RESERVATIONSECURITYDEPOSITPAYMENT_AUDIT_UPDATE
 TR_RESERVATIONSECURITYDEPOSITPAYMENT_AUDIT_DELETE

Entity-Relationship diagram of this table