From fd48c2eb7dd78e00a24a6b83721d2f476df0ce74 Mon Sep 17 00:00:00 2001 From: owenchen Date: Tue, 2 Jun 2026 15:22:21 +0800 Subject: [PATCH] ow --- .../Entity/AiChapterPersonEntity.auto.cs | 71 ++++++++++--------- 1 file changed, 38 insertions(+), 33 deletions(-) diff --git a/CloudBuilder.AI/Entity/AiChapterPersonEntity.auto.cs b/CloudBuilder.AI/Entity/AiChapterPersonEntity.auto.cs index ae4f1b1..a2b3806 100644 --- a/CloudBuilder.AI/Entity/AiChapterPersonEntity.auto.cs +++ b/CloudBuilder.AI/Entity/AiChapterPersonEntity.auto.cs @@ -13,57 +13,61 @@ namespace CloudBuilder.AI.Entity { } - [Column("created_datetime")] - public DateTime CreatedDatetime { get; set; } - [Column("sentence_index")] - public int SentenceIndex { get; set; } - [Column("order_index")] - public int OrderIndex { get; set; } [Column("person_name")] public string PersonName { get; set; } [Column("person_mapping")] public string? PersonMapping { get; set; } + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.Identity)] + [Column("person_id")] + public long PersonId { get; set; } + [Column("book_id")] + public string BookId { get; set; } + [Column("chapter_id")] + public int ChapterId { get; set; } + [Column("paragraph_index")] + public long ParagraphIndex { get; set; } + [Column("sentence_index")] + public int SentenceIndex { get; set; } + [Column("order_index")] + public int OrderIndex { get; set; } + [Column("created_datetime")] + public DateTime CreatedDatetime { get; set; } [Column("created_by")] public string CreatedBy { get; set; } [Column("updated_datetime")] public DateTime UpdatedDatetime { get; set; } [Column("updated_by")] public string UpdatedBy { get; set; } - [Key] - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] - [Column("person_id")] - public long PersonId { get; set; } - [Column("chapter_id")] - public int ChapterId { get; set; } - [Column("paragraph_index")] - public long ParagraphIndex { get; set; } - public const string CREATED_DATETIME = "CreatedDatetime"; - public const string SENTENCE_INDEX = "SentenceIndex"; - public const string ORDER_INDEX = "OrderIndex"; public const string PERSON_NAME = "PersonName"; public const string PERSON_MAPPING = "PersonMapping"; + public const string PERSON_ID = "PersonId"; + public const string BOOK_ID = "BookId"; + public const string CHAPTER_ID = "ChapterId"; + public const string PARAGRAPH_INDEX = "ParagraphIndex"; + public const string SENTENCE_INDEX = "SentenceIndex"; + public const string ORDER_INDEX = "OrderIndex"; + public const string CREATED_DATETIME = "CreatedDatetime"; public const string CREATED_BY = "CreatedBy"; public const string UPDATED_DATETIME = "UpdatedDatetime"; public const string UPDATED_BY = "UpdatedBy"; - public const string PERSON_ID = "PersonId"; - public const string CHAPTER_ID = "ChapterId"; - public const string PARAGRAPH_INDEX = "ParagraphIndex"; public const string DB_NAME_AI_CHAPTER_PERSON = "ai_chapter_person"; - public const string DB_NAME_FIELDS="created_datetime,sentence_index,order_index,person_name,person_mapping,created_by,updated_datetime,updated_by,person_id,chapter_id,paragraph_index"; + public const string DB_NAME_FIELDS="person_name,person_mapping,person_id,book_id,chapter_id,paragraph_index,sentence_index,order_index,created_datetime,created_by,updated_datetime,updated_by"; - public const string DB_CREATED_DATETIME = "created_datetime"; - public const string DB_SENTENCE_INDEX = "sentence_index"; - public const string DB_ORDER_INDEX = "order_index"; public const string DB_PERSON_NAME = "person_name"; public const string DB_PERSON_MAPPING = "person_mapping"; + public const string DB_PERSON_ID = "person_id"; + public const string DB_BOOK_ID = "book_id"; + public const string DB_CHAPTER_ID = "chapter_id"; + public const string DB_PARAGRAPH_INDEX = "paragraph_index"; + public const string DB_SENTENCE_INDEX = "sentence_index"; + public const string DB_ORDER_INDEX = "order_index"; + public const string DB_CREATED_DATETIME = "created_datetime"; public const string DB_CREATED_BY = "created_by"; public const string DB_UPDATED_DATETIME = "updated_datetime"; public const string DB_UPDATED_BY = "updated_by"; - public const string DB_PERSON_ID = "person_id"; - public const string DB_CHAPTER_ID = "chapter_id"; - public const string DB_PARAGRAPH_INDEX = "paragraph_index"; public static AiChapterPersonEntity GetInstance() @@ -83,17 +87,18 @@ namespace CloudBuilder.AI.Entity throw new NullReferenceException("Source entity is null."); } - this.CreatedDatetime = source.CreatedDatetime; - this.SentenceIndex = source.SentenceIndex; - this.OrderIndex = source.OrderIndex; this.PersonName = source.PersonName; this.PersonMapping = source.PersonMapping; + this.PersonId = source.PersonId; + this.BookId = source.BookId; + this.ChapterId = source.ChapterId; + this.ParagraphIndex = source.ParagraphIndex; + this.SentenceIndex = source.SentenceIndex; + this.OrderIndex = source.OrderIndex; + this.CreatedDatetime = source.CreatedDatetime; this.CreatedBy = source.CreatedBy; this.UpdatedDatetime = source.UpdatedDatetime; this.UpdatedBy = source.UpdatedBy; - this.PersonId = source.PersonId; - this.ChapterId = source.ChapterId; - this.ParagraphIndex = source.ParagraphIndex; if (includeSystemFields) {