Pablan, as it stands
Self-hosted knowledge management for SMEs: a split-screen Markdown editor whose sections an LLM refines while you write, and RAG question answering over the documents that result. FastAPI + Postgres/pgvector on the back, SvelteKit on the front, everything OpenAI-compatible and self-hostable. Squashed into a single commit; the development history stays local. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CA43ZJda8Rbp2hKXNy8f6b
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
from typing import Any
|
||||
|
||||
from sqlalchemy import String
|
||||
from sqlalchemy.dialects.postgresql import JSONB
|
||||
from sqlalchemy.orm import Mapped, mapped_column
|
||||
|
||||
from app.models.base import Base, TimestampMixin, UUIDPrimaryKeyMixin
|
||||
|
||||
|
||||
class Template(UUIDPrimaryKeyMixin, TimestampMixin, Base):
|
||||
__tablename__ = "templates"
|
||||
|
||||
# Every row here belongs to the customer and is editable. Blueprints
|
||||
# shipped with the product stay on disk in templates/ until an admin
|
||||
# adds one (app/template_catalog.py) — there is no read-only template.
|
||||
name: Mapped[str] = mapped_column(String(200))
|
||||
version: Mapped[str] = mapped_column(String(20))
|
||||
config: Mapped[dict[str, Any]] = mapped_column(JSONB)
|
||||
Reference in New Issue
Block a user