model

Attribute Macro model 

Source
#[model]
Expand description

Marks a struct as a FORGE model, generating schema metadata and SQL.

§Example

#[forge::model]
#[table(name = "users")]
pub struct User {
    #[id]
    pub id: Uuid,

    #[indexed]
    #[unique]
    pub email: String,

    pub name: String,
}