sqlxgentools/lib/sqlxgentools_cli/src/models.rs

22 lines
338 B
Rust
Raw Normal View History

2024-12-28 19:56:04 +01:00
// BASE MODELS
use fully_pub::fully_pub;
#[derive(Debug)]
#[fully_pub]
struct Model {
2025-01-27 09:08:04 +01:00
module_path: Vec<String>,
2024-12-28 19:56:04 +01:00
name: String,
table_name: String,
fields: Vec<Field>
}
#[derive(Debug)]
#[fully_pub]
struct Field {
name: String,
rust_type: String,
is_nullable: bool,
is_unique: bool,
is_primary: bool
}