db dates
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
from pydantic import BaseModel, Field, EmailStr, constr,validator
|
||||
from typing import List, Optional
|
||||
from enum import IntEnum
|
||||
|
||||
from datetime import datetime
|
||||
#Валидация пароля
|
||||
import re
|
||||
def check_password_complexity(cls, password): #Проверка пароля на соответствие сложности
|
||||
@@ -45,4 +47,5 @@ class UserReset(BaseModel):
|
||||
class UserOut(BaseModel):
|
||||
email:EmailStr
|
||||
description:str
|
||||
activated:bool
|
||||
activated:bool
|
||||
created_at:datetime
|
||||
Reference in New Issue
Block a user