LoyLoyaltyCardInformation Table

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Tables >

LoyLoyaltyCardInformation Table

Navigation: iVend Database Database > Tables >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

LoyLoyaltyCardInformation Table

Collapse All Expand All

iVend Database Database : LoyLoyaltyCardInformation Table

Description

Store the Details of Loyalty Customer 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

LoyaltyCardInformationKey

Primary Key

VarWChar

50

 

 

 

 

CustomerKey

Reference Key of Customer. See also Customer.

VarWChar

50

 

((0))

 

 

Salutation

Specify the salutation of loyalty customer

VarWChar

50

dbimages_tick

 

 

 

Title

Specify the title of loyalty customer

VarWChar

50

dbimages_tick

 

 

 

FirstName

Specify the First name of loyalty customer

VarWChar

100

 

 

 

 

MiddleName

Specify the middle name of loyalty customer

VarWChar

50

dbimages_tick

 

 

 

LastName

Specify the last name of loyalty customer

VarWChar

40

dbimages_tick

 

 

 

NickName

Specify the nick name of loyalty customer

VarWChar

50

dbimages_tick

 

 

 

Gender

Specify the gender of loyalty customer

VarWChar

50

dbimages_tick

 

 

 

BirthDate

Specify the birth date of loyalty customer

DBTimeStamp

4

dbimages_tick

 

 

 

AnniversaryDate

Specify the anniversary date of loyalty customer

DBTimeStamp

4

dbimages_tick

 

 

 

CompanyName

Specify the company name of loyalty customer

VarWChar

50

dbimages_tick

 

 

 

MobilePhone

Specify the mobile phone of loyalty customer

VarWChar

50

dbimages_tick

 

 

 

PhoneNumber

Specify the phone number of loyalty customer

VarWChar

50

dbimages_tick

 

 

 

AlternatePhoneNumber

Specify the alternate phone number of loyalty customer

VarWChar

50

dbimages_tick

 

 

 

FaxNumber

Specify the fax number of loyalty customer

VarWChar

50

dbimages_tick

 

 

 

Email

Specify the email of loyalty customer

VarWChar

100

dbimages_tick

 

 

 

WebPage

Specify the web page of loyalty customer

VarWChar

100

dbimages_tick

 

 

 

Address1

Specify the address 1 of loyalty customer

VarWChar

100

dbimages_tick

 

 

 

Address2

Specify the address 2 of loyalty customer

VarWChar

100

dbimages_tick

 

 

 

Address3

Specify the address 3 of loyalty customer

VarWChar

100

dbimages_tick

 

 

 

City

Specify the city of loyalty customer

VarWChar

100

dbimages_tick

 

 

 

ZipCode

Specify the zipcode of loyalty customer

VarWChar

30

dbimages_tick

 

 

 

StateKey

Specify the web page of loyalty customer

VarWChar

50

dbimages_tick

 

 

 

CountryKey

Reference Key of State. See also State.

VarWChar

50

dbimages_tick

 

 

 

CustomerGroupKey

Reference Key of Customer Group. See also Customer Group.

VarWChar

50

dbimages_tick

 

 

 

ElectronicId

Specify the electronic Id of loyalty customer

VarWChar

40

dbimages_tick

 

 

 

LoyaltyId

Specify the Loyalty Id of loyalty customer

VarWChar

50

 

 

 

 

StoreKey

Reference Key of Store. See also Store.

VarWChar

50

 

 

 

 

RegistrationMethod

Specify the registration method of loyalty customer

Integer

4

dbimages_tick

 

 

 

SlabKey

Reference Key of Slab. See also Slab.

VarWChar

50

dbimages_tick

 

 

 

RegistrationDate

Specify the registration date of loyalty customer

DBTimeStamp

4

 

 

 

 

CardExpiryDate

Specify the card expiry date of loyalty customer

DBTimeStamp

4

dbimages_tick

 

 

 

IsActive

Value is True if loyalty customer is active

Boolean

1

 

 

 

 

OnHold

Value is True if loyalty customer is on Hold.

Boolean

1

 

((0))

 

 

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

 

 

 

 

MembershipGroupKey

Define the loyalty customers is in loyalty membership group.If is not in group 0.

VarWChar

50

dbimages_tick

 

 

 

HasMembershipGroup

Define the loyalty customers is in loyalty membership group.If is in group true.

