web3-proxy/entities/src/sea_orm_active_enums.rs
2022-08-15 17:50:14 +00:00

16 lines
468 B
Rust

//! SeaORM Entity. Generated by sea-orm-codegen 0.9.1
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, PartialEq, Eq, EnumIter, DeriveActiveEnum, Serialize, Deserialize)]
#[sea_orm(rs_type = "String", db_type = "Enum", enum_name = "role")]
pub enum Role {
#[sea_orm(string_value = "owner")]
Owner,
#[sea_orm(string_value = "admin")]
Admin,
#[sea_orm(string_value = "collaborator")]
Collaborator,
}