use super::{CategoryKind, RuleActionKind};

#[derive(Debug, Clone, PartialEq)]
pub struct Category {
    pub id: i64,
    pub name: String,
    pub parent_id: Option<i64>,
    pub kind: CategoryKind,
    pub match_text: String,
    pub exclusive: bool,
}

#[derive(Debug, Clone, PartialEq)]
pub struct CategoryRule {
    pub id: i64,
    pub category_id: i64,
    pub condition_expr: String,
    pub action_kind: RuleActionKind,
    pub action_value: String,
    pub enabled: bool,
}
