use anchor_lang::prelude::*;
#[account]
#[derive(Default)]
pub struct User {
pub trigger_count: u64,
pub task_count: u64,
pub active_triggers: Vec<Pubkey>,
}
impl User {
pub const MIN_SIZE: usize = 8 + 8 + 8 + 4 + ( 32 * 1 );
pub fn new() -> Self {
Self {
trigger_count: 0,
task_count: 0,
active_triggers: Vec::new(),
}
}
}