server.rs
1use crate::db::ServerId;
2use sea_orm::entity::prelude::*;
3
4#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
5#[sea_orm(table_name = "servers")]
6pub struct Model {
7 #[sea_orm(primary_key)]
8 pub id: ServerId,
9 pub environment: String,
10}
11
12#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
13pub enum Relation {}
14
15impl ActiveModelBehavior for ActiveModel {}