feat:增加博客草稿功能
This commit is contained in:
@@ -22,6 +22,7 @@ class Blog(AuditBase):
|
||||
content_id = Column(BigInteger, nullable=True, comment="博客内容")
|
||||
word_count = Column(Integer, nullable=True, comment="字数统计")
|
||||
read_duration = Column(DECIMAL(10, 2), nullable=True, comment="阅读时长")
|
||||
is_approved = Column(SMALLINT, nullable=True, comment="是否发布")
|
||||
|
||||
category = relationship(
|
||||
"BlogCategory",
|
||||
@@ -83,14 +84,14 @@ class BlogVisit(AuditBase):
|
||||
|
||||
|
||||
class BlogComment(AuditBase):
|
||||
blog_id = Column(BigInteger, comment="博客id")
|
||||
parent_id = Column(BigInteger, comment="父评论id")
|
||||
name = Column(String(255), comment="评论人昵称")
|
||||
blog_id = Column(BigInteger, nullable=True, comment="博客id")
|
||||
parent_id = Column(BigInteger, nullable=True, comment="父评论id")
|
||||
name = Column(String(255), nullable=True, comment="评论人昵称")
|
||||
website = Column(String(255), nullable=True, comment="评论人网站")
|
||||
ip_address = Column(String(45), nullable=True, comment="评论人ip")
|
||||
user_agent = Column(String(255), nullable=True, comment="评论人浏览器信息")
|
||||
content = Column(String(512), comment="评论内容")
|
||||
is_approved = Column(SMALLINT, comment="是否通过")
|
||||
content = Column(String(512), nullable=True, comment="评论内容")
|
||||
is_approved = Column(SMALLINT, nullable=True, comment="是否通过")
|
||||
|
||||
blog = relationship(
|
||||
"Blog",
|
||||
|
||||
Reference in New Issue
Block a user