提交功能

This commit is contained in:
Bob.Song
2026-02-08 16:58:32 +08:00
commit 9dd1e6c278
67 changed files with 4588 additions and 0 deletions

59
Db/Tables/VideoTable.cs Normal file
View File

@@ -0,0 +1,59 @@
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; }
}