CHARGE

This table contains charge records.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
DUEDATE datetime Date the charge is Due
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) yes CONVERT(bigint, TS) Numeric representation of the timestamp.
TYPE int (Computed) 104 The financial transaction type

Foreign Keys

Foreign Key Field Type Null Notes Description
ID uniqueidentifier FINANCIALTRANSACTION.ID Primary Key.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.

Indexes

Index Name Fields Unique Primary Clustered
IX_CHARGE_DATEADDED DATEADDED yes
IX_CHARGE_DATECHANGED DATECHANGED
IX_CHARGE_DUEDATE DUEDATE
PK_CHARGE ID yes yes

Triggers

Trigger Name Description
TR_CHARGE_DELETE
TR_CHARGE_AUDIT_UPDATE
TR_CHARGE_AUDIT_DELETE

Referenced by

Referenced by Field
STUDENTCHARGE ID