Files
axum-async-graphql/src/domain/typ/model/typ.rs

23 lines
437 B
Rust
Raw Normal View History

2026-05-31 20:24:10 +02:00
use async_graphql::{ComplexObject, SimpleObject};
2026-06-03 22:08:44 +02:00
use crate::scalar::{Time, Ulid};
2026-05-31 20:24:10 +02:00
#[derive(sqlx::FromRow, SimpleObject, Clone, Debug)]
#[graphql(complex)]
pub struct Typ {
2026-06-03 22:08:44 +02:00
/// Die Ulid eines Gerätetypen
pub id: Ulid,
2026-05-31 20:24:10 +02:00
/// Der Typname
pub typname: String,
2026-06-03 22:08:44 +02:00
/// Wann der Typ erstellt wurde
2026-05-31 20:24:10 +02:00
pub erstellt_am: Time,
2026-06-03 22:08:44 +02:00
/// Wann der Typ geaendert wurde
2026-05-31 20:24:10 +02:00
pub geaendert_am: Time,
}
#[ComplexObject]
impl Typ {}