Simple NewType ID's specifically tailored to integrate with Async GraphQL and Diesel. Combines well with [diesel::associations::BelongsTo
]
rust
derive_id! {
#[table_name = "users"]
#[graphql(name = "UserID")]
pub struct UserId(#[column_name = "id"] i32);
}