import { defineConfig, definePlugins } from "@tailor-platform/sdk";
import { enumConstantsPlugin } from "@tailor-platform/sdk/plugin/enum-constants";
import { kyselyTypePlugin } from "@tailor-platform/sdk/plugin/kysely-type";

export default defineConfig({
  name: "product-management",
  db: { "main-db": { files: [`./db/*.ts`] } },
});

export const plugins = definePlugins(
  kyselyTypePlugin({ distPath: `./generated/kysely-tailordb.ts` }),
  enumConstantsPlugin({ distPath: "./generated/enums.ts" }),
);
