CAMERA V1
This commit is contained in:
11
FATrace.Model/BaseEntity.cs
Normal file
11
FATrace.Model/BaseEntity.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace FATrace.Model
|
||||
{
|
||||
public abstract class BaseEntity
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
public DateTime UpdateTime { get; set; } = DateTime.Now;
|
||||
}
|
||||
}
|
||||
@@ -6,4 +6,8 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="FreeSql" Version="3.5.213" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
79
FATrace.Model/VideoAction.cs
Normal file
79
FATrace.Model/VideoAction.cs
Normal file
@@ -0,0 +1,79 @@
|
||||
using FreeSql.DataAnnotations;
|
||||
|
||||
namespace FATrace.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 视频事件
|
||||
/// </summary>
|
||||
[Table(Name = "VideoAction")]
|
||||
public class VideoAction
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
[Column(IsPrimary = true, IsIdentity = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Code
|
||||
/// </summary>
|
||||
[Column(Name = "Code", IsNullable = false, StringLength = 100)]
|
||||
public string? Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户信息
|
||||
/// </summary>
|
||||
[Column(Name = "User", IsNullable = false, StringLength = 100)]
|
||||
public string? User { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 分类信息-CAN/LIN
|
||||
///// </summary>
|
||||
//[Column(Name = "CANLINInfo", IsNullable = false, MapType = typeof(string))]
|
||||
//public CANLIN CANLINInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 视频文件路径
|
||||
/// </summary>
|
||||
[Column(Name = "VideoFilePath", IsNullable = false, StringLength = 200)]
|
||||
public string? VideoFilePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 视频名称
|
||||
/// </summary>
|
||||
[Column(Name = "VideoName", IsNullable = false, StringLength = 100)]
|
||||
public string? VideoName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始时间
|
||||
/// </summary>
|
||||
[Column(Name = "StartTime")]
|
||||
public DateTime StartTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束时间
|
||||
/// </summary>
|
||||
[Column(Name = "EndTime")]
|
||||
public DateTime EndTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[Column(ServerTime = DateTimeKind.Local, CanUpdate = true)]
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
|
||||
///// <summary>
|
||||
///// ///////////////////////////////////////////导航属性///////////////////////////////////////////////////////
|
||||
///// </summary>
|
||||
|
||||
//public List<CanLinRWConfig>? CanLinConfigContents { get; set; }
|
||||
|
||||
|
||||
///// <summary>
|
||||
///// ///////////////////////////////////////////导航属性 LIN 一对一///////////////////////////////////////////////////////
|
||||
///// </summary>
|
||||
//public long CANFdConfigExdId { get; set; } // 外键字段,必要
|
||||
//public CANFdConfigExd CANFdConfigExd { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user