This commit is contained in:
Adria Navarro 2024-08-21 17:43:31 +02:00
parent 3405484977
commit e8f33e5fd8
2 changed files with 6 additions and 14 deletions

View File

@ -25,16 +25,13 @@ interface BaseRelationshipFieldMetadata
tableId: string
tableRev?: string
subtype?: AutoFieldSubType.CREATED_BY | AutoFieldSubType.UPDATED_BY
schema?: RelationFieldSchema
schema?: Record<string, RelationSchemaField>
}
export type RelationFieldSchema = Record<
string,
{
visible?: boolean
readonly?: boolean
}
>
export type RelationSchemaField = {
visible?: boolean
readonly?: boolean
}
// External tables use junction tables, internal tables don't require them
type ManyToManyJunctionTableMetadata =

View File

@ -1,5 +1,5 @@
import { SearchFilter, SortOrder, SortType } from "../../api"
import { UIFieldMetadata } from "./table"
import { RelationSchemaField, UIFieldMetadata } from "./table"
import { Document } from "../document"
import { DBView } from "../../sdk"
@ -33,11 +33,6 @@ export interface View {
groupBy?: string
}
export type RelationSchemaField = {
visible?: boolean
readonly?: boolean
}
export type ViewFieldMetadata = UIFieldMetadata & {
readonly?: boolean
schema?: Record<string, RelationSchemaField>