SMALLSERIAL

Constant SMALLSERIAL 

Source
pub const SMALLSERIAL: ColumnMarker;
Expand description

Creates a SMALLSERIAL column (auto-incrementing 16-bit integer).

§Example

#[column(PRIMARY, SMALLSERIAL)]
id: i16,

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