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_schemeinfo")]
    public class FormSchemeInfo
    {
        #region 实体成员
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public string Id { get; set; }
        /// <summary>
        /// 表单名字
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 表单分类
        /// </summary>
        public string Category { get; set; }
        /// <summary>
        /// 当前模板主键
        /// </summary>
        public string SchemeId { get; set; }
        /// <summary>
        /// 有效标志
        /// </summary>
        public int? EnabledMark { get; set; }
        /// <summary>
        /// 表单类型 1 视图表单 0其他数据库表单
        /// </summary>
        public int? FormType { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Description { get; set; }
        #endregion

        /// <summary>
        /// 1.正式2.草稿
        /// </summary>
        //[SugarColumn(IsIgnore = true)]
        public int? Type { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string CreateUserName { get; set; }
        /// <summary>
        /// 创建人ID
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string CreateUserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public DateTime? CreateDate { get; set; }


        #region 多租户
        /// <summary>
        /// 租户ID
        /// </summary>
        public string TenantId { get; set; }
        #endregion
    }
}
