CREATE TABLE [dbo].[PlasticTokenType]
(
[TokenTypeID] [int] NOT NULL IDENTITY(1, 1),
[Code] [varchar] (2) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Description] [varchar] (30) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ShortDesc] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[TokenAccountTypeFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticTokenType] ADD CONSTRAINT [PK_PlasticTokenType] PRIMARY KEY CLUSTERED ([TokenTypeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticTokenType] ADD CONSTRAINT [IX_PlasticTokenType_Code] UNIQUE NONCLUSTERED ([Code]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticTokenType] ADD CONSTRAINT [IX_PlasticTokenType_Description] UNIQUE NONCLUSTERED ([Description]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PlasticTokenType] ADD CONSTRAINT [FK_PlasticTokenType_TokenAccountTypeFID] FOREIGN KEY ([TokenAccountTypeFID]) REFERENCES [dbo].[PlasticTokenAccountType] ([TokenAccountTypeID])
GO
GRANT SELECT ON [dbo].[PlasticTokenType] TO [MssExec]
GRANT INSERT ON [dbo].[PlasticTokenType] TO [MssExec]
GRANT DELETE ON [dbo].[PlasticTokenType] TO [MssExec]
GRANT UPDATE ON [dbo].[PlasticTokenType] TO [MssExec]
GO