sqlxgentools/lib/sqlxgentools_cli/src/generators/mod.rs
Matthieu Bessat 5e0ffe67c3 feat: one-to-many relation helper
Allow one to specify that a field of a model is a foreign key.
It will generate a bunch of helper methods to query related entities
from one entity.
2026-01-11 16:28:07 +01:00

20 lines
325 B
Rust

use fully_pub::fully_pub;
use serde::Serialize;
pub mod migrations;
pub mod repositories;
#[derive(Serialize, Debug)]
#[fully_pub]
enum SourceNode {
File(String),
Directory(Vec<SourceNodeContainer>)
}
#[derive(Serialize, Debug)]
#[fully_pub]
struct SourceNodeContainer {
name: String,
inner: SourceNode
}