Skip to content

monolayer / schema / PgUuid

Class: PgUuid

Extends

  • PgColumn<string, string>

Methods

default()

default(value): PgUuid & WithDefaultColumn

Parameters

ParameterType
valuestring | Expression<unknown>

Returns

PgUuid & WithDefaultColumn

Inherited from

PgColumn.default


notNull()

notNull(): PgUuid & NonNullableColumn

Adds a not null constraint to the column.

The column is not allowed to contain null values.

Returns

PgUuid & NonNullableColumn

See

PostgreSQL Docs: Not-Null Constraints

Inherited from

PgColumn.notNull