add typ
This commit is contained in:
22
src/domain/typ/model/typ.rs
Normal file
22
src/domain/typ/model/typ.rs
Normal file
@@ -0,0 +1,22 @@
|
||||
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 {}
|
||||
Reference in New Issue
Block a user