Added support for Deny permissions to PermissionGrid

This commit is contained in:
Shaun Walker
2019-09-02 14:21:31 -04:00
parent 368d0e1eee
commit da890f32d1
9 changed files with 120 additions and 14 deletions

View File

@ -179,6 +179,28 @@ CREATE TABLE [dbo].[Setting](
)
GO
CREATE TABLE [dbo].[Profile](
[ProfileId] [int] IDENTITY(1,1) NOT NULL,
[SiteId] [int] NULL,
[Name] [nvarchar](50) NOT NULL,
[Category] [nvarchar](50) NOT NULL,
[ViewOrder] [int] NOT NULL,
[MaxLength] [int] NOT NULL,
[DefaultValue] [nvarchar](2000) NULL,
[IsRequired] [bit] NOT NULL,
[IsPrivate] [bit] NOT NULL,
[CreatedBy] [nvarchar](256) NOT NULL,
[CreatedOn] [datetime] NOT NULL,
[ModifiedBy] [nvarchar](256) NOT NULL,
[ModifiedOn] [datetime] NOT NULL,
CONSTRAINT [PK_Profile] PRIMARY KEY CLUSTERED
(
[ProfileId] ASC
)
)
GO
CREATE TABLE [dbo].[HtmlText](
[HtmlTextId] [int] IDENTITY(1,1) NOT NULL,
[ModuleId] [int] NOT NULL,
@ -259,6 +281,11 @@ ALTER TABLE [dbo].[Permission] WITH CHECK ADD CONSTRAINT [FK_Permission_Role] FO
REFERENCES [dbo].[Role] ([RoleId])
GO
ALTER TABLE [dbo].[Profile] WITH NOCHECK ADD CONSTRAINT [FK_Profile_Sites] FOREIGN KEY([SiteId])
REFERENCES [dbo].[Site] ([SiteId])
ON DELETE CASCADE
GO
/*
Create indexes