Skip to content

monolayer / schema / PgSmallint

Class: PgSmallint

Extends

  • IdentifiableColumn<number, number | string>

Methods

default()

default(value): PgSmallint & WithDefaultColumn

Parameters

ParameterType
valuestring | number | Expression<unknown>

Returns

PgSmallint & WithDefaultColumn

Inherited from

IdentifiableColumn.default


generatedAlwaysAsIdentity()

generatedAlwaysAsIdentity(): PgSmallint & GeneratedAlwaysColumn

Returns

PgSmallint & GeneratedAlwaysColumn

Inherited from

IdentifiableColumn.generatedAlwaysAsIdentity


generatedByDefaultAsIdentity()

generatedByDefaultAsIdentity(): PgSmallint & GeneratedColumn

Returns

PgSmallint & GeneratedColumn

Inherited from

IdentifiableColumn.generatedByDefaultAsIdentity


notNull()

notNull(): PgSmallint & NonNullableColumn

Adds a not null constraint to the column.

The column is not allowed to contain null values.

Returns

PgSmallint & NonNullableColumn

See

PostgreSQL Docs: Not-Null Constraints

Inherited from

IdentifiableColumn.notNull