Relationship

构造函数

构造函数

Relationship

构造函数

new Relationship(properties?)

参数

返回:Relationship Relationship对象

属性

cardinality

基数关系

cardinality: "one-to-one" | "one-to-many" | "many-to-many"

类型: "one-to-one" | "one-to-many" | "many-to-many"

catalogId

目录标识符

catalogId: string

类型: string

composite

复合关系标志

composite: boolean

类型: boolean

id

关系ID

id: number

类型: number

keyField

关键字段

keyField: string

类型: string

keyFieldInRelationshipTable

关系表中的关键字段

keyFieldInRelationshipTable: string

类型: string

name

关系名称

name: string

类型: string

relatedTableId

关联表ID

relatedTableId: number

类型: number

relationshipTableId

关系表ID

relationshipTableId: number

类型: number

role

表角色

role: "origin" | "destination"

类型: "origin" | "destination"

方法

clone

克隆对象

clone(): this

返回:this

toJSON

转换为JSON

toJSON(): any

返回:any

BIMFlux AI