import { t } from "@tailor-platform/sdk"; import { defineSchema } from "@tailor-platform/sdk/seed"; import { createTailorDBHook, createStandardSchema } from "@tailor-platform/sdk/test"; import { stockAdjustment } from "../../src/modules-db"; const schemaType = t.object({ ...stockAdjustment.pickFields(["id"], { optional: true }), ...stockAdjustment.omitFields(["id"]), }); export const hook = createTailorDBHook(stockAdjustment); export const schema = defineSchema( createStandardSchema(schemaType, hook, stockAdjustment), );