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
execute(context:ScheduledExecutableContext):Promise<void>Performs the work of the executable.
run(entity:EntityType,context:ScheduledExecutableContext):Promise<boolean | void>Runs the ScheduledExecutable.
Base entity for all OrmPersistedScheduledExecutable records. Orm (Drizzle) counterpart of ScheduledExecutableEntity.
extends OrmMutableBaseEntity
Members
createdAt:Datecron:string | nullid:stringidentifier:stringmessage:string | nullmetadata:object | nullstatus:ScheduledExecutableStatusupdatedAt:DatehasBeenUpdated:booleanWhether this row has been updated since it was created.
updatedAtis initialized to the same instant ascreatedAton insert, then bumped on every update — so the row has never been updated exactly whenupdatedAt === createdAt. (This replaces the old "updatedAt is null" sentinel, which couldn't work on backends where the column is NOT NULL.)clone():TgetChangedFields():OrmPartialEntity<this>toJSON(options?:{ strict?: boolean }):Dictionary<unknown>static from(this:() => T,data:OrmPartialEntity<T>):TCreate a new instance of the entity with the given data.