backbone-events 0.5.0

Events core + the sale/booth/crm/sms/desk overlay — registrations under one authoritative seat counter, the sale seam (order-minted registrations, forward-only paid heal, SO-cancel mirror cascade), booth bookings with the DB exclusivity wall, closed-vocabulary lead rules through a host sink port, the dual-channel (mail/sms) self-arming scheduler, and the exact-match desk verb (Odoo event port, core + overlay)
//! Repository for RegistrationQuestion entities
//!
//! Generated by metaphor-schema. Do not edit manually.
//!
//! Thin newtype over `backbone_orm::GenericCrudRepository<RegistrationQuestion, backbone_orm::SoftDelete>`.
//! All standard CRUD methods are available via `Deref`.

use anyhow::Result;
use sqlx::PgPool;

use crate::domain::entity::RegistrationQuestion;

/// Table name for RegistrationQuestion entities
pub const TABLE_NAME: &str = "event.registration_questions";

/// Repository for RegistrationQuestion entities.
///
/// All standard CRUD, soft-delete, pagination, and bulk methods are
/// provided automatically via `Deref` to `backbone_orm::GenericCrudRepository`.
pub struct RegistrationQuestionRepository(
    backbone_orm::GenericCrudRepository<RegistrationQuestion, backbone_orm::SoftDelete>,
);

impl std::ops::Deref for RegistrationQuestionRepository {
    type Target = backbone_orm::GenericCrudRepository<RegistrationQuestion, backbone_orm::SoftDelete>;
    fn deref(&self) -> &Self::Target { &self.0 }
}

impl RegistrationQuestionRepository {
    /// Create a new repository instance.
    pub fn new(pool: PgPool) -> Self {
        Self(backbone_orm::GenericCrudRepository::new(pool, TABLE_NAME))
    }
}

backbone_core::impl_crud_repository!(RegistrationQuestionRepository, RegistrationQuestion, soft_delete);