using Ant.Core.SqlServer.BaseEntities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace Central.Control.WebApi.Models
{
///
/// 设备表
///
public class SYS_Device: SoftBaseEntity
{
///
/// 主键ID
///
[Key]
[MaxLength(50)]
public string Id { set; get; } = string.Empty;
///
/// 设备名称
///
[MaxLength(50)]
[Required(AllowEmptyStrings =true)]
public string Name { set; get; } = string.Empty;
///
/// 设备编号(唯一)
///
[MaxLength(50)]
[Required(AllowEmptyStrings = true)]
public string Code { set; get; } = string.Empty;
///
/// 设备地址
///
[MaxLength(255)]
[Required(AllowEmptyStrings = true)]
public string Address { set; get; } = string.Empty;
///
/// 设备密码
///
[MaxLength(50)]
[Required(AllowEmptyStrings = true)]
public string Password { set; get; } = string.Empty;
}
}