feat(api): initialize memoir chapter image assets on creation

Made-with: Cursor
This commit is contained in:
Kevin
2026-03-10 16:03:49 +08:00
parent 67a469f380
commit d5ed2940aa
4 changed files with 63 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ class Chapter(Base):
content = Column(Text, nullable=False)
order_index = Column(Integer, nullable=False)
status = Column(String, default="draft") # draft, completed
images = Column(JSON, nullable=True) # 图片 URL 列表
images = Column(JSON, nullable=True) # 图片元数据对象列表
updated_at = Column(DateTime(timezone=True), default=utc_now, onupdate=utc_now)
category = Column(String, nullable=True) # 章节分类
is_new = Column(Boolean, default=True) # 是否为新内容(未读)