Interface CoreModel<ModelType>

class: CoreModel

  • general model out of base Model to support the common usage

Type Parameters

  • ModelType extends string = string

Hierarchy

Properties

_id?: string

default partition-key name.

createdAt?: number

created timestamp

deletedAt?: number

deleted timestamp

error?: string

error message will be set if error occurred

gid?: string

group-id

id?: string

unique id value.

lock?: number

lock count to secure sync

meta?: any

meta the json stringified string.

next?: number

next sequence number (use nextSeq())

ns?: string

namespace

sid?: string

site-id

stereo?: string

stereo: stereo-type in common type.

type?: ModelType

type of model

uid?: string

user-id

updatedAt?: number

updated timestamp

Generated using TypeDoc