Feature/add is deleted to conversations (#470)

This commit is contained in:
crazywoola 2023-06-28 13:31:51 +08:00 committed by GitHub
commit 97e9ebd29a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 99 additions and 1 deletions

View file

@ -206,6 +206,8 @@ class Conversation(db.Model):
messages = db.relationship("Message", backref="conversation", lazy='select', passive_deletes="all")
message_annotations = db.relationship("MessageAnnotation", backref="conversation", lazy='select', passive_deletes="all")
is_deleted = db.Column(db.Boolean, nullable=False, server_default=db.text('false'))
@property
def model_config(self):
model_config = {}