mirror of
https://github.com/yawaflua/BiahadHakatonProject.git
synced 2025-12-10 04:09:33 +02:00
14
db_repository/Volunteer.py
Normal file
14
db_repository/Volunteer.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from db_repository.BaseRepositories import BaseCRUDRepository
|
||||
from models.Volunteer import Volunteer
|
||||
|
||||
|
||||
class VolunteerCreate(BaseModel, Volunteer):
|
||||
id: int
|
||||
|
||||
|
||||
class VolunteerSchema(VolunteerCreate):
|
||||
id: int = None
|
||||
Reference in New Issue
Block a user