Add IDeletable to PageModule

This commit is contained in:
Emanuele Filardo 2019-10-12 12:04:09 +02:00
parent c2396e91e7
commit 440ef5fe65
2 changed files with 10 additions and 4 deletions

View File

@ -18,7 +18,7 @@ CREATE TABLE [dbo].[Site](
[ModifiedOn] [datetime] NOT NULL, [ModifiedOn] [datetime] NOT NULL,
[DeletedBy] [nvarchar](256) NULL, [DeletedBy] [nvarchar](256) NULL,
[DeletedOn] [datetime] NULL, [DeletedOn] [datetime] NULL,
[IsDeleted][bit] NOT NULL [IsDeleted][bit] NOT NULL,
CONSTRAINT [PK_Site] PRIMARY KEY CLUSTERED CONSTRAINT [PK_Site] PRIMARY KEY CLUSTERED
( (
[SiteId] ASC [SiteId] ASC
@ -44,7 +44,7 @@ CREATE TABLE [dbo].[Page](
[ModifiedOn] [datetime] NOT NULL, [ModifiedOn] [datetime] NOT NULL,
[DeletedBy] [nvarchar](256) NULL, [DeletedBy] [nvarchar](256) NULL,
[DeletedOn] [datetime] NULL, [DeletedOn] [datetime] NULL,
[IsDeleted][bit] NOT NULL [IsDeleted][bit] NOT NULL,
CONSTRAINT [PK_Page] PRIMARY KEY CLUSTERED CONSTRAINT [PK_Page] PRIMARY KEY CLUSTERED
( (
[PageId] ASC [PageId] ASC
@ -79,6 +79,9 @@ CREATE TABLE [dbo].[PageModule](
[CreatedOn] [datetime] NOT NULL, [CreatedOn] [datetime] NOT NULL,
[ModifiedBy] [nvarchar](256) NOT NULL, [ModifiedBy] [nvarchar](256) NOT NULL,
[ModifiedOn] [datetime] NOT NULL, [ModifiedOn] [datetime] NOT NULL,
[DeletedBy] [nvarchar](256) NULL,
[DeletedOn] [datetime] NULL,
[IsDeleted][bit] NOT NULL,
CONSTRAINT [PK_PageModule] PRIMARY KEY CLUSTERED CONSTRAINT [PK_PageModule] PRIMARY KEY CLUSTERED
( (
[PageModuleId] ASC [PageModuleId] ASC
@ -97,7 +100,7 @@ CREATE TABLE [dbo].[User](
[ModifiedOn] [datetime] NOT NULL, [ModifiedOn] [datetime] NOT NULL,
[DeletedBy] [nvarchar](256) NULL, [DeletedBy] [nvarchar](256) NULL,
[DeletedOn] [datetime] NULL, [DeletedOn] [datetime] NULL,
[IsDeleted][bit] NOT NULL [IsDeleted][bit] NOT NULL,
CONSTRAINT [PK_User] PRIMARY KEY CLUSTERED CONSTRAINT [PK_User] PRIMARY KEY CLUSTERED
( (
[UserId] ASC [UserId] ASC

View File

@ -2,7 +2,7 @@
namespace Oqtane.Models namespace Oqtane.Models
{ {
public class PageModule : IAuditable public class PageModule : IAuditable, IDeletable
{ {
public int PageModuleId { get; set; } public int PageModuleId { get; set; }
public int PageId { get; set; } public int PageId { get; set; }
@ -16,6 +16,9 @@ namespace Oqtane.Models
public DateTime CreatedOn { get; set; } public DateTime CreatedOn { get; set; }
public string ModifiedBy { get; set; } public string ModifiedBy { get; set; }
public DateTime ModifiedOn { get; set; } public DateTime ModifiedOn { get; set; }
public string DeletedBy { get; set; }
public DateTime? DeletedOn { get; set; }
public bool IsDeleted { get; set; }
public Module Module { get; set; } public Module Module { get; set; }