Files
BabyVideoService/Db/Tables/VideoTable.cs
2026-02-08 16:58:32 +08:00

59 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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; }
}