SERIAL

Constant SERIAL 

Source
pub const SERIAL: ColumnMarker;
Expand description

Creates a SERIAL column (auto-incrementing 32-bit integer).

§Example

#[column(PRIMARY, SERIAL)]
id: i32,

See: https://www.postgresql.org/docs/current/datatype-numeric.html#DATATYPE-SERIAL