Camera Information System
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.2 KiB

using Furion.DataValidation;
namespace Cis.Application.Cb;
/// <summary>
/// 相机表
/// </summary>
[SugarTable(CbInfo.CbCameraTbName, CbInfo.CbCameraTbDesc)]
[Tenant(CbInfo.DbName)]
public class CbCamera : EntityBase
{
/// <summary>
/// 名称
/// </summary>
[SugarColumn(ColumnDescription = "名称", Length = 64)]
[Required, MaxLength(64)]
public string Name { get; set; }
/// <summary>
/// ip 地址
/// </summary>
[SugarColumn(ColumnDescription = "ip地址", Length = 15)]
[Required, MaxLength(15)]
[DataValidation(ValidationTypes.IPv4)]
public string Ip { get; set; }
/// <summary>
/// 账号
/// </summary>
[SugarColumn(ColumnDescription = "账号", Length = 32)]
[Required, MaxLength(32)]
public string UserName { get; set; }
/// <summary>
/// 密码
/// </summary>
[SugarColumn(ColumnDescription = "密码", Length = 32)]
[Required, MaxLength(32)]
public string Password { get; set; }
/// <summary>
/// 相机参数 Id
/// </summary>
[SugarColumn(ColumnDescription = "相机参数Id")]
[Required]
public long CbCameraParamsId { get; set; }
}