📜  flask sqlalchemy 布尔字段 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:30.042000             🧑  作者: Mango

代码示例1
class User(db.Model):
    __tablename__ = 'users'
    id = db.Column(db.Integer, primary_key=True)
    can_view_records = db.Column(db.Boolean, default=False, nullable=False)