@db_cli.command('init')
def init_database():
    'Initialize the database schemas.\n\n    Run this after the database has been created.\n    '
    database = current_app.config['POSTGRES_DB']
    db.create_all()
    click.echo(f'Initialized the database {database!r}.')
Initialize the database schemas.

Run this after the database has been created.
@db_cli.command('init')
def init_database():
    'Initialize the database schemas.\n\n    Run this after the database has been created.\n    '
    database = current_app.config['POSTGRES_DB']
    db.create_all()
    click.echo(f'Initialized the database {database!r}.')