//! Repository layer (RFC-002 §8). Each repository owns the SQL for one
//! table family and exposes application-level types.

pub mod chunks;
pub mod models;
pub mod embeddings;
pub mod cleanup;
pub mod events;
pub mod files;
pub mod jobs;
pub mod settings;
pub mod sources;
pub mod storage;

pub use chunks::{ChunkRecord, ChunkRepository, ChunkSpec};
pub use models::{ModelRecord, ModelRepository, ModelRole, ModelStatus, NewModel, verify_model_sha256};
pub use embeddings::{EmbeddingRecord, EmbeddingRepository, NewEmbedding};
pub use cleanup::CleanupExecutor;
pub use events::{EventRepository, Severity};
pub use files::{FileRepository, FileRecord, NewFile, ObservedMetadata};
pub use jobs::{IndexJobRepository, JobRecord};
pub use orbok_core::{ExtractionId, JobStatus, JobType};
pub use settings::SettingsRepository;
pub use sources::{NewSource, SourceRecord, SourceRepository};
pub use storage::StorageAccountingRepository;
