using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAuth.Repository.Domain
{
    /// <summary>
    /// 日 期：2024.03.02
    /// 描 述：表单发布模板信息
    /// </summary>
    [SugarTable("form_module")]
    public class FormModuleEntity
    {
        #region 实体成员
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public string Id { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 自定义表单编码
        /// </summary>
        public string FormCode { get; set; }
        /// <summary>
        /// 表单版本
        /// </summary>
        public string FormVerison { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        public string Icon { get; set; }
        /// <summary>
        /// 功能名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 1.pc 2 移动
        /// </summary>
        public int? Type { get; set; }
        /// <summary>
        /// 上级功能
        /// </summary>
        public string PmoduleId { get; set; }
        /// <summary>
        /// 对应菜单id
        /// </summary>
        public string ModuleId { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int? SortCode { get; set; }
        /// <summary>
        /// 状态 1 发布 2未发布
        /// </summary>
        public int? EnabledMark { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 创建用户主键
        /// </summary>
        public string CreateUserId { get; set; }
        /// <summary>
        /// 创建用户
        /// </summary>
        public string CreateUserName { get; set; }
        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? ModifyDate { get; set; }
        /// <summary>
        /// 修改用户主键
        /// </summary>
        public string ModifyUserId { get; set; }
        /// <summary>
        /// 修改用户
        /// </summary>
        public string ModifyUserName { get; set; }
        /// <summary>
        /// 发布的设置信息
        /// </summary>
        public string Scheme { get; set; }

        /// <summary>
        /// 查询关键字
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string KeyWord { get; set; }
        #endregion


        #region 多租户
        /// <summary>
        /// 租户ID
        /// </summary>
        public string TenantId { get; set; }
        /// <summary>
        /// 是否租户功能 1是 其它都不是
        /// </summary>
        public int? IsMain { get; set; }
        #endregion
    }
}
