first commit
This commit is contained in:
13
account/schemas.py
Normal file
13
account/schemas.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from ninja import Schema
|
||||
from pydantic import EmailStr, Field
|
||||
|
||||
|
||||
class UserRegistrationSchema(Schema):
|
||||
username: str
|
||||
email: EmailStr
|
||||
password: str = Field(min_length=6)
|
||||
|
||||
|
||||
class UserLoginSchema(Schema):
|
||||
username: str
|
||||
password: str
|
||||
Reference in New Issue
Block a user