<< Click to Display Table of Contents >> Navigation: iVend Database Database > Tables > LoyPlan Table |
Navigation: iVend Database Database > Tables >
iVend 6.6 Database Help
LoyPlan Table
Collapse All Expand All
iVend Database Database : LoyPlan Table |
Description
Stores the Header detail of Loyalty Plan 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 |
PlanKey |
Primary Key |
VarWChar |
50 |
|
|
|
|
|
PlanVersion |
Hold the plan version |
VarWChar |
50 |
|
|
|
|
Id |
Specify the Id of notification |
VarWChar |
20 |
|
|
|
|
Description |
Specify the description of notification |
VarWChar |
100 |
|
|
|
|
StartDate |
Specify the start date of plan |
DBTimeStamp |
4 |
|
|
|
|
StartTime |
Specify the start time of plan |
DBTimeStamp |
4 |
|
|
|
|
EndDate |
Specify the end date of plan |
DBTimeStamp |
4 |
|
|
|
|
EndTime |
Specify the end time of plan |
DBTimeStamp |
4 |
|
|
|
|
PlanType |
Refers to the type of Plan Type. Valid values are: Normal = 1, SpecialDays = 2, SpecialDaysForCustomers = 3 |
Integer |
4 |
|
|
|
|
IsBirthDate |
Hold true/false for customer birth date |
Boolean |
1 |
|
((0)) |
|
|
IsAnniversaryDate |
Hold true/false for customer anniversary date |
Boolean |
1 |
|
((0)) |
|
|
ConflictResolutionMethod |
Refers to the type of Conflict Resolution Method. Valid values are: Minimum = 1, Maximum = 2, SumTotal = 3, Average = 4 |
Integer |
4 |
|
|
|
|
IsActive |
Value is True if the plan is active |
Boolean |
1 |
|
|
|
|
IsDeleted |
Value is True if the record has been deleted from the system. Record is always Soft Deleted |
Boolean |
1 |
|
|
|
|
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 |
|
|
|
|
PlanDefinitionBasis |
Refers to the type of Plan Definition Basis. Valid values are: EveryTransaction = 1, CumulativeBasis = 2 |
Integer |
4 |
|
|
|
|
TransactionDaysBefore |
Specify the transaction days. |
Integer |
4 |
|
|
|
|
LoyaltyConfigKey |
Reference Key of CfgLoyaltyConfig. See also CfgLoyaltyConfig |
VarWChar |
50 |
|
((0)) |
|
Indexes
Index |
Description |
Primary |
Unique |
|
SQL
SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON CREATE TABLE [dbo].[LoyPlan]( [PlanKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [PlanVersion] [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, [StartDate] [datetime] NOT NULL, [StartTime] [datetime] NULL, [EndDate] [datetime] NULL, [EndTime] [datetime] NULL, [PlanType] [int] NOT NULL, [IsBirthDate] [bit] NOT NULL, [IsAnniversaryDate] [bit] NOT NULL, [ConflictResolutionMethod] [int] 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, [PlanDefinitionBasis] [int] NULL, [TransactionDaysBefore] [int] NULL, [LoyaltyConfigKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, CONSTRAINT [PK_LoyPlan] PRIMARY KEY CLUSTERED ( [PlanKey] 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].[LoyPlan] ADD CONSTRAINT [DF_LoyPlan_IsBirthDate] DEFAULT ((0)) FOR [IsBirthDate] ALTER TABLE [dbo].[LoyPlan] ADD CONSTRAINT [DF_LoyPlan_IsAnniversaryDate] DEFAULT ((0)) FOR [IsAnniversaryDate] ALTER TABLE [dbo].[LoyPlan] ADD CONSTRAINT [DF__LoyPlan__Loyalty__6CCE0729] DEFAULT ((0)) FOR [LoyaltyConfigKey] |
See Also
© 2019 All Rights Reserved.
Send comments on this topic.