diff --git a/src/domain.rs b/src/domain.rs index b1f6cc1..92bf6ba 100644 --- a/src/domain.rs +++ b/src/domain.rs @@ -1,3 +1,4 @@ pub mod benutzer; pub mod gruppe; pub mod rolle; +pub mod typ; diff --git a/src/domain/typ.rs b/src/domain/typ.rs new file mode 100644 index 0000000..03fa54a --- /dev/null +++ b/src/domain/typ.rs @@ -0,0 +1,5 @@ +pub mod dataloader; +pub mod entity; +pub mod model; +pub mod repository; +pub mod service; diff --git a/src/domain/typ/dataloader.rs b/src/domain/typ/dataloader.rs new file mode 100644 index 0000000..e69de29 diff --git a/src/domain/typ/entity.rs b/src/domain/typ/entity.rs new file mode 100644 index 0000000..b77726a --- /dev/null +++ b/src/domain/typ/entity.rs @@ -0,0 +1,2 @@ +pub mod typ; +pub use typ::Typ; diff --git a/src/domain/typ/entity/typ.rs b/src/domain/typ/entity/typ.rs new file mode 100644 index 0000000..89944e5 --- /dev/null +++ b/src/domain/typ/entity/typ.rs @@ -0,0 +1,8 @@ +use crate::scalar::{Id, Time}; + +pub struct Typ { + pub id: Id, + pub typname: String, + pub erstellt_am: Option