Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
feat: custom fields for equipment type form
Brad Barbin85a01b3a1940
diff --git a/apps/carbon/app/components/Layout/Navigation/IconSidebar.tsx b/apps/carbon/app/components/Layout/Navigation/IconSidebar.tsxindex bf726e6115..202318ec0e 100644--- a/apps/carbon/app/components/Layout/Navigation/IconSidebar.tsx+++ b/apps/carbon/app/components/Layout/Navigation/IconSidebar.tsx@@ -9,9 +9,6 @@ import {import { Link, useMatches } from "@remix-run/react";import { BsFillHexagonFill } from "react-icons/bs";import { z } from "zod";-import { useRouteData } from "~/hooks";-import type { Company } from "~/modules/settings";-import { path } from "~/utils/path";import { useModules } from "./useModules";export const ModuleHandle = z.object({@@ -19,12 +16,6 @@ export const ModuleHandle = z.object({});const IconSidebar = () => {- const routeData = useRouteData<{ company: Company }>(- path.to.authenticatedRoot- );-- const company = routeData?.company;-const links = useModules();const matchedModules = useMatches().reduce((acc, match) => {if (match.handle) {@@ -42,24 +33,11 @@ const IconSidebar = () => {<div><TooltipProvider><VStack spacing={1} className="self-start sticky">- {company?.logo ? (- <Link- to="/"- className="flex w-[44px] h-[48px] p-2 items-center justify-center hover:bg-accent"- >- <img- src={company.logo}- alt={`${company.name} Logo`}- className="w-full"- />+ <Button isIcon asChild variant="ghost" size="lg">+ <Link to="/">+ <BsFillHexagonFill /></Link>- ) : (- <Button isIcon asChild variant="ghost" size="lg">- <Link to="/">- <BsFillHexagonFill />- </Link>- </Button>- )}+ </Button>{links.map((link) => {const module = link.to.split("/")[2]; // link.to is "/x/parts" -- this returns "parts"diff --git a/apps/carbon/app/modules/resources/resources.service.ts b/apps/carbon/app/modules/resources/resources.service.tsindex b0f4c62616..2a8e4773d3 100644--- a/apps/carbon/app/modules/resources/resources.service.ts+++ b/apps/carbon/app/modules/resources/resources.service.ts@@ -373,11 +373,7 @@ export async function getEmployeeJob(client: SupabaseClient<Database>,employeeId: string) {- return client- .from("employeeJob")- .select("title, locationId, shiftId, managerId, startDate")- .eq("id", employeeId)- .single();+ return client.from("employeeJob").select("*").eq("id", employeeId).single();}export async function getEmployeeSummary(@@ -1072,7 +1068,10 @@ export async function upsertEmployeeAbility(export async function upsertEmployeeJob(client: SupabaseClient<Database>,employeeId: string,- employeeJob: z.infer<typeof employeeJobValidator>+ employeeJob: z.infer<typeof employeeJobValidator> & {+ updatedBy: string;+ customFields?: Json;+ }) {return client.from("employeeJob")@@ -1103,10 +1102,12 @@ export async function upsertEquipmentType(equipmentType:| (Omit<z.infer<typeof equipmentTypeValidator>, "id"> & {createdBy: string;+ customFields?: Json;})| (Omit<z.infer<typeof equipmentTypeValidator>, "id"> & {id: string;updatedBy: string;+ customFields?: Json;})) {if ("id" in equipmentType) {diff --git a/apps/carbon/app/modules/resources/ui/Partners/PartnerForm.tsx b/apps/carbon/app/modules/resources/ui/Partners/PartnerForm.tsxindex 19bb465e39..cb32a3c548 100644--- a/apps/carbon/app/modules/resources/ui/Partners/PartnerForm.tsx+++ b/apps/carbon/app/modules/resources/ui/Partners/PartnerForm.tsx@@ -7,26 +7,22 @@ import {DrawerFooter,DrawerHeader,DrawerTitle,- FormControl,- FormLabel,HStack,VStack,- useMount,} from "@carbon/react";-import { ValidatedForm, useControlField } from "@carbon/remix-validated-form";-import { useFetcher, useNavigate } from "@remix-run/react";-import { useEffect, useMemo } from "react";+import { ValidatedForm } from "@carbon/remix-validated-form";+import { useNavigate } from "@remix-run/react";+import { useState } from "react";import type { z } from "zod";import {Ability,- ComboboxControlled,CustomFormFields,Number,Submit,Supplier,+ SupplierLocation,} from "~/components/Form";import { usePermissions } from "~/hooks";-import type { getSupplierLocations } from "~/modules/purchasing";import { partnerValidator } from "~/modules/resources";import { path } from "~/utils/path";@@ -38,38 +34,19 @@ const PartnerForm = ({ initialValues }: PartnerFormProps) => {const permissions = usePermissions();const navigate = useNavigate();const onClose = () => navigate(-1);+ const [supplier, setSupplier] = useState<string | null>(+ initialValues.supplierId ?? null+ );const isEditing = initialValues.id !== "";const isDisabled = isEditing? !permissions.can("update", "resources"): !permissions.can("create", "resources");- const supplierLocationFetcher =- useFetcher<Awaited<ReturnType<typeof getSupplierLocations>>>();-- const onSupplierChange = (newValue: { value: string | number } | null) => {- if (newValue)- supplierLocationFetcher.load(- path.to.api.supplierLocations(`${newValue.value}`)- );+ const onSupplierChange = (newValue: { value: string } | null) => {+ if (newValue) setSupplier(newValue?.value ?? null);};- useMount(() => {- if (initialValues.supplierId)- supplierLocationFetcher.load(- path.to.api.supplierLocations(initialValues.supplierId)- );- });-- const supplierLocations = useMemo(- () =>- supplierLocationFetcher.data?.data?.map((loc) => ({- value: loc.id,- label: `${loc.address?.city}, ${loc.address?.state}`,- })) ?? [],- [supplierLocationFetcher.data]- );-return (<Draweropen@@ -101,13 +78,13 @@ const PartnerForm = ({ initialValues }: PartnerFormProps) => {<Suppliername="supplierId"label="Supplier"- isReadOnly={isEditing}+ disabled={isEditing}onChange={onSupplierChange}/>- <SupplierLocationsBySupplier- supplierLocations={supplierLocations}- initialLocation={initialValues.id}- isReadOnly={isEditing}+ <SupplierLocation+ name="id"+ supplier={supplier ?? undefined}+ disabled={isEditing}/><Ability name="abilityId" label="Ability" /><Number@@ -134,46 +111,4 @@ const PartnerForm = ({ initialValues }: PartnerFormProps) => {);};-const SupplierLocationsBySupplier = ({- supplierLocations,- initialLocation,- isReadOnly,-}: {- supplierLocations: { value: string; label: string }[];- initialLocation?: string;- isReadOnly: boolean;-}) => {- const [supplierLocation, setSupplierLocation] = useControlField<- string | null- >("id");-- useEffect(() => {- // if the initial value is in the options, set it, otherwise set to null- if (supplierLocations) {- setSupplierLocation(- supplierLocations.find((s) => s.value === initialLocation)?.value ??- null- );- }- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [supplierLocations, initialLocation]);-- const onChange = (newValue: { value: string } | null) => {- setSupplierLocation(newValue?.value ?? null);- };-- return (- <FormControl>- <FormLabel>Supplier Location</FormLabel>- <ComboboxControlled- name="id"- options={supplierLocations}- value={supplierLocation ?? undefined}- onChange={onChange}- isReadOnly={isReadOnly}- />- </FormControl>- );-};-export default PartnerForm;diff --git a/apps/carbon/app/modules/resources/ui/Partners/PartnersTable.tsx b/apps/carbon/app/modules/resources/ui/Partners/PartnersTable.tsxindex 6825df3979..1becfa8896 100644--- a/apps/carbon/app/modules/resources/ui/Partners/PartnersTable.tsx+++ b/apps/carbon/app/modules/resources/ui/Partners/PartnersTable.tsx@@ -1,4 +1,11 @@-import { Avatar, HStack, Hyperlink, MenuIcon, MenuItem } from "@carbon/react";+import {+ Avatar,+ Enumerable,+ HStack,+ Hyperlink,+ MenuIcon,+ MenuItem,+} from "@carbon/react";import { useNavigate } from "@remix-run/react";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -45,15 +52,13 @@ const PartnersTable = memo(({ data, count }: PartnersTableProps) => {{header: "Location",cell: ({ row }) => (- <>- {row.original.city}, {row.original.state}- </>+ <Enumerable value={`${row.original.city}, ${row.original.state}`} />),},{accessorKey: "abilityName",header: "Ability",- cell: (item) => item.getValue(),+ cell: (item) => <Enumerable value={item.getValue<string>()} />,},{accessorKey: "hoursPerWeek",diff --git a/apps/carbon/app/modules/resources/ui/People/PeopleTable.tsx b/apps/carbon/app/modules/resources/ui/People/PeopleTable.tsxindex d74e644e8c..20a5539de1 100644--- a/apps/carbon/app/modules/resources/ui/People/PeopleTable.tsx+++ b/apps/carbon/app/modules/resources/ui/People/PeopleTable.tsx@@ -1,4 +1,10 @@-import { HStack, Hyperlink, MenuIcon, MenuItem } from "@carbon/react";+import {+ Enumerable,+ HStack,+ Hyperlink,+ MenuIcon,+ MenuItem,+} from "@carbon/react";import { useNavigate } from "@remix-run/react";import type { ColumnDef } from "@tanstack/react-table";import { memo, useCallback, useMemo } from "react";@@ -133,7 +139,7 @@ const PeopleTable = memo({accessorKey: "employeeType.name",header: "Employee Type",- cell: (item) => item.getValue(),+ cell: (item) => <Enumerable value={item.getValue<string>()} />,},];diff --git a/apps/carbon/app/modules/resources/ui/Person/PersonJob.tsx b/apps/carbon/app/modules/resources/ui/Person/PersonJob.tsxindex 1a7c745f93..b08ed8d266 100644--- a/apps/carbon/app/modules/resources/ui/Person/PersonJob.tsx+++ b/apps/carbon/app/modules/resources/ui/Person/PersonJob.tsx@@ -8,6 +8,7 @@ import {} from "@carbon/react";import { ValidatedForm } from "@carbon/remix-validated-form";import { useState } from "react";+import type { z } from "zod";import {CustomFormFields,DatePicker,@@ -18,26 +19,21 @@ import {Shift,Submit,} from "~/components/Form";-import type { EmployeeJob } from "~/modules/resources";import { employeeJobValidator } from "~/modules/resources";type PersonJobProps = {- job: EmployeeJob;+ initialValues: z.infer<typeof employeeJobValidator>;};-const PersonJob = ({ job }: PersonJobProps) => {- const [location, setLocation] = useState<string | null>(job.locationId);+const PersonJob = ({ initialValues }: PersonJobProps) => {+ const [location, setLocation] = useState<string | null>(+ initialValues.locationId ?? null+ );return (<ValidatedFormvalidator={employeeJobValidator}method="post"- defaultValues={{- locationId: job.locationId ?? undefined,- title: job.title ?? undefined,- startDate: job.startDate ?? undefined,- managerId: job.managerId ?? undefined,- shiftId: job.shiftId ?? undefined,- }}+ defaultValues={initialValues}><Card><CardHeader>diff --git a/apps/carbon/app/routes/x+/person+/$personId.job.tsx b/apps/carbon/app/routes/x+/person+/$personId.job.tsxindex 57a63a7e08..483e7f9d2f 100644--- a/apps/carbon/app/routes/x+/person+/$personId.job.tsx+++ b/apps/carbon/app/routes/x+/person+/$personId.job.tsx@@ -1,6 +1,6 @@import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";-import { useLoaderData } from "@remix-run/react";+import { useLoaderData, useParams } from "@remix-run/react";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session.server";import { path } from "~/utils/path";@@ -13,6 +13,7 @@ import {getEmployeeJob,upsertEmployeeJob,} from "~/modules/resources";+import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";export async function loader({ request, params }: LoaderFunctionArgs) {@@ -38,21 +39,24 @@ export async function loader({ request, params }: LoaderFunctionArgs) {export async function action({ request, params }: ActionFunctionArgs) {assertIsPost(request);- const { client } = await requirePermissions(request, {+ const { client, userId } = await requirePermissions(request, {update: "resources",});const { personId } = params;if (!personId) throw new Error("No person ID provided");- const validation = await validator(employeeJobValidator).validate(- await request.formData()- );+ const formData = await request.formData();+ const validation = await validator(employeeJobValidator).validate(formData);if (validation.error) {return validationError(validation.error);}- const updateJob = await upsertEmployeeJob(client, personId, validation.data);+ const updateJob = await upsertEmployeeJob(client, personId, {+ ...validation.data,+ updatedBy: userId,+ customFields: setCustomFields(formData),+ });if (updateJob.error) {return redirect(path.to.personJob(personId),@@ -68,6 +72,17 @@ export async function action({ request, params }: ActionFunctionArgs) {export default function PersonJobRoute() {const { job } = useLoaderData<typeof loader>();+ const { personId } = useParams();++ const initialValues = {+ title: job.title ?? "",+ startDate: job.startDate ?? "",+ locationId: job.locationId ?? "",+ shiftId: job.shiftId ?? "",+ managerId: job.managerId ?? "",+ ...getCustomFields(job.customFields),+ };- return <PersonJob job={job} />;+ console.log({ initialValues });+ return <PersonJob key={personId} initialValues={initialValues} />;}diff --git a/apps/carbon/app/routes/x+/resources+/equipment.$typeId.tsx b/apps/carbon/app/routes/x+/resources+/equipment.$typeId.tsxindex 6a25aee834..ac2f7eaf45 100644--- a/apps/carbon/app/routes/x+/resources+/equipment.$typeId.tsx+++ b/apps/carbon/app/routes/x+/resources+/equipment.$typeId.tsx@@ -10,6 +10,7 @@ import {} from "~/modules/resources";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session.server";+import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";import { error, success } from "~/utils/result";@@ -43,9 +44,8 @@ export async function action({ request }: ActionFunctionArgs) {update: "resources",});- const validation = await validator(equipmentTypeValidator).validate(- await request.formData()- );+ const formData = await request.formData();+ const validation = await validator(equipmentTypeValidator).validate(formData);if (validation.error) {return validationError(validation.error);@@ -58,6 +58,7 @@ export async function action({ request }: ActionFunctionArgs) {id,...data,updatedBy: userId,+ customFields: setCustomFields(formData),});if (updateCategory.error) {return redirect(@@ -86,6 +87,7 @@ export default function EditAttributeCategoryRoute() {description: equipmentType?.description ?? "",requiredAbility: equipmentType?.requiredAbility ?? undefined,setupHours: equipmentType?.setupHours ?? 0,+ ...getCustomFields(equipmentType?.customFields),};return (diff --git a/apps/carbon/app/routes/x+/resources+/equipment.new.tsx b/apps/carbon/app/routes/x+/resources+/equipment.new.tsxindex dddaa2c344..acbe181080 100644--- a/apps/carbon/app/routes/x+/resources+/equipment.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/equipment.new.tsx@@ -9,6 +9,7 @@ import {} from "~/modules/resources";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session.server";+import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";import { error } from "~/utils/result";@@ -33,6 +34,7 @@ export async function action({ request }: ActionFunctionArgs) {const createEquipmentType = await upsertEquipmentType(client, {...data,createdBy: userId,+ customFields: setCustomFields(formData),});if (createEquipmentType.error) {return modaldiff --git a/packages/database/src/types.ts b/packages/database/src/types.tsindex aabbc37812..edf106de3c 100644--- a/packages/database/src/types.ts+++ b/packages/database/src/types.ts@@ -2957,7 +2957,6 @@ export type Database = {Row: {abilityId: stringactive: boolean- customFields: Json | nullemployeeId: stringid: stringlastTrainingDate: string | null@@ -2967,7 +2966,6 @@ export type Database = {Insert: {abilityId: stringactive?: boolean- customFields?: Json | nullemployeeId: stringid?: stringlastTrainingDate?: string | null@@ -2977,7 +2975,6 @@ export type Database = {Update: {abilityId?: stringactive?: boolean- customFields?: Json | nullemployeeId?: stringid?: stringlastTrainingDate?: string | null@@ -3025,6 +3022,8 @@ export type Database = {shiftId: string | nullstartDate: string | nulltitle: string | null+ updatedAt: string | null+ updatedBy: string | nullworkCellId: string | null}Insert: {@@ -3036,6 +3035,8 @@ export type Database = {shiftId?: string | nullstartDate?: string | nulltitle?: string | null+ updatedAt?: string | null+ updatedBy?: string | nullworkCellId?: string | null}Update: {@@ -3047,6 +3048,8 @@ export type Database = {shiftId?: string | nullstartDate?: string | nulltitle?: string | null+ updatedAt?: string | null+ updatedBy?: string | nullworkCellId?: string | null}Relationships: [@@ -3127,6 +3130,27 @@ export type Database = {referencedRelation: "shift"referencedColumns: ["id"]},+ {+ foreignKeyName: "employeeJob_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "employeeJob_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "employeeJob_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },{foreignKeyName: "employeeJob_workCellId_fkey"columns: ["workCellId"]diff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.tsindex aabbc37812..edf106de3c 100644--- a/packages/database/supabase/functions/lib/types.ts+++ b/packages/database/supabase/functions/lib/types.ts@@ -2957,7 +2957,6 @@ export type Database = {Row: {abilityId: stringactive: boolean- customFields: Json | nullemployeeId: stringid: stringlastTrainingDate: string | null@@ -2967,7 +2966,6 @@ export type Database = {Insert: {abilityId: stringactive?: boolean- customFields?: Json | nullemployeeId: stringid?: stringlastTrainingDate?: string | null@@ -2977,7 +2975,6 @@ export type Database = {Update: {abilityId?: stringactive?: boolean- customFields?: Json | nullemployeeId?: stringid?: stringlastTrainingDate?: string | null@@ -3025,6 +3022,8 @@ export type Database = {shiftId: string | nullstartDate: string | nulltitle: string | null+ updatedAt: string | null+ updatedBy: string | nullworkCellId: string | null}Insert: {@@ -3036,6 +3035,8 @@ export type Database = {shiftId?: string | nullstartDate?: string | nulltitle?: string | null+ updatedAt?: string | null+ updatedBy?: string | nullworkCellId?: string | null}Update: {@@ -3047,6 +3048,8 @@ export type Database = {shiftId?: string | nullstartDate?: string | nulltitle?: string | null+ updatedAt?: string | null+ updatedBy?: string | nullworkCellId?: string | null}Relationships: [@@ -3127,6 +3130,27 @@ export type Database = {referencedRelation: "shift"referencedColumns: ["id"]},+ {+ foreignKeyName: "employeeJob_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "employeeJob_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "employeeJob_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },{foreignKeyName: "employeeJob_workCellId_fkey"columns: ["workCellId"]diff --git a/packages/database/supabase/migrations/20230224035103_shifts.sql b/packages/database/supabase/migrations/20230224035103_shifts.sqlindex 8cad23973f..235e64ec79 100644--- a/packages/database/supabase/migrations/20230224035103_shifts.sql+++ b/packages/database/supabase/migrations/20230224035103_shifts.sql@@ -149,14 +149,19 @@ CREATE TABLE "employeeJob" ("managerId" TEXT,"title" TEXT,"startDate" DATE,+ "updatedAt" TIMESTAMP,+ "updatedBy" TEXT,CONSTRAINT "employeeJob_pkey" PRIMARY KEY ("id"),CONSTRAINT "employeeJob_id_fkey" FOREIGN KEY ("id") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE,CONSTRAINT "employeeJob_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location"("id") ON DELETE CASCADE ON UPDATE CASCADE,CONSTRAINT "employeeJob_shiftId_fkey" FOREIGN KEY ("shiftId") REFERENCES "shift"("id") ON DELETE CASCADE ON UPDATE CASCADE,- CONSTRAINT "employeeJob_managerId_fkey" FOREIGN KEY ("managerId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE+ CONSTRAINT "employeeJob_managerId_fkey" FOREIGN KEY ("managerId") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE,+ CONSTRAINT "employeeJob_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON DELETE CASCADE ON UPDATE CASCADE);+ALTER TABLE "employeeJob" ENABLE ROW LEVEL SECURITY;+CREATE POLICY "Employees can view employee jobs" ON "employeeJob"FOR SELECTUSING (diff --git a/packages/database/supabase/migrations/20240313021647_custom-fields-on-tables.sql b/packages/database/supabase/migrations/20240313021647_custom-fields-on-tables.sqlindex 31e18f834b..bf5210b28f 100644--- a/packages/database/supabase/migrations/20240313021647_custom-fields-on-tables.sql+++ b/packages/database/supabase/migrations/20240313021647_custom-fields-on-tables.sql@@ -9,7 +9,6 @@ ALTER TABLE "customerLocation" ADD COLUMN "customFields" JSONB;ALTER TABLE "customerStatus" ADD COLUMN "customFields" JSONB;ALTER TABLE "customerType" ADD COLUMN "customFields" JSONB;ALTER TABLE "department" ADD COLUMN "customFields" JSONB;-ALTER TABLE "employeeAbility" ADD COLUMN "customFields" JSONB;ALTER TABLE "employeeJob" ADD COLUMN "customFields" JSONB;ALTER TABLE "equipment" ADD COLUMN "customFields" JSONB;ALTER TABLE "equipmentType" ADD COLUMN "customFields" JSONB;diff --git a/packages/database/supabase/seed.sql b/packages/database/supabase/seed.sqlindex 635f0c83db..35a8aea3dd 100644--- a/packages/database/supabase/seed.sql+++ b/packages/database/supabase/seed.sql@@ -470,10 +470,7 @@ VALUES('customerStatus', 'Customer Status', 'Sales'),('customerType', 'Customer Type', 'Sales'),('department', 'Department', 'Resources'),-('employee', 'Employee', 'Resources'),-('employeeAbility', 'Employee Ability', 'Resources'),('employeeJob', 'Employee Job', 'Resources'),-('employeeShift', 'Employee Shift', 'Resources'),('equipment', 'Equipment', 'Resources'),('equipmentType', 'Equipment Type', 'Resources'),('holiday', 'Holiday', 'Resources'),