From 904b00059f6d320e7d93610458573582132fc57f Mon Sep 17 00:00:00 2001 From: DmitryGantimurov Date: Mon, 24 Jul 2023 07:07:36 +0300 Subject: [PATCH] Trying to change models --- back/models.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/back/models.py b/back/models.py index 9f7e754..ba4ca55 100644 --- a/back/models.py +++ b/back/models.py @@ -1,8 +1,14 @@ from sqlalchemy import Column, Integer, String - +from fastapi_users.db import SQLAlchemyBaseUserTableUUID, SQLAlchemyUserDatabase from fastapi import Depends from .db import Base + +class User(SQLAlchemyBaseUserTableUUID, Base): + pass + + + class UserDatabase(Base):#класс пользователя __tablename__ = "users"