| 123456789101112131415161718192021 |
- from pydantic import BaseModel
- from uuid import UUID
- class DepartmentCreate(BaseModel):
- campus_id: UUID
- name: str
- class DepartmentUpdate(BaseModel):
- campus_id: UUID
- name: str
- class DepartmentResponse(BaseModel):
- id: UUID
- campus_id: UUID
- name: str
- class Config:
- from_attributes = True
|