ormlitex 0.17.1

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

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