Files
axum-async-graphql/src/domain/typ/model/typ.rs
2026-06-03 22:08:44 +02:00

23 lines
437 B
Rust

use async_graphql::{ComplexObject, SimpleObject};
use crate::scalar::{Time, Ulid};
#[derive(sqlx::FromRow, SimpleObject, Clone, Debug)]
#[graphql(complex)]
pub struct Typ {
/// Die Ulid eines Gerätetypen
pub id: Ulid,
/// Der Typname
pub typname: String,
/// Wann der Typ erstellt wurde
pub erstellt_am: Time,
/// Wann der Typ geaendert wurde
pub geaendert_am: Time,
}
#[ComplexObject]
impl Typ {}