sqlxgentools/lib/generator_cli/src/models.rs

21 lines
308 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 {
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
}