20 行
402 B
Python
20 行
402 B
Python
from __future__ import annotations
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class SeoPageSchema(BaseModel):
|
|
title: str | None = None
|
|
description: str | None = None
|
|
h1: str | None = None
|
|
keywords: str | None = None
|
|
og_image: str | None = None
|
|
tldr: str | None = None
|
|
|
|
|
|
class SeoPageResponse(SeoPageSchema):
|
|
id: int
|
|
page_key: str
|
|
|
|
class Config:
|
|
from_attributes = True
|