Refactor host user security model, support static assets in modules and themes, module definition permissions and categories, paging control, remove SiteUsers, move seed data from script to site template for installation
This commit is contained in:
@ -1,19 +1,47 @@
|
||||
namespace Oqtane.Models
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class ModuleDefinition
|
||||
public class ModuleDefinition : IAuditable
|
||||
{
|
||||
public int ModuleDefinitionId { get; set; }
|
||||
public string ModuleDefinitionName { 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 Name { get; set; }
|
||||
[NotMapped]
|
||||
public string Description { get; set; }
|
||||
[NotMapped]
|
||||
public string Categories { get; set; }
|
||||
[NotMapped]
|
||||
public string Version { get; set; }
|
||||
[NotMapped]
|
||||
public string Owner { get; set; }
|
||||
[NotMapped]
|
||||
public string Url { get; set; }
|
||||
[NotMapped]
|
||||
public string Contact { get; set; }
|
||||
[NotMapped]
|
||||
public string License { get; set; }
|
||||
[NotMapped]
|
||||
public string Dependencies { get; set; }
|
||||
public string Permissions { get; set; }
|
||||
[NotMapped]
|
||||
public string PermissionNames { get; set; }
|
||||
[NotMapped]
|
||||
public string ControlTypeTemplate { get; set; }
|
||||
[NotMapped]
|
||||
public string ControlTypeRoutes { get; set; }
|
||||
[NotMapped]
|
||||
public string AssemblyName { get; set; }
|
||||
[NotMapped]
|
||||
public int SiteId { get; set; }
|
||||
[NotMapped]
|
||||
public string Permissions { get; set; }
|
||||
}
|
||||
}
|
||||
|
18
Oqtane.Shared/Models/PageTemplate.cs
Normal file
18
Oqtane.Shared/Models/PageTemplate.cs
Normal file
@ -0,0 +1,18 @@
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class PageTemplate
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Parent { get; set; }
|
||||
public string Path { get; set; }
|
||||
public int Order { get; set; }
|
||||
public string Icon { get; set; }
|
||||
public bool IsNavigation { get; set; }
|
||||
public string PagePermissions { get; set; }
|
||||
public string ModuleDefinitionName { get; set; }
|
||||
public string ModulePermissions { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Pane { get; set; }
|
||||
public string ContainerType { get; set; }
|
||||
}
|
||||
}
|
@ -8,6 +8,7 @@ namespace Oqtane.Models
|
||||
public string Name { get; set; }
|
||||
public string Logo { get; set; }
|
||||
public string DefaultThemeType { get; set; }
|
||||
public string DefaultLayoutType { get; set; }
|
||||
|
||||
|
||||
public string CreatedBy { get; set; }
|
||||
|
@ -1,18 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class SiteUser : IAuditable
|
||||
{
|
||||
public int SiteUserId { get; set; }
|
||||
public int SiteId { get; set; }
|
||||
public int UserId { get; set; }
|
||||
|
||||
public string CreatedBy { get; set; }
|
||||
public DateTime CreatedOn { get; set; }
|
||||
public string ModifiedBy { get; set; }
|
||||
public DateTime ModifiedOn { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
}
|
||||
}
|
@ -9,7 +9,7 @@ namespace Oqtane.Models
|
||||
public string Username { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public string Email { get; set; }
|
||||
public bool IsHost { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public int SiteId { get; set; }
|
||||
[NotMapped]
|
||||
|
@ -16,5 +16,7 @@ namespace Oqtane.Models
|
||||
public DateTime ModifiedOn { get; set; }
|
||||
|
||||
public Role Role { get; set; }
|
||||
|
||||
public User User { get; set; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user