[dbo].[PlasticProviderHppAllowedTokenType]
CREATE TABLE [dbo].[PlasticProviderHppAllowedTokenType]
(
[ProviderHppAllowedTokenTypeID] [int] NOT NULL IDENTITY(1, 1),
[ProviderFID] [int] NOT NULL,
[ProviderTypeAllowedTokenTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticProviderHppAllowedTokenType] ADD CONSTRAINT [PK_PlasticProviderHppAllowedTokenType] PRIMARY KEY CLUSTERED ([ProviderHppAllowedTokenTypeID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_PlasticProviderHppAllowedTokenType_Provider_TokenType] ON [dbo].[PlasticProviderHppAllowedTokenType] ([ProviderFID], [ProviderTypeAllowedTokenTypeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_PlasticProviderHppAllowedTokenType_ProviderTypeAllowedTokenType] ON [dbo].[PlasticProviderHppAllowedTokenType] ([ProviderTypeAllowedTokenTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticProviderHppAllowedTokenType] ADD CONSTRAINT [FK_PlasticProviderHppAllowedTokenType_ProviderFID] FOREIGN KEY ([ProviderFID]) REFERENCES [dbo].[PlasticProvider] ([ProviderID])
GO
ALTER TABLE [dbo].[PlasticProviderHppAllowedTokenType] ADD CONSTRAINT [FK_PlasticProviderHppAllowedTokenType_ProviderTypeAllowedTokenTypeFID] FOREIGN KEY ([ProviderTypeAllowedTokenTypeFID]) REFERENCES [dbo].[PlasticProviderTypeAllowedTokenType] ([ProviderTypeAllowedTokenTypeID])
GO
GRANT SELECT ON [dbo].[PlasticProviderHppAllowedTokenType] TO [MssExec]
GRANT INSERT ON [dbo].[PlasticProviderHppAllowedTokenType] TO [MssExec]
GRANT DELETE ON [dbo].[PlasticProviderHppAllowedTokenType] TO [MssExec]
GRANT UPDATE ON [dbo].[PlasticProviderHppAllowedTokenType] TO [MssExec]
GO