2022-08-03 03:31:47 +03:00
|
|
|
//! SeaORM Entity. Generated by sea-orm-codegen 0.9.1
|
|
|
|
|
|
|
|
use sea_orm::entity::prelude::*;
|
2022-08-05 22:47:50 +03:00
|
|
|
use serde::{Deserialize, Serialize};
|
2022-08-03 03:31:47 +03:00
|
|
|
|
2022-08-05 22:47:50 +03:00
|
|
|
#[derive(Debug, Clone, PartialEq, EnumIter, DeriveActiveEnum, Serialize, Deserialize)]
|
2022-08-03 03:31:47 +03:00
|
|
|
#[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,
|
|
|
|
}
|