def create_db():
    """
        Create all your database objects (SQLAlchemy specific).
    """
    from flask_appbuilder.models.sqla import Model

    engine = current_app.appbuilder.get_session.get_bind(mapper=None, clause=None)
    Model.metadata.create_all(engine)
    click.echo(click.style("DB objects created", fg="green"))
def create_db ( ) : from flask_appbuilder . models . sqla import Model engine = current_app . appbuilder . get_session . get_bind ( mapper = None , clause = None ) Model . metadata . create_all ( engine ) click . echo ( click . style ( "DB objects created" , fg = "green" ) )
Create all your database objects (SQLAlchemy specific).