模型类
This commit is contained in:
@@ -10,10 +10,10 @@ class Relation(Base):
|
||||
|
||||
__tablename__ = "wl_relation"
|
||||
|
||||
id = Column(Integer, primary_key=True, autoincrement=True)
|
||||
source_id = Column(String(50))
|
||||
destination_id = Column(Integer)
|
||||
relation_type = Column(String(50))
|
||||
created_at = Column(DateTime)
|
||||
updated_at = Column(DateTime)
|
||||
is_deleted = Column(default=False, nullable=False)
|
||||
id = Column(Integer, primary_key=True, autoincrement=True, comment="id")
|
||||
source_id = Column(String(50), comment="关系来源标识")
|
||||
destination_id = Column(Integer, comment="关系目标标识")
|
||||
relation_type = Column(String(50), comment="关系类型")
|
||||
created_at = Column(DateTime, comment="数据创建时间")
|
||||
updated_at = Column(DateTime, comment="数据更新时间")
|
||||
is_deleted = Column(default=False, nullable=False, comment="逻辑删除字段")
|
||||
|
||||
Reference in New Issue
Block a user