aboutsummaryrefslogtreecommitdiff
path: root/src/db/models/mod.rs
blob: 4133cf264d0ef5df21e939bdccb3ccf3d75ec527 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pub use tosin_macros::{gather_models as gather, Model};

mod meta;
pub use meta::*;

pub type Id = usize;

#[derive(Clone, Debug)]
pub enum Field {
    CharField {
        name: &'static str,
        max_length: Option<usize>,
    },

    DateTimeField {
        name: &'static str,
    },

    IntField {
        name: &'static str,
    },
}