LoyPointsSummary Table

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Tables >

LoyPointsSummary Table

Navigation: iVend Database Database > Tables >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

LoyPointsSummary Table

Collapse All Expand All

iVend Database Database : LoyPointsSummary Table

Description

Stores the Summary 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

PointsSummarykey

Primary Key

VarWChar

50

 

 

 

 

CustomerKey

Reference Key of Loyalty Card Information. See also Loyalty Card Information.

VarWChar

50

 

 

 

 

AvailablePoints

Hold the available points of loyalty customer

Integer

4

 

((0))

 

 

AvailableCurrency

Hold the available currency of loyalty customer

Numeric

9 (18,2)

 

((0))

 

 

AwardedPoints

Hold the awarded points of loyalty customer

Integer

4

 

((0))

 

 

AwardedCurrency

Hold the awarded currency of loyalty customer

Numeric

9 (18,2)

 

((0))

 

 

RedeemedPoints

Hold the redeemed points of loyalty customer

Integer

4

 

((0))

 

 

RedeemedCurrency

Hold the redeemed currency of loyalty customer

Numeric

9 (18,2)

 

((0))

 

 

ExpiredPoints

Hold the expired points of loyalty customer

Integer

4

 

((0))

 

 

ExpiredCurrency

Hold the expired currency of loyalty customer

Numeric

9 (18,2)

 

((0))

 

 

Created

Date of creation of this record

DBTimeStamp

4

 

(getdate())

 

 

Modified

Date of last modification of this record

DBTimeStamp

4

 

(getdate())

 

 

IsIntegratedWithPortal

Value is True if records is integrated on customer portal.

Boolean

1

dbimages_tick

 

 

Indexes

Index

Description

Primary

Unique

PK_PointsSummary

 

dbimages_tick

dbimages_tick

Objects that depend on LoyPointsSummary

 

Database Object

Object Type

Description

Dep Level

Loy_GetPointsSummaryForPortalIntegration procedure

Loy_GetPointsSummaryForPortalIntegration

Stored Procedure

 

1

LoyUpdatePointSummary procedure

LoyUpdatePointSummary

Stored Procedure

 

1

RecalculateSlabForLoyaltyCustomer procedure

RecalculateSlabForLoyaltyCustomer

Stored Procedure

 

1

Rpt_ActiveLoyalty function

Rpt_ActiveLoyalty

User Defined Function

 

1

SQL

SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[LoyPointsSummary](

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

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

[AvailablePoints] [int] NOT NULL,

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

[AwardedPoints] [int] NOT NULL,

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

[RedeemedPoints] [int] NOT NULL,

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

[ExpiredPoints] [int] NOT NULL,

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

[Created] [datetime] NOT NULL,

[Modified] [datetime] NOT NULL,

[IsIntegratedWithPortal] [bit] NULL,

CONSTRAINT [PK_PointsSummary] PRIMARY KEY CLUSTERED

(

[PointsSummarykey] 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].[LoyPointsSummary] ADD CONSTRAINT [DF_PointsSummary_AvailablePoints] DEFAULT ((0)) FOR [AvailablePoints]

ALTER TABLE [dbo].[LoyPointsSummary] ADD CONSTRAINT [DF_PointsSummary_AvailableCurrency] DEFAULT ((0)) FOR [AvailableCurrency]

ALTER TABLE [dbo].[LoyPointsSummary] ADD CONSTRAINT [DF_PointsSummary_AwardedPoints] DEFAULT ((0)) FOR [AwardedPoints]

ALTER TABLE [dbo].[LoyPointsSummary] ADD CONSTRAINT [DF_PointsSummary_AwardedCurrency] DEFAULT ((0)) FOR [AwardedCurrency]

ALTER TABLE [dbo].[LoyPointsSummary] ADD CONSTRAINT [DF_PointsSummary_RedeemedPoints] DEFAULT ((0)) FOR [RedeemedPoints]

ALTER TABLE [dbo].[LoyPointsSummary] ADD CONSTRAINT [DF_PointsSummary_RedeemedCurrency] DEFAULT ((0)) FOR [RedeemedCurrency]

ALTER TABLE [dbo].[LoyPointsSummary] ADD CONSTRAINT [DF_PointsSummary_ExpiredPoints] DEFAULT ((0)) FOR [ExpiredPoints]

ALTER TABLE [dbo].[LoyPointsSummary] ADD CONSTRAINT [DF_PointsSummary_ExpiredCurrency] DEFAULT ((0)) FOR [ExpiredCurrency]

ALTER TABLE [dbo].[LoyPointsSummary] ADD CONSTRAINT [DF_PointsSummary_SummaryDatetime] DEFAULT (getdate()) FOR [Created]

ALTER TABLE [dbo].[LoyPointsSummary] ADD CONSTRAINT [DF_LoyPointsSummary_UpdatedOn] DEFAULT (getdate()) FOR [Modified]

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.