first commit

This commit is contained in:
2025-02-28 16:29:56 +08:00
commit 0b5426a5d1
16 changed files with 352 additions and 0 deletions

13
account/schemas.py Normal file
View 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