20 行
413 B
Python
20 行
413 B
Python
from __future__ import annotations
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class QualificationSchema(BaseModel):
|
|
title: str
|
|
issuer: str | None = None
|
|
year: str | None = None
|
|
image: str | None = None
|
|
description: str | None = None
|
|
category: str | None = None
|
|
|
|
|
|
class QualificationResponse(QualificationSchema):
|
|
id: int
|
|
sort_order: int = 0
|
|
|
|
class Config:
|
|
from_attributes = True
|