using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace YD_YiLu.Api.SmartSportsEntitys
{
///
/// 视频回放表(训练视频上传)
///
public class YL_DeviceVideo
{
///
/// 主键ID
///
[Key]
public long Id { get; set; }
///
/// 设备序列号
///
[Required]
[MaxLength(64)]
public string DeviceSerial { get; set; }
///
/// 设备类型
///
public int DeviceType { get; set; }
///
/// 训练序列号(一次训练唯一标识)
///
[Required]
[MaxLength(64)]
public string VideoSerial { get; set; }
///
/// 视频访问地址(上传后返回)
///
[Required]
[MaxLength(500)]
public string VideoUrl { get; set; }
///
/// 文件名称
///
[MaxLength(200)]
public string? FileName { get; set; }
///
/// 文件大小(KB)
///
public long? FileSize { get; set; }
///
/// 视频时长(秒)
///
public int? Duration { get; set; }
///
/// 时间戳(客户端上传)
///
public long Timestamp { get; set; }
///
/// 上传时间
///
public DateTime CreateTime { get; set; }
///
/// 状态 0=无效 1=有效
///
public int Status { get; set; }
///
/// 备注
///
[MaxLength(500)]
public string? Remark { get; set; }
}
}