aboutsummaryrefslogtreecommitdiff
path: root/src/db/models
diff options
context:
space:
mode:
Diffstat (limited to 'src/db/models')
-rw-r--r--src/db/models/mod.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/db/models/mod.rs b/src/db/models/mod.rs
index 5e59949..492df92 100644
--- a/src/db/models/mod.rs
+++ b/src/db/models/mod.rs
@@ -1,3 +1,18 @@
pub use tosin_macros::Model;
pub type Id = usize;
+
+pub enum Field {
+ CharField {
+ name: &'static str,
+ max_length: Option<usize>,
+ },
+
+ DateTimeField {
+ name: &'static str,
+ },
+
+ IntField {
+ name: &'static str,
+ },
+}