using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace iWare.Wms.Core
{
    /// 
    /// 表单表
    /// 
    [Table("sys_forms")]
    [Comment("表单表")]
    public class SysForm : DEntityBase
    {
        /// 
        ///表单标题 不可重复
        /// 
        [Required(ErrorMessage = "标题不可为空")]
        [Comment("标题")]
        public string Title { get; set; }
        /// 
        /// form表单Json
        /// 
        [Required(ErrorMessage = "form表单Json不可为空")]
        [Comment("form表单Json")]
        public string FormJson { get; set; }
        /// 
        /// 是否发布
        /// 
        [Comment("是否发布")]
        public bool Publish { get; set; } = false;
        /// 
        /// 表单类型ID
        /// 
        [Required(ErrorMessage = "表单类型ID不可为空")]
        [Comment("表单类型ID")]
        public long TypeId { get; set; }
        /// 
        /// 版本
        /// 
        [Comment("版本")]
        public int Version { get; set; }
    }
}