pub mod baseline;
pub mod commands;
pub mod executor;
pub mod loader;
pub mod state;
pub mod templates;
pub mod version;
use chrono::{DateTime, Utc};
use std::path::PathBuf;
#[derive(Debug, Clone)]
pub struct Migration {
pub id: String,
pub version: String,
pub file_path: PathBuf,
}
#[derive(Debug, Clone)]
pub struct AppliedMigration {
pub id: String,
pub applied_at: DateTime<Utc>,
}
#[derive(Debug, Clone)]
pub struct ExecutionContext {
pub project_root: PathBuf,
pub migrations_dir: PathBuf,
pub migration_id: String,
pub dry_run: bool,
}
#[derive(Debug)]
pub struct ExecutionResult {
pub success: bool,
pub exit_code: i32,
pub error: Option<String>,
}