59 lines
1.4 KiB
C#
59 lines
1.4 KiB
C#
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; }
|
||
|
||
/// <summary>
|
||
/// 源视频地址
|
||
/// </summary>
|
||
[SugarColumn(ColumnDataType = "text")]
|
||
public string SourcePath { get; set; }
|
||
|
||
/// <summary>
|
||
/// 本地存储地址
|
||
/// </summary>
|
||
[SugarColumn(ColumnDataType = "text")]
|
||
public string FilePath { get; set; }
|
||
|
||
/// <summary>
|
||
/// 作者
|
||
/// </summary>
|
||
[SugarColumn(ColumnDataType = "text")]
|
||
public string AuthorName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 标题
|
||
/// </summary>
|
||
[SugarColumn(ColumnDataType = "text")]
|
||
public string Title { get; set; }
|
||
|
||
/// <summary>
|
||
/// 简介
|
||
/// </summary>
|
||
[SugarColumn(ColumnDataType = "text")]
|
||
public string Desc { get; set; }
|
||
|
||
/// <summary>
|
||
/// 视频时长
|
||
/// </summary>
|
||
[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; }
|
||
} |