Initial commit
This commit is contained in:
14
Oqtane.Shared/Models/HtmlTextInfo.cs
Normal file
14
Oqtane.Shared/Models/HtmlTextInfo.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Oqtane.Shared.Modules.HtmlText.Models
|
||||
{
|
||||
[Table("HtmlText")]
|
||||
public class HtmlTextInfo
|
||||
{
|
||||
[Key]
|
||||
public int HtmlTextId { get; set; }
|
||||
public int ModuleId { get; set; }
|
||||
public string Content { get; set; }
|
||||
}
|
||||
}
|
32
Oqtane.Shared/Models/Module.cs
Normal file
32
Oqtane.Shared/Models/Module.cs
Normal file
@ -0,0 +1,32 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class Module
|
||||
{
|
||||
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; }
|
||||
[NotMapped]
|
||||
public int PageModuleId { get; set; }
|
||||
[NotMapped]
|
||||
public int PageId { get; set; }
|
||||
[NotMapped]
|
||||
public string Title { get; set; }
|
||||
[NotMapped]
|
||||
public string Pane { get; set; }
|
||||
[NotMapped]
|
||||
public int Order { get; set; }
|
||||
[NotMapped]
|
||||
public string ContainerType { get; set; }
|
||||
[NotMapped]
|
||||
public string ModuleType { get; set; }
|
||||
[NotMapped]
|
||||
public int PaneModuleIndex { get; set; }
|
||||
[NotMapped]
|
||||
public int PaneModuleCount { get; set; }
|
||||
}
|
||||
}
|
18
Oqtane.Shared/Models/ModuleDefinition.cs
Normal file
18
Oqtane.Shared/Models/ModuleDefinition.cs
Normal file
@ -0,0 +1,18 @@
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class ModuleDefinition
|
||||
{
|
||||
public string ModuleDefinitionName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Version { get; set; }
|
||||
public string Owner { get; set; }
|
||||
public string Url { get; set; }
|
||||
public string Contact { get; set; }
|
||||
public string License { get; set; }
|
||||
public string Dependencies { get; set; }
|
||||
public string ControlTypeTemplate { get; set; }
|
||||
public string ControlTypeRoutes { get; set; }
|
||||
public string AssemblyName { get; set; }
|
||||
}
|
||||
}
|
21
Oqtane.Shared/Models/Page.cs
Normal file
21
Oqtane.Shared/Models/Page.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class Page
|
||||
{
|
||||
public int PageId { get; set; }
|
||||
public int SiteId { get; set; }
|
||||
public int? ParentId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Path { get; set; }
|
||||
public int Order { get; set; }
|
||||
public string SkinType { get; set; }
|
||||
public string LayoutType { get; set; }
|
||||
public string Icon { get; set; }
|
||||
public string Panes { get; set; }
|
||||
public string ViewPermissions { get; set; }
|
||||
public string EditPermissions { get; set; }
|
||||
public bool IsNavigation { get; set; }
|
||||
}
|
||||
}
|
15
Oqtane.Shared/Models/PageModule.cs
Normal file
15
Oqtane.Shared/Models/PageModule.cs
Normal file
@ -0,0 +1,15 @@
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class PageModule
|
||||
{
|
||||
public int PageModuleId { get; set; }
|
||||
public int PageId { get; set; }
|
||||
public int ModuleId { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Pane { get; set; }
|
||||
public int Order { get; set; }
|
||||
public string ContainerType { get; set; }
|
||||
|
||||
public Module Module { get; set; }
|
||||
}
|
||||
}
|
9
Oqtane.Shared/Models/Site.cs
Normal file
9
Oqtane.Shared/Models/Site.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class Site
|
||||
{
|
||||
public int SiteId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Logo { get; set; }
|
||||
}
|
||||
}
|
18
Oqtane.Shared/Models/Skin.cs
Normal file
18
Oqtane.Shared/Models/Skin.cs
Normal file
@ -0,0 +1,18 @@
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class Skin
|
||||
{
|
||||
public string SkinName { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Version { get; set; }
|
||||
public string Owner { get; set; }
|
||||
public string Url { get; set; }
|
||||
public string Contact { get; set; }
|
||||
public string License { get; set; }
|
||||
public string Dependencies { get; set; }
|
||||
public string SkinControls { get; set; }
|
||||
public string PaneLayouts { get; set; }
|
||||
public string ContainerControls { get; set; }
|
||||
public string AssemblyName { get; set; }
|
||||
}
|
||||
}
|
13
Oqtane.Shared/Models/Tenant.cs
Normal file
13
Oqtane.Shared/Models/Tenant.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class Tenant
|
||||
{
|
||||
public int TenantId { get; set; }
|
||||
public string Alias { get; set; }
|
||||
public string DBConnectionString { get; set; }
|
||||
public string DBSchema { get; set; }
|
||||
public int SiteId { get; set; }
|
||||
}
|
||||
}
|
13
Oqtane.Shared/Models/User.cs
Normal file
13
Oqtane.Shared/Models/User.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Oqtane.Models
|
||||
{
|
||||
public class User
|
||||
{
|
||||
public int UserId { get; set; }
|
||||
public string Username { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public string Roles { get; set; }
|
||||
public bool IsSuperUser { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user