scryer-db 0.1.0

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

#[derive(Debug, Clone, Model)]
#[table = "symbol_reference"]
pub struct SymbolReference {
    #[key]
    #[auto]
    pub id: u64,
    #[index]
    pub project_id: u64,
    #[index]
    pub symbol_id: u64,
    #[index]
    pub file_id: u64,
    pub role: String, // "call", "type_annotation", "read", "write", "import"
    pub start_byte: usize,
    pub end_byte: usize,
    pub line_number: u32,
}