use sql_orm::prelude::*;
#[derive(Entity, Debug, Clone)]
#[orm(table = "customers", schema = "sales")]
pub struct Customer {
#[orm(primary_key)]
#[orm(identity)]
pub id: i64,
}
#[derive(Entity, Debug, Clone)]
#[orm(table = "orders", schema = "sales")]
pub struct Order {
#[orm(primary_key)]
#[orm(identity)]
pub id: i64,
#[orm(foreign_key(entity = Customer, column = account_id))]
pub customer_id: i64,
}
fn main() {}