LoyMailData Table

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Tables >

LoyMailData Table

Navigation: iVend Database Database > Tables >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

LoyMailData Table

Collapse All Expand All

iVend Database Database : LoyMailData Table

Description

Store the mail & sms data sent on mail & sms.

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

MailDataKey

Primary Key

VarWChar

50

 

 

 

 

LoyaltyCardInformationKey

Reference Key of Loyalty Card Information. See also Loyalty Card Information.

VarWChar

50

 

 

 

 

MailEventKey

Reference Key of Notification. See also Notification.

VarWChar

50

 

 

 

 

SlabKey

Reference Key of Slab. See also Slab.

VarWChar

50

 

 

 

 

Points

Hold points

Integer

4

 

((0))

 

 

Currency

Hold currency

Numeric

9 (18,2)

 

((0))

 

 

IsAward

Value is true if points are awarded

Boolean

1

 

((0))

 

 

MailSent

Value is true if mail is sent to loyalty customer

Boolean

1

 

((0))

 

 

SMSSent

Value is true if sms is sent to loyalty customer

Boolean

1

 

((0))

 

 

IsMailEnabled

Value is true if mail is enabled to loyalty customer

Boolean

1

 

((0))

 

 

IsSMSEnabled

Value is true if sms is enabled to loyalty customer

Boolean

1

 

((0))

 

 

EventDate

Hold the date of event

DBTimeStamp

4

 

(getdate())

 

 

RedeemedPoints

Hold redeemed points

Integer

4

dbimages_tick

 

 

 

RedeemedCurrency

Hold redeemed points

Numeric

9 (18,2)

dbimages_tick

 

 

Indexes

Index

Description

Primary

Unique

PK_LoyMailData

 

dbimages_tick

dbimages_tick

SQL

SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[LoyMailData](

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

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

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

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

[Points] [int] NOT NULL,

[Currency] [numeric](18, 2) NOT NULL,

[IsAward] [bit] NOT NULL,

[MailSent] [bit] NOT NULL,

[SMSSent] [bit] NOT NULL,

[IsMailEnabled] [bit] NOT NULL,

[IsSMSEnabled] [bit] NOT NULL,

[EventDate] [datetime] NOT NULL,

[RedeemedPoints] [int] NULL,

[RedeemedCurrency] [numeric](18, 2) NULL,

CONSTRAINT [PK_LoyMailData] PRIMARY KEY CLUSTERED

(

[MailDataKey] 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].[LoyMailData] ADD CONSTRAINT [DF_LoyMailData_Points] DEFAULT ((0)) FOR [Points]

ALTER TABLE [dbo].[LoyMailData] ADD CONSTRAINT [DF_LoyMailData_Currency] DEFAULT ((0)) FOR [Currency]

ALTER TABLE [dbo].[LoyMailData] ADD CONSTRAINT [DF_LoyMailData_IsAward] DEFAULT ((0)) FOR [IsAward]

ALTER TABLE [dbo].[LoyMailData] ADD CONSTRAINT [DF_LoyMailData_MailSent] DEFAULT ((0)) FOR [MailSent]

ALTER TABLE [dbo].[LoyMailData] ADD CONSTRAINT [DF_LoyMailData_SMSSent] DEFAULT ((0)) FOR [SMSSent]

ALTER TABLE [dbo].[LoyMailData] ADD CONSTRAINT [DF_LoyMailData_IsMailEnabled] DEFAULT ((0)) FOR [IsMailEnabled]

ALTER TABLE [dbo].[LoyMailData] ADD CONSTRAINT [DF_LoyMailData_IsSMSEnabled] DEFAULT ((0)) FOR [IsSMSEnabled]

ALTER TABLE [dbo].[LoyMailData] ADD CONSTRAINT [DF_LoyMailData_EventDate] DEFAULT (getdate()) FOR [EventDate]

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.