Buckets:

download
raw
472 Bytes
"""Schemas para usuarios con permisos."""
from datetime import datetime
from pydantic import BaseModel, EmailStr
class UserSchema(BaseModel):
"""Schema de usuario."""
id: int
name: str
email: EmailStr
is_admin: bool
is_active: bool
created_at: datetime
class Config:
from_attributes = True
class UserCreateSchema(BaseModel):
"""Schema para crear usuario."""
name: str
email: EmailStr
is_admin: bool = False

Xet Storage Details

Size:
472 Bytes
·
Xet hash:
cd4770d69e25b9787f14f0564719035af0da3904d74bcf657eceac9fd7e4fc82

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.