using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using SqlSugar; using WIDESEA_Core.DB.Models; namespace WIDESEA_Model.Models { /// /// 版本信息表 /// [SugarTable(nameof(Dt_Versions), TableDescription = "版本信息表")] public class Dt_Versions : BaseEntity { /// /// 主键 /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")] public int Id { get; set; } /// /// 语义化版本号(如2.1.0) /// [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "语义化版本号(如2.1.0)")] public string VersionNumber { get; set; } = null!; /// /// 发布日期 /// [SugarColumn(IsNullable = false, ColumnDescription = "发布日期")] public DateTime ReleaseDate { get; set; } /// /// 更新日志 /// [SugarColumn(IsNullable = true, Length = 2000, ColumnDescription = "更新日志")] public string? ReleaseNotes { get; set; } /// /// 文件存储路径/URL /// [SugarColumn(IsNullable = false, Length = 200, ColumnDescription = "文件存储路径/URL")] public string? DownloadUrl { get; set; } = null!; /// /// 状态(已发布/未发布) /// [SugarColumn(IsNullable = false, ColumnDescription = "状态(已发布/未发布)")] public string Status { get; set; } = null!; /// /// 版本类型(正式版/测试版/内测版等) /// [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "版本类型(正式版/测试版/内测版等)")] public string VersionType { get; set; } = null!; /// /// 关联的产品ID /// [SugarColumn(IsNullable = false, ColumnDescription = "关联的产品ID")] public int ProductId { get; set; } } }