from app import db
from flask.ext.login import UserMixin

class User(UserMixin, db.Model):
    __tablename__ = 'oauth2users'
    id = db.Column(db.Integer, primary_key=True)
    social_id = db.Column(db.String(64), nullable=False, unique=True)
    nickname = db.Column(db.String(64), nullable=False)
    email = db.Column(db.String(64), nullable=True)



[((134, 173), 'app.db.Column', 'db.Column', (['db.Integer'], {'primary_key': '(True)'}), '(db.Integer, primary_key=True)\n', (143, 173), False, 'from app import db\n'), ((200, 213), 'app.db.String', 'db.String', (['(64)'], {}), '(64)\n', (209, 213), False, 'from app import db\n'), ((269, 282), 'app.db.String', 'db.String', (['(64)'], {}), '(64)\n', (278, 282), False, 'from app import db\n'), ((322, 335), 'app.db.String', 'db.String', (['(64)'], {}), '(64)\n', (331, 335), False, 'from app import db\n')]