Add standard audit fields to all entities
This commit is contained in:
		| @ -1,14 +1,21 @@ | ||||
| using System.ComponentModel.DataAnnotations.Schema; | ||||
| using System; | ||||
| using System.ComponentModel.DataAnnotations.Schema; | ||||
|  | ||||
| namespace Oqtane.Models | ||||
| { | ||||
|     public class Alias | ||||
|     public class Alias : IAuditable | ||||
|     { | ||||
|         public int AliasId { get; set; } | ||||
|         public string Name { get; set; } | ||||
|         public int TenantId { get; set; } | ||||
|         public int SiteId { get; set; } | ||||
|  | ||||
|         public string CreatedBy { get; set; } | ||||
|         public DateTime CreatedOn { get; set; } | ||||
|         public string ModifiedBy { get; set; } | ||||
|         public DateTime ModifiedOn { get; set; } | ||||
|  | ||||
|  | ||||
|         [NotMapped] | ||||
|         public string Scheme { get; set; } | ||||
|  | ||||
|  | ||||
| @ -1,15 +1,22 @@ | ||||
| using System.Collections.Generic; | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.ComponentModel.DataAnnotations.Schema; | ||||
|  | ||||
| namespace Oqtane.Models | ||||
| { | ||||
|     public class Module | ||||
|     public class Module : IAuditable | ||||
|     { | ||||
|         public int ModuleId { get; set; } | ||||
|         public int SiteId { get; set; } | ||||
|         public string ModuleDefinitionName { get; set; } | ||||
|         public string ViewPermissions { get; set; } | ||||
|         public string EditPermissions { get; set; } | ||||
|  | ||||
|         public string CreatedBy { get; set; } | ||||
|         public DateTime CreatedOn { get; set; } | ||||
|         public string ModifiedBy { get; set; } | ||||
|         public DateTime ModifiedOn { get; set; } | ||||
|  | ||||
|         [NotMapped] | ||||
|         public int PageModuleId { get; set; } | ||||
|         [NotMapped] | ||||
|  | ||||
| @ -1,6 +1,8 @@ | ||||
| namespace Oqtane.Models | ||||
| using System; | ||||
|  | ||||
| namespace Oqtane.Models | ||||
| { | ||||
|     public class Page | ||||
|     public class Page : IAuditable | ||||
|     { | ||||
|         public int PageId { get; set; } | ||||
|         public int SiteId { get; set; } | ||||
| @ -15,5 +17,10 @@ | ||||
|         public string ViewPermissions { get; set; } | ||||
|         public string EditPermissions { get; set; } | ||||
|         public bool IsNavigation { get; set; } | ||||
|  | ||||
|         public string CreatedBy { get; set; } | ||||
|         public DateTime CreatedOn { get; set; } | ||||
|         public string ModifiedBy { get; set; } | ||||
|         public DateTime ModifiedOn { get; set; } | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -1,6 +1,8 @@ | ||||
| namespace Oqtane.Models | ||||
| using System; | ||||
|  | ||||
| namespace Oqtane.Models | ||||
| { | ||||
|     public class PageModule | ||||
|     public class PageModule : IAuditable | ||||
|     { | ||||
|         public int PageModuleId { get; set; } | ||||
|         public int PageId { get; set; } | ||||
| @ -10,6 +12,12 @@ | ||||
|         public int Order { get; set; } | ||||
|         public string ContainerType { get; set; } | ||||
|  | ||||
|         public string CreatedBy { get; set; } | ||||
|         public DateTime CreatedOn { get; set; } | ||||
|         public string ModifiedBy { get; set; } | ||||
|         public DateTime ModifiedOn { get; set; } | ||||
|  | ||||
|  | ||||
|         public Module Module { get; set; } | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -2,11 +2,16 @@ | ||||
|  | ||||
| namespace Oqtane.Models | ||||
| { | ||||
|     public class Tenant | ||||
|     public class Tenant : IAuditable | ||||
|     { | ||||
|         public int TenantId { get; set; } | ||||
|         public string Name { get; set; } | ||||
|         public string DBConnectionString { get; set; } | ||||
|         public string DBSchema { get; set; } | ||||
|  | ||||
|         public string CreatedBy { get; set; } | ||||
|         public DateTime CreatedOn { get; set; } | ||||
|         public string ModifiedBy { get; set; } | ||||
|         public DateTime ModifiedOn { get; set; } | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -1,8 +1,9 @@ | ||||
| using System.ComponentModel.DataAnnotations.Schema; | ||||
| using System; | ||||
| using System.ComponentModel.DataAnnotations.Schema; | ||||
|  | ||||
| namespace Oqtane.Models | ||||
| { | ||||
|     public class User | ||||
|     public class User : IAuditable | ||||
|     { | ||||
|         public int UserId { get; set; } | ||||
|         public string Username { get; set; } | ||||
| @ -10,6 +11,11 @@ namespace Oqtane.Models | ||||
|         public string Roles { get; set; } | ||||
|         public bool IsSuperUser { get; set; } | ||||
|  | ||||
|         public string CreatedBy { get; set; } | ||||
|         public DateTime CreatedOn { get; set; } | ||||
|         public string ModifiedBy { get; set; } | ||||
|         public DateTime ModifiedOn { get; set; } | ||||
|  | ||||
|         [NotMapped] | ||||
|         public int SiteId { get; set; } | ||||
|         [NotMapped] | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shaun Walker
					Shaun Walker