diff --git a/ingredients_db/models/user.py b/ingredients_db/models/user.py deleted file mode 100644 index 3034933..0000000 --- a/ingredients_db/models/user.py +++ /dev/null @@ -1,31 +0,0 @@ -# import arrow -# from sqlalchemy import Column, text, func, String, ForeignKey -# from sqlalchemy_utils import UUIDType, ArrowType, generic_repr -# -# from ingredients_db.database import Base - - -# @generic_repr -# class User(Base): -# __tablename__ = 'users' -# -# id = Column(UUIDType, server_default=text("uuid_generate_v4()"), primary_key=True) -# username = Column(String, unique=True, nullable=False) -# -# created_at = Column(ArrowType(timezone=True), server_default=text('clock_timestamp()'), nullable=False) -# updated_at = Column(ArrowType(timezone=True), server_default=text('clock_timestamp()'), onupdate=text('clock_timestamp()'), nullable=False) -# -# -# @generic_repr -# class UserToken(Base): -# __tablename__ = 'user_tokens' -# -# id = Column(UUIDType, server_default=text("uuid_generate_v4()"), primary_key=True) -# access_token = Column(String, nullable=False, index=True) -# -# user_id = Column(UUIDType, ForeignKey('users.id', ondelete='CASCADE'), nullable=False) -# project_id = Column(UUIDType, ForeignKey('projects.id', ondelete='CASCADE')) -# -# created_at = Column(ArrowType(timezone=True), server_default=text('clock_timestamp()'), nullable=False, index=True) -# updated_at = Column(ArrowType(timezone=True), server_default=text('clock_timestamp()'), onupdate=text('clock_timestamp()'), nullable=False) -# expires_at = Column(ArrowType(timezone=True), default=arrow.now().shift(days=+1), nullable=False)