1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Add basic client AI support

This commit is contained in:
NG (Graham)
2025-09-27 12:36:49 -04:00
parent 91fc2db868
commit e55bd6d288
29 changed files with 652 additions and 317 deletions

View File

@@ -14,6 +14,7 @@ pub struct Model {
pub is_claimed: bool,
pub public_id: String,
pub display_name: String,
pub variant: ClientType,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
@@ -45,3 +46,11 @@ impl Related<super::user::Entity> for Entity {
}
impl ActiveModelBehavior for ActiveModel {}
#[derive(Clone, Copy, Debug, PartialEq, Eq, EnumIter, DeriveActiveEnum)]
#[sea_orm(rs_type = "String", db_type = "String(StringLen::None)", rename_all = "PascalCase")]
pub enum ClientType {
Client,
ClientAI,
ServerExperimental,
}