Skip to content

monolayer-pg / schema / PgTimestamp

Class: PgTimestamp

Extends

  • PgColumn<Date, Date | string>

Methods

default()

default(value): PgTimestamp & WithDefaultColumn

Parameters

ParameterType
valuestring | Expression<unknown> | Date

Returns

PgTimestamp & WithDefaultColumn

Inherited from

PgColumn.default


notNull()

notNull(): PgTimestamp & NonNullableColumn

Adds a not null constraint to the column.

The column is not allowed to contain null values.

Returns

PgTimestamp & NonNullableColumn

See

PostgreSQL Docs: Not-Null Constraints

Inherited from

PgColumn.notNull