Skip to main content

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