CMSUSERSALESORDER (4.0SP25)

Associates an active sales order with a CMS user.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

CLIENTUSERID

int

false

FK to CLIENTUSERS

SALESORDERID

uniqueidentifier

false

FK to SALESORDER

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

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.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_CMSUSERSALESORDER_DATEADDED

DATEADDED

False

False

True

IX_CMSUSERSALESORDER_DATECHANGED

DATECHANGED

False

False

False

PK_CMSUSERSALESORDER

ID

True

True

False

UC_CMSUSERSALESORDER_CLIENTUSERID

CLIENTUSERID

True

False

False

Triggers
Trigger Name Description

TR_CMSUSERSALESORDER_AUDIT_UPDATE

TR_CMSUSERSALESORDER_AUDIT_DELETE