from datetime import datetime
import sqlalchemy as sa
from flask_login import UserMixin
from sqlalchemy import orm
from sqlalchemy_serializer import SerializerMixin
from werkzeug.security import generate_password_hash, check_password_hash
from .db_session import SqlAlchemyBase


class SubPerson(SqlAlchemyBase, UserMixin, SerializerMixin):
    __tablename__ = 'sub_person'
    id = sa.Column(sa.Integer,
                   primary_key=True, autoincrement=True)
    author = sa.Column(sa.Integer)
    user = sa.Column(sa.Integer)
