Feature/add is deleted to conversations (#470)
This commit is contained in:
parent
ec261aea54
commit
97e9ebd29a
5 changed files with 99 additions and 1 deletions
|
|
@ -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 = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue