82 lines
1.9 KiB
C#
Raw Normal View History

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