import { t } from "@tailor-platform/sdk";
import { defineSchema } from "@tailor-platform/sdk/seed";
import { createTailorDBHook, createStandardSchema } from "@tailor-platform/sdk/test";
import { company } from "../../src/modules-db";

const schemaType = t.object({
  ...company.pickFields(["id"], { optional: true }),
  ...company.omitFields(["id"]),
});

const hook = createTailorDBHook(company);

export const schema = defineSchema(
  createStandardSchema(schemaType, hook),
);
