import { umModules, imModules, pmModules, primitivesModules } 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;
