Tables [dbo].[XmlPaymentCodeMap]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)45
Created1:05:54 PM Monday, January 28, 2013
Last Modified3:35:54 PM Tuesday, November 18, 2014
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_XmlPaymentCodeMap: XmlPaymentCodeMapIDXmlPaymentCodeMapIDint4
No
1 - 1
Foreign Keys FK_XmlPaymentCodeMap_XmlInterface: [dbo].[XmlInterface].XmlInterfaceFIDIndexes IX_XmlPaymentCodeMap_XMLInterface_ExternalPaymentCode: XmlInterfaceFID\ExternalPaymentCodeXmlInterfaceFIDint4
No
Foreign Keys FK_XmlPaymentCodeMap_PaymentCode: [dbo].[PaymentCode].PaymentCodeFIDPaymentCodeFIDint4
No
Indexes IX_XmlPaymentCodeMap_XMLInterface_ExternalPaymentCode: XmlInterfaceFID\ExternalPaymentCodeExternalPaymentCodevarchar(32)32
No
AlwaysAttachDriverbit1
No
((0))
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_XmlPaymentCodeMap: XmlPaymentCodeMapIDPK_XmlPaymentCodeMapXmlPaymentCodeMapID
Yes
IX_XmlPaymentCodeMap_XMLInterface_ExternalPaymentCodeXmlInterfaceFID, ExternalPaymentCode
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XmlPaymentCodeMap_PaymentCodePaymentCodeFID->[dbo].[PaymentCode].[PaymentCodePriKey]
FK_XmlPaymentCodeMap_XmlInterfaceXmlInterfaceFID->[dbo].[XmlInterface].[XmlInterfaceID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
Extended Properties
NameLevel 2 TypeLevel 2 NameValue
DescriptionCOLUMNExternalPaymentCodeCode used by an external interface to represent a payment code.
DescriptionCOLUMNPaymentCodeFIDForeign key to our payment code.
DescriptionCOLUMNXmlInterfaceFIDForeign key to an external interface.
DescriptionCOLUMNXmlPaymentCodeMapIDThe primary key.
SQL Script
CREATE TABLE [dbo].[XmlPaymentCodeMap]
(
[XmlPaymentCodeMapID] [int] NOT NULL IDENTITY(1, 1),
[XmlInterfaceFID] [int] NOT NULL,
[PaymentCodeFID] [int] NOT NULL,
[ExternalPaymentCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[AlwaysAttachDriver] [bit] NOT NULL CONSTRAINT [DF_XmlPaymentCodeMap_AlwaysAttachDriver] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlPaymentCodeMap] ADD CONSTRAINT [PK_XmlPaymentCodeMap] PRIMARY KEY CLUSTERED  ([XmlPaymentCodeMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlPaymentCodeMap] ADD CONSTRAINT [IX_XmlPaymentCodeMap_XMLInterface_ExternalPaymentCode] UNIQUE NONCLUSTERED  ([XmlInterfaceFID], [ExternalPaymentCode]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XmlPaymentCodeMap] ADD CONSTRAINT [FK_XmlPaymentCodeMap_PaymentCode] FOREIGN KEY ([PaymentCodeFID]) REFERENCES [dbo].[PaymentCode] ([PaymentCodePriKey])
GO
ALTER TABLE [dbo].[XmlPaymentCodeMap] ADD CONSTRAINT [FK_XmlPaymentCodeMap_XmlInterface] FOREIGN KEY ([XmlInterfaceFID]) REFERENCES [dbo].[XmlInterface] ([XmlInterfaceID])
GO
GRANT SELECT ON  [dbo].[XmlPaymentCodeMap] TO [MssExec]
GRANT INSERT ON  [dbo].[XmlPaymentCodeMap] TO [MssExec]
GRANT DELETE ON  [dbo].[XmlPaymentCodeMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[XmlPaymentCodeMap] TO [MssExec]
GO
EXEC sp_addextendedproperty N'Description', N'Code used by an external interface to represent a payment code.', 'SCHEMA', N'dbo', 'TABLE', N'XmlPaymentCodeMap', 'COLUMN', N'ExternalPaymentCode'
GO
EXEC sp_addextendedproperty N'Description', N'Foreign key to our payment code.', 'SCHEMA', N'dbo', 'TABLE', N'XmlPaymentCodeMap', 'COLUMN', N'PaymentCodeFID'
GO
EXEC sp_addextendedproperty N'Description', N'Foreign key to an external interface.', 'SCHEMA', N'dbo', 'TABLE', N'XmlPaymentCodeMap', 'COLUMN', N'XmlInterfaceFID'
GO
EXEC sp_addextendedproperty N'Description', N'The primary key.', 'SCHEMA', N'dbo', 'TABLE', N'XmlPaymentCodeMap', 'COLUMN', N'XmlPaymentCodeMapID'
GO
Uses