import { baseAdminCrudInputSchema, definitionSchemaWithSlots, modelEntityType, modelTransformerEntityType, } from '@baseplate-dev/project-builder-lib';
import { z } from 'zod';
export const createAdminCrudFileInputSchema = definitionSchemaWithSlots({ modelSlot: modelEntityType }, (ctx, { modelSlot }) => baseAdminCrudInputSchema.extend({
    type: z.literal('file'),
    modelRelationRef: ctx.withRef({
        type: modelTransformerEntityType,
        onDelete: 'RESTRICT',
        parentSlot: modelSlot,
    }),
}));
//# sourceMappingURL=types.js.map