Primary Key Field Type
 ID uniqueidentifier

Field Field Type Null Notes Description
 PRICE money   Default = 0 The price of the resource.
 RETURNAMOUNT money   Default = 0 The amount given to the customer upon returning the resource.
 PRICINGSTRUCTURECODE tinyint   Default = 0 Indicates the pricing structure for the resource.
 PRICINGSTRUCTURE nvarchar(24) (Computed) CASE [PRICINGSTRUCTURECODE] WHEN 0 THEN N'No charge' WHEN 1 THEN N'Flat rate per resource' WHEN 2 THEN N'Hourly rate per resource' END Provides a translation for the 'PRICINGSTRUCTURECODE' field.
 DATEADDED datetime   Default = getdate() Indicates the date this record was added.
 DATECHANGED datetime   Default = getdate() Indicates the date this record was last changed.
 TS timestamp   Timestamp.
 TSLONG bigint (Computed) CONVERT(bigint, TS) Numeric representation of the timestamp.

Foreign Key Field Type Null Notes Description
 ID uniqueidentifier   RESOURCE.ID Primary Key.
 ADDEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.
 CHANGEDBYID uniqueidentifier   CHANGEAGENT.ID FK to CHANGEAGENT.

Index Name Field(s) Unique Primary Clustered
 IX_RESOURCEPRICING_DATEADDED DATEADDED    
 IX_RESOURCEPRICING_DATECHANGED DATECHANGED      
 PK_RESOURCEPRICING ID  

Trigger Name Description
 TR_RESOURCEPRICING_AUDIT_UPDATE
 TR_RESOURCEPRICING_AUDIT_DELETE

Entity-Relationship diagram of this table