db=SQLAlchemy()
class User(UserMixin,db.Model):
__tablename__='users'
id = db.Column(db.Integer, primary_key=True,autoincrement=True)
name = db.Column(db.String, unique=True)
password=db.Column(db.String)
def __init__(self, name, password):
self.name=name
self.password=password