backend: database and file upload test

This commit is contained in:
OleSTEEP 2025-10-02 22:44:29 +03:00
parent b62f6d87c7
commit d786d7f7af
6 changed files with 198 additions and 34 deletions

View file

@ -1,6 +1,11 @@
from pydantic import BaseModel
from datetime import datetime
from typing import Literal
class Mark(BaseModel):
type: Literal["tag", "badge", "genre"]
value: str
class Novel(BaseModel):
title: str
@ -21,4 +26,4 @@ class FullNovel:
upload_queue: list[str]
files: list[str]
screenshots: list[str]
screenshots: list[str]