backend: prepare to adding posts to database

This commit is contained in:
OleSTEEP 2025-10-05 22:07:45 +03:00
parent 59d092c9d0
commit c95aed01b5
4 changed files with 65 additions and 39 deletions

View file

@ -14,14 +14,14 @@ class NovelFile(BaseModel):
class Novel(BaseModel):
title: str
description: str
author_id: int
vndb: int | None = None
hours_to_read: int
tags: list[str]
genres: list[str]
badges: list[str]
marks: list[Mark]
tg_channel: int # maybe not here
tg_post: str | None = None #url::Url
post_at: datetime | None = None