# -*- coding: utf-8 -*-
from sqlalchemy import Column, Integer, String

from . import Base


class UserInfo(Base):
    __tablename__ = 'user_info'
    id = Column(Integer, primary_key=True)
    source = Column(String)
    username = Column(String)
    email = Column(String)
    password = Column(String)

    def __repr__(self):
        return "<UserInfo('%s')>" % (self.username or self.email)


class UserDirty(Base):
    __tablename__ = 'user_dirty'
    id = Column(Integer, primary_key=True)
    source = Column(String(16))
    line = Column(String(255))

    def __repr__(self):
        return "<UserDirty('%s')>" % self.line
