16 lines
253 B
Python
16 lines
253 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class CourseEntity(BaseModel):
|
|
id: Optional[int] = None
|
|
title: str
|
|
description: str
|
|
|
|
category_id: int
|
|
owner_user_id: int
|
|
|
|
class Config:
|
|
from_attributes = True
|