scryer-db 0.3.0

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

#[derive(Debug, Clone, Model)]
#[table = "code_graph_edge"]
pub struct CodeGraphEdge {
    #[key]
    #[auto]
    pub id: u64,
    #[index]
    pub project_id: u64,
    #[index]
    pub source_symbol_id: u64,
    #[index]
    pub target_symbol_id: u64,
    /// The file of the source symbol, so a file's outgoing edges go by one indexed column.
    #[index]
    pub file_id: u64,
    pub edge_type: String, // "calls", "implements", "instantiates", "imports"
}