Files
Canto/canto-backend/schemas/cache.py
bdim404 2fa9c1fcb6 refactor: rename backend/frontend dirs and remove NovelWriter submodule
- Rename qwen3-tts-backend → canto-backend
- Rename qwen3-tts-frontend → canto-frontend
- Remove NovelWriter embedded repo

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 18:03:29 +08:00

16 lines
390 B
Python

from datetime import datetime
from typing import Optional, Dict, Any
from pydantic import BaseModel, ConfigDict
class CacheEntry(BaseModel):
id: int
user_id: int
ref_audio_hash: str
cache_path: str
meta_data: Optional[Dict[str, Any]] = None
created_at: datetime
last_accessed: datetime
access_count: int
model_config = ConfigDict(from_attributes=True)