// Default organization seed for the erp-kit modules. // // The workforce catalogs (EmploymentType / WorkRegime / AppointmentType) are company-scoped, and // their shipped JP defaults are keyed to one well-known "default company". That Company row has to // exist or those catalog rows would reference a nonexistent parent on load, so it ships here as the // canonical source of `DEFAULT_COMPANY_ID` (workforce/leave seeds import this id rather than // recomputing it). A host app that seeds its own Company should override these rows or regenerate // the catalogs against its own company id. import { uuidv5 } from "../../../shared/uuidv5"; const NS = "erp-kit:organization"; export const DEFAULT_COMPANY_ID = await uuidv5(NS, "company:DEFAULT"); const companies = { [DEFAULT_COMPANY_ID]: { legalName: "Default Company", status: "ACTIVE", }, } as const; export { companies as Company };