CREATE TABLE [dbo].[MssWebUiState]
(
[SysUserFID] [int] NOT NULL,
[MssWebUiStateId] [int] NOT NULL IDENTITY(1, 1),
[TimelineSidebarExpanded] [bit] NOT NULL CONSTRAINT [DF_MssWebUiState_TimelineSidebarExpanded] DEFAULT ((1)),
[CustomLocalServiceStatusFilters] [bit] NOT NULL CONSTRAINT [DF_MssWebUiState_CustomLocalServiceStatusFilters] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MssWebUiState] ADD CONSTRAINT [PK_MssWebUiState] PRIMARY KEY NONCLUSTERED ([MssWebUiStateId]) ON [PRIMARY]
GO
CREATE UNIQUE CLUSTERED INDEX [IX_MssWebUiState_SysUserFID] ON [dbo].[MssWebUiState] ([SysUserFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MssWebUiState] ADD CONSTRAINT [FK_MssWebUiState_SysUser] FOREIGN KEY ([SysUserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON [dbo].[MssWebUiState] TO [MssExec]
GRANT INSERT ON [dbo].[MssWebUiState] TO [MssExec]
GRANT DELETE ON [dbo].[MssWebUiState] TO [MssExec]
GRANT UPDATE ON [dbo].[MssWebUiState] TO [MssExec]
GO