[dbo].[MssWebLocalServiceSelectedFilterItem]
CREATE TABLE [dbo].[MssWebLocalServiceSelectedFilterItem]
(
[MssWebLocalServiceSelectedFilterItemId] [int] NOT NULL IDENTITY(1, 1),
[SysUserFID] [int] NOT NULL,
[LSStatusFID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MssWebLocalServiceSelectedFilterItem] ADD CONSTRAINT [PK_MssWebLocalServiceSelectedFilterItem] PRIMARY KEY CLUSTERED ([MssWebLocalServiceSelectedFilterItemId]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_SysUserFID_LSStatusFID] ON [dbo].[MssWebLocalServiceSelectedFilterItem] ([SysUserFID], [LSStatusFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MssWebLocalServiceSelectedFilterItem] ADD CONSTRAINT [FK_MssWebLocalServiceSelectedFilterItem_LSStatus] FOREIGN KEY ([LSStatusFID]) REFERENCES [dbo].[LSStatus] ([PriKey])
GO
ALTER TABLE [dbo].[MssWebLocalServiceSelectedFilterItem] ADD CONSTRAINT [FK_MssWebLocalServiceSelectedFilterItem_SysUser] FOREIGN KEY ([SysUserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID]) ON DELETE CASCADE
GO
GRANT SELECT ON [dbo].[MssWebLocalServiceSelectedFilterItem] TO [MssExec]
GRANT INSERT ON [dbo].[MssWebLocalServiceSelectedFilterItem] TO [MssExec]
GRANT DELETE ON [dbo].[MssWebLocalServiceSelectedFilterItem] TO [MssExec]
GRANT UPDATE ON [dbo].[MssWebLocalServiceSelectedFilterItem] TO [MssExec]
GO