- Systeme de themes adaptatifs : Peps (light chaud), Zen (light calme), Chagrine (dark violet), Grave (dark ambre) avec CSS custom properties - Dashboard d'accueil orienté onboarding avec cartes-portes et teaser boite a outils - SectionLayout reutilisable : liste + sidebar toolbox + status pills cliquables (En prepa / En vote / En vigueur / Clos) - ToolboxVignette : vignettes Contexte / Tutos / Choisir / Demarrer - Seed : Acte engagement certification + forgeron, Runtime Upgrade (decision on-chain), 3 modalites de vote (majoritaire, quadratique, permanent) - Backend adapte SQLite (Uuid portable, 204 fix, pool conditionnel) - Correction noms composants (pathPrefix: false), pinia/nuxt ^0.11 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
23 lines
1.0 KiB
Python
23 lines
1.0 KiB
Python
import uuid
|
|
from datetime import datetime
|
|
|
|
from sqlalchemy import String, Integer, Text, DateTime, Uuid, func
|
|
from sqlalchemy.orm import Mapped, mapped_column
|
|
|
|
from app.database import Base
|
|
|
|
|
|
class SanctuaryEntry(Base):
|
|
__tablename__ = "sanctuary_entries"
|
|
|
|
id: Mapped[uuid.UUID] = mapped_column(Uuid, primary_key=True, default=uuid.uuid4)
|
|
entry_type: Mapped[str] = mapped_column(String(64), nullable=False) # document, decision, vote_result
|
|
reference_id: Mapped[uuid.UUID] = mapped_column(Uuid, nullable=False)
|
|
title: Mapped[str | None] = mapped_column(String(256))
|
|
content_hash: Mapped[str] = mapped_column(String(128), nullable=False) # SHA-256
|
|
ipfs_cid: Mapped[str | None] = mapped_column(String(128))
|
|
chain_tx_hash: Mapped[str | None] = mapped_column(String(128))
|
|
chain_block: Mapped[int | None] = mapped_column(Integer)
|
|
metadata_json: Mapped[str | None] = mapped_column(Text) # JSON string for extra data
|
|
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), server_default=func.now())
|