aboutsummaryrefslogtreecommitdiff
path: root/app/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/__init__.py')
-rw-r--r--app/__init__.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/__init__.py b/app/__init__.py
index dad9ba0..7145f96 100644
--- a/app/__init__.py
+++ b/app/__init__.py
@@ -10,13 +10,7 @@ app.config.from_object('app.config')
bcrypt = Bcrypt(app)
db = SQLAlchemy(app)
-class User(db.Model):
- id = db.Column(db.Integer, primary_key=True)
- username = db.Column(db.String(80), unique=True, nullable=False)
- email = db.Column(db.String(120), unique=True, nullable=False)
-
- def __repr__(self):
- return '<User %r>' % self.username
+from app.models import User
database_cli = AppGroup("database")
@database_cli.command("create")