feat: add import
This commit is contained in:
@@ -3,11 +3,11 @@ from __future__ import annotations
|
|||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from pydantic import BaseModel, EmailStr, Field
|
from pydantic import BaseModel, Field
|
||||||
|
|
||||||
|
|
||||||
class CreateOrganizationRequest(BaseModel):
|
class CreateOrganizationRequest(BaseModel):
|
||||||
email: EmailStr
|
email: str = Field(min_length=3, max_length=255)
|
||||||
password: str = Field(min_length=8)
|
password: str = Field(min_length=8)
|
||||||
name: str = Field(min_length=1, max_length=512)
|
name: str = Field(min_length=1, max_length=512)
|
||||||
short_name: str | None = Field(default=None, max_length=256)
|
short_name: str | None = Field(default=None, max_length=256)
|
||||||
|
|||||||
Reference in New Issue
Block a user