Tables [dbo].[PlasticProviderBranchMapping]
Properties
PropertyValue
Row Count (~)0
Created4:09:40 PM Thursday, December 6, 2018
Last Modified9:01:35 AM Friday, October 11, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_PlasticProviderBranchMapping: ProviderBranchMappingIDProviderBranchMappingIDint4
No
1 - 1
Foreign Keys FK_PlasticProviderBranchMapping_ProviderFID: [dbo].[PlasticProvider].ProviderFIDIndexes IX_PlasticProviderBranchMapping_Branch_Provider: BranchFID\ProviderFIDIndexes IX_PlasticProviderBranchMapping_Provider_Branch: ProviderFID\BranchFIDProviderFIDint4
No
Foreign Keys FK_PlasticProviderBranchMapping_BranchFID: [dbo].[Branch].BranchFIDIndexes IX_PlasticProviderBranchMapping_Branch_Provider: BranchFID\ProviderFIDIndexes IX_PlasticProviderBranchMapping_Provider_Branch: ProviderFID\BranchFIDIndexes IX_PlasticProviderBranchMapping_ProviderType_Branch: ProviderTypeFID\BranchFIDBranchFIDint4
No
Foreign Keys FK_PlasticProviderBranchMapping_ProviderTypeFID: [dbo].[PlasticProviderType].ProviderTypeFIDIndexes IX_PlasticProviderBranchMapping_ProviderType_Branch: ProviderTypeFID\BranchFIDProviderTypeFIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_PlasticProviderBranchMapping: ProviderBranchMappingIDPK_PlasticProviderBranchMappingProviderBranchMappingID
Yes
IX_PlasticProviderBranchMapping_Branch_ProviderBranchFID, ProviderFID
Yes
IX_PlasticProviderBranchMapping_Provider_BranchProviderFID, BranchFID
Yes
IX_PlasticProviderBranchMapping_ProviderType_BranchProviderTypeFID, BranchFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_PlasticProviderBranchMapping_BranchFIDBranchFID->[dbo].[Branch].[BranchPriKey]
FK_PlasticProviderBranchMapping_ProviderFIDProviderFID->[dbo].[PlasticProvider].[ProviderID]
FK_PlasticProviderBranchMapping_ProviderTypeFIDProviderTypeFID->[dbo].[PlasticProviderType].[ProviderTypeID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[PlasticProviderBranchMapping]
(
[ProviderBranchMappingID] [int] NOT NULL IDENTITY(1, 1),
[ProviderFID] [int] NOT NULL,
[BranchFID] [int] NOT NULL,
[ProviderTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticProviderBranchMapping] ADD CONSTRAINT [PK_PlasticProviderBranchMapping] PRIMARY KEY CLUSTERED  ([ProviderBranchMappingID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticProviderBranchMapping] ADD CONSTRAINT [IX_PlasticProviderBranchMapping_Branch_Provider] UNIQUE NONCLUSTERED  ([BranchFID], [ProviderFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticProviderBranchMapping] ADD CONSTRAINT [IX_PlasticProviderBranchMapping_Provider_Branch] UNIQUE NONCLUSTERED  ([ProviderFID], [BranchFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticProviderBranchMapping] ADD CONSTRAINT [IX_PlasticProviderBranchMapping_ProviderType_Branch] UNIQUE NONCLUSTERED  ([ProviderTypeFID], [BranchFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticProviderBranchMapping] ADD CONSTRAINT [FK_PlasticProviderBranchMapping_BranchFID] FOREIGN KEY ([BranchFID]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
ALTER TABLE [dbo].[PlasticProviderBranchMapping] ADD CONSTRAINT [FK_PlasticProviderBranchMapping_ProviderFID] FOREIGN KEY ([ProviderFID]) REFERENCES [dbo].[PlasticProvider] ([ProviderID])
GO
ALTER TABLE [dbo].[PlasticProviderBranchMapping] ADD CONSTRAINT [FK_PlasticProviderBranchMapping_ProviderTypeFID] FOREIGN KEY ([ProviderTypeFID]) REFERENCES [dbo].[PlasticProviderType] ([ProviderTypeID])
GO
GRANT SELECT ON  [dbo].[PlasticProviderBranchMapping] TO [MssExec]
GRANT INSERT ON  [dbo].[PlasticProviderBranchMapping] TO [MssExec]
GRANT DELETE ON  [dbo].[PlasticProviderBranchMapping] TO [MssExec]
GRANT UPDATE ON  [dbo].[PlasticProviderBranchMapping] TO [MssExec]
GO
Uses
Used By