aboutsummaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorMelody Horn / boringcactus <melody@boringcactus.com>2021-06-18 10:12:16 -0600
committerMelody Horn / boringcactus <melody@boringcactus.com>2021-06-18 10:12:16 -0600
commit709eb44ccb8d08ad7f26cdac2932eadc7ccd48e7 (patch)
treecc4aa6854147c0dc74bbd3bea9b8b9cfc083b62f /src/db
parent3b880c0ae7963d783fb87a3389f98070e448495a (diff)
downloadtosin-709eb44ccb8d08ad7f26cdac2932eadc7ccd48e7.tar.gz
tosin-709eb44ccb8d08ad7f26cdac2932eadc7ccd48e7.zip
make model metadata available in AppConfig
Diffstat (limited to 'src/db')
-rw-r--r--src/db/models/meta.rs3
-rw-r--r--src/db/models/mod.rs5
2 files changed, 7 insertions, 1 deletions
diff --git a/src/db/models/meta.rs b/src/db/models/meta.rs
new file mode 100644
index 0000000..50729a8
--- /dev/null
+++ b/src/db/models/meta.rs
@@ -0,0 +1,3 @@
+pub struct ModelMeta {
+ pub name: &'static str,
+}
diff --git a/src/db/models/mod.rs b/src/db/models/mod.rs
index 492df92..feadb43 100644
--- a/src/db/models/mod.rs
+++ b/src/db/models/mod.rs
@@ -1,4 +1,7 @@
-pub use tosin_macros::Model;
+pub use tosin_macros::{Model, gather_models as gather};
+
+mod meta;
+pub use meta::*;
pub type Id = usize;