<filename>myWeb/myWeb/model/User.py
from myWeb import db
class User(db.Model):
    __tablename__='b_user'
    id=db.Column(db.Integer,primary_key=True)
    username=db.Column(db.String(10),unique=True)
    password=db.Column(db.String(16))
    def __init__(self,username,password):
        self.username=username
        self.password=password
    def __repr__(self):
        return '<user %r>' % self.username
<filename>myWeb/myWeb/model/User.py
from myWeb import db
class User(db.Model):
    __tablename__='b_user'
    id=db.Column(db.Integer,primary_key=True)
    username=db.Column(db.String(10),unique=True)
    password=db.Column(db.String(16))
    def __init__(self,username,password):
        self.username=username
        self.password=password
    def __repr__(self):
        return '<user %r>' % self.username