LoyPointsDetail Table

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Tables >

LoyPointsDetail Table

Navigation: iVend Database Database > Tables >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

LoyPointsDetail Table

Collapse All Expand All

iVend Database Database : LoyPointsDetail Table

Description

Stores the details of Loyalty Points awarded in the system.

Properties

Creation Date

4/13/2015 12:00 PM

File Group

PRIMARY

Text File Group

 

System Object

dbimages_boolean-false

Published for Replication

dbimages_boolean-false

Rows

0

Data Space Used

0.00 KB

Index Space Used

0.00 KB

Columns

 

Column Name

Description

Datatype

Length

Allow Nulls

Default

Formula

Primary Key

PointsDetailKey

Primary Key

VarWChar

50

 

 

 

 

PointsKey

Reference Key of Points. See also Points.

VarWChar

50

dbimages_tick

 

 

 

TransactionKey

Reference Key of Transaction. See also Transaction.

VarWChar

50

 

 

 

 

TransactionItemKey

Reference Key of Transaction Item. See also Transaction Item.

VarWChar

50

dbimages_tick

 

 

 

AwardedPoints

Hold points awarded on line item of the particular transaction

Integer

4

 

((0))

 

 

AwardedCurrency

Hold currency awarded on line item of the particular transaction

Numeric

9 (18,2)

 

((0))

 

 

CumultiveItemsCarryForwarded

 

Integer

4

dbimages_tick

((0))

 

 

IsConflict

Value is True if Points Conflict

Boolean

1

 

((0))

 

 

PlanKey

Reference Key of Plan. See also Plan.

VarWChar

50

dbimages_tick

 

 

 

PlanDetailKey

Reference Key of Plan Detail. See also Pln Detail.

VarWChar

50

dbimages_tick

 

 

 

PlanVersion

Hold the Plan Version

VarWChar

50

dbimages_tick

 

 

 

PlanDefinationBasis

Refers to the type of Plan Definition Basis.

Valid values are:

EveryTransaction = 1,

CumulativeBasis = 2

Integer

4

dbimages_tick

 

 

 

CustomerKey

Reference Key of Loyalty Card Information. See also Points.

VarWChar

50

dbimages_tick

 

 

 

OriginalPointsKey

Reference Key of Points. See also Points.

VarWChar

50

dbimages_tick

 

 

 

OriginalPointsDetailKey

Reference Key of Points Detail. See also Points Detail.

VarWChar

50

dbimages_tick

 

 

 

Created

Date of creation of this record

DBTimeStamp

4

 

(getdate())

 

 

Modified

Date of last modification of this record

DBTimeStamp

4

 

(getdate())

 

Indexes

Index

Description

Primary

Unique

PK_PointsDetail

 

dbimages_tick

dbimages_tick

SQL

SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[LoyPointsDetail](

[PointsDetailKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

[PointsKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[TransactionKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

[TransactionItemKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[AwardedPoints] [int] NOT NULL,

[AwardedCurrency] [decimal](18, 2) NOT NULL,

[CumultiveItemsCarryForwarded] [int] NULL,

[IsConflict] [bit] NOT NULL,

[PlanKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[PlanDetailKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[PlanVersion] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[PlanDefinationBasis] [int] NULL,

[CustomerKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[OriginalPointsKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[OriginalPointsDetailKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[Created] [datetime] NOT NULL,

[Modified] [datetime] NOT NULL,

CONSTRAINT [PK_PointsDetail] PRIMARY KEY CLUSTERED

(

[PointsDetailKey] ASC

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

) ON [PRIMARY]

ALTER TABLE [dbo].[LoyPointsDetail] ADD CONSTRAINT [DF_PointsDetail_PointsAwarded] DEFAULT ((0)) FOR [AwardedPoints]

ALTER TABLE [dbo].[LoyPointsDetail] ADD CONSTRAINT [DF_PointsDetail_CurrencyAwarded] DEFAULT ((0)) FOR [AwardedCurrency]

ALTER TABLE [dbo].[LoyPointsDetail] ADD CONSTRAINT [DF_PointsDetail_CumultiveItemsCarryForwarded] DEFAULT ((0)) FOR [CumultiveItemsCarryForwarded]

ALTER TABLE [dbo].[LoyPointsDetail] ADD CONSTRAINT [DF_PointsDetail_IsConflict] DEFAULT ((0)) FOR [IsConflict]

ALTER TABLE [dbo].[LoyPointsDetail] ADD CONSTRAINT [DF_PointsDetail_CreatedOn] DEFAULT (getdate()) FOR [Created]

ALTER TABLE [dbo].[LoyPointsDetail] ADD CONSTRAINT [DF_PointsDetail_UpdatedOn] DEFAULT (getdate()) FOR [Modified]

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.