This commit is contained in:
Matthieu Bessat 2025-01-27 09:08:04 +01:00
parent c15e69a6c4
commit 09791951d9
13 changed files with 250 additions and 128 deletions

View file

@ -0,0 +1,21 @@
// BASE MODELS
use fully_pub::fully_pub;
#[derive(Debug)]
#[fully_pub]
struct Model {
module_path: Vec<String>,
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
}