<< Click to Display Table of Contents >> Navigation: iVend Database Database > Tables > LoyLoyaltyCardInformation Table |
Navigation: iVend Database Database > Tables >
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 |
|
Published for Replication |
|
Rows |
0 |
Data Space Used |
0.00 KB |
Index Space Used |
0.00 KB |
Columns
|
Column Name |
Description |
Datatype |
Length |
Allow Nulls |
Default |
Formula |
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 |
|
|
|
|
Title |
Specify the title of loyalty customer |
VarWChar |
50 |
|
|
|
|
FirstName |
Specify the First name of loyalty customer |
VarWChar |
100 |
|
|
|
|
MiddleName |
Specify the middle name of loyalty customer |
VarWChar |
50 |
|
|
|
|
LastName |
Specify the last name of loyalty customer |
VarWChar |
40 |
|
|
|
|
NickName |
Specify the nick name of loyalty customer |
VarWChar |
50 |
|
|
|
|
Gender |
Specify the gender of loyalty customer |
VarWChar |
50 |
|
|
|
|
BirthDate |
Specify the birth date of loyalty customer |
DBTimeStamp |
4 |
|
|
|
|
AnniversaryDate |
Specify the anniversary date of loyalty customer |
DBTimeStamp |
4 |
|
|
|
|
CompanyName |
Specify the company name of loyalty customer |
VarWChar |
50 |
|
|
|
|
MobilePhone |
Specify the mobile phone of loyalty customer |
VarWChar |
50 |
|
|
|
|
PhoneNumber |
Specify the phone number of loyalty customer |
VarWChar |
50 |
|
|
|
|
AlternatePhoneNumber |
Specify the alternate phone number of loyalty customer |
VarWChar |
50 |
|
|
|
|
FaxNumber |
Specify the fax number of loyalty customer |
VarWChar |
50 |
|
|
|
|
Specify the email of loyalty customer |
VarWChar |
100 |
|
|
||
|
WebPage |
Specify the web page of loyalty customer |
VarWChar |
100 |
|
|
|
|
Address1 |
Specify the address 1 of loyalty customer |
VarWChar |
100 |
|
|
|
|
Address2 |
Specify the address 2 of loyalty customer |
VarWChar |
100 |
|
|
|
|
Address3 |
Specify the address 3 of loyalty customer |
VarWChar |
100 |
|
|
|
|
City |
Specify the city of loyalty customer |
VarWChar |
100 |
|
|
|
|
ZipCode |
Specify the zipcode of loyalty customer |
VarWChar |
30 |
|
|
|
|
StateKey |
Specify the web page of loyalty customer |
VarWChar |
50 |
|
|
|
|
CountryKey |
Reference Key of State. See also State. |
VarWChar |
50 |
|
|
|
|
CustomerGroupKey |
Reference Key of Customer Group. See also Customer Group. |
VarWChar |
50 |
|
|
|
|
ElectronicId |
Specify the electronic Id of loyalty customer |
VarWChar |
40 |
|
|
|
|
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 |
|
|
|
|
SlabKey |
Reference Key of Slab. See also Slab. |
VarWChar |
50 |
|
|
|
|
RegistrationDate |
Specify the registration date of loyalty customer |
DBTimeStamp |
4 |
|
|
|
|
CardExpiryDate |
Specify the card expiry date of loyalty customer |
DBTimeStamp |
4 |
|
|
|
|
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 |
|
|
|
|
HasMembershipGroup |
Define the loyalty customers is in loyalty membership group.If is in group true. |
Boolean |
1 |
|
|
|
|
ReferredByKey |
Reference Key of LoyLoyaltyCardInformation. See also LoyLoyaltyCardInformation |
VarWChar |
50 |
|
|
|
|
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 |
((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 |
((1)) |
|
|
|
EnablePassNotification |
|
Boolean |
1 |
((0)) |
|
Indexes
Index |
Description |
Primary |
Unique |
|
Objects that depend on LoyLoyaltyCardInformation
|
Database Object |
Object Type |
Description |
Dep Level |
Stored Procedure |
|
1 |
||
Stored Procedure |
|
1 |
||
Stored Procedure |
|
1 |
||
View |
|
1 |
||
View |
|
1 |
||
View |
|
1 |
||
Stored Procedure |
|
1 |
||
Stored Procedure |
|
1 |
||
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
© 2019 All Rights Reserved.
Send comments on this topic.