app=Flask(name) db=SQLAlchemy(app) migrate=Migrate(app,db)
class Writer(db.Model): books=db.relationship('Book',back_populates='writer') class Book(db.Model): writer_id=db.Column(db.Integer,db.ForeignKey('writer.id')...
级联: class Witer(db.Model): books=db.relationship('writer',cascade='save-update,merge,delete')
import click from flask_sqlalchemy import SQLAlchemy
WTForms: BooleanField : checkbox DateField: DateTimeField: FileField 文件上传 FloatField IntegerField RadioField :radio SelectField SelectMultipleField ...