aboutsummaryrefslogtreecommitdiff
path: root/src/db/models/mod.rs
blob: 492df923ccdcd38cc3690b2ef6104909262636cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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,
    },
}