#![allow(deprecated)]
use dbnexus::sea_orm;
use dbnexus::sea_orm::entity::prelude::*;
use uuid::Uuid;
#[deprecated(
since = "0.2.0",
note = "superseded by garrison RBAC; kept only for historical data migration/queries"
)]
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
#[sea_orm(table_name = "scopes")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
#[sea_orm(unique)]
pub api_key_id: Uuid,
pub read: bool,
pub write: bool,
pub admin: bool,
pub search_limit: i32,
pub scrape_limit: i32,
pub created_at: ChronoDateTimeWithTimeZone,
pub updated_at: ChronoDateTimeWithTimeZone,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}