use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
use super::area_members::Role;
/// An area a sign-up invite grants, applied as membership on registration.
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "registration_token_areas")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub token_id: Uuid,
#[sea_orm(primary_key, auto_increment = false)]
pub area_id: Uuid,
pub role: Role,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}
neiam
/fieri-forever
the flavortown lunch engine
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
628 B · text
History
7a00c02