[dbo].[PlasticProviderTypeTokenType]
CREATE TABLE [dbo].[PlasticProviderTypeTokenType]
(
[ProviderTypeTokenTypeID] [int] NOT NULL IDENTITY(1, 1),
[ProviderTypeFID] [int] NOT NULL,
[TokenTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticProviderTypeTokenType] ADD CONSTRAINT [PK_PlasticProviderTypeTokenType] PRIMARY KEY CLUSTERED ([ProviderTypeTokenTypeID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_PlasticProviderTypeTokenType_ProviderType_TokenType] ON [dbo].[PlasticProviderTypeTokenType] ([ProviderTypeFID], [TokenTypeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_PlasticProviderTypeTokenType_TokenType] ON [dbo].[PlasticProviderTypeTokenType] ([TokenTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticProviderTypeTokenType] ADD CONSTRAINT [FK_PlasticProviderTypeTokenType_ProviderTypeFID] FOREIGN KEY ([ProviderTypeFID]) REFERENCES [dbo].[PlasticProviderType] ([ProviderTypeID])
GO
ALTER TABLE [dbo].[PlasticProviderTypeTokenType] ADD CONSTRAINT [FK_PlasticProviderTypeTokenType_TokenTypeFID] FOREIGN KEY ([TokenTypeFID]) REFERENCES [dbo].[PlasticTokenType] ([TokenTypeID])
GO
GRANT SELECT ON [dbo].[PlasticProviderTypeTokenType] TO [MssExec]
GRANT INSERT ON [dbo].[PlasticProviderTypeTokenType] TO [MssExec]
GRANT DELETE ON [dbo].[PlasticProviderTypeTokenType] TO [MssExec]
GRANT UPDATE ON [dbo].[PlasticProviderTypeTokenType] TO [MssExec]
GO