PRICE (4.0SP20)

Contains individual price information

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

PRICELISTID

uniqueidentifier

false

The ID of the Price List the Price belongs to.

PRICETYPECODEID

uniqueidentifier

false

The ID of the Price Type that belongs to the Price.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

FACEPRICE

money

false

0

The Face Price of a Price

SEQUENCE

int

false

0

The sequence in which prices are entered.

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_PRICE_DATEADDED

DATEADDED

False

False

True

IX_PRICE_DATECHANGED

DATECHANGED

False

False

False

PK_PRICE

ID

True

True

False

UIX_PRICE_PRICETYPECODEID_PRICELISTID

PRICETYPECODEID

PRICELISTID

True

False

False

Triggers
Trigger Name Description

TR_PRICE_AUDIT_UPDATE

TR_PRICE_AUDIT_DELETE