2024-12-06 14:06:27 +01:00
|
|
|
use async_graphql::InputObject;
|
|
|
|
|
|
2026-06-06 11:59:20 +02:00
|
|
|
use crate::scalar::Ulid;
|
|
|
|
|
|
2024-12-06 14:06:27 +01:00
|
|
|
#[derive(InputObject)]
|
|
|
|
|
pub struct BenutzerCreateInput {
|
|
|
|
|
// #[graphql(validator(min_length = 6, max_length = 8))]
|
|
|
|
|
pub kennung: String,
|
|
|
|
|
pub vorname: String,
|
|
|
|
|
pub nachname: String,
|
2026-06-06 11:59:20 +02:00
|
|
|
pub rollen: Option<Vec<Ulid>>,
|
|
|
|
|
pub gruppen: Option<Vec<Ulid>>,
|
2024-12-06 14:06:27 +01:00
|
|
|
}
|