use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use sqlx::{FromRow, types::Decimal};
use uuid::Uuid;

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, FromRow)]
pub struct UserBillingModel {
    pub user: Uuid,
    pub balance: Decimal,
    pub is_pro: bool,
    pub total_supply: Decimal,
    pub total_supply_usable: Decimal,
    pub cycle_start: Option<DateTime<Utc>>,
    pub cycle_end: Option<DateTime<Utc>>,
    pub updated_at: DateTime<Utc>,
}
