#[derive(Model)]
{
// Attributes available to this derive:
#[table]
#[column]
}
Expand description
Automatically implement Model for your struct.
Attributes
table- for structs:table_name: String, optional
column- for struct fields:dtype: String, required,unique: bool, optional, default:false