ormlite 0.24.3

An ORM for people who love SQL
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::organization::Organization;
use ormlite::model::*;
use ormlite::types::Uuid;

#[derive(Debug, Model)]
pub struct User {
    pub id: Uuid,
    pub name: String,
    pub age: u8,
    #[ormlite(column = "organization_id")]
    pub organization: Join<Organization>,
}