first commit

This commit is contained in:
xuyue committed 2025-02-28 16:29:56 +08:00
commit 0b5426a5d1
16 files changed
+352

No files matched your search

+13
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