108 lines
2.9 KiB
C#
108 lines
2.9 KiB
C#
/////////////////////////////////////////////////////////////////////////////////
|
|
// 宁波拓通e智造平台 ToTong Next Builder //
|
|
// https://git.tuotong-tech.com/tnb/tnb.server //
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
using JNPF.Common.Contracts;
|
|
using Newtonsoft.Json.Linq;
|
|
using SqlSugar;
|
|
using Yitter.IdGenerator;
|
|
|
|
namespace Tnb.Vengine.Domain;
|
|
|
|
/// <summary>
|
|
/// 功能页面
|
|
/// </summary>
|
|
[SugarTable("sys_vmodel_page")]
|
|
public partial class VmodelPage : Entity
|
|
{
|
|
#region Properties
|
|
|
|
/// <summary>
|
|
/// 主键标识
|
|
/// </summary>
|
|
[SugarColumn(IsPrimaryKey = true)]
|
|
public string id { get; set; } = YitIdHelper.NextId().ToString();
|
|
|
|
/// <summary>
|
|
/// 模型id
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "vmid", Length = DbConsts.LengthS)]
|
|
public string? vmid { get; set; }
|
|
|
|
/// <summary>
|
|
/// 页面代码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "code", Length = DbConsts.LengthS)]
|
|
public string code { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 页面名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "name", Length = DbConsts.LengthM)]
|
|
public string name { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 页面类型
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "page_type", Length = DbConsts.LengthS)]
|
|
public string pageType { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 页面配置
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "page_schema", Length = DbConsts.LengthS, IsJson = true)]
|
|
public JObject pageSchema { get; set; } = new JObject();
|
|
|
|
/// <summary>
|
|
/// 页面配置
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "option", Length = DbConsts.LengthS)]
|
|
public string? option { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// 是否启用
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "enabled")]
|
|
public short enabled { get; set; } = 1;
|
|
|
|
/// <summary>
|
|
/// 是否删除
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "deleted")]
|
|
public short deleted { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "create_time")]
|
|
public DateTime createTime { get; set; } = DateTime.Now;
|
|
|
|
/// <summary>
|
|
/// 创建人
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "create_id", Length = DbConsts.LengthS)]
|
|
public string? createId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 修改时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "modify_time", Length = DbConsts.LengthS)]
|
|
public DateTime? modifyTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 修改人
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "modify_id", Length = DbConsts.LengthS)]
|
|
public string? modifyId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 主键
|
|
/// </summary>
|
|
public override object[] GetKeys()
|
|
{
|
|
return new object[] { id };
|
|
}
|
|
|
|
#endregion Properties
|
|
} |