BILLINGITEMPRICE (4.0SP14)

This table contains billing item prices.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

BILLINGITEMID

uniqueidentifier

false

A foreign key to the billing item.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

STARTDATE

date

true

Start date of the billing item price.

ENDDATE

date

true

End date of the billing item price.

PRICE

money

false

0

The price of the billing item

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.

DATERANGETYPECODE

tinyint

false

0

Flag indicating which kind of billing item.

DATERANGETYPE

nvarchar(14) (Computed)

true

Provides a translation for the 'DATERANGETYPECODE' field.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_BILLINGITEMPRICE_DATEADDED

DATEADDED

False

False

True

IX_BILLINGITEMPRICE_DATECHANGED

DATECHANGED

False

False

False

PK_BILLINGITEMPRICE

ID

True

True

False

UIX_BILLINGITEMPRICE_BILLINGITEMID_STARTDATE

BILLINGITEMID

STARTDATE

True

False

False

Triggers
Trigger Name Description

TR_BILLINGITEMPRICE_INSERT_UPDATE

TR_BILLINGITEMPRICE_AUDIT_UPDATE

TR_BILLINGITEMPRICE_AUDIT_DELETE