@companyio/catalog
v0.1.6
Published
Universal product and service catalog for multi-tenant CompanyIO products
Readme
@companyio/catalog
Universal product and service master data for CompanyIO.
Catalog owns what a business sells or buys: items, variants, SKUs, units, categories, attributes, and price lists. It does not own stock, sales documents, purchase orders, journals, or industry operations such as fuel tanks and pumps.
Sales, Purchasing, and Inventory keep using productRef. Store a catalog variant id in that field.
pnpm exec catalog init --schema apps/api/prisma/schema.prisma
pnpm exec catalog status
pnpm --filter @companyio/api exec prisma migrate deploy --config prisma7.config.tscatalog init copies prisma/migrations/0001_catalog_baseline when the host does not already have it (20260926000600_catalog_baseline). It does not connect to PostgreSQL and it does not run migrate. Tenant columns are main_business_id and branch_id, with no Prisma relation back to Business or Branch.
