Exporting foreign key json type

This commit is contained in:
2025-04-22 21:20:38 +02:00
parent f0bf294d3d
commit 614dc19095

View File

@@ -8,14 +8,14 @@ import { useList, useOne } from "@refinedev/core";
import { ResourceContext } from "../../contexts/ResourceContext"; import { ResourceContext } from "../../contexts/ResourceContext";
import { CrudForm } from "../crud-form"; import { CrudForm } from "../crud-form";
type ForeignKeyReference = { export type ForeignKeyReference = {
resource: string, resource: string,
label: string, label?: string,
displayedFields: [string], displayedFields?: [string],
schema: string schema: string
} }
type ForeignKeySchema = RJSFSchema & { export type ForeignKeySchema = RJSFSchema & {
foreignKey?: { foreignKey?: {
reference: ForeignKeyReference reference: ForeignKeyReference
} }