<< Click to Display Table of Contents >> Navigation: iVend Database Database > Tables > LoyPointsDetail Table |
Navigation: iVend Database Database > Tables >
iVend 6.6 Database Help
LoyPointsDetail Table
Collapse All Expand All
iVend Database Database : LoyPointsDetail Table |
Description
Stores the details of Loyalty Points awarded 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 |
PointsDetailKey |
Primary Key |
VarWChar |
50 |
|
|
|
|
|
PointsKey |
Reference Key of Points. See also Points. |
VarWChar |
50 |
|
|
|
|
TransactionKey |
Reference Key of Transaction. See also Transaction. |
VarWChar |
50 |
|
|
|
|
TransactionItemKey |
Reference Key of Transaction Item. See also Transaction Item. |
VarWChar |
50 |
|
|
|
|
AwardedPoints |
Hold points awarded on line item of the particular transaction |
Integer |
4 |
|
((0)) |
|
|
AwardedCurrency |
Hold currency awarded on line item of the particular transaction |
Numeric |
9 (18,2) |
|
((0)) |
|
|
CumultiveItemsCarryForwarded |
|
Integer |
4 |
((0)) |
|
|
|
IsConflict |
Value is True if Points Conflict |
Boolean |
1 |
|
((0)) |
|
|
PlanKey |
Reference Key of Plan. See also Plan. |
VarWChar |
50 |
|
|
|
|
PlanDetailKey |
Reference Key of Plan Detail. See also Pln Detail. |
VarWChar |
50 |
|
|
|
|
PlanVersion |
Hold the Plan Version |
VarWChar |
50 |
|
|
|
|
PlanDefinationBasis |
Refers to the type of Plan Definition Basis. Valid values are: EveryTransaction = 1, CumulativeBasis = 2 |
Integer |
4 |
|
|
|
|
CustomerKey |
Reference Key of Loyalty Card Information. See also Points. |
VarWChar |
50 |
|
|
|
|
OriginalPointsKey |
Reference Key of Points. See also Points. |
VarWChar |
50 |
|
|
|
|
OriginalPointsDetailKey |
Reference Key of Points Detail. See also Points Detail. |
VarWChar |
50 |
|
|
|
|
Created |
Date of creation of this record |
DBTimeStamp |
4 |
|
(getdate()) |
|
|
Modified |
Date of last modification of this record |
DBTimeStamp |
4 |
|
(getdate()) |
|
Indexes
Index |
Description |
Primary |
Unique |
|
SQL
SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON CREATE TABLE [dbo].[LoyPointsDetail]( [PointsDetailKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [PointsKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [TransactionKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [TransactionItemKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [AwardedPoints] [int] NOT NULL, [AwardedCurrency] [decimal](18, 2) NOT NULL, [CumultiveItemsCarryForwarded] [int] NULL, [IsConflict] [bit] NOT NULL, [PlanKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [PlanDetailKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [PlanVersion] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [PlanDefinationBasis] [int] NULL, [CustomerKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [OriginalPointsKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [OriginalPointsDetailKey] [nvarchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [Created] [datetime] NOT NULL, [Modified] [datetime] NOT NULL, CONSTRAINT [PK_PointsDetail] PRIMARY KEY CLUSTERED ( [PointsDetailKey] 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].[LoyPointsDetail] ADD CONSTRAINT [DF_PointsDetail_PointsAwarded] DEFAULT ((0)) FOR [AwardedPoints] ALTER TABLE [dbo].[LoyPointsDetail] ADD CONSTRAINT [DF_PointsDetail_CurrencyAwarded] DEFAULT ((0)) FOR [AwardedCurrency] ALTER TABLE [dbo].[LoyPointsDetail] ADD CONSTRAINT [DF_PointsDetail_CumultiveItemsCarryForwarded] DEFAULT ((0)) FOR [CumultiveItemsCarryForwarded] ALTER TABLE [dbo].[LoyPointsDetail] ADD CONSTRAINT [DF_PointsDetail_IsConflict] DEFAULT ((0)) FOR [IsConflict] ALTER TABLE [dbo].[LoyPointsDetail] ADD CONSTRAINT [DF_PointsDetail_CreatedOn] DEFAULT (getdate()) FOR [Created] ALTER TABLE [dbo].[LoyPointsDetail] ADD CONSTRAINT [DF_PointsDetail_UpdatedOn] DEFAULT (getdate()) FOR [Modified] |
See Also
© 2019 All Rights Reserved.
Send comments on this topic.