Browse Source

用户点赞表增加state的Column用于伪删除

master
邓淳远 4 years ago
parent
commit
18d25a3e0e
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      APP/view/model.py

+ 3
- 2
APP/view/model.py View File

@ -57,8 +57,9 @@ class UserLike(Base):
__tablename__ = 'user_like'
phonenum = Column(String(255), primary_key=True)
collection_id = Column(String(255), primary_key=True)
state = Column(Integer)
def __init__(self, phonenum=None, collection_id=None):
def __init__(self, phonenum=None, collection_id=None, state=None):
self.phonenum = phonenum
self.collection_id = collection_id
self.state = state

Loading…
Cancel
Save