Boolean

1

dbimages_tick

 

 

 

ReferredByKey

Reference Key of LoyLoyaltyCardInformation. See also LoyLoyaltyCardInformation

VarWChar

50

dbimages_tick

 

 

 

LoyaltyConfigKey

Reference Key of CfgLoyaltyConfig. See also CfgLoyaltyConfig

VarWChar

50

 

((0))

 

 

IsPointsAwardedOnReferralFirstTransaction

Value is True if bonus points awarded to referred by customer.

Boolean

1

dbimages_tick

((0))

 

 

EnableLoyaltyNotification

Value is True if customer want to receive loyalty notifications. if Value is False then customer will not receive any Loyalty notification

Boolean

1

dbimages_tick

((1))

 

 

EnablePassNotification

 

Boolean

1

dbimages_tick

((0))

 

Indexes

Index

Description

Primary

Unique

PK_LoyLoyaltyCardInformation

 

dbimages_tick

dbimages_tick

Objects that depend on LoyLoyaltyCardInformation

 

Database Object

Object Type

Description

Dep Level

GetMobileReplicationData procedure

GetMobileReplicationData

Stored Procedure

 

1

Loy_GetMonthlyPointSummary procedure

Loy_GetMonthlyPointSummary

Stored Procedure

 

1

Loy_GetPointsSummaryForPortalIntegration procedure

Loy_GetPointsSummaryForPortalIntegration

Stored Procedure

 

1

Loyalty_ActiveBillValue view

Loyalty_ActiveBillValue

View

 

1

Loyalty_ActiveTransactionCount view

Loyalty_ActiveTransactionCount

View

 

1

Loyalty_GenderInfo view

Loyalty_GenderInfo

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

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

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

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

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

[FirstName] [nvarchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,

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

[LastName] [nvarchar](40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

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

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

[BirthDate] [datetime] NULL,

[AnniversaryDate] [datetime] NULL,

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

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

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

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

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

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

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

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

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

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

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

[ZipCode] [nvarchar](30) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

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

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

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

[ElectronicId] [nvarchar](40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,

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

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

[RegistrationMethod] [int] NULL,

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

[RegistrationDate] [datetime] NOT NULL,

[CardExpiryDate] [datetime] NULL,

[IsActive] [bit] NOT NULL,

[OnHold] [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,

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

[HasMembershipGroup] [bit] NULL,

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

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

[IsPointsAwardedOnReferralFirstTransaction] [bit] NULL,

[EnableLoyaltyNotification] [bit] NULL,

[EnablePassNotification] [bit] NULL,

CONSTRAINT [PK_LoyLoyaltyCardInformation] PRIMARY KEY CLUSTERED

(

[LoyaltyCardInformationKey] 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].[LoyLoyaltyCardInformation] ADD CONSTRAINT [DF_LoyLoyaltyCardInformation_CustomerKey] DEFAULT ((0)) FOR [CustomerKey]

ALTER TABLE [dbo].[LoyLoyaltyCardInformation] ADD CONSTRAINT [DF_LoyLoyaltyCardInformation_OnHold] DEFAULT ((0)) FOR [OnHold]

ALTER TABLE [dbo].[LoyLoyaltyCardInformation] ADD CONSTRAINT [DF_LoyLoyaltyCardInformation_IsDeleted] DEFAULT ((0)) FOR [IsDeleted]

ALTER TABLE [dbo].[LoyLoyaltyCardInformation] ADD CONSTRAINT [DF__LoyLoyalt__Loyal__6AE5BEB7] DEFAULT ((0)) FOR [LoyaltyConfigKey]

ALTER TABLE [dbo].[LoyLoyaltyCardInformation] ADD CONSTRAINT [DF__LoyLoyalt__IsPoi__6BD9E2F0] DEFAULT ((0)) FOR [IsPointsAwardedOnReferralFirstTransaction]

ALTER TABLE [dbo].[LoyLoyaltyCardInformation] ADD CONSTRAINT [DF__LoyLoyalt__Enabl__1C330188] DEFAULT ((1)) FOR [EnableLoyaltyNotification]

ALTER TABLE [dbo].[LoyLoyaltyCardInformation] ADD CONSTRAINT [DF__LoyLoyalt__Enabl__331666E0] DEFAULT ((0)) FOR [EnablePassNotification]

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.