LoyCumulativeAwardDetail Table

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Tables >

LoyCumulativeAwardDetail Table

Navigation: iVend Database Database > Tables >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

LoyCumulativeAwardDetail Table

Collapse All Expand All

iVend Database Database : LoyCumulativeAwardDetail Table

Description

Store the details of Carry forward award details in case Cumulative Plans.

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

CumulativeAwardDetailKey

System generated Primary key of the table.

VarWChar

50

 

 

 

 

LoyaltyId

Define the Loyalty Card Number of the customer

VarWChar

50

dbimages_tick

 

 

 

PlanKey

Define the awarded plan key.

VarWChar

50

dbimages_tick

((0))

 

 

PlanDetailKey

Define the awarded plan detail key.

VarWChar

50

dbimages_tick

((0))

 

 

AmountCarryForward

Define the CarryForward amount of the customer in case of cumulative plan.

Numeric

9 (18,4)

dbimages_tick

((0))

 

 

ItemCarryForward

Define the CarryForward items of the customer in case of cumulative plan.

Numeric

9 (18,4)

dbimages_tick

((0))

 

 

LastPointsAwardedDate

Define the last point award date in case of cumulative plan.

DBTimeStamp

4

dbimages_tick

((0))

 

 

CumulativeAwardType

Specifies the award type

Valid values are:

Amount = 1,

Quantity = 2

Integer

4

dbimages_tick

 

 

Indexes

Index

Description

Primary

Unique

PK_LoyCumulativeAwardDetail

 

dbimages_tick

dbimages_tick

SQL

SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[LoyCumulativeAwardDetail](

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

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

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

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

[AmountCarryForward] [decimal](18, 4) NULL,

[ItemCarryForward] [decimal](18, 4) NULL,

[LastPointsAwardedDate] [datetime] NULL,

[CumulativeAwardType] [int] NULL,

CONSTRAINT [PK_LoyCumulativeAwardDetail] PRIMARY KEY CLUSTERED

(

[CumulativeAwardDetailKey] 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].[LoyCumulativeAwardDetail] ADD CONSTRAINT [DF_LoyCumulativeAwardDetail_PlanKey] DEFAULT ((0)) FOR [PlanKey]

ALTER TABLE [dbo].[LoyCumulativeAwardDetail] ADD CONSTRAINT [DF_LoyCumulativeAwardDetail_PlanDetailKey] DEFAULT ((0)) FOR [PlanDetailKey]

ALTER TABLE [dbo].[LoyCumulativeAwardDetail] ADD CONSTRAINT [DF_LoyCumulativeAwardDetail_AmountCarryForward] DEFAULT ((0)) FOR [AmountCarryForward]

ALTER TABLE [dbo].[LoyCumulativeAwardDetail] ADD CONSTRAINT [DF_LoyCumulativeAwardDetail_ItemCarryForward] DEFAULT ((0)) FOR [ItemCarryForward]

ALTER TABLE [dbo].[LoyCumulativeAwardDetail] ADD CONSTRAINT [DF_LoyCumulativeAwardDetail_LastPointsAwardedDate] DEFAULT ((0)) FOR [LastPointsAwardedDate]

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.