23 lines
437 B
Rust
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 {}
|