Picture.Cut.Service/Dolphin.ExamPictureCut.Core/Domains/Basic/GroupBookPaperTemplate.cs

61 lines
1.9 KiB
C#

using Dolphin.ExamPictureCut.Constants;
using SqlSugar;
using System.ComponentModel.DataAnnotations.Schema;
namespace Dolphin.ExamPictureCut.Domains.Basic;
[Table(nameof(GroupBookPaperTemplate)), Tenant(DbConsts.marking_basic)]
public class GroupBookPaperTemplate
{
[SugarColumn(IsPrimaryKey = true, ColumnName = "id")]
public long Id { get; set; }
[SugarColumn(ColumnName = "book_id")]
public long BookId { get; set; }
[SugarColumn(ColumnName = "book_name", IsNullable = true)]
public string BookName { get; set; }
/// <summary>
/// 章
/// </summary>
[SugarColumn(ColumnName = "chapter_id")]
public long ChapterId { get; set; }
[SugarColumn(ColumnName = "chapter_name", IsNullable = true)]
public string ChapterName { get; set; }
/// <summary>
/// 节
/// </summary>
[SugarColumn(ColumnName = "part_id")]
public long PartId { get; set; }
[SugarColumn(ColumnName = "part_name", IsNullable = true)]
public string PartName { get; set; }
[SugarColumn(ColumnName = "page_index")]
public int PageIndex { get; set; }
[SugarColumn(ColumnName = "paper_id", IsNullable = true)]
public string PaperId { get; set; }
[SugarColumn(ColumnName = "img_url", IsNullable = true)]
public string ImgUrl { get; set; }
[SugarColumn(ColumnName = "que_data", IsNullable = true, ColumnDataType = "text")]
public string QueData { get; set; }
/// <summary>
/// 模板制作状态
/// </summary>
[SugarColumn(ColumnName = "template_make_status")]
public TemplateMakeStatusEnum TemplateMakeStatus { get; set; }
[SugarColumn(ColumnName = "order")]
public int Order { 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; }
}