1from flask import Flask
2from flask_sqlalchemy import SQLAlchemy
3from flask_migrate import Migrate
4
5app = Flask(__name__)
6app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db'
7
8db = SQLAlchemy(app)
9migrate = Migrate(app, db)
10
11class User(db.Model):
12 id = db.Column(db.Integer, primary_key=True)
13 name = db.Column(db.String(128))
14