REVENUESTANDINGORDER (4.0SP17)

Stores data relevant for all revenue records with a standing order payment type.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

REFERENCENUMBER

int

false

The automatically-generated reference number for this standing order.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

CUSTOMREFERENCENUMBER

nvarchar(18)

false

''

USESYSTEMGENERATEDREFERENCENUMBER

bit

false

1

Indexes
Index Name Field(s) Unique Primary Clustered

IX_REVENUESTANDINGORDER_DATEADDED

DATEADDED

False

False

True

IX_REVENUESTANDINGORDER_DATECHANGED

DATECHANGED

False

False

False

PK_REVENUESTANDINGORDER

ID

True

True

False

Triggers
Trigger Name Description

TR_REVENUESTANDINGORDER_AUDIT_UPDATE

TR_REVENUESTANDINGORDER_AUDIT_DELETE