Skip to main content

Model

Derive Macro Model 

Source
#[derive(Model)]
{
    // Attributes available to this derive:
    #[table]
    #[column]
    #[primary]
    #[unique]
    #[index]
    #[foreign]
    #[data_type]
    #[default]
    #[check]
    #[hypertable]
    #[compress]
    #[mysql]
    #[postgresql]
    #[mssql]
    #[clickhouse]
    #[has_many]
    #[belongs_to]
    #[has_one]
    #[through]
    #[embed]
    #[field]
    #[filter]
    #[version]
    #[ormer_ignore]
}