PRODUCT (4.0SP20)

This table contains products.

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

NAME

nvarchar(100)

false

''

Name of the product.

DESCRIPTION

nvarchar(255)

false

''

Description of the product.

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_PRODUCT_DATEADDED

DATEADDED

False

False

True

IX_PRODUCT_DATECHANGED

DATECHANGED

False

False

False

IX_PRODUCT_NAME

NAME

False

False

False

PK_PRODUCT

ID

True

True

False

Triggers
Trigger Name Description

TR_PRODUCT_AUDIT_UPDATE

TR_PRODUCT_AUDIT_DELETE

Referenced by
Referenced by Field

BILLINGITEM

ID

MERCHANDISEPRODUCT

ID

PRODUCTVENDOR

PRODUCTID