pub fn new(name: String, database_name: Option<String>) -> Model {
        Model {
            name,
            fields: vec![],
            indices: vec![],
            id_fields: vec![],
            documentation: None,
            database_name,
            is_embedded: false,
            is_generated: false,
            is_commented_out: false,
            is_ignored: false,
        }
    }
/// Creates a new model with the given name.
Creates a new model with the given name.
Creates a new model with the given name .
pub fn new(name: String, database_name: Option<String>) -> Model {
        Model {
            name,
            fields: vec![],
            indices: vec![],
            id_fields: vec![],
            documentation: None,
            database_name,
            is_embedded: false,
            is_generated: false,
            is_commented_out: false,
            is_ignored: false,
        }
    }
pub fn new ( name : String , database_name : Option < String > ) -> Model { Model { name , fields : vec ! [ ] , indices : vec ! [ ] , id_fields : vec ! [ ] , documentation : None , database_name , is_embedded : false , is_generated : false , is_commented_out : false , is_ignored : false , } }
Creates a new model with the given name.
Creates a new model with the given name .
name
String
database_name
Option<String>
name
String
database_name
Option<String>