CREATE TABLE [dbo].[SakariAccount]
(
[SakariAccountID] [int] NOT NULL IDENTITY(1, 1),
[ClientID] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ClientSecret] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[AccountName] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[AccountID] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariAccount] ADD CONSTRAINT [PK_SakariAccount] PRIMARY KEY CLUSTERED ([SakariAccountID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariAccount] ADD CONSTRAINT [IX_SakariAccount_AccountID] UNIQUE NONCLUSTERED ([AccountID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariAccount] ADD CONSTRAINT [IX_SakariAccount_AccountName] UNIQUE NONCLUSTERED ([AccountName]) ON [PRIMARY]
GO
GRANT SELECT ON [dbo].[SakariAccount] TO [MssExec]
GRANT INSERT ON [dbo].[SakariAccount] TO [MssExec]
GRANT DELETE ON [dbo].[SakariAccount] TO [MssExec]
GRANT UPDATE ON [dbo].[SakariAccount] TO [MssExec]
GO