import { auditCompanyStub } from "@tailor-platform/erp-kit/module";
import { umModules, imModules, pmModules, primitivesModules, auditModules } from "./modules";

// Destructured for DB scanner (tailor.config.ts db.files).
// This file must NOT be imported by resolvers — property access prevents tree-shaking.

// user-management
export const { user, role, userRole } = umModules.db;

// primitives
export const { uomCategory, unit, currency, exchangeRate } = primitivesModules.db;

// item-management
export const { item, taxonomyNode, itemTaxonomyAssignment } = imModules.db;

// product-management
export const {
  product,
  productAttribute,
  productAttributeValue,
  productAttributeAssignment,
  productCategory,
  productCategoryAssignment,
  productVariant,
} = pmModules.db;

// audit
export const { auditableEntity, auditPolicy, policyFieldRule, auditEntry, changeDetail } =
  auditModules.db;
export { auditCompanyStub as company };
