Skip to main content

Interface: SystemDataModel

server.SystemDataModel

Internal type used in Convex code generation!

Convert a SchemaDefinition into a GenericDataModel.

Hierarchy

Properties

_scheduled_functions

_scheduled_functions: Object

Type declaration

NameType
document{ completedTime: undefined | number ; name: string ; args: any[] ; scheduledTime: number ; state: { kind: "pending"; } | { kind: "inProgress"; } | { kind: "success"; } | { kind: "failed"; error: string; } | { kind: "canceled"; } ; _creationTime: number ; _id: GenericId<"_scheduled_functions"> }
document.completedTimeundefined | number
document.namestring
document.argsany[]
document.scheduledTimenumber
document.state{ kind: "pending"; } | { kind: "inProgress"; } | { kind: "success"; } | { kind: "failed"; error: string; } | { kind: "canceled"; }
document._creationTimenumber
document._idGenericId<"_scheduled_functions">
fieldPaths"_id" | ExtractFieldPaths<ObjectValidator<{ name: Validator<string, false, never> ; args: Validator<any[], false, never> ; scheduledTime: Validator<number, false, never> ; completedTime: Validator<undefined | number, true, never> ; state: Validator<{ kind: "pending" } | { kind: "inProgress" } | { kind: "success" } | { kind: "failed" ; error: string } | { kind: "canceled" }, false, "kind" | "error"> }>>
indexes{ by_creation_time: ["_creationTime"] }
indexes.by_creation_time["_creationTime"]
searchIndexes
vectorIndexes

Inherited from

DataModelFromSchemaDefinition._scheduled_functions


_storage

_storage: Object

Type declaration

NameType
document{ contentType: undefined | string ; sha256: string ; size: number ; _creationTime: number ; _id: GenericId<"_storage"> }
document.contentTypeundefined | string
document.sha256string
document.sizenumber
document._creationTimenumber
document._idGenericId<"_storage">
fieldPaths"_id" | ExtractFieldPaths<ObjectValidator<{ sha256: Validator<string, false, never> ; size: Validator<number, false, never> ; contentType: Validator<undefined | string, true, never> }>>
indexes{ by_creation_time: ["_creationTime"] }
indexes.by_creation_time["_creationTime"]
searchIndexes
vectorIndexes

Inherited from

DataModelFromSchemaDefinition._storage