[dbo].[PlasticProviderTypeAllowedTokenType]
CREATE TABLE [dbo].[PlasticProviderTypeAllowedTokenType]
(
[ProviderTypeAllowedTokenTypeID] [int] NOT NULL IDENTITY(1, 1),
[ProviderTypeFID] [int] NOT NULL,
[TokenTypeFID] [int] NOT NULL,
[ExternalCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[TokenTypeDescription] AS ([dbo].[GetPlasticTokenTypeDescription]([TokenTypeFID]))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticProviderTypeAllowedTokenType] ADD CONSTRAINT [PK_PlasticProviderTypeAllowedTokenType] PRIMARY KEY CLUSTERED ([ProviderTypeAllowedTokenTypeID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_PlasticProviderTypeAllowedTokenType_Provider_TokenType] ON [dbo].[PlasticProviderTypeAllowedTokenType] ([ProviderTypeFID], [TokenTypeFID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_PlasticProviderTypeAllowedTokenType_TokenType] ON [dbo].[PlasticProviderTypeAllowedTokenType] ([TokenTypeFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticProviderTypeAllowedTokenType] ADD CONSTRAINT [FK_PlasticProviderTypeAllowedTokenType_ProviderTypeFID] FOREIGN KEY ([ProviderTypeFID]) REFERENCES [dbo].[PlasticProviderType] ([ProviderTypeID])
GO
ALTER TABLE [dbo].[PlasticProviderTypeAllowedTokenType] ADD CONSTRAINT [FK_PlasticProviderTypeAllowedTokenType_TokenTypeFID] FOREIGN KEY ([TokenTypeFID]) REFERENCES [dbo].[PlasticTokenType] ([TokenTypeID])
GO
GRANT SELECT ON [dbo].[PlasticProviderTypeAllowedTokenType] TO [MssExec]
GRANT INSERT ON [dbo].[PlasticProviderTypeAllowedTokenType] TO [MssExec]
GRANT DELETE ON [dbo].[PlasticProviderTypeAllowedTokenType] TO [MssExec]
GRANT UPDATE ON [dbo].[PlasticProviderTypeAllowedTokenType] TO [MssExec]
GO