Tables [dbo].[PlasticCanceledDeal]
Properties
PropertyValue
Row Count (~)0
Created4:09:40 PM Thursday, December 6, 2018
Last Modified4:09:41 PM Thursday, December 6, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_PlasticCanceledDeal: CanceledDealIDCanceledDealIDint4
No
1 - 1
Foreign Keys FK_PlasticCanceledDeal_DealFID: [dbo].[PlasticDeal].SalesDealFIDIndexes IX_PlasticCanceledDeal_SalesDealFID_RefundVoidDealFID: SalesDealFID\RefundVoidDealFIDSalesDealFIDint4
No
Foreign Keys FK_PlasticCanceledDeal_RefundVoidDealFID: [dbo].[PlasticDeal].RefundVoidDealFIDIndexes IX_PlasticCanceledDeal_RefundVoidDealFID: RefundVoidDealFIDIndexes IX_PlasticCanceledDeal_SalesDealFID_RefundVoidDealFID: SalesDealFID\RefundVoidDealFIDRefundVoidDealFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_PlasticCanceledDeal: CanceledDealIDPK_PlasticCanceledDealCanceledDealID
Yes
IX_PlasticCanceledDeal_RefundVoidDealFIDRefundVoidDealFID
Yes
IX_PlasticCanceledDeal_SalesDealFID_RefundVoidDealFIDSalesDealFID, RefundVoidDealFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_PlasticCanceledDeal_RefundVoidDealFIDRefundVoidDealFID->[dbo].[PlasticDeal].[DealID]
FK_PlasticCanceledDeal_DealFIDSalesDealFID->[dbo].[PlasticDeal].[DealID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[PlasticCanceledDeal]
(
[CanceledDealID] [int] NOT NULL IDENTITY(1, 1),
[SalesDealFID] [int] NOT NULL,
[RefundVoidDealFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticCanceledDeal] ADD CONSTRAINT [PK_PlasticCanceledDeal] PRIMARY KEY CLUSTERED  ([CanceledDealID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_PlasticCanceledDeal_RefundVoidDealFID] ON [dbo].[PlasticCanceledDeal] ([RefundVoidDealFID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_PlasticCanceledDeal_SalesDealFID_RefundVoidDealFID] ON [dbo].[PlasticCanceledDeal] ([SalesDealFID], [RefundVoidDealFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticCanceledDeal] ADD CONSTRAINT [FK_PlasticCanceledDeal_RefundVoidDealFID] FOREIGN KEY ([RefundVoidDealFID]) REFERENCES [dbo].[PlasticDeal] ([DealID])
GO
ALTER TABLE [dbo].[PlasticCanceledDeal] ADD CONSTRAINT [FK_PlasticCanceledDeal_DealFID] FOREIGN KEY ([SalesDealFID]) REFERENCES [dbo].[PlasticDeal] ([DealID])
GO
GRANT SELECT ON  [dbo].[PlasticCanceledDeal] TO [MssExec]
GRANT INSERT ON  [dbo].[PlasticCanceledDeal] TO [MssExec]
GRANT DELETE ON  [dbo].[PlasticCanceledDeal] TO [MssExec]
GRANT UPDATE ON  [dbo].[PlasticCanceledDeal] TO [MssExec]
GO
Uses