23 lines
424 B
Rust
23 lines
424 B
Rust
|
|
use async_graphql::{ComplexObject, SimpleObject};
|
||
|
|
|
||
|
|
use crate::scalar::{Id, Time};
|
||
|
|
|
||
|
|
#[derive(sqlx::FromRow, SimpleObject, Clone, Debug)]
|
||
|
|
#[graphql(complex)]
|
||
|
|
pub struct Typ {
|
||
|
|
/// Die UUID einer Typ
|
||
|
|
pub id: Id,
|
||
|
|
|
||
|
|
/// Der Typname
|
||
|
|
pub typname: String,
|
||
|
|
|
||
|
|
/// Wann die Typ erstellt wurde
|
||
|
|
pub erstellt_am: Time,
|
||
|
|
|
||
|
|
/// Wann die Typ geaendert wurde
|
||
|
|
pub geaendert_am: Time,
|
||
|
|
}
|
||
|
|
|
||
|
|
#[ComplexObject]
|
||
|
|
impl Typ {}
|