aboutsummaryrefslogtreecommitdiff
path: root/src/db/models
diff options
context:
space:
mode:
authorMelody Horn / boringcactus <melody@boringcactus.com>2021-06-16 14:22:50 -0600
committerMelody Horn / boringcactus <melody@boringcactus.com>2021-06-16 14:22:50 -0600
commit58d2f63f4577bc701b6bd655064cefebb65118b4 (patch)
tree0427ac03e6d0d0ed7879aecaa45cd3937939aa4e /src/db/models
parent685b47247aad71468f190c42929ca6f0dce843fa (diff)
downloadtosin-58d2f63f4577bc701b6bd655064cefebb65118b4.tar.gz
tosin-58d2f63f4577bc701b6bd655064cefebb65118b4.zip
actually run migrations
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,
+ },
+}