schangxiang@126.com
2024-09-10 429923d78ca4a016ab86adf30d189eb0e7774925
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
 
namespace iWare.Wms.Core
{
    /// <summary>
    /// 表单表
    /// </summary>
    [Table("sys_forms")]
    [Comment("表单表")]
    public class SysForm : DEntityBase
    {
        /// <summary>
        ///表单标题 不可重复
        /// </summary>
        [Required(ErrorMessage = "标题不可为空")]
        [Comment("标题")]
        public string Title { get; set; }
 
        /// <summary>
        /// form表单Json
        /// </summary>
        [Required(ErrorMessage = "form表单Json不可为空")]
        [Comment("form表单Json")]
        public string FormJson { get; set; }
 
        /// <summary>
        /// 是否发布
        /// </summary>
        [Comment("是否发布")]
        public bool Publish { get; set; } = false;
 
        /// <summary>
        /// 表单类型ID
        /// </summary>
        [Required(ErrorMessage = "表单类型ID不可为空")]
        [Comment("表单类型ID")]
        public long TypeId { get; set; }
 
        /// <summary>
        /// 版本
        /// </summary>
        [Comment("版本")]
        public int Version { get; set; }
    }
}