feat: add repository code generator

This commit is contained in:
Matthieu Bessat 2024-12-28 19:56:04 +01:00
parent fa48c7a2b4
commit c15e69a6c4
7 changed files with 432 additions and 319 deletions

View file

@ -0,0 +1,20 @@
// 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
}