LoyMembershipGroup Table

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Tables >

LoyMembershipGroup Table

Navigation: iVend Database Database > Tables >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

LoyMembershipGroup Table

Collapse All Expand All

iVend Database Database : LoyMembershipGroup Table

Description

Stores the Header detail of Loyalty Membership Group 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

MembershipGroupKey

System generated Primary key of the table.

VarWChar

50

 

 

 

 

Id

Define the Id of loyalty membership group.

VarWChar

20

 

 

 

 

Description

Define the Description of loyalty membership group.

VarWChar

100

dbimages_tick

 

 

 

SlabKey

Define the SlabKey of loyalty membership group.

VarWChar

50

dbimages_tick

 

 

 

AvailablePoints

Define the Available Points of loyalty membership group.

Integer

4

 

((0))

 

 

AvailableCurrency

Define the Available Currency of loyalty membership group.

Numeric

9 (18,2)

 

((0))

 

 

AwardedPoints

Define the Awarded Points of loyalty membership group.

Integer

4

 

((0))

 

 

AwardedCurrency

Define the Awarded Currency of loyalty membership group.

Numeric

9 (18,2)

 

((0))

 

 

RedeemedPoints

Define the Redeemed Points of loyalty membership group.

Integer

4

 

((0))

 

 

RedeemedCurrency

Define the Redeemed Currency of loyalty membership group.

Numeric

9 (18,2)

 

((0))

 

 

ExpiredPoints

Define the Expired Points of loyalty membership group.

Integer

4

 

((0))

 

 

ExpiredCurrency

Define the Expired Currency of loyalty membership group.

Numeric

9 (18,2)

 

((0))

 

 

IsActive

Speicifes whether the loyalty membership group is active or not. Only active groups are allowed to be used for selection.

Boolean

1

 

 

 

 

IsDeleted

Value is True if the record has been deleted from the system. Record is always Soft Deleted

Boolean

1

 

((0))

 

 

Created

Date of creation of this record

DBTimeStamp

4

 

 

 

 

CreatedBy

Reference of user who has created this record. See also Security User

VarWChar

50

 

 

 

 

Modified

Date of last modification of this record

DBTimeStamp

4

 

 

 

 

ModifiedBy

Reference of user who has modified this record. See also Security User

VarWChar

50

 

 

 

 

LoyaltyConfigKey

Reference Key of CfgLoyaltyConfig. See also CfgLoyaltyConfig

VarWChar

50

 

((0))

 

Indexes

Index

Description

Primary

Unique

PK_LoyMembershipGroup

 

dbimages_tick

dbimages_tick

Objects that depend on LoyMembershipGroup

 

Database Object

Object Type

Description

Dep Level

Loyalty_ActiveBillValue view

Loyalty_ActiveBillValue

View

 

1

Loyalty_ActiveTransactionCount view

Loyalty_ActiveTransactionCount

View

 

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].[LoyMembershipGroup](

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

[Id] [nvarchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

[Description] [nvarchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

[SlabKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS 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,

[IsActive] [bit] NOT NULL,

[IsDeleted] [bit] NOT NULL,

[Created] [datetime] NOT NULL,

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

[Modified] [datetime] NOT NULL,

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

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

CONSTRAINT [PK_LoyMembershipGroup] PRIMARY KEY CLUSTERED

(

[MembershipGroupKey] 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].[LoyMembershipGroup] ADD CONSTRAINT [DF_LoyMembershipGroup_AvailablePoints] DEFAULT ((0)) FOR [AvailablePoints]

ALTER TABLE [dbo].[LoyMembershipGroup] ADD CONSTRAINT [DF_LoyMembershipGroup_AvailableCurrency] DEFAULT ((0)) FOR [AvailableCurrency]

ALTER TABLE [dbo].[LoyMembershipGroup] ADD CONSTRAINT [DF_LoyMembershipGroup_AwardedPoints] DEFAULT ((0)) FOR [AwardedPoints]

ALTER TABLE [dbo].[LoyMembershipGroup] ADD CONSTRAINT [DF_LoyMembershipGroup_AwardedCurrency] DEFAULT ((0)) FOR [AwardedCurrency]

ALTER TABLE [dbo].[LoyMembershipGroup] ADD CONSTRAINT [DF_LoyMembershipGroup_RedeemedPoints] DEFAULT ((0)) FOR [RedeemedPoints]

ALTER TABLE [dbo].[LoyMembershipGroup] ADD CONSTRAINT [DF_LoyMembershipGroup_RedeemedCurrency] DEFAULT ((0)) FOR [RedeemedCurrency]

ALTER TABLE [dbo].[LoyMembershipGroup] ADD CONSTRAINT [DF_LoyMembershipGroup_ExpiredPoints] DEFAULT ((0)) FOR [ExpiredPoints]

ALTER TABLE [dbo].[LoyMembershipGroup] ADD CONSTRAINT [DF_LoyMembershipGroup_ExpiredCurrency] DEFAULT ((0)) FOR [ExpiredCurrency]

ALTER TABLE [dbo].[LoyMembershipGroup] ADD CONSTRAINT [DF_LoyMembershipGroup_IsDeleted] DEFAULT ((0)) FOR [IsDeleted]

ALTER TABLE [dbo].[LoyMembershipGroup] ADD CONSTRAINT [DF__LoyMember__Loyal__69F19A7E] DEFAULT ((0)) FOR [LoyaltyConfigKey]

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.