using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OASystem.Domain.Entities.System
{
    /// <summary>
    /// 表单模板
    /// </summary>
    [SugarTable("Sys_FormTemp", "表单模板")]
    public class Sys_FormTemp : EntityBase
    {
        /// <summary>
        /// 模板Id(datasetType Id)
        /// </summary>
        [SugarColumn(ColumnName = "TempId", ColumnDescription = "模板Id", IsNullable = true, ColumnDataType = "int")]
        public int TempId { get; set; }

        /// <summary>
        /// 字段NameId(datasetType Id)
        /// </summary>
        [SugarColumn(ColumnName = "FieldNameId", ColumnDescription = "字段Id(datasetType Id)", IsNullable = true, ColumnDataType = "int")]
        public int FieldNameId { get; set; }

        /// <summary>
        /// 字段TypeId(datasetType Id)
        /// </summary>
        [SugarColumn(ColumnName = "FieldTypeId", ColumnDescription = "字段TypeId(datasetType Id)", IsNullable = true, ColumnDataType = "int")]
        public int FieldTypeId { get; set; }

        /// <summary>
        /// 是否必填
        /// </summary>
        [SugarColumn(ColumnName = "IsRequired", ColumnDescription = "是否必填", IsNullable = true, ColumnDataType = "bit")]
        public bool IsRequired { get; set; } = false;

        /// <summary>
        /// 是否备注
        /// </summary>
        [SugarColumn(ColumnName = "IsRemark", ColumnDescription = "是否备注", IsNullable = true, ColumnDataType = "bit")]
        public bool IsRemark { get; set; } = false;

        /// <summary>
        /// 排序
        /// </summary>
        [SugarColumn(ColumnName = "Index", ColumnDescription = "排序", IsNullable = true, ColumnDataType = "int")]
        public int Index { get; set; }

    }
}