using System.ComponentModel.DataAnnotations.Schema;
using SqlSugar;
namespace ACBuildService;
[SugarTable("video")]
public class VideoTable
{
//数据是自增需要加上IsIdentity
//数据库是主键需要加上IsPrimaryKey
//注意:要完全和数据库一致2个属性
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
///
/// 源视频地址
///
[SugarColumn(ColumnDataType = "text")]
public string SourcePath { get; set; }
///
/// 本地存储地址
///
[SugarColumn(ColumnDataType = "text")]
public string FilePath { get; set; }
///
/// 作者
///
[SugarColumn(ColumnDataType = "text")]
public string AuthorName { get; set; }
///
/// 标题
///
[SugarColumn(ColumnDataType = "text")]
public string Title { get; set; }
///
/// 简介
///
[SugarColumn(ColumnDataType = "text")]
public string Desc { get; set; }
///
/// 视频时长
///
[SugarColumn(ColumnDataType = "text")]
public string Duration { get; set; }
public int Like { get; set; }
public int Collect { get; set; }
public int Message { get; set; }
public int Share { get; set; }
public DateTime CreateTime { get; set; }
}