scryer-db 0.2.0

Database models and Turso/SQLite storage layer for Scryer code intelligence
use super::Project;
use toasty::Model;

#[derive(Debug, Clone, Model)]
#[table = "architectural_decision"]
pub struct ArchitecturalDecision {
    #[key]
    #[auto]
    pub id: u64,
    #[index]
    pub project_id: u64,
    #[belongs_to]
    pub project: toasty::Deferred<Project>,
    pub adr_number: u32,
    pub title: String,
    pub status: String, // "accepted", "deprecated", "superseded"
    pub context: String,
    pub decision: String,
    pub consequences: String,
    pub affected_paths: String, // JSON array of path glob/prefix patterns
}