typ refactor
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
use async_graphql::{ComplexObject, SimpleObject};
|
||||
|
||||
use crate::scalar::{Id, Time};
|
||||
use crate::scalar::{Time, Ulid};
|
||||
|
||||
#[derive(sqlx::FromRow, SimpleObject, Clone, Debug)]
|
||||
#[graphql(complex)]
|
||||
pub struct Typ {
|
||||
/// Die UUID einer Typ
|
||||
pub id: Id,
|
||||
/// Die Ulid eines Gerätetypen
|
||||
pub id: Ulid,
|
||||
|
||||
/// Der Typname
|
||||
pub typname: String,
|
||||
|
||||
/// Wann die Typ erstellt wurde
|
||||
/// Wann der Typ erstellt wurde
|
||||
pub erstellt_am: Time,
|
||||
|
||||
/// Wann die Typ geaendert wurde
|
||||
/// Wann der Typ geaendert wurde
|
||||
pub geaendert_am: Time,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user