Tables [dbo].[PlasticWebDealDetail]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created9:32:17 AM Friday, December 7, 2018
Last Modified9:12:54 AM Thursday, May 23, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_PlasticWebDealDetail: WebDealDetailIDWebDealDetailIDint4
No
1 - 1
Foreign Keys FK_PlasticWebDeal_DealFID: [dbo].[PlasticDeal].DealFIDDealFIDint4
Yes
MoversConnectFIDbigint8
No
OkToUseForFuturePaymentsbit1
No
SourceIpAddressvarchar(40)40
No
WebActivityDatedatetime8
No
CreatedDatedatetime8
No
(getutcdate())
Foreign Keys FK_PlasticWebDeal_WebDealFID: [dbo].[PlasticWebDeal].WebDealFIDWebDealFIDint4
Yes
Foreign Keys FK_PlasticWebDeal_StatementDetailFID: [dbo].[StatementDetail].StatementDetailFIDStatementDetailFIDint4
Yes
Foreign Keys FK_PlasticWebDeal_InstrumentFID: [dbo].[PlasticInstrument].InstrumentFIDInstrumentFIDint4
Yes
PostingInProgressbit1
No
((0))
OnlineResponseFIDbigint8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_PlasticWebDealDetail: WebDealDetailIDPK_PlasticWebDealDetailWebDealDetailID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_PlasticWebDeal_DealFIDDealFID->[dbo].[PlasticDeal].[DealID]
FK_PlasticWebDeal_InstrumentFIDInstrumentFID->[dbo].[PlasticInstrument].[InstrumentID]
FK_PlasticWebDeal_StatementDetailFIDStatementDetailFID->[dbo].[StatementDetail].[SDPriKey]
FK_PlasticWebDeal_WebDealFIDWebDealFID->[dbo].[PlasticWebDeal].[WebDealID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[PlasticWebDealDetail]
(
[WebDealDetailID] [int] NOT NULL IDENTITY(1, 1),
[DealFID] [int] NULL,
[MoversConnectFID] [bigint] NOT NULL,
[OkToUseForFuturePayments] [bit] NOT NULL,
[SourceIpAddress] [varchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[WebActivityDate] [datetime] NOT NULL,
[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF_PlasticWebDealDetail_CreatedDate] DEFAULT (getutcdate()),
[WebDealFID] [int] NULL,
[StatementDetailFID] [int] NULL,
[InstrumentFID] [int] NULL,
[PostingInProgress] [bit] NOT NULL CONSTRAINT [DF_PlasticWebDealDetail_PostingInProgress] DEFAULT ((0)),
[OnlineResponseFID] [bigint] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticWebDealDetail] ADD CONSTRAINT [PK_PlasticWebDealDetail] PRIMARY KEY CLUSTERED  ([WebDealDetailID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticWebDealDetail] ADD CONSTRAINT [FK_PlasticWebDeal_DealFID] FOREIGN KEY ([DealFID]) REFERENCES [dbo].[PlasticDeal] ([DealID])
GO
ALTER TABLE [dbo].[PlasticWebDealDetail] ADD CONSTRAINT [FK_PlasticWebDeal_InstrumentFID] FOREIGN KEY ([InstrumentFID]) REFERENCES [dbo].[PlasticInstrument] ([InstrumentID])
GO
ALTER TABLE [dbo].[PlasticWebDealDetail] ADD CONSTRAINT [FK_PlasticWebDeal_StatementDetailFID] FOREIGN KEY ([StatementDetailFID]) REFERENCES [dbo].[StatementDetail] ([SDPriKey])
GO
ALTER TABLE [dbo].[PlasticWebDealDetail] ADD CONSTRAINT [FK_PlasticWebDeal_WebDealFID] FOREIGN KEY ([WebDealFID]) REFERENCES [dbo].[PlasticWebDeal] ([WebDealID])
GO
GRANT SELECT ON  [dbo].[PlasticWebDealDetail] TO [MssExec]
GRANT INSERT ON  [dbo].[PlasticWebDealDetail] TO [MssExec]
GRANT DELETE ON  [dbo].[PlasticWebDealDetail] TO [MssExec]
GRANT UPDATE ON  [dbo].[PlasticWebDealDetail] TO [MssExec]
GO
Uses