PmtGiftCertificateLog Table

<< Click to Display Table of Contents >>

Navigation:  iVend Database Database > Tables >

PmtGiftCertificateLog Table

Navigation: iVend Database Database > Tables >

hm_btn_navigate_prevhm_btn_navigate_tophm_btn_navigate_next

iVend 6.6 Database Help

PmtGiftCertificateLog Table

Collapse All Expand All

iVend Database Database : PmtGiftCertificateLog Table

Description

Stores the log for every Gift certificate used

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

GiftCertificateLogKey

Primary Key

VarWChar

50

 

 

 

 

GiftCertificateKey

Reference Key of Gift Certificate. See also Gift Certificate.

VarWChar

50

 

 

 

 

SerialNumberKey

Stores the SerialKey of the Serial Number of the Gift Certificate

VarWChar

50

 

 

 

 

SourceType

Stores the Gift certificate Type <

valid values are

None = 0

Sale = 1

Reedmed = 2

Recharge = 3

CashBack = 4

Integer

4

 

 

 

 

SourceKey

Stores the Source key based on the Source type chosen

VarWChar

50

 

 

 

 

SourceDetailKey

Refers to the key of the sourceType of the transaction.

VarWChar

50

 

 

 

 

Amount

Stores the amount of the gift certificate used

Numeric

9 (20,5)

 

 

 

 

LogDate

Value is the date for the log

DBTimeStamp

4

dbimages_tick

(getdate())

 

 

IsProcessed

Value is true if the Gift Certificate has been processed.

Boolean

1

dbimages_tick

((0))

 

Indexes

Index

Description

Primary

Unique

PK_PmtGiftCertificateLog

 

dbimages_tick

dbimages_tick

Objects that depend on PmtGiftCertificateLog

 

Database Object

Object Type

Description

Dep Level

ExecuteInventoryItemLogUpdate procedure

ExecuteInventoryItemLogUpdate

Stored Procedure

 

1

GiftCertificateUpdate procedure

GiftCertificateUpdate

Stored Procedure

 

1

vwAnalytics_GiftCertificates view

vwAnalytics_GiftCertificates

View

 

1

SQL

SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[PmtGiftCertificateLog](

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

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

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

[SourceType] [int] NOT NULL,

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

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

[Amount] [decimal](20, 5) NOT NULL,

[LogDate] [datetime] NULL,

[IsProcessed] [bit] NULL,

CONSTRAINT [PK_PmtGiftCertificateLog] PRIMARY KEY CLUSTERED

(

[GiftCertificateLogKey] 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].[PmtGiftCertificateLog] ADD CONSTRAINT [DF_PmtGiftCertificateLog_LogDate] DEFAULT (getdate()) FOR [LogDate]

ALTER TABLE [dbo].[PmtGiftCertificateLog] ADD CONSTRAINT [DF__PmtGiftCe__IsPro__2917FB5A] DEFAULT ((0)) FOR [IsProcessed]

See Also

Related Objects

iVend Database Database

 

 


© 2019 All Rights Reserved.

Send comments on this topic.