use thiserror::Error;
#[derive(Debug, Error)]
pub enum DatabaseError {
#[error("connection error: {0}")]
ConnectionError(String),
#[error("query error: {0}")]
QueryError(String),
#[error("migration error: {0}")]
MigrationError(String),
#[error("not found: {0}")]
NotFound(String),
#[error("duplicate entry: {0}")]
DuplicateEntry(String),
}