Reuse
This commit is contained in:
parent
3405484977
commit
e8f33e5fd8
|
@ -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 =
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue