backend: prepare to adding posts to database
This commit is contained in:
parent
59d092c9d0
commit
c95aed01b5
4 changed files with 65 additions and 39 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue