using System.ComponentModel.DataAnnotations; using Admin.NET.Core; using Nest; using SqlSugar; using Yitter.IdGenerator; namespace Admin.Bodk.Device.Entities; /// /// 基地列表 /// [SugarTable(null, "基地列表")] [SysTable] public class Base: EntityBaseId, IRepositorySettings { // 是否主键,是否自增 [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = false)] public long Id { get; set; } = YitIdHelper.NextId(); [SugarColumn(ColumnDescription = "基地名称", Length = 32)] [Required, MaxLength(32)] public virtual string? Name { get; set; } [SugarColumn(ColumnDescription = "地址")] [Required] public virtual string? Address { get; set; } [SugarColumn(ColumnDescription = "电话",IsNullable = true)] public int Phone { get; set; } [SugarColumn(ColumnDescription = "是否可冻存",IsNullable = true)] public bool CanFrozen { get; set; } [SugarColumn(ColumnDescription = "是否可使用",IsNullable = true)] public int CanUse { get; set; } [SugarColumn(ColumnDescription = "是否可检测",IsNullable = true)] public int CanDetection { get; set; } [SugarColumn(ColumnDescription = "描述",IsNullable = true)] public string Remark { get; set; } }