Trying to change models

This commit is contained in:
DmitryGantimurov 2023-07-24 07:07:36 +03:00 committed by Dmitry Gantimurov
parent d97ca1c43f
commit 904b00059f

View File

@ -1,8 +1,14 @@
from sqlalchemy import Column, Integer, String from sqlalchemy import Column, Integer, String
from fastapi_users.db import SQLAlchemyBaseUserTableUUID, SQLAlchemyUserDatabase
from fastapi import Depends from fastapi import Depends
from .db import Base from .db import Base
class User(SQLAlchemyBaseUserTableUUID, Base):
pass
class UserDatabase(Base):#класс пользователя class UserDatabase(Base):#класс пользователя
__tablename__ = "users" __tablename__ = "users"