using Dolphin.ExamPictureCut.Constants; using SqlSugar; using System.ComponentModel.DataAnnotations.Schema; namespace Dolphin.ExamPictureCut.Domains.Basic; [Table(nameof(GroupBook)), Tenant(DbConsts.marking_basic)] public class GroupBook { [SugarColumn(IsPrimaryKey = true, ColumnName = "id", Length = 32)] public string Id { get; set; } [SugarColumn(ColumnName = "book_id")] public long BookId { get; set; } [SugarColumn(ColumnName = "book_name", IsNullable = true)] public string BookName { get; set; } /// /// 页面方向 0 竖向 1 横向 /// [SugarColumn(ColumnName = "orientation")] public int Orientation { get; set; } /// /// 页面大小 A3 = 8,A4 = 9,A4Small = 10,A5 = 11,B4 = 12, B5 = 13, /// [SugarColumn(ColumnName = "page_size")] public int PaperSize { get; set; } /// /// 所属科目 /// [SugarColumn(ColumnName = "course_name", IsNullable = true)] public string CourseName { get; set; } [SugarColumn(ColumnName = "remark", IsNullable = true)] public string Remark { get; set; } /// /// 是否试卷 /// [SugarColumn(ColumnName = "is_paper")] public bool IsPaper { get; set; } /// /// 是否归档 /// [SugarColumn(ColumnName = "is_save")] public bool IsSave { get; set; } [SugarColumn(ColumnName = "download_url", IsNullable = true)] public string DownloadUrl { get; set; } /// /// 生成状态 0 未生成 1 正在生成 2 生成成功 3生成失败 /// [SugarColumn(ColumnName = "state")] public int State { get; set; } /// /// 学段 /// [SugarColumn(ColumnName = "stage", IsNullable = true)] public string Stage { get; set; } /// /// 学段Id /// [SugarColumn(ColumnName = "stage_id")] public long StageId { get; set; } /// /// 年级 /// [SugarColumn(ColumnName = "grade_name", IsNullable = true)] public string GradeName { get; set; } /// /// 科目 /// [SugarColumn(ColumnName = "subject_name", IsNullable = true)] public string SubjectName { get; set; } [SugarColumn(ColumnName = "subject_id")] public int SubjectId { get; set; } /// /// 年份 /// [SugarColumn(ColumnName = "year")] public int Year { get; set; } /// /// 模板制作状态 /// [SugarColumn(ColumnName = "template_make_status")] public TemplateMakeStatusEnum TemplateMakeStatus { get; set; } /// /// 归类Id /// [SugarColumn(ColumnName = "catalog_id", IsNullable = true)] public string CatalogId { get; set; } /// /// 归类名称 /// [SugarColumn(ColumnName = "catalog_name", IsNullable = true)] public string CatalogName { get; set; } [SugarColumn(ColumnName = "create_time", IsOnlyIgnoreUpdate = true, InsertServerTime = true)] public DateTime CreateTime { get; set; } [SugarColumn(ColumnName = "update_time", InsertServerTime = true, UpdateServerTime = true)] public DateTime UpdateTime { get; set; } } /// /// 模板制作状态 /// public enum TemplateMakeStatusEnum { 未制作 = 0, 制作中 = 1, 已完成 = 2, }