flask create_time update_time is_delete

create_time = db.Column(db.DateTime, server_default=func.now())
update_time = db.Column(db.DateTime, server_default=func.now(), onupdate=func.now())
is_delete = db.Column(db.Integer, server_default='0')
posted @ 2023-01-18 10:14  bitterteaer  阅读(31)  评论(0编辑  收藏  举报