Classes

@system-inc/base-foundation · 515c140 · 2 symbols

Base class for persisted scheduled executables backed by the Orm (Drizzle) stack. Orm counterpart of PersistedScheduledExecutable.

implements ScheduledExecutableInterface

Members

View source ↗

Base entity for all OrmPersistedScheduledExecutable records. Orm (Drizzle) counterpart of ScheduledExecutableEntity.

extends OrmMutableBaseEntity

Members

  • createdAt: Date

  • cron: string | null

  • id: string

  • identifier: string

  • message: string | null

  • metadata: object | null

  • status: ScheduledExecutableStatus

  • updatedAt: Date

  • hasBeenUpdated: boolean

    Whether this row has been updated since it was created.

    updatedAt is initialized to the same instant as createdAt on insert, then bumped on every update — so the row has never been updated exactly when updatedAt === createdAt. (This replaces the old "updatedAt is null" sentinel, which couldn't work on backends where the column is NOT NULL.)

  • clone(): T

  • getChangedFields(): OrmPartialEntity<this>

  • toJSON(options?: { strict?: boolean }): Dictionary<unknown>

  • static from(this: () => T, data: OrmPartialEntity<T>): T

    Create a new instance of the entity with the given data.

View source ↗