跳到主要内容

ITreeEntity

Defined in: rxdb-plugin-tree/src/entity/tree-entity.interface.ts:8

实体基础接口 定义所有实体共有的基本属性,为了能更好地与远程数据同步 所有实体类都应该实现这个接口

Extends​

Extended by​

Properties​

createdAt​

createdAt: Date;

Defined in: rxdb/dist/entity/entity.interface.d.ts:131

创建时间

Inherited from​

IEntity.createdAt


createdBy?​

optional createdBy?: string | null;

Defined in: rxdb/dist/entity/entity.interface.d.ts:139

创建人

Inherited from​

IEntity.createdBy


hasChildren?​

optional hasChildren?: boolean | null;

Defined in: rxdb-plugin-tree/src/entity/tree-entity.interface.ts:19

是否有子节点。由 TreeAdjacencyListEntityBase 的计算属性自动填充,应用层只读。 未启用 features.tree.hasChildren 的实体此字段为 null。


id​

id: RxDBEntityId;

Defined in: rxdb/dist/entity/entity.interface.d.ts:127

id

Inherited from​

IEntity.id


parentId?​

optional parentId?: RxDBEntityId | null;

Defined in: rxdb-plugin-tree/src/entity/tree-entity.interface.ts:14

父节点主键。与 IEntity.id 同属 RxDBEntityId 域 —— 一棵树的 parentId 指向的正是另一个节点的 id,两者必须允许同样的类型 (string | number | bigint),否则数值主键的树在类型层根本无法表达。


updatedAt​

updatedAt: Date;

Defined in: rxdb/dist/entity/entity.interface.d.ts:135

更新时间

Inherited from​

IEntity.updatedAt


updatedBy?​

optional updatedBy?: string | null;

Defined in: rxdb/dist/entity/entity.interface.d.ts:143

更新人

Inherited from​

IEntity.updatedBy