|
|
|
@ -5,13 +5,13 @@ export const isLTAR = (uidt: string, colOptions: unknown): colOptions is LinkToA
|
|
|
|
|
uidt === UITypes.LinkToAnotherRecord |
|
|
|
|
|
|
|
|
|
export const isHm = (column: ColumnType) => |
|
|
|
|
isLTAR(column.uidt, column.colOptions) && column.colOptions.type === RelationTypes.HAS_MANY |
|
|
|
|
isLTAR(column.uidt!, column.colOptions) && column.colOptions.type === RelationTypes.HAS_MANY |
|
|
|
|
|
|
|
|
|
export const isMm = (column: ColumnType) => |
|
|
|
|
isLTAR(column.uidt, column.colOptions) && column.colOptions.type === RelationTypes.MANY_TO_MANY |
|
|
|
|
isLTAR(column.uidt!, column.colOptions) && column.colOptions.type === RelationTypes.MANY_TO_MANY |
|
|
|
|
|
|
|
|
|
export const isBt = (column: ColumnType) => |
|
|
|
|
isLTAR(column.uidt, column.colOptions) && column.colOptions.type === RelationTypes.BELONGS_TO |
|
|
|
|
isLTAR(column.uidt!, column.colOptions) && column.colOptions.type === RelationTypes.BELONGS_TO |
|
|
|
|
|
|
|
|
|
export const isLookup = (column: ColumnType) => column.uidt === UITypes.Lookup |
|
|
|
|
export const isRollup = (column: ColumnType) => column.uidt === UITypes.Rollup |
|
|
|
|