<reponame>obeyurfate/GitWithMe<filename>database/temps.py<gh_stars>1-10
import sqlalchemy
from sqlalchemy import orm
from sqlalchemy_serializer import SerializerMixin

from .db_sess import SqlAlchemyBase


class Temps(SqlAlchemyBase, SerializerMixin):
    __tablename__ = 'temps'

    id = sqlalchemy.Column(sqlalchemy.Integer, primary_key=True)
    code = sqlalchemy.Column(sqlalchemy.String)
    user_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey("users.id"))


import sqlalchemy
from sqlalchemy import orm
from sqlalchemy_serializer import SerializerMixin

from .db_sess import SqlAlchemyBase


class Temps(SqlAlchemyBase, SerializerMixin):
    __tablename__ = 'temps'

    id = sqlalchemy.Column(sqlalchemy.Integer, primary_key=True)
    code = sqlalchemy.Column(sqlalchemy.String)
    user_id = sqlalchemy.Column(sqlalchemy.Integer, sqlalchemy.ForeignKey("users.id"))