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
Migrate Remix Build System To Vite (#129)
Kartikb45295b0d65d
diff --git a/.gitignore b/.gitignoreindex 206b3bdb5d..c3b4d69e3a 100644--- a/.gitignore+++ b/.gitignore@@ -10,6 +10,7 @@ dist-ssrserver/distpublic/dist.turbo+vite.config.ts.timestamp*# local env files.envdiff --git a/apps/carbon/.eslintrc.js b/apps/carbon/.eslintrc.mjssimilarity index 100%rename from apps/carbon/.eslintrc.jsrename to apps/carbon/.eslintrc.mjsdiff --git a/apps/carbon/app/entry.server.tsx b/apps/carbon/app/entry.server.tsxindex 9bc1bb95a8..632a44e037 100644--- a/apps/carbon/app/entry.server.tsx+++ b/apps/carbon/app/entry.server.tsx@@ -12,6 +12,10 @@ import logger from "~/lib/logger";const ABORT_DELAY = 30000;+// This code has the effect of registering jobs with trigger.dev+// in a way that doesn't interfere with the vite compiler.+export * from "~/jobs.server";+export default function handleRequest(request: Request,responseStatusCode: number,diff --git a/apps/carbon/app/jobs/index.ts b/apps/carbon/app/jobs.server/index.tssimilarity index 100%rename from apps/carbon/app/jobs/index.tsrename to apps/carbon/app/jobs.server/index.tsdiff --git a/apps/carbon/app/jobs/post-transaction.server.ts b/apps/carbon/app/jobs.server/post-transaction.server.tssimilarity index 100%rename from apps/carbon/app/jobs/post-transaction.server.tsrename to apps/carbon/app/jobs.server/post-transaction.server.tsdiff --git a/apps/carbon/app/jobs/send-email-resend.server.ts b/apps/carbon/app/jobs.server/send-email-resend.server.tssimilarity index 100%rename from apps/carbon/app/jobs/send-email-resend.server.tsrename to apps/carbon/app/jobs.server/send-email-resend.server.tsdiff --git a/apps/carbon/app/jobs/update-exchange-rates.server.ts b/apps/carbon/app/jobs.server/update-exchange-rates.server.tssimilarity index 100%rename from apps/carbon/app/jobs/update-exchange-rates.server.tsrename to apps/carbon/app/jobs.server/update-exchange-rates.server.tsdiff --git a/apps/carbon/app/jobs/update-permissions.server.ts b/apps/carbon/app/jobs.server/update-permissions.server.tssimilarity index 100%rename from apps/carbon/app/jobs/update-permissions.server.tsrename to apps/carbon/app/jobs.server/update-permissions.server.tsdiff --git a/apps/carbon/app/jobs/user-admin.server.ts b/apps/carbon/app/jobs.server/user-admin.server.tssimilarity index 100%rename from apps/carbon/app/jobs/user-admin.server.tsrename to apps/carbon/app/jobs.server/user-admin.server.tsdiff --git a/apps/carbon/app/modules/users/users.server.ts b/apps/carbon/app/modules/users/users.server.tsindex 4c63f412df..1444010f3a 100644--- a/apps/carbon/app/modules/users/users.server.ts+++ b/apps/carbon/app/modules/users/users.server.ts@@ -17,7 +17,7 @@ import {deleteAuthAccount,sendInviteByEmail,sendMagicLink,-} from "~/services/auth";+} from "~/services/auth/auth.server";import { flash, requireAuthSession } from "~/services/session.server";import type { ListItem, Result } from "~/types";import { path } from "~/utils/path";diff --git a/apps/carbon/app/root.tsx b/apps/carbon/app/root.tsxindex 4ab51c3200..6757a75fd7 100644--- a/apps/carbon/app/root.tsx+++ b/apps/carbon/app/root.tsx@@ -9,7 +9,6 @@ import type {import { json } from "@remix-run/node";import {Links,- LiveReload,Meta,Outlet,Scripts,@@ -22,9 +21,9 @@ import { Analytics } from "@vercel/analytics/react";import React, { useEffect } from "react";import { getBrowserEnv } from "~/config/env";import { getMode, setMode } from "~/services/mode.server";-import Background from "~/styles/background.css";-import NProgress from "~/styles/nprogress.css";-import Tailwind from "~/styles/tailwind.css";+import Background from "~/styles/background.css?url";+import NProgress from "~/styles/nprogress.css?url";+import Tailwind from "~/styles/tailwind.css?url";import { error } from "~/utils/result";import { useMode } from "./hooks/useMode";import { getSessionFlash } from "./services/session.server";@@ -122,7 +121,6 @@ function Document({<ScrollRestoration /><Scripts /><Analytics />- {process.env.NODE_ENV === "development" && <LiveReload />}</body></html>);diff --git a/apps/carbon/app/routes/_public+/callback.tsx b/apps/carbon/app/routes/_public+/callback.tsxindex b4d7efe5fc..666802de80 100644--- a/apps/carbon/app/routes/_public+/callback.tsx+++ b/apps/carbon/app/routes/_public+/callback.tsx@@ -5,7 +5,7 @@ import { useActionData, useFetcher } from "@remix-run/react";import { useEffect } from "react";import { supabaseClient } from "~/lib/supabase/client";import { getUserByEmail } from "~/modules/users/users.server";-import { refreshAccessToken } from "~/services/auth";+import { refreshAccessToken } from "~/services/auth/auth.server";import { callbackValidator } from "~/services/auth/auth.models";import {commitAuthSession,diff --git a/apps/carbon/app/routes/_public+/forgot-password.tsx b/apps/carbon/app/routes/_public+/forgot-password.tsxindex 0299c841c0..d0871687fb 100644--- a/apps/carbon/app/routes/_public+/forgot-password.tsx+++ b/apps/carbon/app/routes/_public+/forgot-password.tsx@@ -21,7 +21,8 @@ import { LuAlertCircle, LuCheckCircle } from "react-icons/lu";import { Input, Submit } from "~/components/Form";import { getUserByEmail } from "~/modules/users/users.server";-import { forgotPasswordValidator, sendMagicLink } from "~/services/auth";+import { forgotPasswordValidator } from "~/services/auth";+import { sendMagicLink } from "~/services/auth/auth.server";import { getAuthSession } from "~/services/session.server";import type { FormActionData, Result } from "~/types";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/_public+/login.tsx b/apps/carbon/app/routes/_public+/login.tsxindex 96b4e4013a..dc2be84203 100644--- a/apps/carbon/app/routes/_public+/login.tsx+++ b/apps/carbon/app/routes/_public+/login.tsx@@ -15,11 +15,11 @@ import posthog from "posthog-js";import { LuAlertCircle } from "react-icons/lu";import { Hidden, Input, Password, Submit } from "~/components/Form";+import { loginValidator } from "~/services/auth";import {- loginValidator,signInWithEmail,verifyAuthSession,-} from "~/services/auth";+} from "~/services/auth/auth.server";import { commitAuthSession, getAuthSession } from "~/services/session.server";import type { Result } from "~/types";import { assertIsPost, safeRedirect } from "~/utils/http";diff --git a/apps/carbon/app/routes/api+/accounting.accounts.ts b/apps/carbon/app/routes/api+/accounting.accounts.tsindex 05730e04eb..145b5ac650 100644--- a/apps/carbon/app/routes/api+/accounting.accounts.ts+++ b/apps/carbon/app/routes/api+/accounting.accounts.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getAccountsList } from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {});diff --git a/apps/carbon/app/routes/api+/accounting.categories.ts b/apps/carbon/app/routes/api+/accounting.categories.tsindex 1a51245030..2d2cf9bd29 100644--- a/apps/carbon/app/routes/api+/accounting.categories.ts+++ b/apps/carbon/app/routes/api+/accounting.categories.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getAccountCategoriesList } from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {});diff --git a/apps/carbon/app/routes/api+/accounting.currencies.ts b/apps/carbon/app/routes/api+/accounting.currencies.tsindex 972ad01be9..2d42a9ca83 100644--- a/apps/carbon/app/routes/api+/accounting.currencies.ts+++ b/apps/carbon/app/routes/api+/accounting.currencies.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getCurrenciesList } from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {});diff --git a/apps/carbon/app/routes/api+/accounting.subcategories.ts b/apps/carbon/app/routes/api+/accounting.subcategories.tsindex 9762e06b60..37122df2d1 100644--- a/apps/carbon/app/routes/api+/accounting.subcategories.ts+++ b/apps/carbon/app/routes/api+/accounting.subcategories.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getAccountSubcategoriesByCategory } from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/api+/assign.ts b/apps/carbon/app/routes/api+/assign.tsindex b1a6b32fb7..15b1036db5 100644--- a/apps/carbon/app/routes/api+/assign.ts+++ b/apps/carbon/app/routes/api+/assign.ts@@ -1,6 +1,6 @@import { json, type ActionFunctionArgs } from "@remix-run/node";import { assign } from "~/modules/shared/shared.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/api+/parts.groups.ts b/apps/carbon/app/routes/api+/parts.groups.tsindex 824bb722e1..1240c05349 100644--- a/apps/carbon/app/routes/api+/parts.groups.ts+++ b/apps/carbon/app/routes/api+/parts.groups.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getPartGroupsList } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {});diff --git a/apps/carbon/app/routes/api+/parts.list.ts b/apps/carbon/app/routes/api+/parts.list.tsindex f440f46345..fe74fa89be 100644--- a/apps/carbon/app/routes/api+/parts.list.ts+++ b/apps/carbon/app/routes/api+/parts.list.ts@@ -2,7 +2,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import type { PartReplenishmentSystem } from "~/modules/parts";import { getPartsList } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/api+/parts.services.ts b/apps/carbon/app/routes/api+/parts.services.tsindex aa6805b5c8..1ffcda38f2 100644--- a/apps/carbon/app/routes/api+/parts.services.ts+++ b/apps/carbon/app/routes/api+/parts.services.ts@@ -2,7 +2,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import type { ServiceType } from "~/modules/parts";import { getServicesList } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/api+/parts.shelf.ts b/apps/carbon/app/routes/api+/parts.shelf.tsindex c9882cfa4b..fc8b48bf3b 100644--- a/apps/carbon/app/routes/api+/parts.shelf.ts+++ b/apps/carbon/app/routes/api+/parts.shelf.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getShelvesList } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {diff --git a/apps/carbon/app/routes/api+/parts.uom.ts b/apps/carbon/app/routes/api+/parts.uom.tsindex 65f95aa10d..7853fd6484 100644--- a/apps/carbon/app/routes/api+/parts.uom.ts+++ b/apps/carbon/app/routes/api+/parts.uom.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getUnitOfMeasuresList } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {});diff --git a/apps/carbon/app/routes/api+/parts.uoms.ts b/apps/carbon/app/routes/api+/parts.uoms.tsindex 4f9bf335c9..1f6cb11ae6 100644--- a/apps/carbon/app/routes/api+/parts.uoms.ts+++ b/apps/carbon/app/routes/api+/parts.uoms.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getUnitOfMeasuresList } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {});diff --git a/apps/carbon/app/routes/api+/purchasing.supplier-contacts.ts b/apps/carbon/app/routes/api+/purchasing.supplier-contacts.tsindex 24cbc602ce..d38b837ec8 100644--- a/apps/carbon/app/routes/api+/purchasing.supplier-contacts.ts+++ b/apps/carbon/app/routes/api+/purchasing.supplier-contacts.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getSupplierContacts } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/api+/purchasing.supplier-locations.ts b/apps/carbon/app/routes/api+/purchasing.supplier-locations.tsindex 9aae46c35e..43a9eb78e0 100644--- a/apps/carbon/app/routes/api+/purchasing.supplier-locations.ts+++ b/apps/carbon/app/routes/api+/purchasing.supplier-locations.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getSupplierLocations } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/api+/purchasing.supplier-statuses.ts b/apps/carbon/app/routes/api+/purchasing.supplier-statuses.tsindex 2040bc81f7..2e823b088b 100644--- a/apps/carbon/app/routes/api+/purchasing.supplier-statuses.ts+++ b/apps/carbon/app/routes/api+/purchasing.supplier-statuses.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getSupplierStatusesList } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {diff --git a/apps/carbon/app/routes/api+/purchasing.supplier-types.ts b/apps/carbon/app/routes/api+/purchasing.supplier-types.tsindex 199ca67c93..3765da7b48 100644--- a/apps/carbon/app/routes/api+/purchasing.supplier-types.ts+++ b/apps/carbon/app/routes/api+/purchasing.supplier-types.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getSupplierTypesList } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {diff --git a/apps/carbon/app/routes/api+/purchasing.suppliers.ts b/apps/carbon/app/routes/api+/purchasing.suppliers.tsindex d56601d33e..c80eeb44a9 100644--- a/apps/carbon/app/routes/api+/purchasing.suppliers.ts+++ b/apps/carbon/app/routes/api+/purchasing.suppliers.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getSuppliersList } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {diff --git a/apps/carbon/app/routes/api+/resources.abilities.ts b/apps/carbon/app/routes/api+/resources.abilities.tsindex e20a03db76..df7a65b584 100644--- a/apps/carbon/app/routes/api+/resources.abilities.ts+++ b/apps/carbon/app/routes/api+/resources.abilities.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getAbilitiesList } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {diff --git a/apps/carbon/app/routes/api+/resources.departments.ts b/apps/carbon/app/routes/api+/resources.departments.tsindex c21221a9cb..4a7b072f88 100644--- a/apps/carbon/app/routes/api+/resources.departments.ts+++ b/apps/carbon/app/routes/api+/resources.departments.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getDepartmentsList } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {});diff --git a/apps/carbon/app/routes/api+/resources.equipment-types.ts b/apps/carbon/app/routes/api+/resources.equipment-types.tsindex 93ccb680f9..c2b9a5a8db 100644--- a/apps/carbon/app/routes/api+/resources.equipment-types.ts+++ b/apps/carbon/app/routes/api+/resources.equipment-types.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getEquipmentTypesList } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {});diff --git a/apps/carbon/app/routes/api+/resources.locations.ts b/apps/carbon/app/routes/api+/resources.locations.tsindex 6d3f8d2024..a8ccc1cc85 100644--- a/apps/carbon/app/routes/api+/resources.locations.ts+++ b/apps/carbon/app/routes/api+/resources.locations.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getLocationsList } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {});diff --git a/apps/carbon/app/routes/api+/resources.shifts.ts b/apps/carbon/app/routes/api+/resources.shifts.tsindex 120d55bb6c..348219a4c1 100644--- a/apps/carbon/app/routes/api+/resources.shifts.ts+++ b/apps/carbon/app/routes/api+/resources.shifts.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getShiftsList } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {});diff --git a/apps/carbon/app/routes/api+/resources.work-cell-types.tsx b/apps/carbon/app/routes/api+/resources.work-cell-types.tsxindex 35f5977c63..d0464667f9 100644--- a/apps/carbon/app/routes/api+/resources.work-cell-types.tsx+++ b/apps/carbon/app/routes/api+/resources.work-cell-types.tsx@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getWorkCellTypesList } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {});diff --git a/apps/carbon/app/routes/api+/resources.work-cells.ts b/apps/carbon/app/routes/api+/resources.work-cells.tsindex 9fac5619bc..f8dab1036c 100644--- a/apps/carbon/app/routes/api+/resources.work-cells.ts+++ b/apps/carbon/app/routes/api+/resources.work-cells.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getWorkCellList } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {diff --git a/apps/carbon/app/routes/api+/sales.customer-contacts.ts b/apps/carbon/app/routes/api+/sales.customer-contacts.tsindex d5817a9b9a..3996835711 100644--- a/apps/carbon/app/routes/api+/sales.customer-contacts.ts+++ b/apps/carbon/app/routes/api+/sales.customer-contacts.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getCustomerContacts } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/api+/sales.customer-locations.ts b/apps/carbon/app/routes/api+/sales.customer-locations.tsindex 1bc9602ad0..83ed4bd21f 100644--- a/apps/carbon/app/routes/api+/sales.customer-locations.ts+++ b/apps/carbon/app/routes/api+/sales.customer-locations.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getCustomerLocations } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/api+/sales.customer-statuses.ts b/apps/carbon/app/routes/api+/sales.customer-statuses.tsindex 26535c46d4..658912bcd3 100644--- a/apps/carbon/app/routes/api+/sales.customer-statuses.ts+++ b/apps/carbon/app/routes/api+/sales.customer-statuses.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getCustomerStatusesList } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {diff --git a/apps/carbon/app/routes/api+/sales.customer-types.ts b/apps/carbon/app/routes/api+/sales.customer-types.tsindex 57344a8bf1..2434ea94c2 100644--- a/apps/carbon/app/routes/api+/sales.customer-types.ts+++ b/apps/carbon/app/routes/api+/sales.customer-types.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getCustomerTypesList } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {diff --git a/apps/carbon/app/routes/api+/sales.customers.ts b/apps/carbon/app/routes/api+/sales.customers.tsindex 8739f96d07..102456446d 100644--- a/apps/carbon/app/routes/api+/sales.customers.ts+++ b/apps/carbon/app/routes/api+/sales.customers.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getCustomersList } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {diff --git a/apps/carbon/app/routes/api+/settings.sequence.next.ts b/apps/carbon/app/routes/api+/settings.sequence.next.tsindex da077096c5..824aae995b 100644--- a/apps/carbon/app/routes/api+/settings.sequence.next.ts+++ b/apps/carbon/app/routes/api+/settings.sequence.next.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getNextSequence } from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/api+/settings.sequence.rollback.ts b/apps/carbon/app/routes/api+/settings.sequence.rollback.tsindex d1e96d0bff..72f950ade2 100644--- a/apps/carbon/app/routes/api+/settings.sequence.rollback.ts+++ b/apps/carbon/app/routes/api+/settings.sequence.rollback.ts@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getCurrentSequence, rollbackNextSequence } from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsDelete } from "~/utils/http";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/api+/settings.sequences.ts b/apps/carbon/app/routes/api+/settings.sequences.tsindex 1d880b0aea..8d2bde0366 100644--- a/apps/carbon/app/routes/api+/settings.sequences.ts+++ b/apps/carbon/app/routes/api+/settings.sequences.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getSequencesList } from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {});diff --git a/apps/carbon/app/routes/api+/trigger.ts b/apps/carbon/app/routes/api+/trigger.tsindex fbfe84a361..067d54f544 100644--- a/apps/carbon/app/routes/api+/trigger.ts+++ b/apps/carbon/app/routes/api+/trigger.ts@@ -1,8 +1,22 @@-import { createRemixRoute } from "@trigger.dev/remix";import { triggerClient } from "~/lib/trigger.server";+import serverRuntime from "@remix-run/server-runtime";+import type { ActionFunction } from "@remix-run/node";-// Remix will automatically strip files with side effects-// So you need to *export* your Job definitions like this:-export * from "~/jobs";--export const { action } = createRemixRoute(triggerClient);+// Job registration has been moved to entry.server.tsx;+export const action: ActionFunction = async ({ request }) => {+ const response = await triggerClient.handleRequest(request);+ if (!response) {+ return serverRuntime.json(+ {+ error: "Not found",+ },+ {+ status: 404,+ }+ );+ }+ return serverRuntime.json(response.body, {+ status: response.status,+ headers: response.headers,+ });+};diff --git a/apps/carbon/app/routes/api+/users.employee-types.ts b/apps/carbon/app/routes/api+/users.employee-types.tsindex 608d34cb59..6dc364e9c9 100644--- a/apps/carbon/app/routes/api+/users.employee-types.ts+++ b/apps/carbon/app/routes/api+/users.employee-types.ts@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getEmployeeTypes } from "~/modules/users";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {const authorized = await requirePermissions(request, {diff --git a/apps/carbon/app/routes/api+/users.empty-permissions.ts b/apps/carbon/app/routes/api+/users.empty-permissions.tsindex 15ec2c338f..9c8a39a446 100644--- a/apps/carbon/app/routes/api+/users.empty-permissions.ts+++ b/apps/carbon/app/routes/api+/users.empty-permissions.ts@@ -2,7 +2,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { getFeatures } from "~/modules/users";import { makeEmptyPermissionsFromFeatures } from "~/modules/users/users.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/api+/users.groups.tsx b/apps/carbon/app/routes/api+/users.groups.tsxindex 8e83d622f4..ae1344f277 100644--- a/apps/carbon/app/routes/api+/users.groups.tsx+++ b/apps/carbon/app/routes/api+/users.groups.tsx@@ -2,7 +2,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { arrayToTree } from "performant-array-to-tree";import type { Group } from "~/modules/users";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/file+/preview+/$bucket.$.tsx b/apps/carbon/app/routes/file+/preview+/$bucket.$.tsxindex f9a8d86502..c6f3808f91 100644--- a/apps/carbon/app/routes/file+/preview+/$bucket.$.tsx+++ b/apps/carbon/app/routes/file+/preview+/$bucket.$.tsx@@ -1,5 +1,5 @@import { type LoaderFunctionArgs } from "@remix-run/node";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";const supportedFileTypes: Record<string, string> = {pdf: "application/pdf",diff --git a/apps/carbon/app/routes/file+/preview+/image.tsx b/apps/carbon/app/routes/file+/preview+/image.tsxindex 93814599bb..262ffed698 100644--- a/apps/carbon/app/routes/file+/preview+/image.tsx+++ b/apps/carbon/app/routes/file+/preview+/image.tsx@@ -1,5 +1,5 @@import { type LoaderFunctionArgs } from "@remix-run/node";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { path } from "~/utils/path";// this route exists so we can apply some styles to the preview iframediff --git a/apps/carbon/app/routes/file+/purchase-order+/$orderId[.]pdf.tsx b/apps/carbon/app/routes/file+/purchase-order+/$orderId[.]pdf.tsxindex d387ab52c7..193e65427a 100644--- a/apps/carbon/app/routes/file+/purchase-order+/$orderId[.]pdf.tsx+++ b/apps/carbon/app/routes/file+/purchase-order+/$orderId[.]pdf.tsx@@ -8,7 +8,7 @@ import {getPurchaseOrderLocations,} from "~/modules/purchasing";import { getCompany } from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request, params }: LoaderFunctionArgs) {const { client } = await requirePermissions(request, {diff --git a/apps/carbon/app/routes/file+/quote+/$id[.]pdf.tsx b/apps/carbon/app/routes/file+/quote+/$id[.]pdf.tsxindex 30c32afb3f..4a5548b3ea 100644--- a/apps/carbon/app/routes/file+/quote+/$id[.]pdf.tsx+++ b/apps/carbon/app/routes/file+/quote+/$id[.]pdf.tsx@@ -8,7 +8,7 @@ import {getQuoteLines,} from "~/modules/sales";import { getCompany } from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request, params }: LoaderFunctionArgs) {const { client } = await requirePermissions(request, {diff --git a/apps/carbon/app/routes/onboarding+/_layout.tsx b/apps/carbon/app/routes/onboarding+/_layout.tsxindex ca08ce32a9..f35a306d90 100644--- a/apps/carbon/app/routes/onboarding+/_layout.tsx+++ b/apps/carbon/app/routes/onboarding+/_layout.tsx@@ -2,7 +2,7 @@ import { redirect, type LoaderFunctionArgs } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { getLocationsList } from "~/modules/resources";import { getCompany } from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { onboardingSequence, path } from "~/utils/path";import { VStack } from "@carbon/react";diff --git a/apps/carbon/app/routes/onboarding+/company.tsx b/apps/carbon/app/routes/onboarding+/company.tsxindex 9fc7ec78a4..693b485678 100644--- a/apps/carbon/app/routes/onboarding+/company.tsx+++ b/apps/carbon/app/routes/onboarding+/company.tsx@@ -30,7 +30,7 @@ import {onboardingCompanyValidator,updateCompany,} from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { assertIsPost } from "~/utils/http";export async function loader({ request }: ActionFunctionArgs) {diff --git a/apps/carbon/app/routes/onboarding+/user.tsx b/apps/carbon/app/routes/onboarding+/user.tsxindex fc0eac77eb..1c0f0f607e 100644--- a/apps/carbon/app/routes/onboarding+/user.tsx+++ b/apps/carbon/app/routes/onboarding+/user.tsx@@ -24,7 +24,7 @@ import {updatePublicAccount,} from "~/modules/account";import { getUser } from "~/modules/users/users.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { destroyAuthSession } from "~/services/session.server";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/account+/$userId.attribute.tsx b/apps/carbon/app/routes/x+/account+/$userId.attribute.tsxindex f3c4d18cdd..bf6fbc2c37 100644--- a/apps/carbon/app/routes/x+/account+/$userId.attribute.tsx+++ b/apps/carbon/app/routes/x+/account+/$userId.attribute.tsx@@ -11,7 +11,7 @@ import {} from "~/modules/account";import { getAttribute } from "~/modules/resources";import { getUserClaims } from "~/modules/users/users.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/account+/$userId.delete.attribute.tsx b/apps/carbon/app/routes/x+/account+/$userId.delete.attribute.tsxindex 11eeb1ce30..eb552e7316 100644--- a/apps/carbon/app/routes/x+/account+/$userId.delete.attribute.tsx+++ b/apps/carbon/app/routes/x+/account+/$userId.delete.attribute.tsx@@ -3,7 +3,7 @@ import { json } from "@remix-run/node";import { deleteUserAttributeValue } from "~/modules/account";import { getAttribute } from "~/modules/resources";import { getUserClaims } from "~/modules/users/users.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/account+/password.tsx b/apps/carbon/app/routes/x+/account+/password.tsxindex 4bd8f0d907..60e789c9d0 100644--- a/apps/carbon/app/routes/x+/account+/password.tsx+++ b/apps/carbon/app/routes/x+/account+/password.tsx@@ -3,7 +3,7 @@ import type { ActionFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { getSupabaseServiceRole } from "~/lib/supabase";import { PasswordForm, accountPasswordValidator } from "~/modules/account";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/account+/personal.tsx b/apps/carbon/app/routes/x+/account+/personal.tsxindex 2ed2ab46b8..8e5009cf91 100644--- a/apps/carbon/app/routes/x+/account+/personal.tsx+++ b/apps/carbon/app/routes/x+/account+/personal.tsx@@ -10,7 +10,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData } from "@remix-run/react";import type { PrivateAttributes } from "~/modules/account";import { UserAttributesForm, getPrivateAttributes } from "~/modules/account";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/account+/profile.tsx b/apps/carbon/app/routes/x+/account+/profile.tsxindex d3184a68d7..a4f3389f6a 100644--- a/apps/carbon/app/routes/x+/account+/profile.tsx+++ b/apps/carbon/app/routes/x+/account+/profile.tsx@@ -20,7 +20,7 @@ import {updateAvatar,updatePublicAccount,} from "~/modules/account";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/accounting+/_layout.tsx b/apps/carbon/app/routes/x+/accounting+/_layout.tsxindex b74942fd62..45660f9d89 100644--- a/apps/carbon/app/routes/x+/accounting+/_layout.tsx+++ b/apps/carbon/app/routes/x+/accounting+/_layout.tsx@@ -8,7 +8,7 @@ import {getBaseCurrency,useAccountingSubmodules,} from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/accounting+/categories.$categoryId.tsx b/apps/carbon/app/routes/x+/accounting+/categories.$categoryId.tsxindex c448b1aa18..6ad8820709 100644--- a/apps/carbon/app/routes/x+/accounting+/categories.$categoryId.tsx+++ b/apps/carbon/app/routes/x+/accounting+/categories.$categoryId.tsx@@ -8,7 +8,7 @@ import {getAccountCategory,upsertAccountCategory,} from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/accounting+/categories.delete.$categoryId.tsx b/apps/carbon/app/routes/x+/accounting+/categories.delete.$categoryId.tsxindex 642c94f968..9ca8e5c9b5 100644--- a/apps/carbon/app/routes/x+/accounting+/categories.delete.$categoryId.tsx+++ b/apps/carbon/app/routes/x+/accounting+/categories.delete.$categoryId.tsx@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteAccountCategory } from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getParams, path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/accounting+/categories.list.$categoryId.$subcategoryId.tsx b/apps/carbon/app/routes/x+/accounting+/categories.list.$categoryId.$subcategoryId.tsxindex 09a2021150..db3cbd0605 100644--- a/apps/carbon/app/routes/x+/accounting+/categories.list.$categoryId.$subcategoryId.tsx+++ b/apps/carbon/app/routes/x+/accounting+/categories.list.$categoryId.$subcategoryId.tsx@@ -5,7 +5,7 @@ import {AccountSubcategoryForm,getAccountSubcategory,} from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields } from "~/utils/form";import { notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/accounting+/categories.list.$categoryId.new.tsx b/apps/carbon/app/routes/x+/accounting+/categories.list.$categoryId.new.tsxindex b19b26be14..afdf759735 100644--- a/apps/carbon/app/routes/x+/accounting+/categories.list.$categoryId.new.tsx+++ b/apps/carbon/app/routes/x+/accounting+/categories.list.$categoryId.new.tsx@@ -8,7 +8,7 @@ import {import { validationError, validator } from "@carbon/remix-validated-form";import type { ActionFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/accounting+/categories.list.$categoryId.tsx b/apps/carbon/app/routes/x+/accounting+/categories.list.$categoryId.tsxindex 88a3c0ef7d..fa5a467d6b 100644--- a/apps/carbon/app/routes/x+/accounting+/categories.list.$categoryId.tsx+++ b/apps/carbon/app/routes/x+/accounting+/categories.list.$categoryId.tsx@@ -7,7 +7,7 @@ import {getAccountCategory,getAccountSubcategoriesByCategory,} from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/accounting+/categories.new.tsx b/apps/carbon/app/routes/x+/accounting+/categories.new.tsxindex 0ae7449795..b011334d9a 100644--- a/apps/carbon/app/routes/x+/accounting+/categories.new.tsx+++ b/apps/carbon/app/routes/x+/accounting+/categories.new.tsx@@ -8,7 +8,7 @@ import {accountCategoryValidator,upsertAccountCategory,} from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/accounting+/categories.tsx b/apps/carbon/app/routes/x+/accounting+/categories.tsxindex 9147c2419e..ed96c53916 100644--- a/apps/carbon/app/routes/x+/accounting+/categories.tsx+++ b/apps/carbon/app/routes/x+/accounting+/categories.tsx@@ -6,7 +6,7 @@ import {AccountCategoriesTable,getAccountCategories,} from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/accounting+/charts.$accountId.tsx b/apps/carbon/app/routes/x+/accounting+/charts.$accountId.tsxindex 7506428d57..0ad2a46583 100644--- a/apps/carbon/app/routes/x+/accounting+/charts.$accountId.tsx+++ b/apps/carbon/app/routes/x+/accounting+/charts.$accountId.tsx@@ -9,7 +9,7 @@ import {getAccount,upsertAccount,} from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/accounting+/charts.delete.$accountId.tsx b/apps/carbon/app/routes/x+/accounting+/charts.delete.$accountId.tsxindex ef24c8e65c..66723a776b 100644--- a/apps/carbon/app/routes/x+/accounting+/charts.delete.$accountId.tsx+++ b/apps/carbon/app/routes/x+/accounting+/charts.delete.$accountId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteAccount, getAccount } from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/accounting+/charts.new.tsx b/apps/carbon/app/routes/x+/accounting+/charts.new.tsxindex 31ae6167af..81d2cee3a4 100644--- a/apps/carbon/app/routes/x+/accounting+/charts.new.tsx+++ b/apps/carbon/app/routes/x+/accounting+/charts.new.tsx@@ -12,7 +12,7 @@ import {accountValidator,upsertAccount,} from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/accounting+/charts.tsx b/apps/carbon/app/routes/x+/accounting+/charts.tsxindex 5cc46527f7..0d5b3acf15 100644--- a/apps/carbon/app/routes/x+/accounting+/charts.tsx+++ b/apps/carbon/app/routes/x+/accounting+/charts.tsx@@ -4,7 +4,7 @@ import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { ChartOfAccountsTable, getChartOfAccounts } from "~/modules/accounting";import ChartOfAccountsTableFilters from "~/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/accounting+/currencies.$currencyId.tsx b/apps/carbon/app/routes/x+/accounting+/currencies.$currencyId.tsxindex fef2eefdfb..9902efb541 100644--- a/apps/carbon/app/routes/x+/accounting+/currencies.$currencyId.tsx+++ b/apps/carbon/app/routes/x+/accounting+/currencies.$currencyId.tsx@@ -9,7 +9,7 @@ import {getCurrency,upsertCurrency,} from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/accounting+/currencies.delete.$currencyId.tsx b/apps/carbon/app/routes/x+/accounting+/currencies.delete.$currencyId.tsxindex ef8d0ade35..ae982b3ce6 100644--- a/apps/carbon/app/routes/x+/accounting+/currencies.delete.$currencyId.tsx+++ b/apps/carbon/app/routes/x+/accounting+/currencies.delete.$currencyId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteCurrency, getCurrency } from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { getParams, path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/accounting+/currencies.new.tsx b/apps/carbon/app/routes/x+/accounting+/currencies.new.tsxindex 5eeba023dd..bb69f9687b 100644--- a/apps/carbon/app/routes/x+/accounting+/currencies.new.tsx+++ b/apps/carbon/app/routes/x+/accounting+/currencies.new.tsx@@ -6,7 +6,7 @@ import {currencyValidator,upsertCurrency,} from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/accounting+/currencies.tsx b/apps/carbon/app/routes/x+/accounting+/currencies.tsxindex d5095a05bd..61e9d94043 100644--- a/apps/carbon/app/routes/x+/accounting+/currencies.tsx+++ b/apps/carbon/app/routes/x+/accounting+/currencies.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { CurrenciesTable, getCurrencies } from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";import { getGenericQueryFilters } from "~/utils/query";diff --git a/apps/carbon/app/routes/x+/accounting+/defaults.tsx b/apps/carbon/app/routes/x+/accounting+/defaults.tsxindex a634c59a96..dc317844f2 100644--- a/apps/carbon/app/routes/x+/accounting+/defaults.tsx+++ b/apps/carbon/app/routes/x+/accounting+/defaults.tsx@@ -11,7 +11,7 @@ import {getDefaultAccounts,updateDefaultAccounts,} from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/accounting+/groups.inventory.tsx b/apps/carbon/app/routes/x+/accounting+/groups.inventory.tsxindex 6c15eb4a90..d6a2d0caec 100644--- a/apps/carbon/app/routes/x+/accounting+/groups.inventory.tsx+++ b/apps/carbon/app/routes/x+/accounting+/groups.inventory.tsx@@ -10,7 +10,7 @@ import {} from "~/modules/accounting";import { getPartGroupsList } from "~/modules/parts";import { getLocationsList } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/accounting+/groups.purchasing.tsx b/apps/carbon/app/routes/x+/accounting+/groups.purchasing.tsxindex 1c8cbf8b3d..fc72866cf3 100644--- a/apps/carbon/app/routes/x+/accounting+/groups.purchasing.tsx+++ b/apps/carbon/app/routes/x+/accounting+/groups.purchasing.tsx@@ -10,7 +10,7 @@ import {} from "~/modules/accounting";import { getPartGroupsList } from "~/modules/parts";import { getSupplierTypesList } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/accounting+/groups.sales.tsx b/apps/carbon/app/routes/x+/accounting+/groups.sales.tsxindex 7d57dd0b86..03e85b46e2 100644--- a/apps/carbon/app/routes/x+/accounting+/groups.sales.tsx+++ b/apps/carbon/app/routes/x+/accounting+/groups.sales.tsx@@ -10,7 +10,7 @@ import {} from "~/modules/accounting";import { getPartGroupsList } from "~/modules/parts";import { getCustomerTypesList } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/accounting+/payment-terms.$paymentTermId.tsx b/apps/carbon/app/routes/x+/accounting+/payment-terms.$paymentTermId.tsxindex f01a5f0b54..fe506e3f85 100644--- a/apps/carbon/app/routes/x+/accounting+/payment-terms.$paymentTermId.tsx+++ b/apps/carbon/app/routes/x+/accounting+/payment-terms.$paymentTermId.tsx@@ -9,7 +9,7 @@ import {paymentTermValidator,upsertPaymentTerm,} from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/accounting+/payment-terms.delete.$paymentTermId.tsx b/apps/carbon/app/routes/x+/accounting+/payment-terms.delete.$paymentTermId.tsxindex 25078a20ab..3d6c658f17 100644--- a/apps/carbon/app/routes/x+/accounting+/payment-terms.delete.$paymentTermId.tsx+++ b/apps/carbon/app/routes/x+/accounting+/payment-terms.delete.$paymentTermId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deletePaymentTerm, getPaymentTerm } from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { getParams, path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/accounting+/payment-terms.new.tsx b/apps/carbon/app/routes/x+/accounting+/payment-terms.new.tsxindex dd376cd86f..4b331fdf55 100644--- a/apps/carbon/app/routes/x+/accounting+/payment-terms.new.tsx+++ b/apps/carbon/app/routes/x+/accounting+/payment-terms.new.tsx@@ -7,7 +7,7 @@ import {paymentTermValidator,upsertPaymentTerm,} from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/accounting+/payment-terms.tsx b/apps/carbon/app/routes/x+/accounting+/payment-terms.tsxindex d8de007f66..05a58cb81b 100644--- a/apps/carbon/app/routes/x+/accounting+/payment-terms.tsx+++ b/apps/carbon/app/routes/x+/accounting+/payment-terms.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { PaymentTermsTable, getPaymentTerms } from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";import { getGenericQueryFilters } from "~/utils/query";diff --git a/apps/carbon/app/routes/x+/accounting+/subcategory.$subcategoryId.tsx b/apps/carbon/app/routes/x+/accounting+/subcategory.$subcategoryId.tsxindex 27b544060d..358e8526cf 100644--- a/apps/carbon/app/routes/x+/accounting+/subcategory.$subcategoryId.tsx+++ b/apps/carbon/app/routes/x+/accounting+/subcategory.$subcategoryId.tsx@@ -5,7 +5,7 @@ import {accountSubcategoryValidator,upsertAccountSubcategory,} from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/accounting+/subcategory.delete.$subcategoryId.tsx b/apps/carbon/app/routes/x+/accounting+/subcategory.delete.$subcategoryId.tsxindex 42595754c5..00f54da504 100644--- a/apps/carbon/app/routes/x+/accounting+/subcategory.delete.$subcategoryId.tsx+++ b/apps/carbon/app/routes/x+/accounting+/subcategory.delete.$subcategoryId.tsx@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteAccountSubcategory } from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getParams, path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/accounting+/years.tsx b/apps/carbon/app/routes/x+/accounting+/years.tsxindex cd402ef887..8c0621ba6c 100644--- a/apps/carbon/app/routes/x+/accounting+/years.tsx+++ b/apps/carbon/app/routes/x+/accounting+/years.tsx@@ -9,7 +9,7 @@ import {getFiscalYearSettings,updateFiscalYearSettings,} from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.contacts.$customerContactId.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.contacts.$customerContactId.tsxindex 57b6e2fb4c..b6f5921603 100644--- a/apps/carbon/app/routes/x+/customer+/$customerId.contacts.$customerContactId.tsx+++ b/apps/carbon/app/routes/x+/customer+/$customerId.contacts.$customerContactId.tsx@@ -8,7 +8,7 @@ import {getCustomerContact,updateCustomerContact,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, badRequest, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.contacts.delete.$customerContactId.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.contacts.delete.$customerContactId.tsxindex 439bddd56d..10bd1b2d83 100644--- a/apps/carbon/app/routes/x+/customer+/$customerId.contacts.delete.$customerContactId.tsx+++ b/apps/carbon/app/routes/x+/customer+/$customerId.contacts.delete.$customerContactId.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteCustomerContact } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.contacts.new.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.contacts.new.tsxindex c319c8cfe2..5bc13995c5 100644--- a/apps/carbon/app/routes/x+/customer+/$customerId.contacts.new.tsx+++ b/apps/carbon/app/routes/x+/customer+/$customerId.contacts.new.tsx@@ -8,7 +8,7 @@ import {customerContactValidator,insertCustomerContact,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.contacts.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.contacts.tsxindex 5192a0cdee..d3895bec10 100644--- a/apps/carbon/app/routes/x+/customer+/$customerId.contacts.tsx+++ b/apps/carbon/app/routes/x+/customer+/$customerId.contacts.tsx@@ -2,7 +2,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { useLoaderData } from "@remix-run/react";import { CustomerContacts, getCustomerContacts } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.details.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.details.tsxindex 41b4970b36..54a35e8eaa 100644--- a/apps/carbon/app/routes/x+/customer+/$customerId.details.tsx+++ b/apps/carbon/app/routes/x+/customer+/$customerId.details.tsx@@ -9,7 +9,7 @@ import {customerValidator,upsertCustomer,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.locations.$customerLocationId.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.locations.$customerLocationId.tsxindex 6ace61dcfc..9734f14666 100644--- a/apps/carbon/app/routes/x+/customer+/$customerId.locations.$customerLocationId.tsx+++ b/apps/carbon/app/routes/x+/customer+/$customerId.locations.$customerLocationId.tsx@@ -8,7 +8,7 @@ import {getCustomerLocation,updateCustomerLocation,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, badRequest, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.locations.delete.$customerLocationId.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.locations.delete.$customerLocationId.tsxindex 09ecad81cd..3f88eb52c8 100644--- a/apps/carbon/app/routes/x+/customer+/$customerId.locations.delete.$customerLocationId.tsx+++ b/apps/carbon/app/routes/x+/customer+/$customerId.locations.delete.$customerLocationId.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteCustomerLocation } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.locations.new.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.locations.new.tsxindex aaa380c252..267ce8397e 100644--- a/apps/carbon/app/routes/x+/customer+/$customerId.locations.new.tsx+++ b/apps/carbon/app/routes/x+/customer+/$customerId.locations.new.tsx@@ -7,7 +7,7 @@ import {customerLocationValidator,insertCustomerLocation,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.locations.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.locations.tsxindex 284e5ab606..e603bcfa04 100644--- a/apps/carbon/app/routes/x+/customer+/$customerId.locations.tsx+++ b/apps/carbon/app/routes/x+/customer+/$customerId.locations.tsx@@ -2,7 +2,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { useLoaderData } from "@remix-run/react";import { CustomerLocations, getCustomerLocations } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.payments.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.payments.tsxindex 6598321a05..8cb8f72f6b 100644--- a/apps/carbon/app/routes/x+/customer+/$customerId.payments.tsx+++ b/apps/carbon/app/routes/x+/customer+/$customerId.payments.tsx@@ -8,7 +8,7 @@ import {getCustomerPayment,updateCustomerPayment,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.shipping.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.shipping.tsxindex ab90e863ef..c0634634b4 100644--- a/apps/carbon/app/routes/x+/customer+/$customerId.shipping.tsx+++ b/apps/carbon/app/routes/x+/customer+/$customerId.shipping.tsx@@ -8,7 +8,7 @@ import {getCustomerShipping,updateCustomerShipping,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.tsxindex 95505d7b13..a0873db894 100644--- a/apps/carbon/app/routes/x+/customer+/$customerId.tsx+++ b/apps/carbon/app/routes/x+/customer+/$customerId.tsx@@ -8,7 +8,7 @@ import {getCustomerContacts,getCustomerLocations,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/customer+/_layout.tsx b/apps/carbon/app/routes/x+/customer+/_layout.tsxindex 2960683fd5..574a62c6b8 100644--- a/apps/carbon/app/routes/x+/customer+/_layout.tsx+++ b/apps/carbon/app/routes/x+/customer+/_layout.tsx@@ -8,7 +8,7 @@ import {getShippingTermsList,} from "~/modules/inventory";import { getCustomerStatuses, getCustomerTypes } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/customer+/new.tsx b/apps/carbon/app/routes/x+/customer+/new.tsxindex 896d585efe..7302c745ea 100644--- a/apps/carbon/app/routes/x+/customer+/new.tsx+++ b/apps/carbon/app/routes/x+/customer+/new.tsx@@ -6,7 +6,7 @@ import {customerValidator,upsertCustomer,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/documents+/$documentId.delete.tsx b/apps/carbon/app/routes/x+/documents+/$documentId.delete.tsxindex 5fa4c24c9b..f271ad9ac8 100644--- a/apps/carbon/app/routes/x+/documents+/$documentId.delete.tsx+++ b/apps/carbon/app/routes/x+/documents+/$documentId.delete.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteDocument } from "~/modules/documents";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/documents+/$documentId.labels.tsx b/apps/carbon/app/routes/x+/documents+/$documentId.labels.tsxindex 23f83eab0e..72f2d73832 100644--- a/apps/carbon/app/routes/x+/documents+/$documentId.labels.tsx+++ b/apps/carbon/app/routes/x+/documents+/$documentId.labels.tsx@@ -5,7 +5,7 @@ import {documentLabelsValidator,updateDocumentLabels,} from "~/modules/documents";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/documents+/$documentId.restore.tsx b/apps/carbon/app/routes/x+/documents+/$documentId.restore.tsxindex b320ed6db6..00506fa911 100644--- a/apps/carbon/app/routes/x+/documents+/$documentId.restore.tsx+++ b/apps/carbon/app/routes/x+/documents+/$documentId.restore.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { restoreDocument } from "~/modules/documents";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/documents+/favorite.tsx b/apps/carbon/app/routes/x+/documents+/favorite.tsxindex e97c3b2fad..e70578e585 100644--- a/apps/carbon/app/routes/x+/documents+/favorite.tsx+++ b/apps/carbon/app/routes/x+/documents+/favorite.tsx@@ -1,7 +1,7 @@import { validationError, validator } from "@carbon/remix-validated-form";import { json, type ActionFunctionArgs } from "@remix-run/node";import { updateDocumentFavorite } from "~/modules/documents";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { favoriteSchema } from "~/types/validators";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/documents+/new.tsx b/apps/carbon/app/routes/x+/documents+/new.tsxindex 554a333cf0..aaeb33d6cb 100644--- a/apps/carbon/app/routes/x+/documents+/new.tsx+++ b/apps/carbon/app/routes/x+/documents+/new.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { upsertDocument } from "~/modules/documents";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path, requestReferrer } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/documents+/search.$documentId.tsx b/apps/carbon/app/routes/x+/documents+/search.$documentId.tsxindex c0940633a5..c44d9cc1fd 100644--- a/apps/carbon/app/routes/x+/documents+/search.$documentId.tsx+++ b/apps/carbon/app/routes/x+/documents+/search.$documentId.tsx@@ -8,7 +8,7 @@ import {getDocument,upsertDocument,} from "~/modules/documents";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/documents+/search.tsx b/apps/carbon/app/routes/x+/documents+/search.tsxindex 9d9667e4a4..4d0f5630fd 100644--- a/apps/carbon/app/routes/x+/documents+/search.tsx+++ b/apps/carbon/app/routes/x+/documents+/search.tsx@@ -9,7 +9,7 @@ import {getDocumentLabels,getDocuments,} from "~/modules/documents";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { getGenericQueryFilters } from "~/utils/query";diff --git a/apps/carbon/app/routes/x+/inventory+/receipts.tsx b/apps/carbon/app/routes/x+/inventory+/receipts.tsxindex a57507e9ec..4854a17e97 100644--- a/apps/carbon/app/routes/x+/inventory+/receipts.tsx+++ b/apps/carbon/app/routes/x+/inventory+/receipts.tsx@@ -4,7 +4,7 @@ import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { ReceiptsTable, getReceipts } from "~/modules/inventory";import { getLocationsList } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/inventory+/shipping-methods.$shippingMethodId.tsx b/apps/carbon/app/routes/x+/inventory+/shipping-methods.$shippingMethodId.tsxindex 7b46d825bf..6a5fefbf19 100644--- a/apps/carbon/app/routes/x+/inventory+/shipping-methods.$shippingMethodId.tsx+++ b/apps/carbon/app/routes/x+/inventory+/shipping-methods.$shippingMethodId.tsx@@ -9,7 +9,7 @@ import {shippingMethodValidator,upsertShippingMethod,} from "~/modules/inventory";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/inventory+/shipping-methods.delete.$shippingMethodId.tsx b/apps/carbon/app/routes/x+/inventory+/shipping-methods.delete.$shippingMethodId.tsxindex d38566dd2d..6d2785e991 100644--- a/apps/carbon/app/routes/x+/inventory+/shipping-methods.delete.$shippingMethodId.tsx+++ b/apps/carbon/app/routes/x+/inventory+/shipping-methods.delete.$shippingMethodId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteShippingMethod, getShippingMethod } from "~/modules/inventory";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { getParams, path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/inventory+/shipping-methods.new.tsx b/apps/carbon/app/routes/x+/inventory+/shipping-methods.new.tsxindex 112aa8c790..d41848bd94 100644--- a/apps/carbon/app/routes/x+/inventory+/shipping-methods.new.tsx+++ b/apps/carbon/app/routes/x+/inventory+/shipping-methods.new.tsx@@ -7,7 +7,7 @@ import {shippingMethodValidator,upsertShippingMethod,} from "~/modules/inventory";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/inventory+/shipping-methods.tsx b/apps/carbon/app/routes/x+/inventory+/shipping-methods.tsxindex 4fd5d36df1..72e267aed7 100644--- a/apps/carbon/app/routes/x+/inventory+/shipping-methods.tsx+++ b/apps/carbon/app/routes/x+/inventory+/shipping-methods.tsx@@ -4,7 +4,7 @@ import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { getAccountsList } from "~/modules/accounting";import { ShippingMethodsTable, getShippingMethods } from "~/modules/inventory";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/invoicing+/purchasing.tsx b/apps/carbon/app/routes/x+/invoicing+/purchasing.tsxindex 8f2f9327d5..ca9ade9641 100644--- a/apps/carbon/app/routes/x+/invoicing+/purchasing.tsx+++ b/apps/carbon/app/routes/x+/invoicing+/purchasing.tsx@@ -6,7 +6,7 @@ import {PurchaseInvoicesTable,getPurchaseInvoices,} from "~/modules/invoicing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/part+/$partId.costing.tsx b/apps/carbon/app/routes/x+/part+/$partId.costing.tsxindex dac7a09e84..79520a8d22 100644--- a/apps/carbon/app/routes/x+/part+/$partId.costing.tsx+++ b/apps/carbon/app/routes/x+/part+/$partId.costing.tsx@@ -9,7 +9,7 @@ import {partCostValidator,upsertPartCost,} from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/part+/$partId.details.tsx b/apps/carbon/app/routes/x+/part+/$partId.details.tsxindex d13b61ff50..626f24216f 100644--- a/apps/carbon/app/routes/x+/part+/$partId.details.tsx+++ b/apps/carbon/app/routes/x+/part+/$partId.details.tsx@@ -5,7 +5,7 @@ import { useParams } from "@remix-run/react";import { useRouteData } from "~/hooks";import type { PartSummary } from "~/modules/parts";import { PartForm, partValidator, upsertPart } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/part+/$partId.inventory.tsx b/apps/carbon/app/routes/x+/part+/$partId.inventory.tsxindex fa003cb86e..8f21678f45 100644--- a/apps/carbon/app/routes/x+/part+/$partId.inventory.tsx+++ b/apps/carbon/app/routes/x+/part+/$partId.inventory.tsx@@ -13,7 +13,7 @@ import {} from "~/modules/parts";import { getLocationsList } from "~/modules/resources";import { getUserDefaults } from "~/modules/users/users.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { ListItem } from "~/types";import { getCustomFields, setCustomFields } from "~/utils/form";diff --git a/apps/carbon/app/routes/x+/part+/$partId.manufacturing.tsx b/apps/carbon/app/routes/x+/part+/$partId.manufacturing.tsxindex 2e12209a24..dc97899ea3 100644--- a/apps/carbon/app/routes/x+/part+/$partId.manufacturing.tsx+++ b/apps/carbon/app/routes/x+/part+/$partId.manufacturing.tsx@@ -8,7 +8,7 @@ import {partManufacturingValidator,upsertPartManufacturing,} from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/part+/$partId.planning.tsx b/apps/carbon/app/routes/x+/part+/$partId.planning.tsxindex 1e79b5b37d..2314bacf53 100644--- a/apps/carbon/app/routes/x+/part+/$partId.planning.tsx+++ b/apps/carbon/app/routes/x+/part+/$partId.planning.tsx@@ -11,7 +11,7 @@ import {} from "~/modules/parts";import { getLocationsList } from "~/modules/resources";import { getUserDefaults } from "~/modules/users/users.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { ListItem } from "~/types";import { getCustomFields, setCustomFields } from "~/utils/form";diff --git a/apps/carbon/app/routes/x+/part+/$partId.purchasing.tsx b/apps/carbon/app/routes/x+/part+/$partId.purchasing.tsxindex b9a6b807ec..973fedc981 100644--- a/apps/carbon/app/routes/x+/part+/$partId.purchasing.tsx+++ b/apps/carbon/app/routes/x+/part+/$partId.purchasing.tsx@@ -8,7 +8,7 @@ import {partPurchasingValidator,upsertPartPurchasing,} from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/part+/$partId.sale-price.tsx b/apps/carbon/app/routes/x+/part+/$partId.sale-price.tsxindex a1777abf06..fe7cde4297 100644--- a/apps/carbon/app/routes/x+/part+/$partId.sale-price.tsx+++ b/apps/carbon/app/routes/x+/part+/$partId.sale-price.tsx@@ -8,7 +8,7 @@ import {partUnitSalePriceValidator,upsertPartUnitSalePrice,} from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/part+/$partId.suppliers.new.tsx b/apps/carbon/app/routes/x+/part+/$partId.suppliers.new.tsxindex 1d693594b0..36ffa52af7 100644--- a/apps/carbon/app/routes/x+/part+/$partId.suppliers.new.tsx+++ b/apps/carbon/app/routes/x+/part+/$partId.suppliers.new.tsx@@ -7,7 +7,7 @@ import {partSupplierValidator,upsertPartSupplier,} from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/part+/$partId.suppliers.tsx b/apps/carbon/app/routes/x+/part+/$partId.suppliers.tsxindex 24a3a848db..1ccb35ca8b 100644--- a/apps/carbon/app/routes/x+/part+/$partId.suppliers.tsx+++ b/apps/carbon/app/routes/x+/part+/$partId.suppliers.tsx@@ -2,7 +2,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { useLoaderData } from "@remix-run/react";import { PartSuppliers, getPartSuppliers } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/part+/$partId.tsx b/apps/carbon/app/routes/x+/part+/$partId.tsxindex 6dd4866e5f..654fad0de0 100644--- a/apps/carbon/app/routes/x+/part+/$partId.tsx+++ b/apps/carbon/app/routes/x+/part+/$partId.tsx@@ -2,7 +2,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { PartHeader, PartSidebar, getPartSummary } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/part+/_layout.tsx b/apps/carbon/app/routes/x+/part+/_layout.tsxindex dfb8ca8b41..10e0b3a1e3 100644--- a/apps/carbon/app/routes/x+/part+/_layout.tsx+++ b/apps/carbon/app/routes/x+/part+/_layout.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { getUnitOfMeasuresList } from "~/modules/parts";import { getLocationsList } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/part+/flow.tsx b/apps/carbon/app/routes/x+/part+/flow.tsxindex 096a6f0dfe..4f22568fe4 100644--- a/apps/carbon/app/routes/x+/part+/flow.tsx+++ b/apps/carbon/app/routes/x+/part+/flow.tsx@@ -11,7 +11,7 @@ import ReactFlow, {useEdgesState,useNodesState,} from "reactflow";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export const meta: MetaFunction = () => {return [{ title: "Carbon | Parts" }];diff --git a/apps/carbon/app/routes/x+/part+/new.tsx b/apps/carbon/app/routes/x+/part+/new.tsxindex 402b5efb49..1e94ac8c24 100644--- a/apps/carbon/app/routes/x+/part+/new.tsx+++ b/apps/carbon/app/routes/x+/part+/new.tsx@@ -2,7 +2,7 @@ import { validationError, validator } from "@carbon/remix-validated-form";import type { ActionFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { PartForm, partValidator, upsertPart } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/parts+/groups.$groupId.tsx b/apps/carbon/app/routes/x+/parts+/groups.$groupId.tsxindex d63788a07b..7882b96bef 100644--- a/apps/carbon/app/routes/x+/parts+/groups.$groupId.tsx+++ b/apps/carbon/app/routes/x+/parts+/groups.$groupId.tsx@@ -8,7 +8,7 @@ import {partGroupValidator,upsertPartGroup,} from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/parts+/groups.delete.$groupId.tsx b/apps/carbon/app/routes/x+/parts+/groups.delete.$groupId.tsxindex f2b73e762b..635067275e 100644--- a/apps/carbon/app/routes/x+/parts+/groups.delete.$groupId.tsx+++ b/apps/carbon/app/routes/x+/parts+/groups.delete.$groupId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deletePartGroup, getPartGroup } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { getParams, path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/parts+/groups.new.tsx b/apps/carbon/app/routes/x+/parts+/groups.new.tsxindex 3b1722fadb..42d9cd4553 100644--- a/apps/carbon/app/routes/x+/parts+/groups.new.tsx+++ b/apps/carbon/app/routes/x+/parts+/groups.new.tsx@@ -7,7 +7,7 @@ import {partGroupValidator,upsertPartGroup,} from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/parts+/groups.tsx b/apps/carbon/app/routes/x+/parts+/groups.tsxindex 70118547ee..615dd059b7 100644--- a/apps/carbon/app/routes/x+/parts+/groups.tsx+++ b/apps/carbon/app/routes/x+/parts+/groups.tsx@@ -4,7 +4,7 @@ import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { getAccountsList } from "~/modules/accounting";import { PartGroupsTable, getPartGroups } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/parts+/search.tsx b/apps/carbon/app/routes/x+/parts+/search.tsxindex 1a87140d72..02fbe3911e 100644--- a/apps/carbon/app/routes/x+/parts+/search.tsx+++ b/apps/carbon/app/routes/x+/parts+/search.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { PartsTable, getPartGroupsList, getParts } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { getGenericQueryFilters } from "~/utils/query";diff --git a/apps/carbon/app/routes/x+/parts+/services.tsx b/apps/carbon/app/routes/x+/parts+/services.tsxindex 236e84e652..578c438efd 100644--- a/apps/carbon/app/routes/x+/parts+/services.tsx+++ b/apps/carbon/app/routes/x+/parts+/services.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { ServicesTable, getPartGroupsList, getServices } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/parts+/uom.$uomId.tsx b/apps/carbon/app/routes/x+/parts+/uom.$uomId.tsxindex 4aeef49376..435fe32dd0 100644--- a/apps/carbon/app/routes/x+/parts+/uom.$uomId.tsx+++ b/apps/carbon/app/routes/x+/parts+/uom.$uomId.tsx@@ -8,7 +8,7 @@ import {unitOfMeasureValidator,upsertUnitOfMeasure,} from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/parts+/uom.delete.$uomId.tsx b/apps/carbon/app/routes/x+/parts+/uom.delete.$uomId.tsxindex 675baad824..57d252f4c9 100644--- a/apps/carbon/app/routes/x+/parts+/uom.delete.$uomId.tsx+++ b/apps/carbon/app/routes/x+/parts+/uom.delete.$uomId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteUnitOfMeasure, getUnitOfMeasure } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { getParams, path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/parts+/uom.new.tsx b/apps/carbon/app/routes/x+/parts+/uom.new.tsxindex 2326a301f1..649e47b702 100644--- a/apps/carbon/app/routes/x+/parts+/uom.new.tsx+++ b/apps/carbon/app/routes/x+/parts+/uom.new.tsx@@ -7,7 +7,7 @@ import {unitOfMeasureValidator,upsertUnitOfMeasure,} from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/parts+/uom.tsx b/apps/carbon/app/routes/x+/parts+/uom.tsxindex bc96a3604b..d542c2cdbb 100644--- a/apps/carbon/app/routes/x+/parts+/uom.tsx+++ b/apps/carbon/app/routes/x+/parts+/uom.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { UnitOfMeasuresTable, getUnitOfMeasures } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";import { getGenericQueryFilters } from "~/utils/query";diff --git a/apps/carbon/app/routes/x+/person+/$personId.details.tsx b/apps/carbon/app/routes/x+/person+/$personId.details.tsxindex 4a4a632794..a3c494fcfe 100644--- a/apps/carbon/app/routes/x+/person+/$personId.details.tsx+++ b/apps/carbon/app/routes/x+/person+/$personId.details.tsx@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { useLoaderData } from "@remix-run/react";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/person+/$personId.job.tsx b/apps/carbon/app/routes/x+/person+/$personId.job.tsxindex fb8a873570..5792c11ea0 100644--- a/apps/carbon/app/routes/x+/person+/$personId.job.tsx+++ b/apps/carbon/app/routes/x+/person+/$personId.job.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { useLoaderData, useParams } from "@remix-run/react";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/person+/$personId.notes.tsx b/apps/carbon/app/routes/x+/person+/$personId.notes.tsxindex 59dab71eee..b15d326209 100644--- a/apps/carbon/app/routes/x+/person+/$personId.notes.tsx+++ b/apps/carbon/app/routes/x+/person+/$personId.notes.tsx@@ -4,7 +4,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useParams } from "@remix-run/react";import { Notes, getNotes } from "~/modules/shared";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/person+/$personId.private.tsx b/apps/carbon/app/routes/x+/person+/$personId.private.tsxindex 28fe9090cf..502bf65fa1 100644--- a/apps/carbon/app/routes/x+/person+/$personId.private.tsx+++ b/apps/carbon/app/routes/x+/person+/$personId.private.tsx@@ -7,7 +7,7 @@ import { validationError, validator } from "@carbon/remix-validated-form";import type { PrivateAttributes } from "~/modules/account";import { UserAttributesForm, getPrivateAttributes } from "~/modules/account";import { employeeJobValidator, upsertEmployeeJob } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/person+/$personId.public.tsx b/apps/carbon/app/routes/x+/person+/$personId.public.tsxindex d43519e1b8..43a601f635 100644--- a/apps/carbon/app/routes/x+/person+/$personId.public.tsx+++ b/apps/carbon/app/routes/x+/person+/$personId.public.tsx@@ -7,7 +7,7 @@ import { validationError, validator } from "@carbon/remix-validated-form";import type { PublicAttributes } from "~/modules/account";import { UserAttributesForm, getPublicAttributes } from "~/modules/account";import { employeeJobValidator, upsertEmployeeJob } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/person+/$personId.tsx b/apps/carbon/app/routes/x+/person+/$personId.tsxindex e0bd572a6e..5e32712a68 100644--- a/apps/carbon/app/routes/x+/person+/$personId.tsx+++ b/apps/carbon/app/routes/x+/person+/$personId.tsx@@ -11,7 +11,7 @@ import {PersonSidebar,getEmployeeSummary,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/person+/_layout.tsx b/apps/carbon/app/routes/x+/person+/_layout.tsxindex c783c540e9..e753a98c95 100644--- a/apps/carbon/app/routes/x+/person+/_layout.tsx+++ b/apps/carbon/app/routes/x+/person+/_layout.tsx@@ -1,7 +1,7 @@import { VStack } from "@carbon/react";import { type LoaderFunctionArgs, type MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.details.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.details.tsxindex c9def70389..da67ff00b1 100644--- a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.details.tsx+++ b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.details.tsx@@ -9,7 +9,7 @@ import {purchaseInvoiceValidator,upsertPurchaseInvoice,} from "~/modules/invoicing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { ListItem } from "~/types";import { getCustomFields, setCustomFields } from "~/utils/form";diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.$lineId.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.$lineId.tsxindex 00753ef509..bd3c286ea1 100644--- a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.$lineId.tsx+++ b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.$lineId.tsx@@ -9,7 +9,7 @@ import {purchaseInvoiceLineValidator,upsertPurchaseInvoiceLine,} from "~/modules/invoicing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.delete.$lineId.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.delete.$lineId.tsxindex 560e50062f..a9365b54dc 100644--- a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.delete.$lineId.tsx+++ b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.delete.$lineId.tsx@@ -6,7 +6,7 @@ import {deletePurchaseInvoiceLine,getPurchaseInvoiceLine,} from "~/modules/invoicing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.new.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.new.tsxindex a9bfdbbb64..a3c41444a6 100644--- a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.new.tsx+++ b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.new.tsx@@ -8,7 +8,7 @@ import {purchaseInvoiceLineValidator,upsertPurchaseInvoiceLine,} from "~/modules/invoicing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.tsxindex 7af8db20ed..57362827bf 100644--- a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.tsx+++ b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.lines.tsx@@ -6,7 +6,7 @@ import {purchaseInvoiceValidator,upsertPurchaseInvoice,} from "~/modules/invoicing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.post.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.post.tsxindex 5788f33e7e..890a2ba82f 100644--- a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.post.tsx+++ b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.post.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { triggerClient } from "~/lib/trigger.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.tsxindex 13fdc1725e..9146edee6f 100644--- a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.tsx+++ b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.tsx@@ -10,7 +10,7 @@ import {usePurchaseInvoiceTotals,} from "~/modules/invoicing";import { getLocationsList } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/_layout.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/_layout.tsxindex 839ec8f0fc..ea13dc941b 100644--- a/apps/carbon/app/routes/x+/purchase-invoice+/_layout.tsx+++ b/apps/carbon/app/routes/x+/purchase-invoice+/_layout.tsx@@ -2,7 +2,7 @@ import { VStack } from "@carbon/react";import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { getPaymentTermsList } from "~/modules/accounting";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/delete.$invoiceId.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/delete.$invoiceId.tsxindex 270a514e42..3eec091f67 100644--- a/apps/carbon/app/routes/x+/purchase-invoice+/delete.$invoiceId.tsx+++ b/apps/carbon/app/routes/x+/purchase-invoice+/delete.$invoiceId.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deletePurchaseInvoice } from "~/modules/invoicing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/new.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/new.tsxindex a77ea7dbc3..57b17e8a94 100644--- a/apps/carbon/app/routes/x+/purchase-invoice+/new.tsx+++ b/apps/carbon/app/routes/x+/purchase-invoice+/new.tsx@@ -11,7 +11,7 @@ import {} from "~/modules/invoicing";import { createPurchaseInvoiceFromPurchaseOrder } from "~/modules/invoicing/invoicing.server";import { getNextSequence, rollbackNextSequence } from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { ListItem } from "~/types";import { setCustomFields } from "~/utils/form";diff --git a/apps/carbon/app/routes/x+/purchase-order+/$orderId.delivery.tsx b/apps/carbon/app/routes/x+/purchase-order+/$orderId.delivery.tsxindex 78b843157f..686f7b6369 100644--- a/apps/carbon/app/routes/x+/purchase-order+/$orderId.delivery.tsx+++ b/apps/carbon/app/routes/x+/purchase-order+/$orderId.delivery.tsx@@ -12,7 +12,7 @@ import {purchaseOrderDeliveryValidator,upsertPurchaseOrderDelivery,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/purchase-order+/$orderId.details.tsx b/apps/carbon/app/routes/x+/purchase-order+/$orderId.details.tsxindex acd148bdf4..39551e81f9 100644--- a/apps/carbon/app/routes/x+/purchase-order+/$orderId.details.tsx+++ b/apps/carbon/app/routes/x+/purchase-order+/$orderId.details.tsx@@ -9,7 +9,7 @@ import {purchaseOrderValidator,upsertPurchaseOrder,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/purchase-order+/$orderId.lines.$lineId.tsx b/apps/carbon/app/routes/x+/purchase-order+/$orderId.lines.$lineId.tsxindex 0fff809dbb..9d9da79cc9 100644--- a/apps/carbon/app/routes/x+/purchase-order+/$orderId.lines.$lineId.tsx+++ b/apps/carbon/app/routes/x+/purchase-order+/$orderId.lines.$lineId.tsx@@ -9,7 +9,7 @@ import {purchaseOrderLineValidator,upsertPurchaseOrderLine,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/purchase-order+/$orderId.lines.delete.$lineId.tsx b/apps/carbon/app/routes/x+/purchase-order+/$orderId.lines.delete.$lineId.tsxindex 72ea56ce6f..7fb557e837 100644--- a/apps/carbon/app/routes/x+/purchase-order+/$orderId.lines.delete.$lineId.tsx+++ b/apps/carbon/app/routes/x+/purchase-order+/$orderId.lines.delete.$lineId.tsx@@ -6,7 +6,7 @@ import {deletePurchaseOrderLine,getPurchaseOrderLine,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/purchase-order+/$orderId.lines.new.tsx b/apps/carbon/app/routes/x+/purchase-order+/$orderId.lines.new.tsxindex 7e2a8e0aff..ec0f7ca7af 100644--- a/apps/carbon/app/routes/x+/purchase-order+/$orderId.lines.new.tsx+++ b/apps/carbon/app/routes/x+/purchase-order+/$orderId.lines.new.tsx@@ -8,7 +8,7 @@ import {purchaseOrderLineValidator,upsertPurchaseOrderLine,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/purchase-order+/$orderId.payment.tsx b/apps/carbon/app/routes/x+/purchase-order+/$orderId.payment.tsxindex 1f52d860d9..a971282d36 100644--- a/apps/carbon/app/routes/x+/purchase-order+/$orderId.payment.tsx+++ b/apps/carbon/app/routes/x+/purchase-order+/$orderId.payment.tsx@@ -9,7 +9,7 @@ import {purchaseOrderPaymentValidator,upsertPurchaseOrderPayment,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/purchase-order+/$orderId.release.tsx b/apps/carbon/app/routes/x+/purchase-order+/$orderId.release.tsxindex 70ac27c78d..dc786a1d7a 100644--- a/apps/carbon/app/routes/x+/purchase-order+/$orderId.release.tsx+++ b/apps/carbon/app/routes/x+/purchase-order+/$orderId.release.tsx@@ -15,7 +15,7 @@ import {import { getCompany } from "~/modules/settings";import { getUser } from "~/modules/users/users.server";import { loader as pdfLoader } from "~/routes/file+/purchase-order+/$orderId[.]pdf";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/purchase-order+/$orderId.tsx b/apps/carbon/app/routes/x+/purchase-order+/$orderId.tsxindex 158f308850..b438332eaa 100644--- a/apps/carbon/app/routes/x+/purchase-order+/$orderId.tsx+++ b/apps/carbon/app/routes/x+/purchase-order+/$orderId.tsx@@ -12,7 +12,7 @@ import {usePurchaseOrderTotals,} from "~/modules/purchasing";import { getLocationsList } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/purchase-order+/delete.$orderId.tsx b/apps/carbon/app/routes/x+/purchase-order+/delete.$orderId.tsxindex 800f7563fc..661a5151d2 100644--- a/apps/carbon/app/routes/x+/purchase-order+/delete.$orderId.tsx+++ b/apps/carbon/app/routes/x+/purchase-order+/delete.$orderId.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deletePurchaseOrder } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/purchase-order+/new.tsx b/apps/carbon/app/routes/x+/purchase-order+/new.tsxindex 0a8127c907..6a128f340c 100644--- a/apps/carbon/app/routes/x+/purchase-order+/new.tsx+++ b/apps/carbon/app/routes/x+/purchase-order+/new.tsx@@ -13,7 +13,7 @@ import {upsertPurchaseOrder,} from "~/modules/purchasing";import { getNextSequence, rollbackNextSequence } from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/purchasing+/orders.favorite.tsx b/apps/carbon/app/routes/x+/purchasing+/orders.favorite.tsxindex 3fefecf3af..ee4db11c85 100644--- a/apps/carbon/app/routes/x+/purchasing+/orders.favorite.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/orders.favorite.tsx@@ -1,7 +1,7 @@import { validationError, validator } from "@carbon/remix-validated-form";import { json, type ActionFunctionArgs } from "@remix-run/node";import { updatePurchaseOrderFavorite } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { favoriteSchema } from "~/types/validators";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/purchasing+/orders.tsx b/apps/carbon/app/routes/x+/purchasing+/orders.tsxindex cd31144735..9ed35f9c8b 100644--- a/apps/carbon/app/routes/x+/purchasing+/orders.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/orders.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { PurchaseOrdersTable, getPurchaseOrders } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/purchasing+/rfqs.favorite.tsx b/apps/carbon/app/routes/x+/purchasing+/rfqs.favorite.tsxindex 6ec19a28eb..2d8e7c0610 100644--- a/apps/carbon/app/routes/x+/purchasing+/rfqs.favorite.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/rfqs.favorite.tsx@@ -1,7 +1,7 @@import { validationError, validator } from "@carbon/remix-validated-form";import { json, type ActionFunctionArgs } from "@remix-run/node";import { updateRequestForQuoteFavorite } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { favoriteSchema } from "~/types/validators";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/purchasing+/rfqs.tsx b/apps/carbon/app/routes/x+/purchasing+/rfqs.tsxindex dc2caeb6b1..da31cce965 100644--- a/apps/carbon/app/routes/x+/purchasing+/rfqs.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/rfqs.tsx@@ -6,7 +6,7 @@ import {RequestForQuotesTable,getRequestsForQuotes,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.$supplierStatusId.tsx b/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.$supplierStatusId.tsxindex 4bb531aec7..8fb926eb08 100644--- a/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.$supplierStatusId.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.$supplierStatusId.tsx@@ -8,7 +8,7 @@ import {supplierStatusValidator,upsertSupplierStatus,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.delete.$supplierStatusId.tsx b/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.delete.$supplierStatusId.tsxindex 743080938a..b2e34b9dca 100644--- a/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.delete.$supplierStatusId.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.delete.$supplierStatusId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteSupplierStatus, getSupplierStatus } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { getParams, path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.new.tsx b/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.new.tsxindex e25ed65420..9926be066b 100644--- a/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.new.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.new.tsx@@ -7,7 +7,7 @@ import {supplierStatusValidator,upsertSupplierStatus,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.tsx b/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.tsxindex 2a3e8d47c5..22a1ffdbd9 100644--- a/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/supplier-statuses.tsx@@ -6,7 +6,7 @@ import {SupplierStatusesTable,getSupplierStatuses,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";import { getGenericQueryFilters } from "~/utils/query";diff --git a/apps/carbon/app/routes/x+/purchasing+/supplier-types.$supplierTypeId.tsx b/apps/carbon/app/routes/x+/purchasing+/supplier-types.$supplierTypeId.tsxindex 067cb1f271..b6f7246d4d 100644--- a/apps/carbon/app/routes/x+/purchasing+/supplier-types.$supplierTypeId.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/supplier-types.$supplierTypeId.tsx@@ -8,7 +8,7 @@ import {supplierTypeValidator,upsertSupplierType,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/purchasing+/supplier-types.delete.$supplierTypeId.tsx b/apps/carbon/app/routes/x+/purchasing+/supplier-types.delete.$supplierTypeId.tsxindex 94ecac070f..fef319e5fe 100644--- a/apps/carbon/app/routes/x+/purchasing+/supplier-types.delete.$supplierTypeId.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/supplier-types.delete.$supplierTypeId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteSupplierType, getSupplierType } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { getParams, path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/purchasing+/supplier-types.new.tsx b/apps/carbon/app/routes/x+/purchasing+/supplier-types.new.tsxindex 6654a6ca4e..07e319b8da 100644--- a/apps/carbon/app/routes/x+/purchasing+/supplier-types.new.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/supplier-types.new.tsx@@ -7,7 +7,7 @@ import {supplierTypeValidator,upsertSupplierType,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/purchasing+/supplier-types.tsx b/apps/carbon/app/routes/x+/purchasing+/supplier-types.tsxindex 82482f6c47..177ac50ad6 100644--- a/apps/carbon/app/routes/x+/purchasing+/supplier-types.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/supplier-types.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { SupplierTypesTable, getSupplierTypes } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";import { getGenericQueryFilters } from "~/utils/query";diff --git a/apps/carbon/app/routes/x+/purchasing+/suppliers.tsx b/apps/carbon/app/routes/x+/purchasing+/suppliers.tsxindex 3dd9876c47..d57ba89c1c 100644--- a/apps/carbon/app/routes/x+/purchasing+/suppliers.tsx+++ b/apps/carbon/app/routes/x+/purchasing+/suppliers.tsx@@ -8,7 +8,7 @@ import {getSupplierTypes,getSuppliers,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/quote+/$id.convert-to-order.tsx b/apps/carbon/app/routes/x+/quote+/$id.convert-to-order.tsxindex ac056e63bd..6c1dd64504 100644--- a/apps/carbon/app/routes/x+/quote+/$id.convert-to-order.tsx+++ b/apps/carbon/app/routes/x+/quote+/$id.convert-to-order.tsx@@ -8,7 +8,7 @@ import {insertSalesOrderLines,} from "~/modules/sales";import { getNextSequence, rollbackNextSequence } from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/quote+/$id.details.tsx b/apps/carbon/app/routes/x+/quote+/$id.details.tsxindex 42478de891..eff37c2ba3 100644--- a/apps/carbon/app/routes/x+/quote+/$id.details.tsx+++ b/apps/carbon/app/routes/x+/quote+/$id.details.tsx@@ -10,7 +10,7 @@ import {quotationValidator,upsertQuote,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.assembly.$assemblyId.delete.tsx b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.assembly.$assemblyId.delete.tsxindex 9c76c97a12..2a702f9053 100644--- a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.assembly.$assemblyId.delete.tsx+++ b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.assembly.$assemblyId.delete.tsx@@ -5,7 +5,7 @@ import { ConfirmDelete } from "~/components/Modals";import { useRouteData } from "~/hooks";import type { QuotationAssembly } from "~/modules/sales";import { deleteQuoteAssembly } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.assembly.$assemblyId.tsx b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.assembly.$assemblyId.tsxindex 0e31f5b309..0f984181c0 100644--- a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.assembly.$assemblyId.tsx+++ b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.assembly.$assemblyId.tsx@@ -8,7 +8,7 @@ import {quotationAssemblyValidator,upsertQuoteAssembly,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.assembly.new.tsx b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.assembly.new.tsxindex a5af7c70a5..1ff9593a54 100644--- a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.assembly.new.tsx+++ b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.assembly.new.tsx@@ -7,7 +7,7 @@ import {quotationAssemblyValidator,upsertQuoteAssembly,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.details.delete.tsx b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.details.delete.tsxindex 8d0551c7fa..3040e56b1c 100644--- a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.details.delete.tsx+++ b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.details.delete.tsx@@ -5,7 +5,7 @@ import { ConfirmDelete } from "~/components/Modals";import { useRouteData } from "~/hooks";import type { QuotationLine } from "~/modules/sales";import { deleteQuoteLine } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.details.tsx b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.details.tsxindex f902852000..5f2124f72d 100644--- a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.details.tsx+++ b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.details.tsx@@ -12,7 +12,7 @@ import {updateQuoteLinePrice,upsertQuoteLine,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.$operationId.delete.tsx b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.$operationId.delete.tsxindex 6339dbecd7..02c31b81b6 100644--- a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.$operationId.delete.tsx+++ b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.$operationId.delete.tsx@@ -5,7 +5,7 @@ import { ConfirmDelete } from "~/components/Modals";import { useRouteData } from "~/hooks";import type { QuotationOperation } from "~/modules/sales";import { deleteQuoteOperation } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.$operationId.material.new.tsx b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.$operationId.material.new.tsxindex 0cc8f62c33..c35563b978 100644--- a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.$operationId.material.new.tsx+++ b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.$operationId.material.new.tsx@@ -7,7 +7,7 @@ import {quotationMaterialValidator,upsertQuoteMaterial,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.$operationId.tsx b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.$operationId.tsxindex 736f8963a9..0944a5404b 100644--- a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.$operationId.tsx+++ b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.$operationId.tsx@@ -10,7 +10,7 @@ import {quotationOperationValidator,upsertQuoteOperation,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.new.tsx b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.new.tsxindex fbf7da21ab..fd5fe10f37 100644--- a/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.new.tsx+++ b/apps/carbon/app/routes/x+/quote+/$id.lines.$lineId.operation.new.tsx@@ -8,7 +8,7 @@ import {quotationOperationValidator,upsertQuoteOperation,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/quote+/$id.lines.delete.$lineId.tsx b/apps/carbon/app/routes/x+/quote+/$id.lines.delete.$lineId.tsxindex d0f95383f4..74fdcdf236 100644--- a/apps/carbon/app/routes/x+/quote+/$id.lines.delete.$lineId.tsx+++ b/apps/carbon/app/routes/x+/quote+/$id.lines.delete.$lineId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteQuoteLine, getQuoteLine } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/quote+/$id.new.tsx b/apps/carbon/app/routes/x+/quote+/$id.new.tsxindex ee67bd2554..3cfe930c54 100644--- a/apps/carbon/app/routes/x+/quote+/$id.new.tsx+++ b/apps/carbon/app/routes/x+/quote+/$id.new.tsx@@ -8,7 +8,7 @@ import {quotationLineValidator,upsertQuoteLine,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/quote+/$id.release.tsx b/apps/carbon/app/routes/x+/quote+/$id.release.tsxindex 46da290f87..5732a55d77 100644--- a/apps/carbon/app/routes/x+/quote+/$id.release.tsx+++ b/apps/carbon/app/routes/x+/quote+/$id.release.tsx@@ -15,7 +15,7 @@ import {import { getCompany } from "~/modules/settings";import { getUser } from "~/modules/users/users.server";import { loader as pdfLoader } from "~/routes/file+/quote+/$id[.]pdf";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/quote+/$id.tsx b/apps/carbon/app/routes/x+/quote+/$id.tsxindex d0312874b9..38959fe3ed 100644--- a/apps/carbon/app/routes/x+/quote+/$id.tsx+++ b/apps/carbon/app/routes/x+/quote+/$id.tsx@@ -34,7 +34,7 @@ import {import QuotationReleaseModal from "~/modules/sales/ui/Quotation/QuotationReleaseModal";import ConvertToSalesOrderModal from "~/modules/sales/ui/Quotation/ConvertToSalesOrderModal";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { useCustomers } from "~/stores";import type { Handle } from "~/utils/handle";diff --git a/apps/carbon/app/routes/x+/quote+/delete.$id.tsx b/apps/carbon/app/routes/x+/quote+/delete.$id.tsxindex d333321518..f384192ea8 100644--- a/apps/carbon/app/routes/x+/quote+/delete.$id.tsx+++ b/apps/carbon/app/routes/x+/quote+/delete.$id.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteQuote } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/quote+/new.tsx b/apps/carbon/app/routes/x+/quote+/new.tsxindex 03a2e3972d..e67e071410 100644--- a/apps/carbon/app/routes/x+/quote+/new.tsx+++ b/apps/carbon/app/routes/x+/quote+/new.tsx@@ -8,7 +8,7 @@ import {upsertQuote,} from "~/modules/sales";import { getNextSequence, rollbackNextSequence } from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/receipt+/$receiptId.details.tsx b/apps/carbon/app/routes/x+/receipt+/$receiptId.details.tsxindex b2b1002375..e0b66f5fa8 100644--- a/apps/carbon/app/routes/x+/receipt+/$receiptId.details.tsx+++ b/apps/carbon/app/routes/x+/receipt+/$receiptId.details.tsx@@ -12,7 +12,7 @@ import {upsertReceipt,} from "~/modules/inventory";import type { Note } from "~/modules/shared";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/receipt+/$receiptId.post.tsx b/apps/carbon/app/routes/x+/receipt+/$receiptId.post.tsxindex 5087d130f4..fd6f944b20 100644--- a/apps/carbon/app/routes/x+/receipt+/$receiptId.post.tsx+++ b/apps/carbon/app/routes/x+/receipt+/$receiptId.post.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { triggerClient } from "~/lib/trigger.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/receipt+/$receiptId.tsx b/apps/carbon/app/routes/x+/receipt+/$receiptId.tsxindex 3cd2f5eed6..d2612f943c 100644--- a/apps/carbon/app/routes/x+/receipt+/$receiptId.tsx+++ b/apps/carbon/app/routes/x+/receipt+/$receiptId.tsx@@ -8,7 +8,7 @@ import {getReceiptLines,} from "~/modules/inventory";import { getNotes } from "~/modules/shared";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/receipt+/_layout.tsx b/apps/carbon/app/routes/x+/receipt+/_layout.tsxindex 98977032c0..aead98e339 100644--- a/apps/carbon/app/routes/x+/receipt+/_layout.tsx+++ b/apps/carbon/app/routes/x+/receipt+/_layout.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { getUnitOfMeasuresList } from "~/modules/parts";import { getLocationsList } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/receipt+/delete.$receiptId.tsx b/apps/carbon/app/routes/x+/receipt+/delete.$receiptId.tsxindex 39b9e3217e..f27492a2dc 100644--- a/apps/carbon/app/routes/x+/receipt+/delete.$receiptId.tsx+++ b/apps/carbon/app/routes/x+/receipt+/delete.$receiptId.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteReceipt, getReceipt } from "~/modules/inventory";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/receipt+/new.tsx b/apps/carbon/app/routes/x+/receipt+/new.tsxindex 6997025c27..85587aef75 100644--- a/apps/carbon/app/routes/x+/receipt+/new.tsx+++ b/apps/carbon/app/routes/x+/receipt+/new.tsx@@ -2,7 +2,7 @@ import { redirect, type LoaderFunctionArgs } from "@remix-run/node";import { getSupabaseServiceRole } from "~/lib/supabase";import type { ReceiptSourceDocument } from "~/modules/inventory";import { getUserDefaults } from "~/modules/users/users.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/resources+/abilities.delete.$abilityId.tsx b/apps/carbon/app/routes/x+/resources+/abilities.delete.$abilityId.tsxindex 1f9e59e8b3..de58cbbb01 100644--- a/apps/carbon/app/routes/x+/resources+/abilities.delete.$abilityId.tsx+++ b/apps/carbon/app/routes/x+/resources+/abilities.delete.$abilityId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteAbility, getAbility } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/abilities.new.tsx b/apps/carbon/app/routes/x+/resources+/abilities.new.tsxindex f119a58ff4..72f2552eec 100644--- a/apps/carbon/app/routes/x+/resources+/abilities.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/abilities.new.tsx@@ -8,7 +8,7 @@ import {insertAbility,insertEmployeeAbilities,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/abilities.tsx b/apps/carbon/app/routes/x+/resources+/abilities.tsxindex f8c2ed879e..7ecf93dfea 100644--- a/apps/carbon/app/routes/x+/resources+/abilities.tsx+++ b/apps/carbon/app/routes/x+/resources+/abilities.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { AbilitiesTable, getAbilities } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/ability.$abilityId.employee.$id.tsx b/apps/carbon/app/routes/x+/resources+/ability.$abilityId.employee.$id.tsxindex 2ca81b7b98..7a9b846855 100644--- a/apps/carbon/app/routes/x+/resources+/ability.$abilityId.employee.$id.tsx+++ b/apps/carbon/app/routes/x+/resources+/ability.$abilityId.employee.$id.tsx@@ -12,7 +12,7 @@ import {upsertEmployeeAbility,} from "~/modules/resources";import { EmployeeAbilityForm } from "~/modules/resources/ui/Abilities";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/resources+/ability.$abilityId.employee.delete.$id.tsx b/apps/carbon/app/routes/x+/resources+/ability.$abilityId.employee.delete.$id.tsxindex a080fce66d..5d13f53baa 100644--- a/apps/carbon/app/routes/x+/resources+/ability.$abilityId.employee.delete.$id.tsx+++ b/apps/carbon/app/routes/x+/resources+/ability.$abilityId.employee.delete.$id.tsx@@ -5,7 +5,7 @@ import { ConfirmDelete } from "~/components/Modals";import { useRouteData } from "~/hooks";import type { Ability } from "~/modules/resources";import { deleteEmployeeAbility } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/resources+/ability.$abilityId.employee.new.tsx b/apps/carbon/app/routes/x+/resources+/ability.$abilityId.employee.new.tsxindex f2b45e2a15..df05e4496b 100644--- a/apps/carbon/app/routes/x+/resources+/ability.$abilityId.employee.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/ability.$abilityId.employee.new.tsx@@ -10,7 +10,7 @@ import {upsertEmployeeAbility,} from "~/modules/resources";import { EmployeeAbilityForm } from "~/modules/resources/ui/Abilities";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/resources+/ability.$abilityId.tsx b/apps/carbon/app/routes/x+/resources+/ability.$abilityId.tsxindex 8142428632..eb265dbc1d 100644--- a/apps/carbon/app/routes/x+/resources+/ability.$abilityId.tsx+++ b/apps/carbon/app/routes/x+/resources+/ability.$abilityId.tsx@@ -33,7 +33,7 @@ import {getAbility,updateAbility,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/attribute.$attributeId.tsx b/apps/carbon/app/routes/x+/resources+/attribute.$attributeId.tsxindex 670f15c7f9..a0070a23ae 100644--- a/apps/carbon/app/routes/x+/resources+/attribute.$attributeId.tsx+++ b/apps/carbon/app/routes/x+/resources+/attribute.$attributeId.tsx@@ -2,7 +2,7 @@ import { validationError, validator } from "@carbon/remix-validated-form";import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { attributeValidator, updateAttribute } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/attribute.delete.$attributeId.tsx b/apps/carbon/app/routes/x+/resources+/attribute.delete.$attributeId.tsxindex 906967ffd1..667861e563 100644--- a/apps/carbon/app/routes/x+/resources+/attribute.delete.$attributeId.tsx+++ b/apps/carbon/app/routes/x+/resources+/attribute.delete.$attributeId.tsx@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteAttribute } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/resources+/attribute.new.tsx b/apps/carbon/app/routes/x+/resources+/attribute.new.tsxindex ba86b16259..62f58b43e1 100644--- a/apps/carbon/app/routes/x+/resources+/attribute.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/attribute.new.tsx@@ -2,7 +2,7 @@ import { validationError, validator } from "@carbon/remix-validated-form";import type { ActionFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { attributeValidator, insertAttribute } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/attributes.$categoryId.tsx b/apps/carbon/app/routes/x+/resources+/attributes.$categoryId.tsxindex f0b06bd600..c8d18e0cce 100644--- a/apps/carbon/app/routes/x+/resources+/attributes.$categoryId.tsx+++ b/apps/carbon/app/routes/x+/resources+/attributes.$categoryId.tsx@@ -8,7 +8,7 @@ import {getAttributeCategory,updateAttributeCategory,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/attributes.delete.$categoryId.tsx b/apps/carbon/app/routes/x+/resources+/attributes.delete.$categoryId.tsxindex 5ec8c5a06b..08588f1b1f 100644--- a/apps/carbon/app/routes/x+/resources+/attributes.delete.$categoryId.tsx+++ b/apps/carbon/app/routes/x+/resources+/attributes.delete.$categoryId.tsx@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteAttributeCategory } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/resources+/attributes.list.$categoryId.$attributeId.tsx b/apps/carbon/app/routes/x+/resources+/attributes.list.$categoryId.$attributeId.tsxindex 5eb4326e6b..09753a1759 100644--- a/apps/carbon/app/routes/x+/resources+/attributes.list.$categoryId.$attributeId.tsx+++ b/apps/carbon/app/routes/x+/resources+/attributes.list.$categoryId.$attributeId.tsx@@ -4,7 +4,7 @@ import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { useRouteData } from "~/hooks";import type { AttributeDataType } from "~/modules/resources";import { AttributeForm, getAttribute } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/attributes.list.$categoryId.tsx b/apps/carbon/app/routes/x+/resources+/attributes.list.$categoryId.tsxindex 5155925a23..e572dd2664 100644--- a/apps/carbon/app/routes/x+/resources+/attributes.list.$categoryId.tsx+++ b/apps/carbon/app/routes/x+/resources+/attributes.list.$categoryId.tsx@@ -7,7 +7,7 @@ import {getAttributeCategory,updateAttributeSortOrder,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/attributes.new.tsx b/apps/carbon/app/routes/x+/resources+/attributes.new.tsxindex ecef36f7ec..bb384f3b11 100644--- a/apps/carbon/app/routes/x+/resources+/attributes.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/attributes.new.tsx@@ -7,7 +7,7 @@ import {attributeCategoryValidator,insertAttributeCategory,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/attributes.tsx b/apps/carbon/app/routes/x+/resources+/attributes.tsxindex a2c423e66e..c689916e47 100644--- a/apps/carbon/app/routes/x+/resources+/attributes.tsx+++ b/apps/carbon/app/routes/x+/resources+/attributes.tsx@@ -7,7 +7,7 @@ import {getAttributeCategories,getAttributeDataTypes,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/contractors.$supplierContactId.tsx b/apps/carbon/app/routes/x+/resources+/contractors.$supplierContactId.tsxindex 3378ab3ee3..3f697f30de 100644--- a/apps/carbon/app/routes/x+/resources+/contractors.$supplierContactId.tsx+++ b/apps/carbon/app/routes/x+/resources+/contractors.$supplierContactId.tsx@@ -8,7 +8,7 @@ import {getContractor,upsertContractor,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/contractors.delete.$supplierId.tsx b/apps/carbon/app/routes/x+/resources+/contractors.delete.$supplierId.tsxindex 9b5e80a3f0..024f33d34a 100644--- a/apps/carbon/app/routes/x+/resources+/contractors.delete.$supplierId.tsx+++ b/apps/carbon/app/routes/x+/resources+/contractors.delete.$supplierId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteContractor, getContractor } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/contractors.new.tsx b/apps/carbon/app/routes/x+/resources+/contractors.new.tsxindex c2e9e958b9..f594d95ce2 100644--- a/apps/carbon/app/routes/x+/resources+/contractors.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/contractors.new.tsx@@ -7,7 +7,7 @@ import {contractorValidator,upsertContractor,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/contractors.tsx b/apps/carbon/app/routes/x+/resources+/contractors.tsxindex aa86f2e480..f4dbf6817d 100644--- a/apps/carbon/app/routes/x+/resources+/contractors.tsx+++ b/apps/carbon/app/routes/x+/resources+/contractors.tsx@@ -7,7 +7,7 @@ import {getAbilitiesList,getContractors,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/departments.$departmentId.tsx b/apps/carbon/app/routes/x+/resources+/departments.$departmentId.tsxindex bc232dbf2c..276ef79569 100644--- a/apps/carbon/app/routes/x+/resources+/departments.$departmentId.tsx+++ b/apps/carbon/app/routes/x+/resources+/departments.$departmentId.tsx@@ -8,7 +8,7 @@ import {getDepartment,upsertDepartment,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/departments.delete.$departmentId.tsx b/apps/carbon/app/routes/x+/resources+/departments.delete.$departmentId.tsxindex 6880c931b7..f3ebdbe098 100644--- a/apps/carbon/app/routes/x+/resources+/departments.delete.$departmentId.tsx+++ b/apps/carbon/app/routes/x+/resources+/departments.delete.$departmentId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteDepartment, getDepartment } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/departments.new.tsx b/apps/carbon/app/routes/x+/resources+/departments.new.tsxindex f43b1f801e..f880b59377 100644--- a/apps/carbon/app/routes/x+/resources+/departments.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/departments.new.tsx@@ -7,7 +7,7 @@ import {departmentValidator,upsertDepartment,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/departments.tsx b/apps/carbon/app/routes/x+/resources+/departments.tsxindex bb151f0da3..e84b9dd045 100644--- a/apps/carbon/app/routes/x+/resources+/departments.tsx+++ b/apps/carbon/app/routes/x+/resources+/departments.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { DepartmentsTable, getDepartments } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/equipment.$typeId.tsx b/apps/carbon/app/routes/x+/resources+/equipment.$typeId.tsxindex 7c145a7f14..df75b0cb4f 100644--- a/apps/carbon/app/routes/x+/resources+/equipment.$typeId.tsx+++ b/apps/carbon/app/routes/x+/resources+/equipment.$typeId.tsx@@ -8,7 +8,7 @@ import {getEquipmentType,upsertEquipmentType,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/equipment.delete.$typeId.tsx b/apps/carbon/app/routes/x+/resources+/equipment.delete.$typeId.tsxindex 8d0c6e6d2a..2b5c978f1c 100644--- a/apps/carbon/app/routes/x+/resources+/equipment.delete.$typeId.tsx+++ b/apps/carbon/app/routes/x+/resources+/equipment.delete.$typeId.tsx@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteEquipmentType } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/resources+/equipment.list.$typeId.$equipmentId.tsx b/apps/carbon/app/routes/x+/resources+/equipment.list.$typeId.$equipmentId.tsxindex 2dc43b662d..928c618a42 100644--- a/apps/carbon/app/routes/x+/resources+/equipment.list.$typeId.$equipmentId.tsx+++ b/apps/carbon/app/routes/x+/resources+/equipment.list.$typeId.$equipmentId.tsx@@ -4,7 +4,7 @@ import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { useRouteData } from "~/hooks";import type { EquipmentType } from "~/modules/resources";import { EquipmentForm, getEquipment } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields } from "~/utils/form";import { notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/equipment.list.$typeId.tsx b/apps/carbon/app/routes/x+/resources+/equipment.list.$typeId.tsxindex 75a6846134..976fedca48 100644--- a/apps/carbon/app/routes/x+/resources+/equipment.list.$typeId.tsx+++ b/apps/carbon/app/routes/x+/resources+/equipment.list.$typeId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData, useNavigate } from "@remix-run/react";import { useUrlParams } from "~/hooks";import { EquipmentTypeDetail, getEquipmentType } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/equipment.new.tsx b/apps/carbon/app/routes/x+/resources+/equipment.new.tsxindex acbe181080..47053ed385 100644--- a/apps/carbon/app/routes/x+/resources+/equipment.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/equipment.new.tsx@@ -7,7 +7,7 @@ import {equipmentTypeValidator,upsertEquipmentType,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/equipment.tsx b/apps/carbon/app/routes/x+/resources+/equipment.tsxindex ce0a702f75..c8b82cf27f 100644--- a/apps/carbon/app/routes/x+/resources+/equipment.tsx+++ b/apps/carbon/app/routes/x+/resources+/equipment.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { EquipmentTypesTable, getEquipmentTypes } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/equipment.unit.$equipmentId.tsx b/apps/carbon/app/routes/x+/resources+/equipment.unit.$equipmentId.tsxindex 5d88994ccf..87640547f8 100644--- a/apps/carbon/app/routes/x+/resources+/equipment.unit.$equipmentId.tsx+++ b/apps/carbon/app/routes/x+/resources+/equipment.unit.$equipmentId.tsx@@ -2,7 +2,7 @@ import { validationError, validator } from "@carbon/remix-validated-form";import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { equipmentValidator, upsertEquipment } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/equipment.unit.delete.$equipmentId.tsx b/apps/carbon/app/routes/x+/resources+/equipment.unit.delete.$equipmentId.tsxindex a25abbba66..a3073850dd 100644--- a/apps/carbon/app/routes/x+/resources+/equipment.unit.delete.$equipmentId.tsx+++ b/apps/carbon/app/routes/x+/resources+/equipment.unit.delete.$equipmentId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteEquipment, getEquipment } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/resources+/equipment.unit.new.tsx b/apps/carbon/app/routes/x+/resources+/equipment.unit.new.tsxindex 75d83bdbf2..917fdb1fd1 100644--- a/apps/carbon/app/routes/x+/resources+/equipment.unit.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/equipment.unit.new.tsx@@ -2,7 +2,7 @@ import { validationError, validator } from "@carbon/remix-validated-form";import type { ActionFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { equipmentValidator, upsertEquipment } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/holidays.$holidayId.tsx b/apps/carbon/app/routes/x+/resources+/holidays.$holidayId.tsxindex dfafb69e5f..5303d0ab84 100644--- a/apps/carbon/app/routes/x+/resources+/holidays.$holidayId.tsx+++ b/apps/carbon/app/routes/x+/resources+/holidays.$holidayId.tsx@@ -8,7 +8,7 @@ import {holidayValidator,upsertHoliday,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/holidays.delete.$holidayId.tsx b/apps/carbon/app/routes/x+/resources+/holidays.delete.$holidayId.tsxindex 4a3e65bf56..89928ebdbe 100644--- a/apps/carbon/app/routes/x+/resources+/holidays.delete.$holidayId.tsx+++ b/apps/carbon/app/routes/x+/resources+/holidays.delete.$holidayId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteHoliday, getHoliday } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/holidays.new.tsx b/apps/carbon/app/routes/x+/resources+/holidays.new.tsxindex b771625544..900fc580e2 100644--- a/apps/carbon/app/routes/x+/resources+/holidays.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/holidays.new.tsx@@ -6,7 +6,7 @@ import {holidayValidator,upsertHoliday,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/holidays.tsx b/apps/carbon/app/routes/x+/resources+/holidays.tsxindex df8b1767f7..2a5320ef4f 100644--- a/apps/carbon/app/routes/x+/resources+/holidays.tsx+++ b/apps/carbon/app/routes/x+/resources+/holidays.tsx@@ -7,7 +7,7 @@ import {getHolidayYears,getHolidays,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/locations.$locationId.tsx b/apps/carbon/app/routes/x+/resources+/locations.$locationId.tsxindex 0530ba0679..427b9f9363 100644--- a/apps/carbon/app/routes/x+/resources+/locations.$locationId.tsx+++ b/apps/carbon/app/routes/x+/resources+/locations.$locationId.tsx@@ -9,7 +9,7 @@ import {locationValidator,upsertLocation,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/locations.delete.$locationId.tsx b/apps/carbon/app/routes/x+/resources+/locations.delete.$locationId.tsxindex 72972bb97e..234ccf091d 100644--- a/apps/carbon/app/routes/x+/resources+/locations.delete.$locationId.tsx+++ b/apps/carbon/app/routes/x+/resources+/locations.delete.$locationId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteLocation, getLocation } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/locations.new.tsx b/apps/carbon/app/routes/x+/resources+/locations.new.tsxindex 2124222877..4d9152cce3 100644--- a/apps/carbon/app/routes/x+/resources+/locations.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/locations.new.tsx@@ -8,7 +8,7 @@ import {locationValidator,upsertLocation,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/locations.tsx b/apps/carbon/app/routes/x+/resources+/locations.tsxindex 339827ae31..ffbd6e7b45 100644--- a/apps/carbon/app/routes/x+/resources+/locations.tsx+++ b/apps/carbon/app/routes/x+/resources+/locations.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { LocationsTable, getLocations } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/partners.$supplierLocationId.$abilityId.tsx b/apps/carbon/app/routes/x+/resources+/partners.$supplierLocationId.$abilityId.tsxindex 32ab76bdc0..42da7573d4 100644--- a/apps/carbon/app/routes/x+/resources+/partners.$supplierLocationId.$abilityId.tsx+++ b/apps/carbon/app/routes/x+/resources+/partners.$supplierLocationId.$abilityId.tsx@@ -8,7 +8,7 @@ import {partnerValidator,upsertPartner,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/partners.delete.$supplierId.tsx b/apps/carbon/app/routes/x+/resources+/partners.delete.$supplierId.tsxindex 40a229783b..5ed71bf803 100644--- a/apps/carbon/app/routes/x+/resources+/partners.delete.$supplierId.tsx+++ b/apps/carbon/app/routes/x+/resources+/partners.delete.$supplierId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deletePartner, getPartnerBySupplierId } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/partners.new.tsx b/apps/carbon/app/routes/x+/resources+/partners.new.tsxindex d8adfc88e7..5fd90c4670 100644--- a/apps/carbon/app/routes/x+/resources+/partners.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/partners.new.tsx@@ -7,7 +7,7 @@ import {partnerValidator,upsertPartner,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/partners.tsx b/apps/carbon/app/routes/x+/resources+/partners.tsxindex 77a664ae4a..93d8d28689 100644--- a/apps/carbon/app/routes/x+/resources+/partners.tsx+++ b/apps/carbon/app/routes/x+/resources+/partners.tsx@@ -7,7 +7,7 @@ import {getAbilitiesList,getPartners,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/people.tsx b/apps/carbon/app/routes/x+/resources+/people.tsxindex ac7df1e8ff..cf2395e688 100644--- a/apps/carbon/app/routes/x+/resources+/people.tsx+++ b/apps/carbon/app/routes/x+/resources+/people.tsx@@ -8,7 +8,7 @@ import {getPeople,} from "~/modules/resources";import { getEmployeeTypes } from "~/modules/users";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/shifts.$shiftId.tsx b/apps/carbon/app/routes/x+/resources+/shifts.$shiftId.tsxindex 0db7c075cf..ce72663c39 100644--- a/apps/carbon/app/routes/x+/resources+/shifts.$shiftId.tsx+++ b/apps/carbon/app/routes/x+/resources+/shifts.$shiftId.tsx@@ -8,7 +8,7 @@ import {shiftValidator,upsertShift,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/shifts.delete.$shiftId.tsx b/apps/carbon/app/routes/x+/resources+/shifts.delete.$shiftId.tsxindex 69f9d1ba2b..bb283d1b6b 100644--- a/apps/carbon/app/routes/x+/resources+/shifts.delete.$shiftId.tsx+++ b/apps/carbon/app/routes/x+/resources+/shifts.delete.$shiftId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteShift, getShift } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/shifts.new.tsx b/apps/carbon/app/routes/x+/resources+/shifts.new.tsxindex 3a5b178a2f..4b968c65c6 100644--- a/apps/carbon/app/routes/x+/resources+/shifts.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/shifts.new.tsx@@ -2,7 +2,7 @@ import { validationError, validator } from "@carbon/remix-validated-form";import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { ShiftForm, shiftValidator, upsertShift } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/shifts.tsx b/apps/carbon/app/routes/x+/resources+/shifts.tsxindex a6879c8cc2..e9ce5b59bb 100644--- a/apps/carbon/app/routes/x+/resources+/shifts.tsx+++ b/apps/carbon/app/routes/x+/resources+/shifts.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { ShiftsTable, getLocations, getShifts } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/work-cells.$typeId.tsx b/apps/carbon/app/routes/x+/resources+/work-cells.$typeId.tsxindex fe76d6c337..f122206819 100644--- a/apps/carbon/app/routes/x+/resources+/work-cells.$typeId.tsx+++ b/apps/carbon/app/routes/x+/resources+/work-cells.$typeId.tsx@@ -8,7 +8,7 @@ import {upsertWorkCellType,workCellTypeValidator,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/work-cells.cell.$workCellId.tsx b/apps/carbon/app/routes/x+/resources+/work-cells.cell.$workCellId.tsxindex ea43b9914c..47635b74a1 100644--- a/apps/carbon/app/routes/x+/resources+/work-cells.cell.$workCellId.tsx+++ b/apps/carbon/app/routes/x+/resources+/work-cells.cell.$workCellId.tsx@@ -2,7 +2,7 @@ import { validationError, validator } from "@carbon/remix-validated-form";import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { upsertWorkCell, workCellValidator } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/work-cells.cell.delete.$workCellId.tsx b/apps/carbon/app/routes/x+/resources+/work-cells.cell.delete.$workCellId.tsxindex 2792e127cf..f2af9e63fc 100644--- a/apps/carbon/app/routes/x+/resources+/work-cells.cell.delete.$workCellId.tsx+++ b/apps/carbon/app/routes/x+/resources+/work-cells.cell.delete.$workCellId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteWorkCell, getWorkCell } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/resources+/work-cells.cell.new.tsx b/apps/carbon/app/routes/x+/resources+/work-cells.cell.new.tsxindex 77dd8a2a75..dc38a10b45 100644--- a/apps/carbon/app/routes/x+/resources+/work-cells.cell.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/work-cells.cell.new.tsx@@ -2,7 +2,7 @@ import { validationError, validator } from "@carbon/remix-validated-form";import type { ActionFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { upsertWorkCell, workCellValidator } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/work-cells.delete.$typeId.tsx b/apps/carbon/app/routes/x+/resources+/work-cells.delete.$typeId.tsxindex 18686c7cee..ad8bb7de6c 100644--- a/apps/carbon/app/routes/x+/resources+/work-cells.delete.$typeId.tsx+++ b/apps/carbon/app/routes/x+/resources+/work-cells.delete.$typeId.tsx@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteWorkCellType } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/resources+/work-cells.list.$typeId.$workCellId.tsx b/apps/carbon/app/routes/x+/resources+/work-cells.list.$typeId.$workCellId.tsxindex 37687fcb60..bc72e6c3e6 100644--- a/apps/carbon/app/routes/x+/resources+/work-cells.list.$typeId.$workCellId.tsx+++ b/apps/carbon/app/routes/x+/resources+/work-cells.list.$typeId.$workCellId.tsx@@ -4,7 +4,7 @@ import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { useRouteData } from "~/hooks";import type { WorkCellType } from "~/modules/resources";import { WorkCellForm, getWorkCell } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields } from "~/utils/form";import { notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/work-cells.list.$typeId.tsx b/apps/carbon/app/routes/x+/resources+/work-cells.list.$typeId.tsxindex 5203ee1c62..eaf0c7dc93 100644--- a/apps/carbon/app/routes/x+/resources+/work-cells.list.$typeId.tsx+++ b/apps/carbon/app/routes/x+/resources+/work-cells.list.$typeId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData, useNavigate } from "@remix-run/react";import { useUrlParams } from "~/hooks";import { WorkCellTypeDetail, getWorkCellType } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/resources+/work-cells.new.tsx b/apps/carbon/app/routes/x+/resources+/work-cells.new.tsxindex 25508a3c16..a7f77a5aa1 100644--- a/apps/carbon/app/routes/x+/resources+/work-cells.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/work-cells.new.tsx@@ -7,7 +7,7 @@ import {upsertWorkCellType,workCellTypeValidator,} from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/resources+/work-cells.tsx b/apps/carbon/app/routes/x+/resources+/work-cells.tsxindex 2877f9ec3b..422364cb86 100644--- a/apps/carbon/app/routes/x+/resources+/work-cells.tsx+++ b/apps/carbon/app/routes/x+/resources+/work-cells.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { WorkCellTypesTable, getWorkCellTypes } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/rfq+/delete.$id.tsx b/apps/carbon/app/routes/x+/rfq+/delete.$id.tsxindex 16a4a61fb6..00b5d08947 100644--- a/apps/carbon/app/routes/x+/rfq+/delete.$id.tsx+++ b/apps/carbon/app/routes/x+/rfq+/delete.$id.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteRequestForQuote } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/rfq+/new.tsx b/apps/carbon/app/routes/x+/rfq+/new.tsxindex cdfc12dff2..e3b761feeb 100644--- a/apps/carbon/app/routes/x+/rfq+/new.tsx+++ b/apps/carbon/app/routes/x+/rfq+/new.tsx@@ -7,7 +7,7 @@ import {upsertRequestForQuote,} from "~/modules/purchasing";import { getNextSequence, rollbackNextSequence } from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/sales+/customer-statuses.$customerStatusId.tsx b/apps/carbon/app/routes/x+/sales+/customer-statuses.$customerStatusId.tsxindex 0c2ffea6aa..94c9b91d52 100644--- a/apps/carbon/app/routes/x+/sales+/customer-statuses.$customerStatusId.tsx+++ b/apps/carbon/app/routes/x+/sales+/customer-statuses.$customerStatusId.tsx@@ -8,7 +8,7 @@ import {getCustomerStatus,upsertCustomerStatus,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/sales+/customer-statuses.delete.$customerStatusId.tsx b/apps/carbon/app/routes/x+/sales+/customer-statuses.delete.$customerStatusId.tsxindex 0e94841a94..21b6facb16 100644--- a/apps/carbon/app/routes/x+/sales+/customer-statuses.delete.$customerStatusId.tsx+++ b/apps/carbon/app/routes/x+/sales+/customer-statuses.delete.$customerStatusId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteCustomerStatus, getCustomerStatus } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { getParams, path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/sales+/customer-statuses.new.tsx b/apps/carbon/app/routes/x+/sales+/customer-statuses.new.tsxindex 46db01b3f8..42930ab717 100644--- a/apps/carbon/app/routes/x+/sales+/customer-statuses.new.tsx+++ b/apps/carbon/app/routes/x+/sales+/customer-statuses.new.tsx@@ -7,7 +7,7 @@ import {customerStatusValidator,upsertCustomerStatus,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/sales+/customer-statuses.tsx b/apps/carbon/app/routes/x+/sales+/customer-statuses.tsxindex 00761b5b1a..ef6bdd9d70 100644--- a/apps/carbon/app/routes/x+/sales+/customer-statuses.tsx+++ b/apps/carbon/app/routes/x+/sales+/customer-statuses.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { CustomerStatusesTable, getCustomerStatuses } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";import { getGenericQueryFilters } from "~/utils/query";diff --git a/apps/carbon/app/routes/x+/sales+/customer-types.$customerTypeId.tsx b/apps/carbon/app/routes/x+/sales+/customer-types.$customerTypeId.tsxindex ca56af383b..d379db3bda 100644--- a/apps/carbon/app/routes/x+/sales+/customer-types.$customerTypeId.tsx+++ b/apps/carbon/app/routes/x+/sales+/customer-types.$customerTypeId.tsx@@ -8,7 +8,7 @@ import {getCustomerType,upsertCustomerType,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/sales+/customer-types.delete.$customerTypeId.tsx b/apps/carbon/app/routes/x+/sales+/customer-types.delete.$customerTypeId.tsxindex 10ae4b1ae1..a092052788 100644--- a/apps/carbon/app/routes/x+/sales+/customer-types.delete.$customerTypeId.tsx+++ b/apps/carbon/app/routes/x+/sales+/customer-types.delete.$customerTypeId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteCustomerType, getCustomerType } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { getParams, path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/sales+/customer-types.new.tsx b/apps/carbon/app/routes/x+/sales+/customer-types.new.tsxindex bcde42c9ad..0bd6a7e27b 100644--- a/apps/carbon/app/routes/x+/sales+/customer-types.new.tsx+++ b/apps/carbon/app/routes/x+/sales+/customer-types.new.tsx@@ -7,7 +7,7 @@ import {customerTypeValidator,upsertCustomerType,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/sales+/customer-types.tsx b/apps/carbon/app/routes/x+/sales+/customer-types.tsxindex efcba45e76..f6c023a899 100644--- a/apps/carbon/app/routes/x+/sales+/customer-types.tsx+++ b/apps/carbon/app/routes/x+/sales+/customer-types.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { CustomerTypesTable, getCustomerTypes } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";import { getGenericQueryFilters } from "~/utils/query";diff --git a/apps/carbon/app/routes/x+/sales+/customers.tsx b/apps/carbon/app/routes/x+/sales+/customers.tsxindex 6fe887f0f6..800e85391f 100644--- a/apps/carbon/app/routes/x+/sales+/customers.tsx+++ b/apps/carbon/app/routes/x+/sales+/customers.tsx@@ -8,7 +8,7 @@ import {getCustomerTypes,getCustomers,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/sales+/orders.tsx b/apps/carbon/app/routes/x+/sales+/orders.tsxindex b09ac55a25..cddad7f847 100644--- a/apps/carbon/app/routes/x+/sales+/orders.tsx+++ b/apps/carbon/app/routes/x+/sales+/orders.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { SalesOrdersTable, getSalesOrders } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/sales+/quotes.favorite.tsx b/apps/carbon/app/routes/x+/sales+/quotes.favorite.tsxindex 24acb70ebc..d86f1a92af 100644--- a/apps/carbon/app/routes/x+/sales+/quotes.favorite.tsx+++ b/apps/carbon/app/routes/x+/sales+/quotes.favorite.tsx@@ -1,7 +1,7 @@import { validationError, validator } from "@carbon/remix-validated-form";import { json, type ActionFunctionArgs } from "@remix-run/node";import { updateQuoteFavorite } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { favoriteSchema } from "~/types/validators";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/sales+/quotes.tsx b/apps/carbon/app/routes/x+/sales+/quotes.tsxindex 6424d36e9d..fb0f1ef00e 100644--- a/apps/carbon/app/routes/x+/sales+/quotes.tsx+++ b/apps/carbon/app/routes/x+/sales+/quotes.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { QuotationsTable, getQuotes } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/sales-order+/$orderId.details.tsx b/apps/carbon/app/routes/x+/sales-order+/$orderId.details.tsxindex 135e71bc96..69d128b3d0 100644--- a/apps/carbon/app/routes/x+/sales-order+/$orderId.details.tsx+++ b/apps/carbon/app/routes/x+/sales-order+/$orderId.details.tsx@@ -9,7 +9,7 @@ import {salesOrderValidator,upsertSalesOrder,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";@@ -85,4 +85,4 @@ export default function SalesOrderBasicRoute() {return (<SalesOrderForm key={initialValues.id} initialValues={initialValues} />);-}\ No newline at end of file+}diff --git a/apps/carbon/app/routes/x+/sales-order+/$orderId.lines.$lineId.tsx b/apps/carbon/app/routes/x+/sales-order+/$orderId.lines.$lineId.tsxindex 13a6ca927c..6f679b2d5f 100644--- a/apps/carbon/app/routes/x+/sales-order+/$orderId.lines.$lineId.tsx+++ b/apps/carbon/app/routes/x+/sales-order+/$orderId.lines.$lineId.tsx@@ -9,7 +9,7 @@ import {salesOrderLineValidator,upsertSalesOrderLine,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/sales-order+/$orderId.lines.delete.$lineId.tsx b/apps/carbon/app/routes/x+/sales-order+/$orderId.lines.delete.$lineId.tsxindex 51dfba0e17..a9ff990a11 100644--- a/apps/carbon/app/routes/x+/sales-order+/$orderId.lines.delete.$lineId.tsx+++ b/apps/carbon/app/routes/x+/sales-order+/$orderId.lines.delete.$lineId.tsx@@ -2,11 +2,8 @@ import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";-import {- deleteSalesOrderLine,- getSalesOrderLine,-} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { deleteSalesOrderLine, getSalesOrderLine } from "~/modules/sales";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";@@ -43,10 +40,7 @@ export async function action({ request, params }: ActionFunctionArgs) {if (!lineId) throw notFound("Could not find lineId");if (!orderId) throw notFound("Could not find orderId");- const { error: deleteTypeError } = await deleteSalesOrderLine(- client,- lineId- );+ const { error: deleteTypeError } = await deleteSalesOrderLine(client, lineId);if (deleteTypeError) {throw redirect(path.to.salesOrderLines(orderId),diff --git a/apps/carbon/app/routes/x+/sales-order+/$orderId.lines.new.tsx b/apps/carbon/app/routes/x+/sales-order+/$orderId.lines.new.tsxindex d6fe7e4a15..4549027886 100644--- a/apps/carbon/app/routes/x+/sales-order+/$orderId.lines.new.tsx+++ b/apps/carbon/app/routes/x+/sales-order+/$orderId.lines.new.tsx@@ -8,7 +8,7 @@ import {salesOrderLineValidator,upsertSalesOrderLine,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";@@ -46,10 +46,7 @@ export async function action({ request, params }: ActionFunctionArgs) {path.to.salesOrderLines(orderId),await flash(request,- error(- createSalesOrderLine.error,- "Failed to create sales order line."- )+ error(createSalesOrderLine.error, "Failed to create sales order line.")));}diff --git a/apps/carbon/app/routes/x+/sales-order+/$orderId.shipment.tsx b/apps/carbon/app/routes/x+/sales-order+/$orderId.shipment.tsxindex 28548c7b5c..ef8924b1d4 100644--- a/apps/carbon/app/routes/x+/sales-order+/$orderId.shipment.tsx+++ b/apps/carbon/app/routes/x+/sales-order+/$orderId.shipment.tsx@@ -12,7 +12,7 @@ import {salesOrderShipmentValidator,upsertSalesOrderShipment,} from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";@@ -40,10 +40,7 @@ export async function loader({ request, params }: LoaderFunctionArgs) {path.to.salesOrder(orderId),await flash(request,- error(- salesOrderShipment.error,- "Failed to load sales order shipment"- )+ error(salesOrderShipment.error, "Failed to load sales order shipment")));}@@ -93,15 +90,12 @@ export async function action({ request, params }: ActionFunctionArgs) {return validationError(validation.error);}- const updateSalesOrderShipment = await upsertSalesOrderShipment(- client,- {- ...validation.data,- id: orderId,- updatedBy: userId,- customFields: setCustomFields(formData),- }- );+ const updateSalesOrderShipment = await upsertSalesOrderShipment(client, {+ ...validation.data,+ id: orderId,+ updatedBy: userId,+ customFields: setCustomFields(formData),+ });if (updateSalesOrderShipment.error) {throw redirect(path.to.salesOrderShipment(orderId),diff --git a/apps/carbon/app/routes/x+/sales-order+/$orderId.tsx b/apps/carbon/app/routes/x+/sales-order+/$orderId.tsxindex 9d65f4335d..4aac94a9dd 100644--- a/apps/carbon/app/routes/x+/sales-order+/$orderId.tsx+++ b/apps/carbon/app/routes/x+/sales-order+/$orderId.tsx@@ -12,7 +12,7 @@ import {useSalesOrderTotals,} from "~/modules/sales";import { getLocationsList } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/sales-order+/new.tsx b/apps/carbon/app/routes/x+/sales-order+/new.tsxindex 2af67212e2..1c285ae9bc 100644--- a/apps/carbon/app/routes/x+/sales-order+/new.tsx+++ b/apps/carbon/app/routes/x+/sales-order+/new.tsx@@ -3,16 +3,14 @@ import { getLocalTimeZone, today } from "@internationalized/date";import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { useUrlParams } from "~/hooks";-import type {- SalesOrderStatus,-} from "~/modules/sales";+import type { SalesOrderStatus } from "~/modules/sales";import {SalesOrderForm,salesOrderValidator,upsertSalesOrder,} from "~/modules/sales";import { getNextSequence, rollbackNextSequence } from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";@@ -83,4 +81,4 @@ export default function SalesOrderNewRoute() {<SalesOrderForm initialValues={initialValues} /></div>);-}\ No newline at end of file+}diff --git a/apps/carbon/app/routes/x+/sales-order+/orders.favorite.tsx b/apps/carbon/app/routes/x+/sales-order+/orders.favorite.tsxindex d927fc4b90..cbb6eb4233 100644--- a/apps/carbon/app/routes/x+/sales-order+/orders.favorite.tsx+++ b/apps/carbon/app/routes/x+/sales-order+/orders.favorite.tsx@@ -1,7 +1,7 @@import { validationError, validator } from "@carbon/remix-validated-form";import { json, type ActionFunctionArgs } from "@remix-run/node";import { updateSalesOrderFavorite } from "~/modules/sales";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { favoriteSchema } from "~/types/validators";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/service+/$serviceId.details.tsx b/apps/carbon/app/routes/x+/service+/$serviceId.details.tsxindex f0cf376d02..26016c3b2a 100644--- a/apps/carbon/app/routes/x+/service+/$serviceId.details.tsx+++ b/apps/carbon/app/routes/x+/service+/$serviceId.details.tsx@@ -5,7 +5,7 @@ import { useParams } from "@remix-run/react";import { useRouteData } from "~/hooks";import type { Service } from "~/modules/parts";import { ServiceForm, serviceValidator, upsertService } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/service+/$serviceId.suppliers.new.tsx b/apps/carbon/app/routes/x+/service+/$serviceId.suppliers.new.tsxindex 68c6abb52c..3fa1f45543 100644--- a/apps/carbon/app/routes/x+/service+/$serviceId.suppliers.new.tsx+++ b/apps/carbon/app/routes/x+/service+/$serviceId.suppliers.new.tsx@@ -7,7 +7,7 @@ import {serviceSupplierValidator,upsertServiceSupplier,} from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/service+/$serviceId.suppliers.tsx b/apps/carbon/app/routes/x+/service+/$serviceId.suppliers.tsxindex 82b1279962..2429ec0d81 100644--- a/apps/carbon/app/routes/x+/service+/$serviceId.suppliers.tsx+++ b/apps/carbon/app/routes/x+/service+/$serviceId.suppliers.tsx@@ -2,7 +2,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { useLoaderData } from "@remix-run/react";import { ServiceSuppliers, getServiceSuppliers } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/service+/$serviceId.tsx b/apps/carbon/app/routes/x+/service+/$serviceId.tsxindex 067fef9046..1be57cdfa0 100644--- a/apps/carbon/app/routes/x+/service+/$serviceId.tsx+++ b/apps/carbon/app/routes/x+/service+/$serviceId.tsx@@ -2,7 +2,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { ServiceHeader, ServiceSidebar, getService } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/service+/_layout.tsx b/apps/carbon/app/routes/x+/service+/_layout.tsxindex 3470842e12..627b151b6e 100644--- a/apps/carbon/app/routes/x+/service+/_layout.tsx+++ b/apps/carbon/app/routes/x+/service+/_layout.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { getPartGroupsList } from "~/modules/parts";import { getLocationsList } from "~/modules/resources";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/service+/new.tsx b/apps/carbon/app/routes/x+/service+/new.tsxindex 2f60d11005..94354f9660 100644--- a/apps/carbon/app/routes/x+/service+/new.tsx+++ b/apps/carbon/app/routes/x+/service+/new.tsx@@ -2,7 +2,7 @@ import { validationError, validator } from "@carbon/remix-validated-form";import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { ServiceForm, serviceValidator, upsertService } from "~/modules/parts";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import type { Handle } from "~/utils/handle";diff --git a/apps/carbon/app/routes/x+/settings+/company.tsx b/apps/carbon/app/routes/x+/settings+/company.tsxindex debfef5094..e5b7526709 100644--- a/apps/carbon/app/routes/x+/settings+/company.tsx+++ b/apps/carbon/app/routes/x+/settings+/company.tsx@@ -18,7 +18,7 @@ import {updateCompany,updateLogo,} from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.$id.tsx b/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.$id.tsxindex 5aa6cc050a..0674b9e9ad 100644--- a/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.$id.tsx+++ b/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.$id.tsx@@ -18,7 +18,7 @@ import { getParams, path } from "~/utils/path";import { validationError, validator } from "@carbon/remix-validated-form";import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";import { upsertCustomField } from "~/modules/settings/settings.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost, notFound } from "~/utils/http";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.delete.$id.tsx b/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.delete.$id.tsxindex c75609fa41..a9d4db2c1c 100644--- a/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.delete.$id.tsx+++ b/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.delete.$id.tsx@@ -1,7 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteCustomField } from "~/modules/settings/settings.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.new.tsx b/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.new.tsxindex e4f90f7b74..a792612de2 100644--- a/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.new.tsx+++ b/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.new.tsx@@ -8,7 +8,7 @@ import { getParams, path } from "~/utils/path";import { validationError, validator } from "@carbon/remix-validated-form";import type { ActionFunctionArgs } from "@remix-run/node";import { upsertCustomField } from "~/modules/settings/settings.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.tsx b/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.tsxindex 6b91b883c5..f314946e02 100644--- a/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.tsx+++ b/apps/carbon/app/routes/x+/settings+/custom-fields.$tableId.tsx@@ -5,7 +5,7 @@ import { useRouteData, useUrlParams } from "~/hooks";import type { AttributeDataType } from "~/modules/resources";import { CustomFieldsTableDetail, getCustomFields } from "~/modules/settings";import { updateCustomFieldsSortOrder } from "~/modules/settings/settings.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/settings+/custom-fields.tsx b/apps/carbon/app/routes/x+/settings+/custom-fields.tsxindex 13065f9ee8..7714303063 100644--- a/apps/carbon/app/routes/x+/settings+/custom-fields.tsx+++ b/apps/carbon/app/routes/x+/settings+/custom-fields.tsx@@ -4,7 +4,7 @@ import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { getAttributeDataTypes } from "~/modules/resources";import { CustomFieldsTable, getCustomFieldsTables } from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/settings+/integrations.exchange-rates-v1.tsx b/apps/carbon/app/routes/x+/settings+/integrations.exchange-rates-v1.tsxindex aa65549aa2..0aa9fb23bd 100644--- a/apps/carbon/app/routes/x+/settings+/integrations.exchange-rates-v1.tsx+++ b/apps/carbon/app/routes/x+/settings+/integrations.exchange-rates-v1.tsx@@ -9,7 +9,7 @@ import {getIntegration,updateIntegration,} from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/settings+/integrations.google-places-v2.tsx b/apps/carbon/app/routes/x+/settings+/integrations.google-places-v2.tsxindex d58ab4bfc8..76ed9a829b 100644--- a/apps/carbon/app/routes/x+/settings+/integrations.google-places-v2.tsx+++ b/apps/carbon/app/routes/x+/settings+/integrations.google-places-v2.tsx@@ -9,7 +9,7 @@ import {googlePlacesFormValidator,updateIntegration,} from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/settings+/integrations.resend.tsx b/apps/carbon/app/routes/x+/settings+/integrations.resend.tsxindex bb114f8655..756f5c4884 100644--- a/apps/carbon/app/routes/x+/settings+/integrations.resend.tsx+++ b/apps/carbon/app/routes/x+/settings+/integrations.resend.tsx@@ -9,7 +9,7 @@ import {resendFormValidator,updateIntegration,} from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/settings+/integrations.tsx b/apps/carbon/app/routes/x+/settings+/integrations.tsxindex f9303acb86..87aea509df 100644--- a/apps/carbon/app/routes/x+/settings+/integrations.tsx+++ b/apps/carbon/app/routes/x+/settings+/integrations.tsx@@ -2,7 +2,7 @@ import { type LoaderFunctionArgs } from "@remix-run/node";import { Outlet } from "@remix-run/react";import { useIntegrations } from "~/hooks/useIntegrations";import { IntegrationsList } from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";export async function loader({ request }: LoaderFunctionArgs) {await requirePermissions(request, {diff --git a/apps/carbon/app/routes/x+/settings+/sequences.$tableId.tsx b/apps/carbon/app/routes/x+/settings+/sequences.$tableId.tsxindex 1f9fc71eae..8b6f32ac26 100644--- a/apps/carbon/app/routes/x+/settings+/sequences.$tableId.tsx+++ b/apps/carbon/app/routes/x+/settings+/sequences.$tableId.tsx@@ -8,7 +8,7 @@ import {sequenceValidator,updateSequence,} from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/settings+/sequences.tsx b/apps/carbon/app/routes/x+/settings+/sequences.tsxindex ce226af2ea..1db782ebae 100644--- a/apps/carbon/app/routes/x+/settings+/sequences.tsx+++ b/apps/carbon/app/routes/x+/settings+/sequences.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { SequencesTable, getSequences } from "~/modules/settings";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";import { getGenericQueryFilters } from "~/utils/query";diff --git a/apps/carbon/app/routes/x+/shared+/notes.$noteId.delete.tsx b/apps/carbon/app/routes/x+/shared+/notes.$noteId.delete.tsxindex 7476d086c5..09f7920f53 100644--- a/apps/carbon/app/routes/x+/shared+/notes.$noteId.delete.tsx+++ b/apps/carbon/app/routes/x+/shared+/notes.$noteId.delete.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteNote } from "~/modules/shared";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/shared+/notes.new.tsx b/apps/carbon/app/routes/x+/shared+/notes.new.tsxindex 2a0aec4c69..305dd7ee8b 100644--- a/apps/carbon/app/routes/x+/shared+/notes.new.tsx+++ b/apps/carbon/app/routes/x+/shared+/notes.new.tsx@@ -2,7 +2,7 @@ import { validationError, validator } from "@carbon/remix-validated-form";import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { insertNote, noteValidator } from "~/modules/shared";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.$supplierContactId.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.$supplierContactId.tsxindex e3ecc0e873..3886c1dbd8 100644--- a/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.$supplierContactId.tsx+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.$supplierContactId.tsx@@ -8,7 +8,7 @@ import {supplierContactValidator,updateSupplierContact,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, badRequest, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.delete.$supplierContactId.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.delete.$supplierContactId.tsxindex 40a65472aa..128c21afa4 100644--- a/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.delete.$supplierContactId.tsx+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.delete.$supplierContactId.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteSupplierContact } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.new.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.new.tsxindex e40f9aee22..c8abcec06b 100644--- a/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.new.tsx+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.new.tsx@@ -8,7 +8,7 @@ import {insertSupplierContact,supplierContactValidator,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.tsxindex a033226d3d..83bcb1847a 100644--- a/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.tsx+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.tsx@@ -2,7 +2,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { useLoaderData } from "@remix-run/react";import { SupplierContacts, getSupplierContacts } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.details.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.details.tsxindex e4170a57ed..4a4d28eb14 100644--- a/apps/carbon/app/routes/x+/supplier+/$supplierId.details.tsx+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.details.tsx@@ -9,7 +9,7 @@ import {supplierValidator,upsertSupplier,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.$supplierLocationId.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.$supplierLocationId.tsxindex a57d12f651..450d0af8b9 100644--- a/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.$supplierLocationId.tsx+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.$supplierLocationId.tsx@@ -8,7 +8,7 @@ import {supplierLocationValidator,updateSupplierLocation,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, badRequest, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.delete.$supplierLocationId.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.delete.$supplierLocationId.tsxindex e0e330e411..8667a0d57c 100644--- a/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.delete.$supplierLocationId.tsx+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.delete.$supplierLocationId.tsx@@ -1,7 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { deleteSupplierLocation } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.new.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.new.tsxindex 507a221bc9..e7cc6dce45 100644--- a/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.new.tsx+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.new.tsx@@ -7,7 +7,7 @@ import {insertSupplierLocation,supplierLocationValidator,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.tsxindex 5ad603f4c2..3ee9682a54 100644--- a/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.tsx+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.locations.tsx@@ -2,7 +2,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { useLoaderData } from "@remix-run/react";import { SupplierLocations, getSupplierLocations } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { path } from "~/utils/path";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.payments.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.payments.tsxindex 13490dfd18..ab01f25f28 100644--- a/apps/carbon/app/routes/x+/supplier+/$supplierId.payments.tsx+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.payments.tsx@@ -8,7 +8,7 @@ import {supplierPaymentValidator,updateSupplierPayment,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.shipping.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.shipping.tsxindex 4da2e8f62f..78b0c56a05 100644--- a/apps/carbon/app/routes/x+/supplier+/$supplierId.shipping.tsx+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.shipping.tsx@@ -8,7 +8,7 @@ import {supplierShippingValidator,updateSupplierShipping,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.tsxindex bb6b90cdef..892a8116d1 100644--- a/apps/carbon/app/routes/x+/supplier+/$supplierId.tsx+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.tsx@@ -8,7 +8,7 @@ import {getSupplierContacts,getSupplierLocations,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/supplier+/_layout.tsx b/apps/carbon/app/routes/x+/supplier+/_layout.tsxindex e3bdc4d29b..74434fd1e9 100644--- a/apps/carbon/app/routes/x+/supplier+/_layout.tsx+++ b/apps/carbon/app/routes/x+/supplier+/_layout.tsx@@ -8,7 +8,7 @@ import {getShippingTermsList,} from "~/modules/inventory";import { getSupplierStatuses, getSupplierTypes } from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/supplier+/new.tsx b/apps/carbon/app/routes/x+/supplier+/new.tsxindex fd85bc8290..eecbb5c55b 100644--- a/apps/carbon/app/routes/x+/supplier+/new.tsx+++ b/apps/carbon/app/routes/x+/supplier+/new.tsx@@ -6,7 +6,7 @@ import {supplierValidator,upsertSupplier,} from "~/modules/purchasing";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/users+/bulk-edit-permissions.tsx b/apps/carbon/app/routes/x+/users+/bulk-edit-permissions.tsxindex f3c7e41c7b..386a7a8523 100644--- a/apps/carbon/app/routes/x+/users+/bulk-edit-permissions.tsx+++ b/apps/carbon/app/routes/x+/users+/bulk-edit-permissions.tsx@@ -9,7 +9,7 @@ import {bulkPermissionsValidator,userPermissionsValidator,} from "~/modules/users";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { getParams, path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/users+/customers.new.tsx b/apps/carbon/app/routes/x+/users+/customers.new.tsxindex 76ab0fad1f..a42429e518 100644--- a/apps/carbon/app/routes/x+/users+/customers.new.tsx+++ b/apps/carbon/app/routes/x+/users+/customers.new.tsx@@ -6,7 +6,7 @@ import {createCustomerAccountValidator,} from "~/modules/users";import { createCustomerAccount } from "~/modules/users/users.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/users+/customers.tsx b/apps/carbon/app/routes/x+/users+/customers.tsxindex 6a110a1d14..b23471f2aa 100644--- a/apps/carbon/app/routes/x+/users+/customers.tsx+++ b/apps/carbon/app/routes/x+/users+/customers.tsx@@ -4,7 +4,7 @@ import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { getCustomerTypes } from "~/modules/sales";import { CustomerAccountsTable, getCustomers } from "~/modules/users";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/users+/deactivate.tsx b/apps/carbon/app/routes/x+/users+/deactivate.tsxindex 938d284244..d01a9fd6aa 100644--- a/apps/carbon/app/routes/x+/users+/deactivate.tsx+++ b/apps/carbon/app/routes/x+/users+/deactivate.tsx@@ -6,7 +6,7 @@ import type { userAdminSchema } from "~/jobs/user-admin.server";import { triggerClient } from "~/lib/trigger.server";import { deactivateUsersValidator } from "~/modules/users";import { deactivateUser } from "~/modules/users/users.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { safeRedirect } from "~/utils/http";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/users+/employee-types.$employeeTypeId.tsx b/apps/carbon/app/routes/x+/users+/employee-types.$employeeTypeId.tsxindex 587c21c186..c7d42d5616 100644--- a/apps/carbon/app/routes/x+/users+/employee-types.$employeeTypeId.tsx+++ b/apps/carbon/app/routes/x+/users+/employee-types.$employeeTypeId.tsx@@ -12,7 +12,7 @@ import {upsertEmployeeTypePermissions,} from "~/modules/users";import { makePermissionsFromEmployeeType } from "~/modules/users/users.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/users+/employee-types.delete.$employeeTypeId.tsx b/apps/carbon/app/routes/x+/users+/employee-types.delete.$employeeTypeId.tsxindex 7504d020df..beae923748 100644--- a/apps/carbon/app/routes/x+/users+/employee-types.delete.$employeeTypeId.tsx+++ b/apps/carbon/app/routes/x+/users+/employee-types.delete.$employeeTypeId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteEmployeeType, getEmployeeType } from "~/modules/users";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/users+/employee-types.new.tsx b/apps/carbon/app/routes/x+/users+/employee-types.new.tsxindex 1ffa9b87f6..6bcc394be5 100644--- a/apps/carbon/app/routes/x+/users+/employee-types.new.tsx+++ b/apps/carbon/app/routes/x+/users+/employee-types.new.tsx@@ -11,7 +11,7 @@ import {upsertEmployeeTypePermissions,} from "~/modules/users";import { makeEmptyPermissionsFromFeatures } from "~/modules/users/users.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/users+/employee-types.tsx b/apps/carbon/app/routes/x+/users+/employee-types.tsxindex de7ea8986d..fbbbe9a8ae 100644--- a/apps/carbon/app/routes/x+/users+/employee-types.tsx+++ b/apps/carbon/app/routes/x+/users+/employee-types.tsx@@ -3,7 +3,7 @@ import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { EmployeeTypesTable, getEmployeeTypes } from "~/modules/users";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";import { getGenericQueryFilters } from "~/utils/query";diff --git a/apps/carbon/app/routes/x+/users+/employees.$employeeId.tsx b/apps/carbon/app/routes/x+/users+/employees.$employeeId.tsxindex ce59343050..0a4c19c9f4 100644--- a/apps/carbon/app/routes/x+/users+/employees.$employeeId.tsx+++ b/apps/carbon/app/routes/x+/users+/employees.$employeeId.tsx@@ -15,7 +15,7 @@ import {makePermissionsFromClaims,updateEmployee,} from "~/modules/users/users.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/users+/employees.new.tsx b/apps/carbon/app/routes/x+/users+/employees.new.tsxindex 5c873df881..1701918c20 100644--- a/apps/carbon/app/routes/x+/users+/employees.new.tsx+++ b/apps/carbon/app/routes/x+/users+/employees.new.tsx@@ -3,7 +3,7 @@ import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { CreateEmployeeModal, createEmployeeValidator } from "~/modules/users";import { createEmployeeAccount } from "~/modules/users/users.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/users+/employees.tsx b/apps/carbon/app/routes/x+/users+/employees.tsxindex f812590935..18e47da33a 100644--- a/apps/carbon/app/routes/x+/users+/employees.tsx+++ b/apps/carbon/app/routes/x+/users+/employees.tsx@@ -7,7 +7,7 @@ import {getEmployeeTypes,getEmployees,} from "~/modules/users";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/users+/groups.$groupId.tsx b/apps/carbon/app/routes/x+/users+/groups.$groupId.tsxindex 9ed16e2c6f..dbfab08888 100644--- a/apps/carbon/app/routes/x+/users+/groups.$groupId.tsx+++ b/apps/carbon/app/routes/x+/users+/groups.$groupId.tsx@@ -9,7 +9,7 @@ import {upsertGroup,upsertGroupMembers,} from "~/modules/users";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/users+/groups.delete.$groupId.tsx b/apps/carbon/app/routes/x+/users+/groups.delete.$groupId.tsxindex eb9295b747..3561471052 100644--- a/apps/carbon/app/routes/x+/users+/groups.delete.$groupId.tsx+++ b/apps/carbon/app/routes/x+/users+/groups.delete.$groupId.tsx@@ -3,7 +3,7 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData, useNavigate, useParams } from "@remix-run/react";import { ConfirmDelete } from "~/components/Modals";import { deleteGroup, getGroup } from "~/modules/users";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { notFound } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/users+/groups.new.tsx b/apps/carbon/app/routes/x+/users+/groups.new.tsxindex 3f0ebc17e2..6737902d1b 100644--- a/apps/carbon/app/routes/x+/users+/groups.new.tsx+++ b/apps/carbon/app/routes/x+/users+/groups.new.tsx@@ -8,7 +8,7 @@ import {insertGroup,upsertGroupMembers,} from "~/modules/users";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/users+/groups.tsx b/apps/carbon/app/routes/x+/users+/groups.tsxindex 2d7449d69c..930bde6b68 100644--- a/apps/carbon/app/routes/x+/users+/groups.tsx+++ b/apps/carbon/app/routes/x+/users+/groups.tsx@@ -5,7 +5,7 @@ import { Outlet, useLoaderData } from "@remix-run/react";import { arrayToTree } from "performant-array-to-tree";import type { Group } from "~/modules/users";import { GroupsTable, getGroups } from "~/modules/users";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/users+/resend-invite.tsx b/apps/carbon/app/routes/x+/users+/resend-invite.tsxindex 2ec4de4a31..d650c4d14c 100644--- a/apps/carbon/app/routes/x+/users+/resend-invite.tsx+++ b/apps/carbon/app/routes/x+/users+/resend-invite.tsx@@ -6,7 +6,7 @@ import type { userAdminSchema } from "~/jobs/user-admin.server";import { triggerClient } from "~/lib/trigger.server";import { resendInviteValidator } from "~/modules/users";import { resendInvite } from "~/modules/users/users.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { error, success } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/users+/suppliers.new.tsx b/apps/carbon/app/routes/x+/users+/suppliers.new.tsxindex b729d7b00e..8030b9eda9 100644--- a/apps/carbon/app/routes/x+/users+/suppliers.new.tsx+++ b/apps/carbon/app/routes/x+/users+/suppliers.new.tsx@@ -6,7 +6,7 @@ import {createSupplierAccountValidator,} from "~/modules/users";import { createSupplierAccount } from "~/modules/users/users.server";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/users+/suppliers.tsx b/apps/carbon/app/routes/x+/users+/suppliers.tsxindex f5a82a6954..f4e23e2932 100644--- a/apps/carbon/app/routes/x+/users+/suppliers.tsx+++ b/apps/carbon/app/routes/x+/users+/suppliers.tsx@@ -4,7 +4,7 @@ import { json, redirect } from "@remix-run/node";import { Outlet, useLoaderData } from "@remix-run/react";import { getSupplierTypes } from "~/modules/purchasing";import { SupplierAccountsTable, getSuppliers } from "~/modules/users";-import { requirePermissions } from "~/services/auth";+import { requirePermissions } from "~/services/auth/auth.server";import { flash } from "~/services/session.server";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";diff --git a/apps/carbon/app/services/auth/index.ts b/apps/carbon/app/services/auth/index.tsindex 7fe5d8504d..1966067c6f 100644--- a/apps/carbon/app/services/auth/index.ts+++ b/apps/carbon/app/services/auth/index.ts@@ -1,3 +1,3 @@export * from "./auth.models";-export * from "./auth.server";+//export * from "./auth.server";export * from "./types";diff --git a/apps/carbon/remix.env.d.ts b/apps/carbon/env.d.tssimilarity index 68%rename from apps/carbon/remix.env.d.tsrename to apps/carbon/env.d.tsindex 14a1152eb2..1dfa1d0d2d 100644--- a/apps/carbon/remix.env.d.ts+++ b/apps/carbon/env.d.ts@@ -1,3 +1,3 @@-/// <reference types="@remix-run/dev" />+/// <reference types="vite/client" />/// <reference types="@remix-run/node/globals" />/// <reference types="@vercel/remix" />diff --git a/apps/carbon/package.json b/apps/carbon/package.jsonindex ccd8f7d6e5..d27ab60ae1 100644--- a/apps/carbon/package.json+++ b/apps/carbon/package.json@@ -1,5 +1,6 @@{"name": "carbon",+ "type": "module","dependencies": {"@carbon/database": "*","@carbon/documents": "*",@@ -81,6 +82,8 @@"tailwind-scrollbar": "^3.0.5","tailwindcss": "3.3.2","typescript": "^5.2.2",+ "vite": "^5.2.10",+ "vite-tsconfig-paths": "^4.3.2","wait-on": "7.2.0"},"engines": {@@ -89,13 +92,13 @@"license": "MIT","private": true,"scripts": {- "build": "remix build",+ "build": "remix vite:build","clean": "rimraf .cache .turbo node_modules dist build","dev": "run-p dev:remix dev:trigger",- "dev:remix": "PORT=3000 remix dev",+ "dev:remix": "PORT=3000 remix vite:dev","dev:trigger": "wait-on http://localhost:3000/healthcheck && npx --yes @trigger.dev/cli@latest dev","lint": "TIMING=1 eslint \"app/**/*.ts*\"",- "start": "remix-serve ./build/index.js",+ "start": "remix-serve ./build/server/index.js","types": "tsc"},"sideEffects": false,diff --git a/apps/carbon/postcss.config.cjs b/apps/carbon/postcss.config.cjsnew file mode 100644index 0000000000..4182e2b578--- /dev/null+++ b/apps/carbon/postcss.config.cjs@@ -0,0 +1 @@+module.exports = require("@carbon/tailwind/postcss.config");diff --git a/apps/carbon/tsconfig.json b/apps/carbon/tsconfig.jsonindex 96841b303b..0a141aad28 100644--- a/apps/carbon/tsconfig.json+++ b/apps/carbon/tsconfig.json@@ -1,6 +1,6 @@{"include": [- "remix.env.d.ts",+ "env.d.ts","**/*.ts","**/*.tsx","app/modules/documents/documents.service.ts"@@ -9,7 +9,8 @@"lib": ["dom", "dom.iterable", "ES2019"],"esModuleInterop": true,"jsx": "react-jsx",- "moduleResolution": "node",+ "module" :"ESNext",+ "moduleResolution": "Bundler","resolveJsonModule": true,"target": "ES2019","strict": true,diff --git a/apps/carbon/vite.config.ts b/apps/carbon/vite.config.tsnew file mode 100644index 0000000000..f8ed1b826e--- /dev/null+++ b/apps/carbon/vite.config.ts@@ -0,0 +1,63 @@+import { vitePlugin as remix } from "@remix-run/dev";+import { defineConfig } from "vite";+import path from "node:path";+import { flatRoutes } from "remix-flat-routes";+import { installGlobals } from "@remix-run/node";+import tsconfigPaths from "vite-tsconfig-paths";+import { vercelPreset } from "@vercel/remix/vite";++installGlobals();++export default defineConfig({+ ssr: {+ noExternal: ["react-icons"],+ },+ server: {+ port: 3000,+ },+ plugins: [+ remix({+ // appDirectory: "app",+ // assetsBuildDirectory: "public/build",+ // publicPath: "/build/",+ // serverBuildPath: "build/index.js",+ //browserNodeBuiltinsPolyfill: { modules: { events: true } },+ // dev: {+ // port: 3601,+ // },+ presets: [vercelPreset()],+ future: {},+ ignoredRouteFiles: ["**/.*"],+ serverModuleFormat: "esm",+ //serverPlatform: "node",+ //serverMinify: false,+ routes: async (defineRoutes) => {+ return flatRoutes("routes", defineRoutes, {+ // eslint-disable-next-line no-undef+ appDir: path.resolve(__dirname, "app"),+ });+ },+ // serverDependenciesToBundle: [+ // "@carbon/database",+ // "@carbon/documents",+ // "@carbon/logger",+ // "@carbon/react",+ // "@carbon/remix-validated-form",+ // "@carbon/utils",+ // "nanoid",+ // "nanostores",+ // "@nanostores/react",+ // ],+ // watchPaths: async () => {+ // return [+ // "../../packages/database/src/**/*",+ // "../../packages/documents/src/**/*",+ // "../../packages/logger/src/**/*",+ // "../../packages/react/src/**/*",+ // "../../packages/utils/src/**/*",+ // ];+ // },+ }),+ tsconfigPaths(),+ ],+});diff --git a/package-lock.json b/package-lock.jsonindex 8ca2e76697..4997604111 100644--- a/package-lock.json+++ b/package-lock.json@@ -8,7 +8,6 @@"workspaces": ["apps/*","packages/*",- "shared","www"],"devDependencies": {@@ -110,6 +109,8 @@"tailwind-scrollbar": "^3.0.5","tailwindcss": "3.3.2","typescript": "^5.2.2",+ "vite": "^5.2.10",+ "vite-tsconfig-paths": "^4.3.2","wait-on": "7.2.0"},"engines": {@@ -1233,9 +1234,9 @@"optional": true},"node_modules/@esbuild/aix-ppc64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz",- "integrity": "sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz",+ "integrity": "sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==","cpu": ["ppc64"],@@ -7181,9 +7182,9 @@}},"node_modules/@rollup/rollup-android-arm-eabi": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.12.1.tgz",- "integrity": "sha512-iU2Sya8hNn1LhsYyf0N+L4Gf9Qc+9eBTJJJsaOGUp+7x4n2M9dxTt8UvhJl3oeftSjblSlpCfvjA/IfP3g5VjQ==",+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.15.0.tgz",+ "integrity": "sha512-O63bJ7p909pRRQfOJ0k/Jp8gNFMud+ZzLLG5EBWquylHxmRT2k18M2ifg8WyjCgFVdpA7+rI0YZ8EkAtg6dSUw==","cpu": ["arm"],@@ -7193,9 +7194,9 @@]},"node_modules/@rollup/rollup-android-arm64": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.12.1.tgz",- "integrity": "sha512-wlzcWiH2Ir7rdMELxFE5vuM7D6TsOcJ2Yw0c3vaBR3VOsJFVTx9xvwnAvhgU5Ii8Gd6+I11qNHwndDscIm0HXg==",+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.15.0.tgz",+ "integrity": "sha512-5UywPdmC9jiVOShjQx4uuIcnTQOf85iA4jgg8bkFoH5NYWFfAfrJpv5eeokmTdSmYwUTT5IrcrBCJNkowhrZDA==","cpu": ["arm64"],@@ -7205,9 +7206,9 @@]},"node_modules/@rollup/rollup-darwin-arm64": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.12.1.tgz",- "integrity": "sha512-YRXa1+aZIFN5BaImK+84B3uNK8C6+ynKLPgvn29X9s0LTVCByp54TB7tdSMHDR7GTV39bz1lOmlLDuedgTwwHg==",+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.15.0.tgz",+ "integrity": "sha512-hNkt75uFfWpRxHItCBmbS0ba70WnibJh6yz60WShSWITLlVRbkvAu1E/c7RlliPY4ajhqJd0UPZz//gNalTd4g==","cpu": ["arm64"],@@ -7217,9 +7218,9 @@]},"node_modules/@rollup/rollup-darwin-x64": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.12.1.tgz",- "integrity": "sha512-opjWJ4MevxeA8FhlngQWPBOvVWYNPFkq6/25rGgG+KOy0r8clYwL1CFd+PGwRqqMFVQ4/Qd3sQu5t7ucP7C/Uw==",+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.15.0.tgz",+ "integrity": "sha512-HnC5bTP7qdfO9nUw/mBhNcjOEZfbS8NwV+nFegiMhYOn1ATAGZF4kfAxR9BuZevBrebWCxMmxm8NCU1CUoz+wQ==","cpu": ["x64"],@@ -7229,9 +7230,21 @@]},"node_modules/@rollup/rollup-linux-arm-gnueabihf": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.12.1.tgz",- "integrity": "sha512-uBkwaI+gBUlIe+EfbNnY5xNyXuhZbDSx2nzzW8tRMjUmpScd6lCQYKY2V9BATHtv5Ef2OBq6SChEP8h+/cxifQ==",+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.15.0.tgz",+ "integrity": "sha512-QGOIQIJZeIIqMsc4BUGe8TnV4dkXhSW2EhaQ1G4LqMUNpkyeLztvlDlOoNHn7SR7a4dBANdcEbPkkEzz3rzjzA==",+ "cpu": [+ "arm"+ ],+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.15.0.tgz",+ "integrity": "sha512-PS/Cp8CinYgoysQ8i4UXYH/TZl06fXszvY/RDkyBYgUB1+tKyOMS925/4FZhfrhkl3XQEKjMc3BKtsxpB9Tz9Q==","cpu": ["arm"],@@ -7241,9 +7254,9 @@]},"node_modules/@rollup/rollup-linux-arm64-gnu": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.12.1.tgz",- "integrity": "sha512-0bK9aG1kIg0Su7OcFTlexkVeNZ5IzEsnz1ept87a0TUgZ6HplSgkJAnFpEVRW7GRcikT4GlPV0pbtVedOaXHQQ==",+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.15.0.tgz",+ "integrity": "sha512-XzOsnD6lGDP+k+vGgTYAryVGu8N89qpjMN5BVFUj75dGVFP3FzIVAufJAraxirpDwEQZA7Gjs0Vo5p4UmnnjsA==","cpu": ["arm64"],@@ -7253,9 +7266,9 @@]},"node_modules/@rollup/rollup-linux-arm64-musl": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.12.1.tgz",- "integrity": "sha512-qB6AFRXuP8bdkBI4D7UPUbE7OQf7u5OL+R94JE42Z2Qjmyj74FtDdLGeriRyBDhm4rQSvqAGCGC01b8Fu2LthQ==",+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.15.0.tgz",+ "integrity": "sha512-+ScJA4Epbx/ZQGjDnbvTAcb8ZD06b+TlIka2UkujbKf1I/A+yrvEcJwG3/27zMmvcWMQyeCJhbL9TlSjzL0B7Q==","cpu": ["arm64"],@@ -7264,10 +7277,22 @@"linux"]},+ "node_modules/@rollup/rollup-linux-powerpc64le-gnu": {+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.15.0.tgz",+ "integrity": "sha512-1cUSvYgnyTakM4FDyf/GxUCDcqmj/hUh1NOizEOJU7+D5xEfFGCxgcNOs3hYBeRMUCcGmGkt01EhD3ILgKpGHQ==",+ "cpu": [+ "ppc64"+ ],+ "optional": true,+ "os": [+ "linux"+ ]+ },"node_modules/@rollup/rollup-linux-riscv64-gnu": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.12.1.tgz",- "integrity": "sha512-sHig3LaGlpNgDj5o8uPEoGs98RII8HpNIqFtAI8/pYABO8i0nb1QzT0JDoXF/pxzqO+FkxvwkHZo9k0NJYDedg==",+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.15.0.tgz",+ "integrity": "sha512-3A1FbHDbBUvpJXFAZwVsiROIcstVHP9AX/cwnyIhAp+xyQ1cBCxywKtuzmw0Av1MDNNg/y/9dDHtNypfRa8bdw==","cpu": ["riscv64"],@@ -7276,10 +7301,22 @@"linux"]},+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.15.0.tgz",+ "integrity": "sha512-hYPbhg9ow6/mXIkojc8LOeiip2sCTuw1taWyoOXTOWk9vawIXz8x7B4KkgWUAtvAElssxhSyEXr2EZycH/FGzQ==",+ "cpu": [+ "s390x"+ ],+ "optional": true,+ "os": [+ "linux"+ ]+ },"node_modules/@rollup/rollup-linux-x64-gnu": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.12.1.tgz",- "integrity": "sha512-nD3YcUv6jBJbBNFvSbp0IV66+ba/1teuBcu+fBBPZ33sidxitc6ErhON3JNavaH8HlswhWMC3s5rgZpM4MtPqQ==",+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.15.0.tgz",+ "integrity": "sha512-511qln5mPSUKwv7HI28S1jCD1FK+2WbX5THM9A9annr3c1kzmfnf8Oe3ZakubEjob3IV6OPnNNcesfy+adIrmw==","cpu": ["x64"],@@ -7289,9 +7326,9 @@]},"node_modules/@rollup/rollup-linux-x64-musl": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.12.1.tgz",- "integrity": "sha512-7/XVZqgBby2qp/cO0TQ8uJK+9xnSdJ9ct6gSDdEr4MfABrjTyrW6Bau7HQ73a2a5tPB7hno49A0y1jhWGDN9OQ==",+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.15.0.tgz",+ "integrity": "sha512-4qKKGTDIv2bQZ+afhPWqPL+94+dLtk4lw1iwbcylKlLNqQ/Yyjof2CFYBxf6npiDzPV+zf4EWRiHb26/4Vsm9w==","cpu": ["x64"],@@ -7301,9 +7338,9 @@]},"node_modules/@rollup/rollup-win32-arm64-msvc": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.12.1.tgz",- "integrity": "sha512-CYc64bnICG42UPL7TrhIwsJW4QcKkIt9gGlj21gq3VV0LL6XNb1yAdHVp1pIi9gkts9gGcT3OfUYHjGP7ETAiw==",+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.15.0.tgz",+ "integrity": "sha512-nEtaFBHp1OnbOf+tz66DtID579sNRHGgMC23to8HUyVuOCpCMD0CvRNqiDGLErLNnwApWIUtUl1VvuovCWUxwg==","cpu": ["arm64"],@@ -7313,9 +7350,9 @@]},"node_modules/@rollup/rollup-win32-ia32-msvc": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.12.1.tgz",- "integrity": "sha512-LN+vnlZ9g0qlHGlS920GR4zFCqAwbv2lULrR29yGaWP9u7wF5L7GqWu9Ah6/kFZPXPUkpdZwd//TNR+9XC9hvA==",+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.15.0.tgz",+ "integrity": "sha512-5O49NykwSgX6iT2HgZ6cAoGHt6T/FqNMB5OqFOGxU/y1GyFSHquox1sK2OqApQc0ANxiHFQEMNDLNVCL7AUDnQ==","cpu": ["ia32"],@@ -7325,9 +7362,9 @@]},"node_modules/@rollup/rollup-win32-x64-msvc": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.12.1.tgz",- "integrity": "sha512-n+vkrSyphvmU0qkQ6QBNXCGr2mKjhP08mPRM/Xp5Ck2FV4NrHU+y6axzDeixUrCBHVUS51TZhjqrKBBsHLKb2Q==",+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.15.0.tgz",+ "integrity": "sha512-YA0hTwCunmKNeTOFWdJuKhdXse9jBqgo34FDo+9aS0spfCkp+wj0o1bCcOOTu+0P48O95GTfkLTAaVonwNuIdQ==","cpu": ["x64"],@@ -15881,6 +15918,12 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/globrex": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",+ "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==",+ "dev": true+ },"node_modules/gopd": {"version": "1.0.1","resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz",@@ -24496,9 +24539,9 @@}},"node_modules/postcss": {- "version": "8.4.35",- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.35.tgz",- "integrity": "sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==",+ "version": "8.4.38",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz",+ "integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==","funding": [{"type": "opencollective",@@ -24516,7 +24559,7 @@"dependencies": {"nanoid": "^3.3.7","picocolors": "^1.0.0",- "source-map-js": "^1.0.2"+ "source-map-js": "^1.2.0"},"engines": {"node": "^10 || ^12 || >=14"@@ -27766,9 +27809,9 @@}},"node_modules/source-map-js": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",- "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz",+ "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==","engines": {"node": ">=0.10.0"}@@ -30973,13 +31016,13 @@}},"node_modules/vite": {- "version": "5.1.5",- "resolved": "https://registry.npmjs.org/vite/-/vite-5.1.5.tgz",- "integrity": "sha512-BdN1xh0Of/oQafhU+FvopafUp6WaYenLU/NFoL5WyJL++GxkNfieKzBhM24H3HVsPQrlAqB7iJYTHabzaRed5Q==",+ "version": "5.2.10",+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.2.10.tgz",+ "integrity": "sha512-PAzgUZbP7msvQvqdSD+ErD5qGnSFiGOoWmV5yAKUEI0kdhjbH6nMWVyZQC/hSc4aXwc0oJ9aEdIiF9Oje0JFCw==","dependencies": {- "esbuild": "^0.19.3",- "postcss": "^8.4.35",- "rollup": "^4.2.0"+ "esbuild": "^0.20.1",+ "postcss": "^8.4.38",+ "rollup": "^4.13.0"},"bin": {"vite": "bin/vite.js"@@ -31060,10 +31103,49 @@"url": "https://opencollective.com/vitest"}},+ "node_modules/vite-tsconfig-paths": {+ "version": "4.3.2",+ "resolved": "https://registry.npmjs.org/vite-tsconfig-paths/-/vite-tsconfig-paths-4.3.2.tgz",+ "integrity": "sha512-0Vd/a6po6Q+86rPlntHye7F31zA2URZMbH8M3saAZ/xR9QoGN/L21bxEGfXdWmFdNkqPpRdxFT7nmNe12e9/uA==",+ "dev": true,+ "dependencies": {+ "debug": "^4.1.1",+ "globrex": "^0.1.2",+ "tsconfck": "^3.0.3"+ },+ "peerDependencies": {+ "vite": "*"+ },+ "peerDependenciesMeta": {+ "vite": {+ "optional": true+ }+ }+ },+ "node_modules/vite-tsconfig-paths/node_modules/tsconfck": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-3.0.3.tgz",+ "integrity": "sha512-4t0noZX9t6GcPTfBAbIbbIU4pfpCwh0ueq3S4O/5qXI1VwK1outmxhe9dOiEWqMz3MW2LKgDTpqWV+37IWuVbA==",+ "dev": true,+ "bin": {+ "tsconfck": "bin/tsconfck.js"+ },+ "engines": {+ "node": "^18 || >=20"+ },+ "peerDependencies": {+ "typescript": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },"node_modules/vite/node_modules/@esbuild/android-arm": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.12.tgz",- "integrity": "sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.2.tgz",+ "integrity": "sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==","cpu": ["arm"],@@ -31076,9 +31158,9 @@}},"node_modules/vite/node_modules/@esbuild/android-arm64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz",- "integrity": "sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.2.tgz",+ "integrity": "sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==","cpu": ["arm64"],@@ -31091,9 +31173,9 @@}},"node_modules/vite/node_modules/@esbuild/android-x64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.12.tgz",- "integrity": "sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.2.tgz",+ "integrity": "sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==","cpu": ["x64"],@@ -31106,9 +31188,9 @@}},"node_modules/vite/node_modules/@esbuild/darwin-arm64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz",- "integrity": "sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.2.tgz",+ "integrity": "sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==","cpu": ["arm64"],@@ -31121,9 +31203,9 @@}},"node_modules/vite/node_modules/@esbuild/darwin-x64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz",- "integrity": "sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.2.tgz",+ "integrity": "sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==","cpu": ["x64"],@@ -31136,9 +31218,9 @@}},"node_modules/vite/node_modules/@esbuild/freebsd-arm64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz",- "integrity": "sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.2.tgz",+ "integrity": "sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==","cpu": ["arm64"],@@ -31151,9 +31233,9 @@}},"node_modules/vite/node_modules/@esbuild/freebsd-x64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz",- "integrity": "sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.2.tgz",+ "integrity": "sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==","cpu": ["x64"],@@ -31166,9 +31248,9 @@}},"node_modules/vite/node_modules/@esbuild/linux-arm": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz",- "integrity": "sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.2.tgz",+ "integrity": "sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==","cpu": ["arm"],@@ -31181,9 +31263,9 @@}},"node_modules/vite/node_modules/@esbuild/linux-arm64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz",- "integrity": "sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.2.tgz",+ "integrity": "sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==","cpu": ["arm64"],@@ -31196,9 +31278,9 @@}},"node_modules/vite/node_modules/@esbuild/linux-ia32": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz",- "integrity": "sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.2.tgz",+ "integrity": "sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==","cpu": ["ia32"],@@ -31211,9 +31293,9 @@}},"node_modules/vite/node_modules/@esbuild/linux-loong64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz",- "integrity": "sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.2.tgz",+ "integrity": "sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==","cpu": ["loong64"],@@ -31226,9 +31308,9 @@}},"node_modules/vite/node_modules/@esbuild/linux-mips64el": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz",- "integrity": "sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.2.tgz",+ "integrity": "sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==","cpu": ["mips64el"],@@ -31241,9 +31323,9 @@}},"node_modules/vite/node_modules/@esbuild/linux-ppc64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz",- "integrity": "sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.2.tgz",+ "integrity": "sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==","cpu": ["ppc64"],@@ -31256,9 +31338,9 @@}},"node_modules/vite/node_modules/@esbuild/linux-riscv64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz",- "integrity": "sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.2.tgz",+ "integrity": "sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==","cpu": ["riscv64"],@@ -31271,9 +31353,9 @@}},"node_modules/vite/node_modules/@esbuild/linux-s390x": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz",- "integrity": "sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.2.tgz",+ "integrity": "sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==","cpu": ["s390x"],@@ -31286,9 +31368,9 @@}},"node_modules/vite/node_modules/@esbuild/linux-x64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz",- "integrity": "sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.2.tgz",+ "integrity": "sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==","cpu": ["x64"],@@ -31301,9 +31383,9 @@}},"node_modules/vite/node_modules/@esbuild/netbsd-x64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz",- "integrity": "sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.2.tgz",+ "integrity": "sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==","cpu": ["x64"],@@ -31316,9 +31398,9 @@}},"node_modules/vite/node_modules/@esbuild/openbsd-x64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz",- "integrity": "sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.2.tgz",+ "integrity": "sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==","cpu": ["x64"],@@ -31331,9 +31413,9 @@}},"node_modules/vite/node_modules/@esbuild/sunos-x64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz",- "integrity": "sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.2.tgz",+ "integrity": "sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==","cpu": ["x64"],@@ -31346,9 +31428,9 @@}},"node_modules/vite/node_modules/@esbuild/win32-arm64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz",- "integrity": "sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.2.tgz",+ "integrity": "sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==","cpu": ["arm64"],@@ -31361,9 +31443,9 @@}},"node_modules/vite/node_modules/@esbuild/win32-ia32": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz",- "integrity": "sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.2.tgz",+ "integrity": "sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==","cpu": ["ia32"],@@ -31376,9 +31458,9 @@}},"node_modules/vite/node_modules/@esbuild/win32-x64": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.12.tgz",- "integrity": "sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.2.tgz",+ "integrity": "sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==","cpu": ["x64"],@@ -31391,9 +31473,9 @@}},"node_modules/vite/node_modules/esbuild": {- "version": "0.19.12",- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.12.tgz",- "integrity": "sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.2.tgz",+ "integrity": "sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==","hasInstallScript": true,"bin": {"esbuild": "bin/esbuild"@@ -31402,35 +31484,35 @@"node": ">=12"},"optionalDependencies": {- "@esbuild/aix-ppc64": "0.19.12",- "@esbuild/android-arm": "0.19.12",- "@esbuild/android-arm64": "0.19.12",- "@esbuild/android-x64": "0.19.12",- "@esbuild/darwin-arm64": "0.19.12",- "@esbuild/darwin-x64": "0.19.12",- "@esbuild/freebsd-arm64": "0.19.12",- "@esbuild/freebsd-x64": "0.19.12",- "@esbuild/linux-arm": "0.19.12",- "@esbuild/linux-arm64": "0.19.12",- "@esbuild/linux-ia32": "0.19.12",- "@esbuild/linux-loong64": "0.19.12",- "@esbuild/linux-mips64el": "0.19.12",- "@esbuild/linux-ppc64": "0.19.12",- "@esbuild/linux-riscv64": "0.19.12",- "@esbuild/linux-s390x": "0.19.12",- "@esbuild/linux-x64": "0.19.12",- "@esbuild/netbsd-x64": "0.19.12",- "@esbuild/openbsd-x64": "0.19.12",- "@esbuild/sunos-x64": "0.19.12",- "@esbuild/win32-arm64": "0.19.12",- "@esbuild/win32-ia32": "0.19.12",- "@esbuild/win32-x64": "0.19.12"+ "@esbuild/aix-ppc64": "0.20.2",+ "@esbuild/android-arm": "0.20.2",+ "@esbuild/android-arm64": "0.20.2",+ "@esbuild/android-x64": "0.20.2",+ "@esbuild/darwin-arm64": "0.20.2",+ "@esbuild/darwin-x64": "0.20.2",+ "@esbuild/freebsd-arm64": "0.20.2",+ "@esbuild/freebsd-x64": "0.20.2",+ "@esbuild/linux-arm": "0.20.2",+ "@esbuild/linux-arm64": "0.20.2",+ "@esbuild/linux-ia32": "0.20.2",+ "@esbuild/linux-loong64": "0.20.2",+ "@esbuild/linux-mips64el": "0.20.2",+ "@esbuild/linux-ppc64": "0.20.2",+ "@esbuild/linux-riscv64": "0.20.2",+ "@esbuild/linux-s390x": "0.20.2",+ "@esbuild/linux-x64": "0.20.2",+ "@esbuild/netbsd-x64": "0.20.2",+ "@esbuild/openbsd-x64": "0.20.2",+ "@esbuild/sunos-x64": "0.20.2",+ "@esbuild/win32-arm64": "0.20.2",+ "@esbuild/win32-ia32": "0.20.2",+ "@esbuild/win32-x64": "0.20.2"}},"node_modules/vite/node_modules/rollup": {- "version": "4.12.1",- "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.12.1.tgz",- "integrity": "sha512-ggqQKvx/PsB0FaWXhIvVkSWh7a/PCLQAsMjBc+nA2M8Rv2/HG0X6zvixAB7KyZBRtifBUhy5k8voQX/mRnABPg==",+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.15.0.tgz",+ "integrity": "sha512-i0ir57IMF5o7YvNYyUNeIGG+IZaaucnGZAOsSctO2tPLXlCEaZzyBa+QhpHNSgtpyLMoDev2DyN6a7J1dQA8Tw==","dependencies": {"@types/estree": "1.0.5"},@@ -31442,19 +31524,22 @@"npm": ">=8.0.0"},"optionalDependencies": {- "@rollup/rollup-android-arm-eabi": "4.12.1",- "@rollup/rollup-android-arm64": "4.12.1",- "@rollup/rollup-darwin-arm64": "4.12.1",- "@rollup/rollup-darwin-x64": "4.12.1",- "@rollup/rollup-linux-arm-gnueabihf": "4.12.1",- "@rollup/rollup-linux-arm64-gnu": "4.12.1",- "@rollup/rollup-linux-arm64-musl": "4.12.1",- "@rollup/rollup-linux-riscv64-gnu": "4.12.1",- "@rollup/rollup-linux-x64-gnu": "4.12.1",- "@rollup/rollup-linux-x64-musl": "4.12.1",- "@rollup/rollup-win32-arm64-msvc": "4.12.1",- "@rollup/rollup-win32-ia32-msvc": "4.12.1",- "@rollup/rollup-win32-x64-msvc": "4.12.1",+ "@rollup/rollup-android-arm-eabi": "4.15.0",+ "@rollup/rollup-android-arm64": "4.15.0",+ "@rollup/rollup-darwin-arm64": "4.15.0",+ "@rollup/rollup-darwin-x64": "4.15.0",+ "@rollup/rollup-linux-arm-gnueabihf": "4.15.0",+ "@rollup/rollup-linux-arm-musleabihf": "4.15.0",+ "@rollup/rollup-linux-arm64-gnu": "4.15.0",+ "@rollup/rollup-linux-arm64-musl": "4.15.0",+ "@rollup/rollup-linux-powerpc64le-gnu": "4.15.0",+ "@rollup/rollup-linux-riscv64-gnu": "4.15.0",+ "@rollup/rollup-linux-s390x-gnu": "4.15.0",+ "@rollup/rollup-linux-x64-gnu": "4.15.0",+ "@rollup/rollup-linux-x64-musl": "4.15.0",+ "@rollup/rollup-win32-arm64-msvc": "4.15.0",+ "@rollup/rollup-win32-ia32-msvc": "4.15.0",+ "@rollup/rollup-win32-x64-msvc": "4.15.0","fsevents": "~2.3.2"}},diff --git a/package.json b/package.jsonindex d0417c607b..b83513cb36 100755--- a/package.json+++ b/package.json@@ -44,8 +44,7 @@"db:stop": "npm run db:stop -w @carbon/database","db:types": "npm run db:types -w @carbon/database","deploy": "turbo run deploy",- "dev": "turbo run dev --filter=./apps/* --filter=./packages/*",- "dev:apps": "turbo run dev --filter=./apps/carbon",+ "dev": "turbo run dev --filter=./apps/carbon --filter=./packages/","dev:docs": "turbo run dev --filter=./apps/docs","dev:packages": "turbo run dev --filter=./packages/*","dev:www": "turbo run dev --filter=./www",diff --git a/packages/database/src/types.ts b/packages/database/src/types.tsindex dafba481bf..ace2db150d 100644--- a/packages/database/src/types.ts+++ b/packages/database/src/types.ts@@ -4,17731 +4,17731 @@ export type Json =| boolean| null| { [key: string]: Json | undefined }- | Json[];+ | Json[]export type Database = {graphql_public: {Tables: {- [_ in never]: never;- };+ [_ in never]: never+ }Views: {- [_ in never]: never;- };+ [_ in never]: never+ }Functions: {graphql: {Args: {- operationName?: string;- query?: string;- variables?: Json;- extensions?: Json;- };- Returns: Json;- };- };+ operationName?: string+ query?: string+ variables?: Json+ extensions?: Json+ }+ Returns: Json+ }+ }Enums: {- [_ in never]: never;- };+ [_ in never]: never+ }CompositeTypes: {- [_ in never]: never;- };- };+ [_ in never]: never+ }+ }public: {Tables: {ability: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- curve: Json;- id: string;- name: string;- shadowWeeks: number;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ curve: Json+ id: string+ name: string+ shadowWeeks: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- curve?: Json;- id?: string;- name: string;- shadowWeeks?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ curve?: Json+ id?: string+ name: string+ shadowWeeks?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- curve?: Json;- id?: string;- name?: string;- shadowWeeks?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ curve?: Json+ id?: string+ name?: string+ shadowWeeks?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "abilities_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "abilities_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "abilities_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "abilities_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "abilities_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "abilities_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "abilities_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "abilities_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "abilities_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "abilities_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "abilities_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "abilities_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "abilities_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "abilities_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "abilities_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "abilities_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }account: {Row: {- accountCategoryId: string | null;- accountSubcategoryId: string | null;- active: boolean;- class: Database["public"]["Enums"]["glAccountClass"] | null;+ accountCategoryId: string | null+ accountSubcategoryId: string | null+ active: boolean+ class: Database["public"]["Enums"]["glAccountClass"] | nullconsolidatedRate:| Database["public"]["Enums"]["glConsolidatedRate"]- | null;- createdAt: string;- createdBy: string;- customFields: Json | null;- directPosting: boolean;- id: string;- incomeBalance: Database["public"]["Enums"]["glIncomeBalance"];- name: string;- number: string;- type: Database["public"]["Enums"]["glAccountType"];- updatedAt: string | null;- updatedBy: string | null;- };+ | null+ createdAt: string+ createdBy: string+ customFields: Json | null+ directPosting: boolean+ id: string+ incomeBalance: Database["public"]["Enums"]["glIncomeBalance"]+ name: string+ number: string+ type: Database["public"]["Enums"]["glAccountType"]+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountCategoryId?: string | null;- accountSubcategoryId?: string | null;- active?: boolean;- class?: Database["public"]["Enums"]["glAccountClass"] | null;+ accountCategoryId?: string | null+ accountSubcategoryId?: string | null+ active?: boolean+ class?: Database["public"]["Enums"]["glAccountClass"] | nullconsolidatedRate?:| Database["public"]["Enums"]["glConsolidatedRate"]- | null;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- directPosting?: boolean;- id?: string;- incomeBalance: Database["public"]["Enums"]["glIncomeBalance"];- name: string;- number: string;- type: Database["public"]["Enums"]["glAccountType"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ | null+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ directPosting?: boolean+ id?: string+ incomeBalance: Database["public"]["Enums"]["glIncomeBalance"]+ name: string+ number: string+ type: Database["public"]["Enums"]["glAccountType"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountCategoryId?: string | null;- accountSubcategoryId?: string | null;- active?: boolean;- class?: Database["public"]["Enums"]["glAccountClass"] | null;+ accountCategoryId?: string | null+ accountSubcategoryId?: string | null+ active?: boolean+ class?: Database["public"]["Enums"]["glAccountClass"] | nullconsolidatedRate?:| Database["public"]["Enums"]["glConsolidatedRate"]- | null;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- directPosting?: boolean;- id?: string;- incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"];- name?: string;- number?: string;- type?: Database["public"]["Enums"]["glAccountType"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ | null+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ directPosting?: boolean+ id?: string+ incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"]+ name?: string+ number?: string+ type?: Database["public"]["Enums"]["glAccountType"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "account_accountCategoryId_fkey";- columns: ["accountCategoryId"];- isOneToOne: false;- referencedRelation: "accountCategories";- referencedColumns: ["id"];+ foreignKeyName: "account_accountCategoryId_fkey"+ columns: ["accountCategoryId"]+ isOneToOne: false+ referencedRelation: "accountCategories"+ referencedColumns: ["id"]},{- foreignKeyName: "account_accountCategoryId_fkey";- columns: ["accountCategoryId"];- isOneToOne: false;- referencedRelation: "accountCategory";- referencedColumns: ["id"];+ foreignKeyName: "account_accountCategoryId_fkey"+ columns: ["accountCategoryId"]+ isOneToOne: false+ referencedRelation: "accountCategory"+ referencedColumns: ["id"]},{- foreignKeyName: "account_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "account_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "account_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "account_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "account_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "account_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "account_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "account_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "account_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "account_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "account_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "account_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "account_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "account_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "account_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "account_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }accountCategory: {Row: {- category: string;- class: Database["public"]["Enums"]["glAccountClass"];- createdAt: string;- createdBy: string;- customFields: Json | null;- id: string;- incomeBalance: Database["public"]["Enums"]["glIncomeBalance"];- updatedAt: string | null;- updatedBy: string | null;- };+ category: string+ class: Database["public"]["Enums"]["glAccountClass"]+ createdAt: string+ createdBy: string+ customFields: Json | null+ id: string+ incomeBalance: Database["public"]["Enums"]["glIncomeBalance"]+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- category: string;- class: Database["public"]["Enums"]["glAccountClass"];- createdAt?: string;- createdBy: string;- customFields?: Json | null;- id?: string;- incomeBalance: Database["public"]["Enums"]["glIncomeBalance"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ category: string+ class: Database["public"]["Enums"]["glAccountClass"]+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ id?: string+ incomeBalance: Database["public"]["Enums"]["glIncomeBalance"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- category?: string;- class?: Database["public"]["Enums"]["glAccountClass"];- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- id?: string;- incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ category?: string+ class?: Database["public"]["Enums"]["glAccountClass"]+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ id?: string+ incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "accountCategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountCategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "accountCategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "accountCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }accountDefault: {Row: {- accumulatedDepreciationAccount: string;- accumulatedDepreciationOnDisposalAccount: string;- assetAquisitionCostAccount: string;- assetAquisitionCostOnDisposalAccount: string;- assetDepreciationExpenseAccount: string;- assetGainsAndLossesAccount: string;- bankCashAccount: string;- bankForeignCurrencyAccount: string;- bankLocalCurrencyAccount: string;- capacityVarianceAccount: string;- costOfGoodsSoldAccount: string;- customerPaymentDiscountAccount: string;- directCostAppliedAccount: string;- id: boolean;- interestAccount: string;- inventoryAccount: string;- inventoryAdjustmentVarianceAccount: string;- inventoryInterimAccrualAccount: string;- inventoryInvoicedNotReceivedAccount: string;- inventoryReceivedNotInvoicedAccount: string;- inventoryShippedNotInvoicedAccount: string;- maintenanceAccount: string;- materialVarianceAccount: string;- overheadAccount: string;- overheadCostAppliedAccount: string;- payablesAccount: string;- prepaymentAccount: string;- purchaseAccount: string;- purchaseTaxPayableAccount: string;- purchaseVarianceAccount: string;- receivablesAccount: string;- retainedEarningsAccount: string;- reverseChargeSalesTaxPayableAccount: string;- roundingAccount: string;- salesAccount: string;- salesDiscountAccount: string;- salesTaxPayableAccount: string;- serviceChargeAccount: string;- supplierPaymentDiscountAccount: string;- updatedBy: string | null;- workInProgressAccount: string;- };+ accumulatedDepreciationAccount: string+ accumulatedDepreciationOnDisposalAccount: string+ assetAquisitionCostAccount: string+ assetAquisitionCostOnDisposalAccount: string+ assetDepreciationExpenseAccount: string+ assetGainsAndLossesAccount: string+ bankCashAccount: string+ bankForeignCurrencyAccount: string+ bankLocalCurrencyAccount: string+ capacityVarianceAccount: string+ costOfGoodsSoldAccount: string+ customerPaymentDiscountAccount: string+ directCostAppliedAccount: string+ id: boolean+ interestAccount: string+ inventoryAccount: string+ inventoryAdjustmentVarianceAccount: string+ inventoryInterimAccrualAccount: string+ inventoryInvoicedNotReceivedAccount: string+ inventoryReceivedNotInvoicedAccount: string+ inventoryShippedNotInvoicedAccount: string+ maintenanceAccount: string+ materialVarianceAccount: string+ overheadAccount: string+ overheadCostAppliedAccount: string+ payablesAccount: string+ prepaymentAccount: string+ purchaseAccount: string+ purchaseTaxPayableAccount: string+ purchaseVarianceAccount: string+ receivablesAccount: string+ retainedEarningsAccount: string+ reverseChargeSalesTaxPayableAccount: string+ roundingAccount: string+ salesAccount: string+ salesDiscountAccount: string+ salesTaxPayableAccount: string+ serviceChargeAccount: string+ supplierPaymentDiscountAccount: string+ updatedBy: string | null+ workInProgressAccount: string+ }Insert: {- accumulatedDepreciationAccount: string;- accumulatedDepreciationOnDisposalAccount: string;- assetAquisitionCostAccount: string;- assetAquisitionCostOnDisposalAccount: string;- assetDepreciationExpenseAccount: string;- assetGainsAndLossesAccount: string;- bankCashAccount: string;- bankForeignCurrencyAccount: string;- bankLocalCurrencyAccount: string;- capacityVarianceAccount: string;- costOfGoodsSoldAccount: string;- customerPaymentDiscountAccount: string;- directCostAppliedAccount: string;- id?: boolean;- interestAccount: string;- inventoryAccount: string;- inventoryAdjustmentVarianceAccount: string;- inventoryInterimAccrualAccount: string;- inventoryInvoicedNotReceivedAccount: string;- inventoryReceivedNotInvoicedAccount: string;- inventoryShippedNotInvoicedAccount: string;- maintenanceAccount: string;- materialVarianceAccount: string;- overheadAccount: string;- overheadCostAppliedAccount: string;- payablesAccount: string;- prepaymentAccount: string;- purchaseAccount: string;- purchaseTaxPayableAccount: string;- purchaseVarianceAccount: string;- receivablesAccount: string;- retainedEarningsAccount: string;- reverseChargeSalesTaxPayableAccount: string;- roundingAccount: string;- salesAccount: string;- salesDiscountAccount: string;- salesTaxPayableAccount: string;- serviceChargeAccount: string;- supplierPaymentDiscountAccount: string;- updatedBy?: string | null;- workInProgressAccount: string;- };+ accumulatedDepreciationAccount: string+ accumulatedDepreciationOnDisposalAccount: string+ assetAquisitionCostAccount: string+ assetAquisitionCostOnDisposalAccount: string+ assetDepreciationExpenseAccount: string+ assetGainsAndLossesAccount: string+ bankCashAccount: string+ bankForeignCurrencyAccount: string+ bankLocalCurrencyAccount: string+ capacityVarianceAccount: string+ costOfGoodsSoldAccount: string+ customerPaymentDiscountAccount: string+ directCostAppliedAccount: string+ id?: boolean+ interestAccount: string+ inventoryAccount: string+ inventoryAdjustmentVarianceAccount: string+ inventoryInterimAccrualAccount: string+ inventoryInvoicedNotReceivedAccount: string+ inventoryReceivedNotInvoicedAccount: string+ inventoryShippedNotInvoicedAccount: string+ maintenanceAccount: string+ materialVarianceAccount: string+ overheadAccount: string+ overheadCostAppliedAccount: string+ payablesAccount: string+ prepaymentAccount: string+ purchaseAccount: string+ purchaseTaxPayableAccount: string+ purchaseVarianceAccount: string+ receivablesAccount: string+ retainedEarningsAccount: string+ reverseChargeSalesTaxPayableAccount: string+ roundingAccount: string+ salesAccount: string+ salesDiscountAccount: string+ salesTaxPayableAccount: string+ serviceChargeAccount: string+ supplierPaymentDiscountAccount: string+ updatedBy?: string | null+ workInProgressAccount: string+ }Update: {- accumulatedDepreciationAccount?: string;- accumulatedDepreciationOnDisposalAccount?: string;- assetAquisitionCostAccount?: string;- assetAquisitionCostOnDisposalAccount?: string;- assetDepreciationExpenseAccount?: string;- assetGainsAndLossesAccount?: string;- bankCashAccount?: string;- bankForeignCurrencyAccount?: string;- bankLocalCurrencyAccount?: string;- capacityVarianceAccount?: string;- costOfGoodsSoldAccount?: string;- customerPaymentDiscountAccount?: string;- directCostAppliedAccount?: string;- id?: boolean;- interestAccount?: string;- inventoryAccount?: string;- inventoryAdjustmentVarianceAccount?: string;- inventoryInterimAccrualAccount?: string;- inventoryInvoicedNotReceivedAccount?: string;- inventoryReceivedNotInvoicedAccount?: string;- inventoryShippedNotInvoicedAccount?: string;- maintenanceAccount?: string;- materialVarianceAccount?: string;- overheadAccount?: string;- overheadCostAppliedAccount?: string;- payablesAccount?: string;- prepaymentAccount?: string;- purchaseAccount?: string;- purchaseTaxPayableAccount?: string;- purchaseVarianceAccount?: string;- receivablesAccount?: string;- retainedEarningsAccount?: string;- reverseChargeSalesTaxPayableAccount?: string;- roundingAccount?: string;- salesAccount?: string;- salesDiscountAccount?: string;- salesTaxPayableAccount?: string;- serviceChargeAccount?: string;- supplierPaymentDiscountAccount?: string;- updatedBy?: string | null;- workInProgressAccount?: string;- };+ accumulatedDepreciationAccount?: string+ accumulatedDepreciationOnDisposalAccount?: string+ assetAquisitionCostAccount?: string+ assetAquisitionCostOnDisposalAccount?: string+ assetDepreciationExpenseAccount?: string+ assetGainsAndLossesAccount?: string+ bankCashAccount?: string+ bankForeignCurrencyAccount?: string+ bankLocalCurrencyAccount?: string+ capacityVarianceAccount?: string+ costOfGoodsSoldAccount?: string+ customerPaymentDiscountAccount?: string+ directCostAppliedAccount?: string+ id?: boolean+ interestAccount?: string+ inventoryAccount?: string+ inventoryAdjustmentVarianceAccount?: string+ inventoryInterimAccrualAccount?: string+ inventoryInvoicedNotReceivedAccount?: string+ inventoryReceivedNotInvoicedAccount?: string+ inventoryShippedNotInvoicedAccount?: string+ maintenanceAccount?: string+ materialVarianceAccount?: string+ overheadAccount?: string+ overheadCostAppliedAccount?: string+ payablesAccount?: string+ prepaymentAccount?: string+ purchaseAccount?: string+ purchaseTaxPayableAccount?: string+ purchaseVarianceAccount?: string+ receivablesAccount?: string+ retainedEarningsAccount?: string+ reverseChargeSalesTaxPayableAccount?: string+ roundingAccount?: string+ salesAccount?: string+ salesDiscountAccount?: string+ salesTaxPayableAccount?: string+ serviceChargeAccount?: string+ supplierPaymentDiscountAccount?: string+ updatedBy?: string | null+ workInProgressAccount?: string+ }Relationships: [{- foreignKeyName: "accountDefault_accumulatedDepreciationAccount_fkey";- columns: ["accumulatedDepreciationAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_accumulatedDepreciationAccount_fkey"+ columns: ["accumulatedDepreciationAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_accumulatedDepreciationAccount_fkey";- columns: ["accumulatedDepreciationAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_accumulatedDepreciationAccount_fkey"+ columns: ["accumulatedDepreciationAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_accumulatedDepreciationOnDisposalAccount_fkey";- columns: ["accumulatedDepreciationOnDisposalAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_accumulatedDepreciationOnDisposalAccount_fkey"+ columns: ["accumulatedDepreciationOnDisposalAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_accumulatedDepreciationOnDisposalAccount_fkey";- columns: ["accumulatedDepreciationOnDisposalAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_accumulatedDepreciationOnDisposalAccount_fkey"+ columns: ["accumulatedDepreciationOnDisposalAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_aquisitionCostAccount_fkey";- columns: ["assetAquisitionCostAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_aquisitionCostAccount_fkey"+ columns: ["assetAquisitionCostAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_aquisitionCostAccount_fkey";- columns: ["assetAquisitionCostAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_aquisitionCostAccount_fkey"+ columns: ["assetAquisitionCostAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_aquisitionCostOnDisposalAccount_fkey";- columns: ["assetAquisitionCostOnDisposalAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_aquisitionCostOnDisposalAccount_fkey"+ columns: ["assetAquisitionCostOnDisposalAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_aquisitionCostOnDisposalAccount_fkey";- columns: ["assetAquisitionCostOnDisposalAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_aquisitionCostOnDisposalAccount_fkey"+ columns: ["assetAquisitionCostOnDisposalAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_assetDepreciationExpenseAccount_fkey";- columns: ["assetDepreciationExpenseAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_assetDepreciationExpenseAccount_fkey"+ columns: ["assetDepreciationExpenseAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_assetDepreciationExpenseAccount_fkey";- columns: ["assetDepreciationExpenseAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_assetDepreciationExpenseAccount_fkey"+ columns: ["assetDepreciationExpenseAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_assetGainsAndLossesAccount_fkey";- columns: ["assetGainsAndLossesAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_assetGainsAndLossesAccount_fkey"+ columns: ["assetGainsAndLossesAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_assetGainsAndLossesAccount_fkey";- columns: ["assetGainsAndLossesAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_assetGainsAndLossesAccount_fkey"+ columns: ["assetGainsAndLossesAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_bankCashAccount_fkey";- columns: ["bankCashAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_bankCashAccount_fkey"+ columns: ["bankCashAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_bankCashAccount_fkey";- columns: ["bankCashAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_bankCashAccount_fkey"+ columns: ["bankCashAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_bankForeignCurrencyAccount_fkey";- columns: ["bankForeignCurrencyAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_bankForeignCurrencyAccount_fkey"+ columns: ["bankForeignCurrencyAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_bankForeignCurrencyAccount_fkey";- columns: ["bankForeignCurrencyAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_bankForeignCurrencyAccount_fkey"+ columns: ["bankForeignCurrencyAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_bankLocalCurrencyAccount_fkey";- columns: ["bankLocalCurrencyAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_bankLocalCurrencyAccount_fkey"+ columns: ["bankLocalCurrencyAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_bankLocalCurrencyAccount_fkey";- columns: ["bankLocalCurrencyAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_bankLocalCurrencyAccount_fkey"+ columns: ["bankLocalCurrencyAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_capacityVarianceAccount_fkey";- columns: ["capacityVarianceAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_capacityVarianceAccount_fkey"+ columns: ["capacityVarianceAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_capacityVarianceAccount_fkey";- columns: ["capacityVarianceAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_capacityVarianceAccount_fkey"+ columns: ["capacityVarianceAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_costOfGoodsSoldAccount_fkey";- columns: ["costOfGoodsSoldAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_costOfGoodsSoldAccount_fkey"+ columns: ["costOfGoodsSoldAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_costOfGoodsSoldAccount_fkey";- columns: ["costOfGoodsSoldAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_costOfGoodsSoldAccount_fkey"+ columns: ["costOfGoodsSoldAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_customerPaymentDiscountAccount_fkey";- columns: ["customerPaymentDiscountAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_customerPaymentDiscountAccount_fkey"+ columns: ["customerPaymentDiscountAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_customerPaymentDiscountAccount_fkey";- columns: ["customerPaymentDiscountAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_customerPaymentDiscountAccount_fkey"+ columns: ["customerPaymentDiscountAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_directCostAppliedAccount_fkey";- columns: ["directCostAppliedAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_directCostAppliedAccount_fkey"+ columns: ["directCostAppliedAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_directCostAppliedAccount_fkey";- columns: ["directCostAppliedAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_directCostAppliedAccount_fkey"+ columns: ["directCostAppliedAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_interestAccount_fkey";- columns: ["interestAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_interestAccount_fkey"+ columns: ["interestAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_interestAccount_fkey";- columns: ["interestAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_interestAccount_fkey"+ columns: ["interestAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryAccount_fkey";- columns: ["inventoryAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryAccount_fkey"+ columns: ["inventoryAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryAccount_fkey";- columns: ["inventoryAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryAccount_fkey"+ columns: ["inventoryAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryAdjustmentVarianceAccount_fkey";- columns: ["inventoryAdjustmentVarianceAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryAdjustmentVarianceAccount_fkey"+ columns: ["inventoryAdjustmentVarianceAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryAdjustmentVarianceAccount_fkey";- columns: ["inventoryAdjustmentVarianceAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryAdjustmentVarianceAccount_fkey"+ columns: ["inventoryAdjustmentVarianceAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryInterimAccrualAccount_fkey";- columns: ["inventoryInterimAccrualAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryInterimAccrualAccount_fkey"+ columns: ["inventoryInterimAccrualAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryInterimAccrualAccount_fkey";- columns: ["inventoryInterimAccrualAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryInterimAccrualAccount_fkey"+ columns: ["inventoryInterimAccrualAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryReceivedNotInvoicedAccount_fkey";- columns: ["inventoryReceivedNotInvoicedAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryReceivedNotInvoicedAccount_fkey"+ columns: ["inventoryReceivedNotInvoicedAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryReceivedNotInvoicedAccount_fkey";- columns: ["inventoryReceivedNotInvoicedAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryReceivedNotInvoicedAccount_fkey"+ columns: ["inventoryReceivedNotInvoicedAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryShippedNotInvoicedAccount_fkey";- columns: ["inventoryShippedNotInvoicedAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryShippedNotInvoicedAccount_fkey"+ columns: ["inventoryShippedNotInvoicedAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryShippedNotInvoicedAccount_fkey";- columns: ["inventoryShippedNotInvoicedAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryShippedNotInvoicedAccount_fkey"+ columns: ["inventoryShippedNotInvoicedAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_maintenanceAccount_fkey";- columns: ["maintenanceAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_maintenanceAccount_fkey"+ columns: ["maintenanceAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_maintenanceAccount_fkey";- columns: ["maintenanceAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_maintenanceAccount_fkey"+ columns: ["maintenanceAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_materialVarianceAccount_fkey";- columns: ["materialVarianceAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_materialVarianceAccount_fkey"+ columns: ["materialVarianceAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_materialVarianceAccount_fkey";- columns: ["materialVarianceAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_materialVarianceAccount_fkey"+ columns: ["materialVarianceAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_overheadAccount_fkey";- columns: ["overheadAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_overheadAccount_fkey"+ columns: ["overheadAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_overheadAccount_fkey";- columns: ["overheadAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_overheadAccount_fkey"+ columns: ["overheadAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_overheadCostAppliedAccount_fkey";- columns: ["overheadCostAppliedAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_overheadCostAppliedAccount_fkey"+ columns: ["overheadCostAppliedAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_overheadCostAppliedAccount_fkey";- columns: ["overheadCostAppliedAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_overheadCostAppliedAccount_fkey"+ columns: ["overheadCostAppliedAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_payablesAccount_fkey";- columns: ["payablesAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_payablesAccount_fkey"+ columns: ["payablesAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_payablesAccount_fkey";- columns: ["payablesAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_payablesAccount_fkey"+ columns: ["payablesAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_prepaymentAccount_fkey";- columns: ["prepaymentAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_prepaymentAccount_fkey"+ columns: ["prepaymentAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_prepaymentAccount_fkey";- columns: ["prepaymentAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_prepaymentAccount_fkey"+ columns: ["prepaymentAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_purchaseAccount_fkey";- columns: ["purchaseAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_purchaseAccount_fkey"+ columns: ["purchaseAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_purchaseAccount_fkey";- columns: ["purchaseAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_purchaseAccount_fkey"+ columns: ["purchaseAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_purchaseTaxPayableAccount_fkey";- columns: ["purchaseTaxPayableAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_purchaseTaxPayableAccount_fkey"+ columns: ["purchaseTaxPayableAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_purchaseTaxPayableAccount_fkey";- columns: ["purchaseTaxPayableAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_purchaseTaxPayableAccount_fkey"+ columns: ["purchaseTaxPayableAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_purchaseVarianceAccount_fkey";- columns: ["purchaseVarianceAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_purchaseVarianceAccount_fkey"+ columns: ["purchaseVarianceAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_purchaseVarianceAccount_fkey";- columns: ["purchaseVarianceAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_purchaseVarianceAccount_fkey"+ columns: ["purchaseVarianceAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_receivablesAccount_fkey";- columns: ["receivablesAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_receivablesAccount_fkey"+ columns: ["receivablesAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_receivablesAccount_fkey";- columns: ["receivablesAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_receivablesAccount_fkey"+ columns: ["receivablesAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_retainedEarningsAccount_fkey";- columns: ["retainedEarningsAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_retainedEarningsAccount_fkey"+ columns: ["retainedEarningsAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_retainedEarningsAccount_fkey";- columns: ["retainedEarningsAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_retainedEarningsAccount_fkey"+ columns: ["retainedEarningsAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_reverseChargeSalesTaxPayableAccount_fkey";- columns: ["reverseChargeSalesTaxPayableAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_reverseChargeSalesTaxPayableAccount_fkey"+ columns: ["reverseChargeSalesTaxPayableAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_reverseChargeSalesTaxPayableAccount_fkey";- columns: ["reverseChargeSalesTaxPayableAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_reverseChargeSalesTaxPayableAccount_fkey"+ columns: ["reverseChargeSalesTaxPayableAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_roundingAccount_fkey";- columns: ["roundingAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_roundingAccount_fkey"+ columns: ["roundingAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_roundingAccount_fkey";- columns: ["roundingAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_roundingAccount_fkey"+ columns: ["roundingAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_salesAccount_fkey";- columns: ["salesAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_salesAccount_fkey"+ columns: ["salesAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_salesAccount_fkey";- columns: ["salesAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_salesAccount_fkey"+ columns: ["salesAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_salesDiscountAccount_fkey";- columns: ["salesDiscountAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_salesDiscountAccount_fkey"+ columns: ["salesDiscountAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_salesDiscountAccount_fkey";- columns: ["salesDiscountAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_salesDiscountAccount_fkey"+ columns: ["salesDiscountAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_salesTaxPayableAccount_fkey";- columns: ["salesTaxPayableAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_salesTaxPayableAccount_fkey"+ columns: ["salesTaxPayableAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_salesTaxPayableAccount_fkey";- columns: ["salesTaxPayableAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_salesTaxPayableAccount_fkey"+ columns: ["salesTaxPayableAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_serviceChargeAccount_fkey";- columns: ["serviceChargeAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_serviceChargeAccount_fkey"+ columns: ["serviceChargeAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_serviceChargeAccount_fkey";- columns: ["serviceChargeAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_serviceChargeAccount_fkey"+ columns: ["serviceChargeAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_supplierPaymentDiscountAccount_fkey";- columns: ["supplierPaymentDiscountAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_supplierPaymentDiscountAccount_fkey"+ columns: ["supplierPaymentDiscountAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_supplierPaymentDiscountAccount_fkey";- columns: ["supplierPaymentDiscountAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_supplierPaymentDiscountAccount_fkey"+ columns: ["supplierPaymentDiscountAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "accountDefault_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "accountDefault_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "accountDefault_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "accountDefault_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountDefault_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountDefault_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountDefault_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "accountDefault_workInProgressAccount_fkey";- columns: ["workInProgressAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_workInProgressAccount_fkey"+ columns: ["workInProgressAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_workInProgressAccount_fkey";- columns: ["workInProgressAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];- }- ];- };+ foreignKeyName: "accountDefault_workInProgressAccount_fkey"+ columns: ["workInProgressAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]+ },+ ]+ }accountingPeriod: {Row: {- closedAt: string | null;- closedBy: string | null;- createdAt: string;- createdBy: string;- endDate: string;- id: string;- startDate: string;- status: Database["public"]["Enums"]["accountingPeriodStatus"];- updatedAt: string | null;- updatedBy: string | null;- };+ closedAt: string | null+ closedBy: string | null+ createdAt: string+ createdBy: string+ endDate: string+ id: string+ startDate: string+ status: Database["public"]["Enums"]["accountingPeriodStatus"]+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- closedAt?: string | null;- closedBy?: string | null;- createdAt?: string;- createdBy: string;- endDate: string;- id?: string;- startDate: string;- status?: Database["public"]["Enums"]["accountingPeriodStatus"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ closedAt?: string | null+ closedBy?: string | null+ createdAt?: string+ createdBy: string+ endDate: string+ id?: string+ startDate: string+ status?: Database["public"]["Enums"]["accountingPeriodStatus"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- closedAt?: string | null;- closedBy?: string | null;- createdAt?: string;- createdBy?: string;- endDate?: string;- id?: string;- startDate?: string;- status?: Database["public"]["Enums"]["accountingPeriodStatus"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ closedAt?: string | null+ closedBy?: string | null+ createdAt?: string+ createdBy?: string+ endDate?: string+ id?: string+ startDate?: string+ status?: Database["public"]["Enums"]["accountingPeriodStatus"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "accountingPeriod_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "accountingPeriod_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "accountingPeriod_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "accountingPeriod_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "accountingPeriod_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountingPeriod_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountingPeriod_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountingPeriod_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "accountingPeriod_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "accountingPeriod_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "accountingPeriod_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "accountingPeriod_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "accountingPeriod_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountingPeriod_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountingPeriod_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountingPeriod_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "accountingPeriod_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "accountingPeriod_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "accountingPeriod_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "accountingPeriod_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "accountingPeriod_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountingPeriod_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountingPeriod_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "accountingPeriod_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }accountSubcategory: {Row: {- accountCategoryId: string;- active: boolean;- createdAt: string;- createdBy: string;- customFields: Json | null;- id: string;- name: string;- updatedAt: string | null;- updatedBy: string | null;- };+ accountCategoryId: string+ active: boolean+ createdAt: string+ createdBy: string+ customFields: Json | null+ id: string+ name: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountCategoryId: string;- active?: boolean;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- id?: string;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountCategoryId: string+ active?: boolean+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ id?: string+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountCategoryId?: string;- active?: boolean;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- id?: string;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountCategoryId?: string+ active?: boolean+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ id?: string+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "accountSubcategory_accountCategoryId_fkey";- columns: ["accountCategoryId"];- isOneToOne: false;- referencedRelation: "accountCategories";- referencedColumns: ["id"];+ foreignKeyName: "accountSubcategory_accountCategoryId_fkey"+ columns: ["accountCategoryId"]+ isOneToOne: false+ referencedRelation: "accountCategories"+ referencedColumns: ["id"]},{- foreignKeyName: "accountSubcategory_accountCategoryId_fkey";- columns: ["accountCategoryId"];- isOneToOne: false;- referencedRelation: "accountCategory";- referencedColumns: ["id"];+ foreignKeyName: "accountSubcategory_accountCategoryId_fkey"+ columns: ["accountCategoryId"]+ isOneToOne: false+ referencedRelation: "accountCategory"+ referencedColumns: ["id"]},{- foreignKeyName: "accountSubcategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "accountSubcategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "accountSubcategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "accountSubcategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "accountSubcategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountSubcategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountSubcategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountSubcategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "accountSubcategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "accountSubcategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "accountSubcategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "accountSubcategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "accountSubcategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountSubcategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountSubcategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "accountSubcategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }address: {Row: {- addressLine1: string | null;- addressLine2: string | null;- city: string | null;- countryCode: number | null;- fax: string | null;- id: string;- phone: string | null;- postalCode: string | null;- state: string | null;- };+ addressLine1: string | null+ addressLine2: string | null+ city: string | null+ countryCode: number | null+ fax: string | null+ id: string+ phone: string | null+ postalCode: string | null+ state: string | null+ }Insert: {- addressLine1?: string | null;- addressLine2?: string | null;- city?: string | null;- countryCode?: number | null;- fax?: string | null;- id?: string;- phone?: string | null;- postalCode?: string | null;- state?: string | null;- };+ addressLine1?: string | null+ addressLine2?: string | null+ city?: string | null+ countryCode?: number | null+ fax?: string | null+ id?: string+ phone?: string | null+ postalCode?: string | null+ state?: string | null+ }Update: {- addressLine1?: string | null;- addressLine2?: string | null;- city?: string | null;- countryCode?: number | null;- fax?: string | null;- id?: string;- phone?: string | null;- postalCode?: string | null;- state?: string | null;- };+ addressLine1?: string | null+ addressLine2?: string | null+ city?: string | null+ countryCode?: number | null+ fax?: string | null+ id?: string+ phone?: string | null+ postalCode?: string | null+ state?: string | null+ }Relationships: [{- foreignKeyName: "address_countryCode_fkey";- columns: ["countryCode"];- isOneToOne: false;- referencedRelation: "country";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "address_countryCode_fkey"+ columns: ["countryCode"]+ isOneToOne: false+ referencedRelation: "country"+ referencedColumns: ["id"]+ },+ ]+ }attributeDataType: {Row: {- id: number;- isBoolean: boolean;- isDate: boolean;- isList: boolean;- isNumeric: boolean;- isText: boolean;- isUser: boolean;- label: string;- };+ id: number+ isBoolean: boolean+ isDate: boolean+ isList: boolean+ isNumeric: boolean+ isText: boolean+ isUser: boolean+ label: string+ }Insert: {- id?: number;- isBoolean?: boolean;- isDate?: boolean;- isList?: boolean;- isNumeric?: boolean;- isText?: boolean;- isUser?: boolean;- label: string;- };+ id?: number+ isBoolean?: boolean+ isDate?: boolean+ isList?: boolean+ isNumeric?: boolean+ isText?: boolean+ isUser?: boolean+ label: string+ }Update: {- id?: number;- isBoolean?: boolean;- isDate?: boolean;- isList?: boolean;- isNumeric?: boolean;- isText?: boolean;- isUser?: boolean;- label?: string;- };- Relationships: [];- };+ id?: number+ isBoolean?: boolean+ isDate?: boolean+ isList?: boolean+ isNumeric?: boolean+ isText?: boolean+ isUser?: boolean+ label?: string+ }+ Relationships: []+ }company: {Row: {- addressLine1: string | null;- addressLine2: string | null;- city: string | null;- countryCode: string | null;- email: string | null;- fax: string | null;- id: boolean;- logo: string | null;- name: string;- phone: string | null;- postalCode: string | null;- state: string | null;- taxId: string | null;- updatedBy: string | null;- website: string | null;- };+ addressLine1: string | null+ addressLine2: string | null+ city: string | null+ countryCode: string | null+ email: string | null+ fax: string | null+ id: boolean+ logo: string | null+ name: string+ phone: string | null+ postalCode: string | null+ state: string | null+ taxId: string | null+ updatedBy: string | null+ website: string | null+ }Insert: {- addressLine1?: string | null;- addressLine2?: string | null;- city?: string | null;- countryCode?: string | null;- email?: string | null;- fax?: string | null;- id?: boolean;- logo?: string | null;- name: string;- phone?: string | null;- postalCode?: string | null;- state?: string | null;- taxId?: string | null;- updatedBy?: string | null;- website?: string | null;- };+ addressLine1?: string | null+ addressLine2?: string | null+ city?: string | null+ countryCode?: string | null+ email?: string | null+ fax?: string | null+ id?: boolean+ logo?: string | null+ name: string+ phone?: string | null+ postalCode?: string | null+ state?: string | null+ taxId?: string | null+ updatedBy?: string | null+ website?: string | null+ }Update: {- addressLine1?: string | null;- addressLine2?: string | null;- city?: string | null;- countryCode?: string | null;- email?: string | null;- fax?: string | null;- id?: boolean;- logo?: string | null;- name?: string;- phone?: string | null;- postalCode?: string | null;- state?: string | null;- taxId?: string | null;- updatedBy?: string | null;- website?: string | null;- };+ addressLine1?: string | null+ addressLine2?: string | null+ city?: string | null+ countryCode?: string | null+ email?: string | null+ fax?: string | null+ id?: boolean+ logo?: string | null+ name?: string+ phone?: string | null+ postalCode?: string | null+ state?: string | null+ taxId?: string | null+ updatedBy?: string | null+ website?: string | null+ }Relationships: [{- foreignKeyName: "accountDefault_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "accountDefault_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "accountDefault_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "accountDefault_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "accountDefault_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountDefault_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountDefault_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "accountDefault_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }contact: {Row: {- addressLine1: string | null;- addressLine2: string | null;- birthday: string | null;- city: string | null;- countryCode: number | null;- email: string;- fax: string | null;- firstName: string;- fullName: string | null;- homePhone: string | null;- id: string;- lastName: string;- mobilePhone: string | null;- notes: string | null;- postalCode: string | null;- state: string | null;- title: string | null;- workPhone: string | null;- };+ addressLine1: string | null+ addressLine2: string | null+ birthday: string | null+ city: string | null+ countryCode: number | null+ email: string+ fax: string | null+ firstName: string+ fullName: string | null+ homePhone: string | null+ id: string+ lastName: string+ mobilePhone: string | null+ notes: string | null+ postalCode: string | null+ state: string | null+ title: string | null+ workPhone: string | null+ }Insert: {- addressLine1?: string | null;- addressLine2?: string | null;- birthday?: string | null;- city?: string | null;- countryCode?: number | null;- email: string;- fax?: string | null;- firstName: string;- fullName?: string | null;- homePhone?: string | null;- id?: string;- lastName: string;- mobilePhone?: string | null;- notes?: string | null;- postalCode?: string | null;- state?: string | null;- title?: string | null;- workPhone?: string | null;- };+ addressLine1?: string | null+ addressLine2?: string | null+ birthday?: string | null+ city?: string | null+ countryCode?: number | null+ email: string+ fax?: string | null+ firstName: string+ fullName?: string | null+ homePhone?: string | null+ id?: string+ lastName: string+ mobilePhone?: string | null+ notes?: string | null+ postalCode?: string | null+ state?: string | null+ title?: string | null+ workPhone?: string | null+ }Update: {- addressLine1?: string | null;- addressLine2?: string | null;- birthday?: string | null;- city?: string | null;- countryCode?: number | null;- email?: string;- fax?: string | null;- firstName?: string;- fullName?: string | null;- homePhone?: string | null;- id?: string;- lastName?: string;- mobilePhone?: string | null;- notes?: string | null;- postalCode?: string | null;- state?: string | null;- title?: string | null;- workPhone?: string | null;- };+ addressLine1?: string | null+ addressLine2?: string | null+ birthday?: string | null+ city?: string | null+ countryCode?: number | null+ email?: string+ fax?: string | null+ firstName?: string+ fullName?: string | null+ homePhone?: string | null+ id?: string+ lastName?: string+ mobilePhone?: string | null+ notes?: string | null+ postalCode?: string | null+ state?: string | null+ title?: string | null+ workPhone?: string | null+ }Relationships: [{- foreignKeyName: "contact_countryCode_fkey";- columns: ["countryCode"];- isOneToOne: false;- referencedRelation: "country";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "contact_countryCode_fkey"+ columns: ["countryCode"]+ isOneToOne: false+ referencedRelation: "country"+ referencedColumns: ["id"]+ },+ ]+ }contractor: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- customFields: Json | null;- hoursPerWeek: number;- id: string;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ customFields: Json | null+ hoursPerWeek: number+ id: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- hoursPerWeek?: number;- id: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ hoursPerWeek?: number+ id: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- hoursPerWeek?: number;- id?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ hoursPerWeek?: number+ id?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "contractor_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "contractor_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "contractor_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "contractor_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "contractor_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "contractor_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "contractor_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "contractor_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "contractor_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "supplierContact";- referencedColumns: ["id"];+ foreignKeyName: "contractor_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]},{- foreignKeyName: "contractor_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "contractor_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "contractor_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "contractor_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "contractor_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "contractor_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "contractor_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "contractor_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }contractorAbility: {Row: {- abilityId: string;- contractorId: string;- createdAt: string;- createdBy: string;- };+ abilityId: string+ contractorId: string+ createdAt: string+ createdBy: string+ }Insert: {- abilityId: string;- contractorId: string;- createdAt?: string;- createdBy: string;- };+ abilityId: string+ contractorId: string+ createdAt?: string+ createdBy: string+ }Update: {- abilityId?: string;- contractorId?: string;- createdAt?: string;- createdBy?: string;- };+ abilityId?: string+ contractorId?: string+ createdAt?: string+ createdBy?: string+ }Relationships: [{- foreignKeyName: "contractorAbility_abilityId_fkey";- columns: ["abilityId"];- isOneToOne: false;- referencedRelation: "ability";- referencedColumns: ["id"];+ foreignKeyName: "contractorAbility_abilityId_fkey"+ columns: ["abilityId"]+ isOneToOne: false+ referencedRelation: "ability"+ referencedColumns: ["id"]},{- foreignKeyName: "contractorAbility_contractorId_fkey";- columns: ["contractorId"];- isOneToOne: false;- referencedRelation: "contractor";- referencedColumns: ["id"];+ foreignKeyName: "contractorAbility_contractorId_fkey"+ columns: ["contractorId"]+ isOneToOne: false+ referencedRelation: "contractor"+ referencedColumns: ["id"]},{- foreignKeyName: "contractorAbility_contractorId_fkey";- columns: ["contractorId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierContactId"];+ foreignKeyName: "contractorAbility_contractorId_fkey"+ columns: ["contractorId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierContactId"]},{- foreignKeyName: "contractorAbility_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "contractorAbility_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "contractorAbility_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "contractorAbility_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "contractorAbility_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "contractorAbility_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "contractorAbility_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "contractorAbility_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }costLedger: {Row: {- adjustment: boolean;- cost: number;- costLedgerType: Database["public"]["Enums"]["costLedgerType"];- costPostedToGL: number;- createdAt: string;- documentId: string | null;+ adjustment: boolean+ cost: number+ costLedgerType: Database["public"]["Enums"]["costLedgerType"]+ costPostedToGL: number+ createdAt: string+ documentId: string | nulldocumentType:| Database["public"]["Enums"]["partLedgerDocumentType"]- | null;- entryNumber: number;- externalDocumentId: string | null;- id: string;- partId: string | null;- partLedgerType: Database["public"]["Enums"]["partLedgerType"];- postingDate: string;- quantity: number;- };+ | null+ entryNumber: number+ externalDocumentId: string | null+ id: string+ partId: string | null+ partLedgerType: Database["public"]["Enums"]["partLedgerType"]+ postingDate: string+ quantity: number+ }Insert: {- adjustment?: boolean;- cost?: number;- costLedgerType: Database["public"]["Enums"]["costLedgerType"];- costPostedToGL?: number;- createdAt?: string;- documentId?: string | null;+ adjustment?: boolean+ cost?: number+ costLedgerType: Database["public"]["Enums"]["costLedgerType"]+ costPostedToGL?: number+ createdAt?: string+ documentId?: string | nulldocumentType?:| Database["public"]["Enums"]["partLedgerDocumentType"]- | null;- entryNumber?: number;- externalDocumentId?: string | null;- id?: string;- partId?: string | null;- partLedgerType: Database["public"]["Enums"]["partLedgerType"];- postingDate?: string;- quantity?: number;- };+ | null+ entryNumber?: number+ externalDocumentId?: string | null+ id?: string+ partId?: string | null+ partLedgerType: Database["public"]["Enums"]["partLedgerType"]+ postingDate?: string+ quantity?: number+ }Update: {- adjustment?: boolean;- cost?: number;- costLedgerType?: Database["public"]["Enums"]["costLedgerType"];- costPostedToGL?: number;- createdAt?: string;- documentId?: string | null;+ adjustment?: boolean+ cost?: number+ costLedgerType?: Database["public"]["Enums"]["costLedgerType"]+ costPostedToGL?: number+ createdAt?: string+ documentId?: string | nulldocumentType?:| Database["public"]["Enums"]["partLedgerDocumentType"]- | null;- entryNumber?: number;- externalDocumentId?: string | null;- id?: string;- partId?: string | null;- partLedgerType?: Database["public"]["Enums"]["partLedgerType"];- postingDate?: string;- quantity?: number;- };- Relationships: [];- };+ | null+ entryNumber?: number+ externalDocumentId?: string | null+ id?: string+ partId?: string | null+ partLedgerType?: Database["public"]["Enums"]["partLedgerType"]+ postingDate?: string+ quantity?: number+ }+ Relationships: []+ }country: {Row: {- code: string;- id: number;- name: string;- };+ code: string+ id: number+ name: string+ }Insert: {- code: string;- id?: number;- name: string;- };+ code: string+ id?: number+ name: string+ }Update: {- code?: string;- id?: number;- name?: string;- };- Relationships: [];- };+ code?: string+ id?: number+ name?: string+ }+ Relationships: []+ }crew: {Row: {- crewLeaderId: string | null;- description: string | null;- groupId: string;- id: string;- name: string;- workCellId: string | null;- };+ crewLeaderId: string | null+ description: string | null+ groupId: string+ id: string+ name: string+ workCellId: string | null+ }Insert: {- crewLeaderId?: string | null;- description?: string | null;- groupId: string;- id?: string;- name: string;- workCellId?: string | null;- };+ crewLeaderId?: string | null+ description?: string | null+ groupId: string+ id?: string+ name: string+ workCellId?: string | null+ }Update: {- crewLeaderId?: string | null;- description?: string | null;- groupId?: string;- id?: string;- name?: string;- workCellId?: string | null;- };+ crewLeaderId?: string | null+ description?: string | null+ groupId?: string+ id?: string+ name?: string+ workCellId?: string | null+ }Relationships: [{- foreignKeyName: "crew_crewLeaderId_fkey";- columns: ["crewLeaderId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "crew_crewLeaderId_fkey"+ columns: ["crewLeaderId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "crew_crewLeaderId_fkey";- columns: ["crewLeaderId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "crew_crewLeaderId_fkey"+ columns: ["crewLeaderId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "crew_crewLeaderId_fkey";- columns: ["crewLeaderId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "crew_crewLeaderId_fkey"+ columns: ["crewLeaderId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "crew_crewLeaderId_fkey";- columns: ["crewLeaderId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "crew_crewLeaderId_fkey"+ columns: ["crewLeaderId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "crew_groupId_fkey";- columns: ["groupId"];- isOneToOne: false;- referencedRelation: "group";- referencedColumns: ["id"];+ foreignKeyName: "crew_groupId_fkey"+ columns: ["groupId"]+ isOneToOne: false+ referencedRelation: "group"+ referencedColumns: ["id"]},{- foreignKeyName: "crew_workCellId_fkey";- columns: ["workCellId"];- isOneToOne: false;- referencedRelation: "workCell";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "crew_workCellId_fkey"+ columns: ["workCellId"]+ isOneToOne: false+ referencedRelation: "workCell"+ referencedColumns: ["id"]+ },+ ]+ }crewAbility: {Row: {- abilityId: string;- active: boolean;- crewId: string;- id: string;- };+ abilityId: string+ active: boolean+ crewId: string+ id: string+ }Insert: {- abilityId: string;- active?: boolean;- crewId: string;- id?: string;- };+ abilityId: string+ active?: boolean+ crewId: string+ id?: string+ }Update: {- abilityId?: string;- active?: boolean;- crewId?: string;- id?: string;- };+ abilityId?: string+ active?: boolean+ crewId?: string+ id?: string+ }Relationships: [{- foreignKeyName: "crewAbility_abilityId_fkey";- columns: ["abilityId"];- isOneToOne: false;- referencedRelation: "ability";- referencedColumns: ["id"];- },- {- foreignKeyName: "crewAbility_crewId_fkey";- columns: ["crewId"];- isOneToOne: false;- referencedRelation: "crew";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "crewAbility_abilityId_fkey"+ columns: ["abilityId"]+ isOneToOne: false+ referencedRelation: "ability"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "crewAbility_crewId_fkey"+ columns: ["crewId"]+ isOneToOne: false+ referencedRelation: "crew"+ referencedColumns: ["id"]+ },+ ]+ }currency: {Row: {- active: boolean;- code: string;- createdAt: string;- createdBy: string;- customFields: Json | null;- decimalPlaces: number;- exchangeRate: number;- id: string;- isBaseCurrency: boolean;- name: string;- symbol: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ code: string+ createdAt: string+ createdBy: string+ customFields: Json | null+ decimalPlaces: number+ exchangeRate: number+ id: string+ isBaseCurrency: boolean+ name: string+ symbol: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- code: string;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- decimalPlaces?: number;- exchangeRate?: number;- id?: string;- isBaseCurrency?: boolean;- name: string;- symbol?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ code: string+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ decimalPlaces?: number+ exchangeRate?: number+ id?: string+ isBaseCurrency?: boolean+ name: string+ symbol?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- code?: string;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- decimalPlaces?: number;- exchangeRate?: number;- id?: string;- isBaseCurrency?: boolean;- name?: string;- symbol?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ code?: string+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ decimalPlaces?: number+ exchangeRate?: number+ id?: string+ isBaseCurrency?: boolean+ name?: string+ symbol?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "currency_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "currency_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "currency_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "currency_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "currency_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "currency_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "currency_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "currency_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }currencyExchangeRate: {Row: {- currency: string;- exchangeRate: number;- updatedAt: string;- };+ currency: string+ exchangeRate: number+ updatedAt: string+ }Insert: {- currency: string;- exchangeRate: number;- updatedAt?: string;- };+ currency: string+ exchangeRate: number+ updatedAt?: string+ }Update: {- currency?: string;- exchangeRate?: number;- updatedAt?: string;- };- Relationships: [];- };+ currency?: string+ exchangeRate?: number+ updatedAt?: string+ }+ Relationships: []+ }customer: {Row: {- accountManagerId: string | null;- assignee: string | null;- createdAt: string;- createdBy: string | null;- customerStatusId: string | null;- customerTypeId: string | null;- customFields: Json | null;- id: string;- logo: string | null;- name: string;- taxId: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ accountManagerId: string | null+ assignee: string | null+ createdAt: string+ createdBy: string | null+ customerStatusId: string | null+ customerTypeId: string | null+ customFields: Json | null+ id: string+ logo: string | null+ name: string+ taxId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountManagerId?: string | null;- assignee?: string | null;- createdAt?: string;- createdBy?: string | null;- customerStatusId?: string | null;- customerTypeId?: string | null;- customFields?: Json | null;- id?: string;- logo?: string | null;- name: string;- taxId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountManagerId?: string | null+ assignee?: string | null+ createdAt?: string+ createdBy?: string | null+ customerStatusId?: string | null+ customerTypeId?: string | null+ customFields?: Json | null+ id?: string+ logo?: string | null+ name: string+ taxId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountManagerId?: string | null;- assignee?: string | null;- createdAt?: string;- createdBy?: string | null;- customerStatusId?: string | null;- customerTypeId?: string | null;- customFields?: Json | null;- id?: string;- logo?: string | null;- name?: string;- taxId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountManagerId?: string | null+ assignee?: string | null+ createdAt?: string+ createdBy?: string | null+ customerStatusId?: string | null+ customerTypeId?: string | null+ customFields?: Json | null+ id?: string+ logo?: string | null+ name?: string+ taxId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "customer_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customer_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customer_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customer_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customer_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "customer_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customer_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customer_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customer_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customer_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "customer_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customer_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customer_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customer_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customer_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "customer_customerStatusId_fkey";- columns: ["customerStatusId"];- isOneToOne: false;- referencedRelation: "customerStatus";- referencedColumns: ["id"];+ foreignKeyName: "customer_customerStatusId_fkey"+ columns: ["customerStatusId"]+ isOneToOne: false+ referencedRelation: "customerStatus"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_customerTypeId_fkey";- columns: ["customerTypeId"];- isOneToOne: false;- referencedRelation: "customerType";- referencedColumns: ["id"];+ foreignKeyName: "customer_customerTypeId_fkey"+ columns: ["customerTypeId"]+ isOneToOne: false+ referencedRelation: "customerType"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customer_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customer_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customer_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "customer_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }customerAccount: {Row: {- customerId: string;- id: string;- };+ customerId: string+ id: string+ }Insert: {- customerId: string;- id: string;- };+ customerId: string+ id: string+ }Update: {- customerId?: string;- id?: string;- };+ customerId?: string+ id?: string+ }Relationships: [{- foreignKeyName: "customerAccount_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "customerAccount_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "customerAccount_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "customerAccount_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "customerAccount_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "salesOrderCustomers";- referencedColumns: ["id"];+ foreignKeyName: "customerAccount_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id"]},{- foreignKeyName: "customerAccount_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customerAccount_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customerAccount_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customerAccount_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customerAccount_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customerAccount_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customerAccount_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "customerAccount_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }customerContact: {Row: {- contactId: string;- customerId: string;- customerLocationId: string | null;- customFields: Json | null;- id: string;- userId: string | null;- };+ contactId: string+ customerId: string+ customerLocationId: string | null+ customFields: Json | null+ id: string+ userId: string | null+ }Insert: {- contactId: string;- customerId: string;- customerLocationId?: string | null;- customFields?: Json | null;- id?: string;- userId?: string | null;- };+ contactId: string+ customerId: string+ customerLocationId?: string | null+ customFields?: Json | null+ id?: string+ userId?: string | null+ }Update: {- contactId?: string;- customerId?: string;- customerLocationId?: string | null;- customFields?: Json | null;- id?: string;- userId?: string | null;- };+ contactId?: string+ customerId?: string+ customerLocationId?: string | null+ customFields?: Json | null+ id?: string+ userId?: string | null+ }Relationships: [{- foreignKeyName: "customerContact_contactId_fkey";- columns: ["contactId"];- isOneToOne: false;- referencedRelation: "contact";- referencedColumns: ["id"];+ foreignKeyName: "customerContact_contactId_fkey"+ columns: ["contactId"]+ isOneToOne: false+ referencedRelation: "contact"+ referencedColumns: ["id"]},{- foreignKeyName: "customerContact_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "customerContact_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "customerContact_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "customerContact_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "customerContact_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "salesOrderCustomers";- referencedColumns: ["id"];+ foreignKeyName: "customerContact_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id"]},{- foreignKeyName: "customerContact_customerLocationId_fkey";- columns: ["customerLocationId"];- isOneToOne: false;- referencedRelation: "customerLocation";- referencedColumns: ["id"];+ foreignKeyName: "customerContact_customerLocationId_fkey"+ columns: ["customerLocationId"]+ isOneToOne: false+ referencedRelation: "customerLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "customerContact_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customerContact_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customerContact_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customerContact_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customerContact_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customerContact_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customerContact_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "customerContact_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }customerLocation: {Row: {- addressId: string;- customerId: string;- customFields: Json | null;- id: string;- };+ addressId: string+ customerId: string+ customFields: Json | null+ id: string+ }Insert: {- addressId: string;- customerId: string;- customFields?: Json | null;- id?: string;- };+ addressId: string+ customerId: string+ customFields?: Json | null+ id?: string+ }Update: {- addressId?: string;- customerId?: string;- customFields?: Json | null;- id?: string;- };+ addressId?: string+ customerId?: string+ customFields?: Json | null+ id?: string+ }Relationships: [{- foreignKeyName: "customerLocation_addressId_fkey";- columns: ["addressId"];- isOneToOne: false;- referencedRelation: "address";- referencedColumns: ["id"];+ foreignKeyName: "customerLocation_addressId_fkey"+ columns: ["addressId"]+ isOneToOne: false+ referencedRelation: "address"+ referencedColumns: ["id"]},{- foreignKeyName: "customerLocation_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "customerLocation_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "customerLocation_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "customerLocation_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "customerLocation_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "salesOrderCustomers";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "customerLocation_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id"]+ },+ ]+ }customerPayment: {Row: {- currencyCode: string | null;- customerId: string;- invoiceCustomerContactId: string | null;- invoiceCustomerId: string | null;- invoiceCustomerLocationId: string | null;- paymentTermId: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ currencyCode: string | null+ customerId: string+ invoiceCustomerContactId: string | null+ invoiceCustomerId: string | null+ invoiceCustomerLocationId: string | null+ paymentTermId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- currencyCode?: string | null;- customerId: string;- invoiceCustomerContactId?: string | null;- invoiceCustomerId?: string | null;- invoiceCustomerLocationId?: string | null;- paymentTermId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ currencyCode?: string | null+ customerId: string+ invoiceCustomerContactId?: string | null+ invoiceCustomerId?: string | null+ invoiceCustomerLocationId?: string | null+ paymentTermId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- currencyCode?: string | null;- customerId?: string;- invoiceCustomerContactId?: string | null;- invoiceCustomerId?: string | null;- invoiceCustomerLocationId?: string | null;- paymentTermId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ currencyCode?: string | null+ customerId?: string+ invoiceCustomerContactId?: string | null+ invoiceCustomerId?: string | null+ invoiceCustomerLocationId?: string | null+ paymentTermId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "customerPayment_customerId_fkey";- columns: ["customerId"];- isOneToOne: true;- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "customerPayment_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: true+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "customerPayment_customerId_fkey";- columns: ["customerId"];- isOneToOne: true;- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "customerPayment_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: true+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "customerPayment_customerId_fkey";- columns: ["customerId"];- isOneToOne: true;- referencedRelation: "salesOrderCustomers";- referencedColumns: ["id"];+ foreignKeyName: "customerPayment_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: true+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id"]},{- foreignKeyName: "customerPayment_invoiceCustomerContactId_fkey";- columns: ["invoiceCustomerContactId"];- isOneToOne: false;- referencedRelation: "customerContact";- referencedColumns: ["id"];+ foreignKeyName: "customerPayment_invoiceCustomerContactId_fkey"+ columns: ["invoiceCustomerContactId"]+ isOneToOne: false+ referencedRelation: "customerContact"+ referencedColumns: ["id"]},{- foreignKeyName: "customerPayment_invoiceCustomerId_fkey";- columns: ["invoiceCustomerId"];- isOneToOne: false;- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "customerPayment_invoiceCustomerId_fkey"+ columns: ["invoiceCustomerId"]+ isOneToOne: false+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "customerPayment_invoiceCustomerId_fkey";- columns: ["invoiceCustomerId"];- isOneToOne: false;- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "customerPayment_invoiceCustomerId_fkey"+ columns: ["invoiceCustomerId"]+ isOneToOne: false+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "customerPayment_invoiceCustomerId_fkey";- columns: ["invoiceCustomerId"];- isOneToOne: false;- referencedRelation: "salesOrderCustomers";- referencedColumns: ["id"];+ foreignKeyName: "customerPayment_invoiceCustomerId_fkey"+ columns: ["invoiceCustomerId"]+ isOneToOne: false+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id"]},{- foreignKeyName: "customerPayment_invoiceCustomerLocationId_fkey";- columns: ["invoiceCustomerLocationId"];- isOneToOne: false;- referencedRelation: "customerLocation";- referencedColumns: ["id"];+ foreignKeyName: "customerPayment_invoiceCustomerLocationId_fkey"+ columns: ["invoiceCustomerLocationId"]+ isOneToOne: false+ referencedRelation: "customerLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "customerPayment_paymentTermId_fkey";- columns: ["paymentTermId"];- isOneToOne: false;- referencedRelation: "paymentTerm";- referencedColumns: ["id"];+ foreignKeyName: "customerPayment_paymentTermId_fkey"+ columns: ["paymentTermId"]+ isOneToOne: false+ referencedRelation: "paymentTerm"+ referencedColumns: ["id"]},{- foreignKeyName: "customerPayment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customerPayment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customerPayment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customerPayment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customerPayment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customerPayment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customerPayment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "customerPayment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }customerShipping: {Row: {- customerId: string;- shippingCustomerContactId: string | null;- shippingCustomerId: string | null;- shippingCustomerLocationId: string | null;- shippingMethodId: string | null;- shippingTermId: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ customerId: string+ shippingCustomerContactId: string | null+ shippingCustomerId: string | null+ shippingCustomerLocationId: string | null+ shippingMethodId: string | null+ shippingTermId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- customerId: string;- shippingCustomerContactId?: string | null;- shippingCustomerId?: string | null;- shippingCustomerLocationId?: string | null;- shippingMethodId?: string | null;- shippingTermId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ customerId: string+ shippingCustomerContactId?: string | null+ shippingCustomerId?: string | null+ shippingCustomerLocationId?: string | null+ shippingMethodId?: string | null+ shippingTermId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- customerId?: string;- shippingCustomerContactId?: string | null;- shippingCustomerId?: string | null;- shippingCustomerLocationId?: string | null;- shippingMethodId?: string | null;- shippingTermId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ customerId?: string+ shippingCustomerContactId?: string | null+ shippingCustomerId?: string | null+ shippingCustomerLocationId?: string | null+ shippingMethodId?: string | null+ shippingTermId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "customerShipping_customerId_fkey";- columns: ["customerId"];- isOneToOne: true;- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: true+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "customerShipping_customerId_fkey";- columns: ["customerId"];- isOneToOne: true;- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: true+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "customerShipping_customerId_fkey";- columns: ["customerId"];- isOneToOne: true;- referencedRelation: "salesOrderCustomers";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: true+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id"]},{- foreignKeyName: "customerShipping_shippingCustomerContactId_fkey";- columns: ["shippingCustomerContactId"];- isOneToOne: false;- referencedRelation: "customerContact";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_shippingCustomerContactId_fkey"+ columns: ["shippingCustomerContactId"]+ isOneToOne: false+ referencedRelation: "customerContact"+ referencedColumns: ["id"]},{- foreignKeyName: "customerShipping_shippingCustomerId_fkey";- columns: ["shippingCustomerId"];- isOneToOne: false;- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_shippingCustomerId_fkey"+ columns: ["shippingCustomerId"]+ isOneToOne: false+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "customerShipping_shippingCustomerId_fkey";- columns: ["shippingCustomerId"];- isOneToOne: false;- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_shippingCustomerId_fkey"+ columns: ["shippingCustomerId"]+ isOneToOne: false+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "customerShipping_shippingCustomerId_fkey";- columns: ["shippingCustomerId"];- isOneToOne: false;- referencedRelation: "salesOrderCustomers";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_shippingCustomerId_fkey"+ columns: ["shippingCustomerId"]+ isOneToOne: false+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id"]},{- foreignKeyName: "customerShipping_shippingCustomerLocationId_fkey";- columns: ["shippingCustomerLocationId"];- isOneToOne: false;- referencedRelation: "customerLocation";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_shippingCustomerLocationId_fkey"+ columns: ["shippingCustomerLocationId"]+ isOneToOne: false+ referencedRelation: "customerLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "customerShipping_shippingMethodId_fkey";- columns: ["shippingMethodId"];- isOneToOne: false;- referencedRelation: "shippingMethod";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_shippingMethodId_fkey"+ columns: ["shippingMethodId"]+ isOneToOne: false+ referencedRelation: "shippingMethod"+ referencedColumns: ["id"]},{- foreignKeyName: "customerShipping_shippingTermId_fkey";- columns: ["shippingTermId"];- isOneToOne: false;- referencedRelation: "shippingTerm";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_shippingTermId_fkey"+ columns: ["shippingTermId"]+ isOneToOne: false+ referencedRelation: "shippingTerm"+ referencedColumns: ["id"]},{- foreignKeyName: "customerShipping_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customerShipping_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customerShipping_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customerShipping_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "customerShipping_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }customerStatus: {Row: {- createdAt: string;- createdBy: string;- customFields: Json | null;- id: string;- name: string;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string+ createdBy: string+ customFields: Json | null+ id: string+ name: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- customFields?: Json | null;- id?: string;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ id?: string+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- id?: string;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ id?: string+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "customerStatus_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customerStatus_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customerStatus_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customerStatus_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customerStatus_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customerStatus_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customerStatus_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customerStatus_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "customerStatus_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customerStatus_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customerStatus_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customerStatus_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customerStatus_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customerStatus_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customerStatus_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "customerStatus_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }customerType: {Row: {- createdAt: string;- createdBy: string;- customFields: Json | null;- id: string;- name: string;- protected: boolean;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string+ createdBy: string+ customFields: Json | null+ id: string+ name: string+ protected: boolean+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- customFields?: Json | null;- id?: string;- name: string;- protected?: boolean;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ id?: string+ name: string+ protected?: boolean+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- id?: string;- name?: string;- protected?: boolean;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ id?: string+ name?: string+ protected?: boolean+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "customerType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customerType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customerType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customerType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customerType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customerType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customerType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customerType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "customerType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customerType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customerType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customerType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customerType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customerType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customerType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "customerType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }customField: {Row: {- active: boolean | null;- createdAt: string;- createdBy: string;- customFieldTableId: string;- dataTypeId: number;- id: string;- listOptions: string[] | null;- name: string;- sortOrder: number;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean | null+ createdAt: string+ createdBy: string+ customFieldTableId: string+ dataTypeId: number+ id: string+ listOptions: string[] | null+ name: string+ sortOrder: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean | null;- createdAt?: string;- createdBy: string;- customFieldTableId: string;- dataTypeId: number;- id?: string;- listOptions?: string[] | null;- name: string;- sortOrder?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean | null+ createdAt?: string+ createdBy: string+ customFieldTableId: string+ dataTypeId: number+ id?: string+ listOptions?: string[] | null+ name: string+ sortOrder?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean | null;- createdAt?: string;- createdBy?: string;- customFieldTableId?: string;- dataTypeId?: number;- id?: string;- listOptions?: string[] | null;- name?: string;- sortOrder?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean | null+ createdAt?: string+ createdBy?: string+ customFieldTableId?: string+ dataTypeId?: number+ id?: string+ listOptions?: string[] | null+ name?: string+ sortOrder?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "customField_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customField_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customField_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customField_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customField_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customField_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customField_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customField_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "customField_customFieldTableId_fkey";- columns: ["customFieldTableId"];- isOneToOne: false;- referencedRelation: "customFieldTable";- referencedColumns: ["id"];+ foreignKeyName: "customField_customFieldTableId_fkey"+ columns: ["customFieldTableId"]+ isOneToOne: false+ referencedRelation: "customFieldTable"+ referencedColumns: ["id"]},{- foreignKeyName: "customField_customFieldTableId_fkey";- columns: ["customFieldTableId"];- isOneToOne: false;- referencedRelation: "customFieldTables";- referencedColumns: ["id"];+ foreignKeyName: "customField_customFieldTableId_fkey"+ columns: ["customFieldTableId"]+ isOneToOne: false+ referencedRelation: "customFieldTables"+ referencedColumns: ["id"]},{- foreignKeyName: "customField_dataTypeId_fkey";- columns: ["dataTypeId"];- isOneToOne: false;- referencedRelation: "attributeDataType";- referencedColumns: ["id"];+ foreignKeyName: "customField_dataTypeId_fkey"+ columns: ["dataTypeId"]+ isOneToOne: false+ referencedRelation: "attributeDataType"+ referencedColumns: ["id"]},{- foreignKeyName: "customField_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customField_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customField_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customField_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customField_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customField_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customField_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "customField_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }customFieldTable: {Row: {- id: string;- module: Database["public"]["Enums"]["module"];- name: string;- table: string;- };+ id: string+ module: Database["public"]["Enums"]["module"]+ name: string+ table: string+ }Insert: {- id?: string;- module: Database["public"]["Enums"]["module"];- name: string;- table: string;- };+ id?: string+ module: Database["public"]["Enums"]["module"]+ name: string+ table: string+ }Update: {- id?: string;- module?: Database["public"]["Enums"]["module"];- name?: string;- table?: string;- };- Relationships: [];- };+ id?: string+ module?: Database["public"]["Enums"]["module"]+ name?: string+ table?: string+ }+ Relationships: []+ }department: {Row: {- createdAt: string;- createdBy: string;- customFields: Json | null;- id: string;- name: string;- parentDepartmentId: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string+ createdBy: string+ customFields: Json | null+ id: string+ name: string+ parentDepartmentId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- customFields?: Json | null;- id?: string;- name: string;- parentDepartmentId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ id?: string+ name: string+ parentDepartmentId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- id?: string;- name?: string;- parentDepartmentId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ id?: string+ name?: string+ parentDepartmentId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "department_parentDepartmentId_fkey";- columns: ["parentDepartmentId"];- isOneToOne: false;- referencedRelation: "department";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "department_parentDepartmentId_fkey"+ columns: ["parentDepartmentId"]+ isOneToOne: false+ referencedRelation: "department"+ referencedColumns: ["id"]+ },+ ]+ }document: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- description: string | null;- extension: string | null;- id: string;- name: string;- path: string;- readGroups: string[] | null;- size: number;+ active: boolean+ createdAt: string+ createdBy: string+ description: string | null+ extension: string | null+ id: string+ name: string+ path: string+ readGroups: string[] | null+ size: numbersourceDocument:| Database["public"]["Enums"]["documentSourceType"]- | null;- sourceDocumentId: string | null;- type: Database["public"]["Enums"]["documentType"];- updatedAt: string | null;- updatedBy: string | null;- writeGroups: string[] | null;- };+ | null+ sourceDocumentId: string | null+ type: Database["public"]["Enums"]["documentType"]+ updatedAt: string | null+ updatedBy: string | null+ writeGroups: string[] | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- description?: string | null;- extension?: string | null;- id?: string;- name: string;- path: string;- readGroups?: string[] | null;- size: number;+ active?: boolean+ createdAt?: string+ createdBy: string+ description?: string | null+ extension?: string | null+ id?: string+ name: string+ path: string+ readGroups?: string[] | null+ size: numbersourceDocument?:| Database["public"]["Enums"]["documentSourceType"]- | null;- sourceDocumentId?: string | null;- type: Database["public"]["Enums"]["documentType"];- updatedAt?: string | null;- updatedBy?: string | null;- writeGroups?: string[] | null;- };+ | null+ sourceDocumentId?: string | null+ type: Database["public"]["Enums"]["documentType"]+ updatedAt?: string | null+ updatedBy?: string | null+ writeGroups?: string[] | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- description?: string | null;- extension?: string | null;- id?: string;- name?: string;- path?: string;- readGroups?: string[] | null;- size?: number;+ active?: boolean+ createdAt?: string+ createdBy?: string+ description?: string | null+ extension?: string | null+ id?: string+ name?: string+ path?: string+ readGroups?: string[] | null+ size?: numbersourceDocument?:| Database["public"]["Enums"]["documentSourceType"]- | null;- sourceDocumentId?: string | null;- type?: Database["public"]["Enums"]["documentType"];- updatedAt?: string | null;- updatedBy?: string | null;- writeGroups?: string[] | null;- };+ | null+ sourceDocumentId?: string | null+ type?: Database["public"]["Enums"]["documentType"]+ updatedAt?: string | null+ updatedBy?: string | null+ writeGroups?: string[] | null+ }Relationships: [{- foreignKeyName: "document_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "document_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "document_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "document_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "document_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "document_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "document_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "document_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "document_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "document_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "document_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "document_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "document_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "document_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "document_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "document_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }documentFavorite: {Row: {- documentId: string;- userId: string;- };+ documentId: string+ userId: string+ }Insert: {- documentId: string;- userId: string;- };+ documentId: string+ userId: string+ }Update: {- documentId?: string;- userId?: string;- };+ documentId?: string+ userId?: string+ }Relationships: [{- foreignKeyName: "documentFavorites_documentId_fkey";- columns: ["documentId"];- isOneToOne: false;- referencedRelation: "document";- referencedColumns: ["id"];+ foreignKeyName: "documentFavorites_documentId_fkey"+ columns: ["documentId"]+ isOneToOne: false+ referencedRelation: "document"+ referencedColumns: ["id"]},{- foreignKeyName: "documentFavorites_documentId_fkey";- columns: ["documentId"];- isOneToOne: false;- referencedRelation: "documents";- referencedColumns: ["id"];+ foreignKeyName: "documentFavorites_documentId_fkey"+ columns: ["documentId"]+ isOneToOne: false+ referencedRelation: "documents"+ referencedColumns: ["id"]},{- foreignKeyName: "documentFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "documentFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "documentFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "documentFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "documentFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "documentFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "documentFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "documentFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }documentLabel: {Row: {- documentId: string;- label: string;- userId: string;- };+ documentId: string+ label: string+ userId: string+ }Insert: {- documentId: string;- label: string;- userId: string;- };+ documentId: string+ label: string+ userId: string+ }Update: {- documentId?: string;- label?: string;- userId?: string;- };+ documentId?: string+ label?: string+ userId?: string+ }Relationships: [{- foreignKeyName: "documentLabels_documentId_fkey";- columns: ["documentId"];- isOneToOne: false;- referencedRelation: "document";- referencedColumns: ["id"];+ foreignKeyName: "documentLabels_documentId_fkey"+ columns: ["documentId"]+ isOneToOne: false+ referencedRelation: "document"+ referencedColumns: ["id"]},{- foreignKeyName: "documentLabels_documentId_fkey";- columns: ["documentId"];- isOneToOne: false;- referencedRelation: "documents";- referencedColumns: ["id"];+ foreignKeyName: "documentLabels_documentId_fkey"+ columns: ["documentId"]+ isOneToOne: false+ referencedRelation: "documents"+ referencedColumns: ["id"]},{- foreignKeyName: "documentLabels_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "documentLabels_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "documentLabels_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "documentLabels_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "documentLabels_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "documentLabels_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "documentLabels_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "documentLabels_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }documentTransaction: {Row: {- createdAt: string;- documentId: string;- id: string;- type: Database["public"]["Enums"]["documentTransactionType"];- userId: string;- };+ createdAt: string+ documentId: string+ id: string+ type: Database["public"]["Enums"]["documentTransactionType"]+ userId: string+ }Insert: {- createdAt?: string;- documentId: string;- id?: string;- type: Database["public"]["Enums"]["documentTransactionType"];- userId: string;- };+ createdAt?: string+ documentId: string+ id?: string+ type: Database["public"]["Enums"]["documentTransactionType"]+ userId: string+ }Update: {- createdAt?: string;- documentId?: string;- id?: string;- type?: Database["public"]["Enums"]["documentTransactionType"];- userId?: string;- };+ createdAt?: string+ documentId?: string+ id?: string+ type?: Database["public"]["Enums"]["documentTransactionType"]+ userId?: string+ }Relationships: [{- foreignKeyName: "documentTransaction_documentId_fkey";- columns: ["documentId"];- isOneToOne: false;- referencedRelation: "document";- referencedColumns: ["id"];+ foreignKeyName: "documentTransaction_documentId_fkey"+ columns: ["documentId"]+ isOneToOne: false+ referencedRelation: "document"+ referencedColumns: ["id"]},{- foreignKeyName: "documentTransaction_documentId_fkey";- columns: ["documentId"];- isOneToOne: false;- referencedRelation: "documents";- referencedColumns: ["id"];+ foreignKeyName: "documentTransaction_documentId_fkey"+ columns: ["documentId"]+ isOneToOne: false+ referencedRelation: "documents"+ referencedColumns: ["id"]},{- foreignKeyName: "documentTransaction_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "documentTransaction_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "documentTransaction_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "documentTransaction_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "documentTransaction_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "documentTransaction_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "documentTransaction_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "documentTransaction_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }employee: {Row: {- employeeTypeId: string;- id: string;- };+ employeeTypeId: string+ id: string+ }Insert: {- employeeTypeId: string;- id: string;- };+ employeeTypeId: string+ id: string+ }Update: {- employeeTypeId?: string;- id?: string;- };+ employeeTypeId?: string+ id?: string+ }Relationships: [{- foreignKeyName: "employee_employeeTypeId_fkey";- columns: ["employeeTypeId"];- isOneToOne: false;- referencedRelation: "employeeType";- referencedColumns: ["id"];+ foreignKeyName: "employee_employeeTypeId_fkey"+ columns: ["employeeTypeId"]+ isOneToOne: false+ referencedRelation: "employeeType"+ referencedColumns: ["id"]},{- foreignKeyName: "employee_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "employee_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "employee_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "employee_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "employee_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "employee_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "employee_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "employee_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }employeeAbility: {Row: {- abilityId: string;- active: boolean;- employeeId: string;- id: string;- lastTrainingDate: string | null;- trainingCompleted: boolean | null;- trainingDays: number;- };+ abilityId: string+ active: boolean+ employeeId: string+ id: string+ lastTrainingDate: string | null+ trainingCompleted: boolean | null+ trainingDays: number+ }Insert: {- abilityId: string;- active?: boolean;- employeeId: string;- id?: string;- lastTrainingDate?: string | null;- trainingCompleted?: boolean | null;- trainingDays?: number;- };+ abilityId: string+ active?: boolean+ employeeId: string+ id?: string+ lastTrainingDate?: string | null+ trainingCompleted?: boolean | null+ trainingDays?: number+ }Update: {- abilityId?: string;- active?: boolean;- employeeId?: string;- id?: string;- lastTrainingDate?: string | null;- trainingCompleted?: boolean | null;- trainingDays?: number;- };+ abilityId?: string+ active?: boolean+ employeeId?: string+ id?: string+ lastTrainingDate?: string | null+ trainingCompleted?: boolean | null+ trainingDays?: number+ }Relationships: [{- foreignKeyName: "employeeAbilities_abilityId_fkey";- columns: ["abilityId"];- isOneToOne: false;- referencedRelation: "ability";- referencedColumns: ["id"];+ foreignKeyName: "employeeAbilities_abilityId_fkey"+ columns: ["abilityId"]+ isOneToOne: false+ referencedRelation: "ability"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeAbilities_employeeId_fkey";- columns: ["employeeId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "employeeAbilities_employeeId_fkey"+ columns: ["employeeId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeAbilities_employeeId_fkey";- columns: ["employeeId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "employeeAbilities_employeeId_fkey"+ columns: ["employeeId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeAbilities_employeeId_fkey";- columns: ["employeeId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "employeeAbilities_employeeId_fkey"+ columns: ["employeeId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeAbilities_employeeId_fkey";- columns: ["employeeId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "employeeAbilities_employeeId_fkey"+ columns: ["employeeId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }employeeJob: {Row: {- customFields: Json | null;- departmentId: string | null;- id: string;- locationId: string | null;- managerId: string | null;- shiftId: string | null;- startDate: string | null;- title: string | null;- updatedAt: string | null;- updatedBy: string | null;- workCellId: string | null;- };+ customFields: Json | null+ departmentId: string | null+ id: string+ locationId: string | null+ managerId: string | null+ shiftId: string | null+ startDate: string | null+ title: string | null+ updatedAt: string | null+ updatedBy: string | null+ workCellId: string | null+ }Insert: {- customFields?: Json | null;- departmentId?: string | null;- id: string;- locationId?: string | null;- managerId?: string | null;- shiftId?: string | null;- startDate?: string | null;- title?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- workCellId?: string | null;- };+ customFields?: Json | null+ departmentId?: string | null+ id: string+ locationId?: string | null+ managerId?: string | null+ shiftId?: string | null+ startDate?: string | null+ title?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ workCellId?: string | null+ }Update: {- customFields?: Json | null;- departmentId?: string | null;- id?: string;- locationId?: string | null;- managerId?: string | null;- shiftId?: string | null;- startDate?: string | null;- title?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- workCellId?: string | null;- };+ customFields?: Json | null+ departmentId?: string | null+ id?: string+ locationId?: string | null+ managerId?: string | null+ shiftId?: string | null+ startDate?: string | null+ title?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ workCellId?: string | null+ }Relationships: [{- foreignKeyName: "employeeJob_departmentId_fkey";- columns: ["departmentId"];- isOneToOne: false;- referencedRelation: "department";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_departmentId_fkey"+ columns: ["departmentId"]+ isOneToOne: false+ referencedRelation: "department"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "employeeJob_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "employeeJob_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "employeeJob_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "employeeJob_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "employeeJob_managerId_fkey";- columns: ["managerId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_managerId_fkey"+ columns: ["managerId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_managerId_fkey";- columns: ["managerId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_managerId_fkey"+ columns: ["managerId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_managerId_fkey";- columns: ["managerId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_managerId_fkey"+ columns: ["managerId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_managerId_fkey";- columns: ["managerId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "employeeJob_managerId_fkey"+ columns: ["managerId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "employeeJob_shiftId_fkey";- columns: ["shiftId"];- isOneToOne: false;- referencedRelation: "shift";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_shiftId_fkey"+ columns: ["shiftId"]+ isOneToOne: false+ referencedRelation: "shift"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_shiftId_fkey";- columns: ["shiftId"];- isOneToOne: false;- referencedRelation: "shifts";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_shiftId_fkey"+ columns: ["shiftId"]+ isOneToOne: false+ referencedRelation: "shifts"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- 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: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "employeeJob_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "employeeJob_workCellId_fkey";- columns: ["workCellId"];- isOneToOne: false;- referencedRelation: "workCell";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "employeeJob_workCellId_fkey"+ columns: ["workCellId"]+ isOneToOne: false+ referencedRelation: "workCell"+ referencedColumns: ["id"]+ },+ ]+ }employeeShift: {Row: {- employeeId: string;- id: string;- shiftId: string;- };+ employeeId: string+ id: string+ shiftId: string+ }Insert: {- employeeId: string;- id?: string;- shiftId: string;- };+ employeeId: string+ id?: string+ shiftId: string+ }Update: {- employeeId?: string;- id?: string;- shiftId?: string;- };+ employeeId?: string+ id?: string+ shiftId?: string+ }Relationships: [{- foreignKeyName: "employeeShift_employeeId_fkey";- columns: ["employeeId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "employeeShift_employeeId_fkey"+ columns: ["employeeId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeShift_employeeId_fkey";- columns: ["employeeId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "employeeShift_employeeId_fkey"+ columns: ["employeeId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeShift_employeeId_fkey";- columns: ["employeeId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "employeeShift_employeeId_fkey"+ columns: ["employeeId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeShift_employeeId_fkey";- columns: ["employeeId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "employeeShift_employeeId_fkey"+ columns: ["employeeId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "employeeShift_shiftId_fkey";- columns: ["shiftId"];- isOneToOne: false;- referencedRelation: "shift";- referencedColumns: ["id"];+ foreignKeyName: "employeeShift_shiftId_fkey"+ columns: ["shiftId"]+ isOneToOne: false+ referencedRelation: "shift"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeShift_shiftId_fkey";- columns: ["shiftId"];- isOneToOne: false;- referencedRelation: "shifts";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "employeeShift_shiftId_fkey"+ columns: ["shiftId"]+ isOneToOne: false+ referencedRelation: "shifts"+ referencedColumns: ["id"]+ },+ ]+ }employeeType: {Row: {- createdAt: string;- id: string;- name: string;- protected: boolean;- updatedAt: string | null;- };+ createdAt: string+ id: string+ name: string+ protected: boolean+ updatedAt: string | null+ }Insert: {- createdAt?: string;- id?: string;- name: string;- protected?: boolean;- updatedAt?: string | null;- };+ createdAt?: string+ id?: string+ name: string+ protected?: boolean+ updatedAt?: string | null+ }Update: {- createdAt?: string;- id?: string;- name?: string;- protected?: boolean;- updatedAt?: string | null;- };- Relationships: [];- };+ createdAt?: string+ id?: string+ name?: string+ protected?: boolean+ updatedAt?: string | null+ }+ Relationships: []+ }employeeTypePermission: {Row: {- create: boolean;- createdAt: string;- delete: boolean;- employeeTypeId: string;- featureId: string;- update: boolean;- updatedAt: string | null;- view: boolean;- };+ create: boolean+ createdAt: string+ delete: boolean+ employeeTypeId: string+ featureId: string+ update: boolean+ updatedAt: string | null+ view: boolean+ }Insert: {- create?: boolean;- createdAt?: string;- delete?: boolean;- employeeTypeId: string;- featureId: string;- update?: boolean;- updatedAt?: string | null;- view?: boolean;- };+ create?: boolean+ createdAt?: string+ delete?: boolean+ employeeTypeId: string+ featureId: string+ update?: boolean+ updatedAt?: string | null+ view?: boolean+ }Update: {- create?: boolean;- createdAt?: string;- delete?: boolean;- employeeTypeId?: string;- featureId?: string;- update?: boolean;- updatedAt?: string | null;- view?: boolean;- };+ create?: boolean+ createdAt?: string+ delete?: boolean+ employeeTypeId?: string+ featureId?: string+ update?: boolean+ updatedAt?: string | null+ view?: boolean+ }Relationships: [{- foreignKeyName: "employeeTypePermission_employeeTypeId_fkey";- columns: ["employeeTypeId"];- isOneToOne: false;- referencedRelation: "employeeType";- referencedColumns: ["id"];- },- {- foreignKeyName: "employeeTypePermission_featureId_fkey";- columns: ["featureId"];- isOneToOne: false;- referencedRelation: "feature";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "employeeTypePermission_employeeTypeId_fkey"+ columns: ["employeeTypeId"]+ isOneToOne: false+ referencedRelation: "employeeType"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "employeeTypePermission_featureId_fkey"+ columns: ["featureId"]+ isOneToOne: false+ referencedRelation: "feature"+ referencedColumns: ["id"]+ },+ ]+ }equipment: {Row: {- active: boolean;- activeDate: string | null;- createdAt: string;- createdBy: string;- customFields: Json | null;- description: string | null;- equipmentTypeId: string;- id: string;- locationId: string;- name: string;- operatorsRequired: number;- setupHours: number;- updatedAt: string | null;- updatedBy: string | null;- workCellId: string | null;- };+ active: boolean+ activeDate: string | null+ createdAt: string+ createdBy: string+ customFields: Json | null+ description: string | null+ equipmentTypeId: string+ id: string+ locationId: string+ name: string+ operatorsRequired: number+ setupHours: number+ updatedAt: string | null+ updatedBy: string | null+ workCellId: string | null+ }Insert: {- active?: boolean;- activeDate?: string | null;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- description?: string | null;- equipmentTypeId: string;- id?: string;- locationId: string;- name: string;- operatorsRequired?: number;- setupHours?: number;- updatedAt?: string | null;- updatedBy?: string | null;- workCellId?: string | null;- };+ active?: boolean+ activeDate?: string | null+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ description?: string | null+ equipmentTypeId: string+ id?: string+ locationId: string+ name: string+ operatorsRequired?: number+ setupHours?: number+ updatedAt?: string | null+ updatedBy?: string | null+ workCellId?: string | null+ }Update: {- active?: boolean;- activeDate?: string | null;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- description?: string | null;- equipmentTypeId?: string;- id?: string;- locationId?: string;- name?: string;- operatorsRequired?: number;- setupHours?: number;- updatedAt?: string | null;- updatedBy?: string | null;- workCellId?: string | null;- };+ active?: boolean+ activeDate?: string | null+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ description?: string | null+ equipmentTypeId?: string+ id?: string+ locationId?: string+ name?: string+ operatorsRequired?: number+ setupHours?: number+ updatedAt?: string | null+ updatedBy?: string | null+ workCellId?: string | null+ }Relationships: [{- foreignKeyName: "equipment_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "equipment_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "equipment_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "equipment_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "equipment_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "equipment_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "equipment_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "equipment_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "equipment_equipmentTypeId_fkey";- columns: ["equipmentTypeId"];- isOneToOne: false;- referencedRelation: "equipmentType";- referencedColumns: ["id"];+ foreignKeyName: "equipment_equipmentTypeId_fkey"+ columns: ["equipmentTypeId"]+ isOneToOne: false+ referencedRelation: "equipmentType"+ referencedColumns: ["id"]},{- foreignKeyName: "equipment_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "equipment_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "equipment_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "equipment_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "equipment_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "equipment_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "equipment_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "equipment_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "equipment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "equipment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "equipment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "equipment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "equipment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "equipment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "equipment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "equipment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "equipment_workCellId_fkey";- columns: ["workCellId"];- isOneToOne: false;- referencedRelation: "workCell";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "equipment_workCellId_fkey"+ columns: ["workCellId"]+ isOneToOne: false+ referencedRelation: "workCell"+ referencedColumns: ["id"]+ },+ ]+ }equipmentType: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- customFields: Json | null;- description: string | null;- id: string;- name: string;- requiredAbility: string | null;- setupHours: number;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ customFields: Json | null+ description: string | null+ id: string+ name: string+ requiredAbility: string | null+ setupHours: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- description?: string | null;- id?: string;- name: string;- requiredAbility?: string | null;- setupHours?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ description?: string | null+ id?: string+ name: string+ requiredAbility?: string | null+ setupHours?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- description?: string | null;- id?: string;- name?: string;- requiredAbility?: string | null;- setupHours?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ description?: string | null+ id?: string+ name?: string+ requiredAbility?: string | null+ setupHours?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "equipmentType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "equipmentType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "equipmentType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "equipmentType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "equipmentType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "equipmentType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "equipmentType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "equipmentType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "equipmentType_requiredAbility_fkey";- columns: ["requiredAbility"];- isOneToOne: false;- referencedRelation: "ability";- referencedColumns: ["id"];+ foreignKeyName: "equipmentType_requiredAbility_fkey"+ columns: ["requiredAbility"]+ isOneToOne: false+ referencedRelation: "ability"+ referencedColumns: ["id"]},{- foreignKeyName: "equipmentType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "equipmentType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "equipmentType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "equipmentType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "equipmentType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "equipmentType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "equipmentType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "equipmentType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }feature: {Row: {- createdAt: string;- id: string;- name: string;- updatedAt: string | null;- };+ createdAt: string+ id: string+ name: string+ updatedAt: string | null+ }Insert: {- createdAt?: string;- id?: string;- name: string;- updatedAt?: string | null;- };+ createdAt?: string+ id?: string+ name: string+ updatedAt?: string | null+ }Update: {- createdAt?: string;- id?: string;- name?: string;- updatedAt?: string | null;- };- Relationships: [];- };+ createdAt?: string+ id?: string+ name?: string+ updatedAt?: string | null+ }+ Relationships: []+ }fiscalYearSettings: {Row: {- id: boolean;- startMonth: Database["public"]["Enums"]["month"];- taxStartMonth: Database["public"]["Enums"]["month"];- updatedBy: string;- };+ id: boolean+ startMonth: Database["public"]["Enums"]["month"]+ taxStartMonth: Database["public"]["Enums"]["month"]+ updatedBy: string+ }Insert: {- id?: boolean;- startMonth?: Database["public"]["Enums"]["month"];- taxStartMonth?: Database["public"]["Enums"]["month"];- updatedBy: string;- };+ id?: boolean+ startMonth?: Database["public"]["Enums"]["month"]+ taxStartMonth?: Database["public"]["Enums"]["month"]+ updatedBy: string+ }Update: {- id?: boolean;- startMonth?: Database["public"]["Enums"]["month"];- taxStartMonth?: Database["public"]["Enums"]["month"];- updatedBy?: string;- };+ id?: boolean+ startMonth?: Database["public"]["Enums"]["month"]+ taxStartMonth?: Database["public"]["Enums"]["month"]+ updatedBy?: string+ }Relationships: [{- foreignKeyName: "fiscalYearSettings_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "fiscalYearSettings_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "fiscalYearSettings_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "fiscalYearSettings_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "fiscalYearSettings_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "fiscalYearSettings_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "fiscalYearSettings_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "fiscalYearSettings_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }group: {Row: {- createdAt: string;- id: string;- isCustomerOrgGroup: boolean;- isCustomerTypeGroup: boolean;- isEmployeeTypeGroup: boolean;- isIdentityGroup: boolean;- isSupplierOrgGroup: boolean;- isSupplierTypeGroup: boolean;- name: string;- updatedAt: string | null;- };+ createdAt: string+ id: string+ isCustomerOrgGroup: boolean+ isCustomerTypeGroup: boolean+ isEmployeeTypeGroup: boolean+ isIdentityGroup: boolean+ isSupplierOrgGroup: boolean+ isSupplierTypeGroup: boolean+ name: string+ updatedAt: string | null+ }Insert: {- createdAt?: string;- id?: string;- isCustomerOrgGroup?: boolean;- isCustomerTypeGroup?: boolean;- isEmployeeTypeGroup?: boolean;- isIdentityGroup?: boolean;- isSupplierOrgGroup?: boolean;- isSupplierTypeGroup?: boolean;- name: string;- updatedAt?: string | null;- };+ createdAt?: string+ id?: string+ isCustomerOrgGroup?: boolean+ isCustomerTypeGroup?: boolean+ isEmployeeTypeGroup?: boolean+ isIdentityGroup?: boolean+ isSupplierOrgGroup?: boolean+ isSupplierTypeGroup?: boolean+ name: string+ updatedAt?: string | null+ }Update: {- createdAt?: string;- id?: string;- isCustomerOrgGroup?: boolean;- isCustomerTypeGroup?: boolean;- isEmployeeTypeGroup?: boolean;- isIdentityGroup?: boolean;- isSupplierOrgGroup?: boolean;- isSupplierTypeGroup?: boolean;- name?: string;- updatedAt?: string | null;- };- Relationships: [];- };+ createdAt?: string+ id?: string+ isCustomerOrgGroup?: boolean+ isCustomerTypeGroup?: boolean+ isEmployeeTypeGroup?: boolean+ isIdentityGroup?: boolean+ isSupplierOrgGroup?: boolean+ isSupplierTypeGroup?: boolean+ name?: string+ updatedAt?: string | null+ }+ Relationships: []+ }holiday: {Row: {- createdAt: string;- createdBy: string;- customFields: Json | null;- date: string;- id: string;- name: string;- updatedAt: string | null;- updatedBy: string | null;- year: number | null;- };+ createdAt: string+ createdBy: string+ customFields: Json | null+ date: string+ id: string+ name: string+ updatedAt: string | null+ updatedBy: string | null+ year: number | null+ }Insert: {- createdAt?: string;- createdBy: string;- customFields?: Json | null;- date: string;- id?: string;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- year?: number | null;- };+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ date: string+ id?: string+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ year?: number | null+ }Update: {- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- date?: string;- id?: string;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- year?: number | null;- };+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ date?: string+ id?: string+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ year?: number | null+ }Relationships: [{- foreignKeyName: "holiday_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "holiday_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "holiday_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "holiday_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "holiday_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "holiday_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "holiday_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "holiday_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "holiday_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "holiday_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "holiday_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "holiday_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "holiday_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "holiday_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "holiday_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "holiday_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }integration: {Row: {- active: boolean;- description: string | null;- id: string;- jsonschema: Json;- logoPath: string | null;- metadata: Json;- title: string;- updatedAt: string;- updatedBy: string | null;- visible: boolean;- };+ active: boolean+ description: string | null+ id: string+ jsonschema: Json+ logoPath: string | null+ metadata: Json+ title: string+ updatedAt: string+ updatedBy: string | null+ visible: boolean+ }Insert: {- active?: boolean;- description?: string | null;- id: string;- jsonschema: Json;- logoPath?: string | null;- metadata?: Json;- title: string;- updatedAt?: string;- updatedBy?: string | null;- visible?: boolean;- };+ active?: boolean+ description?: string | null+ id: string+ jsonschema: Json+ logoPath?: string | null+ metadata?: Json+ title: string+ updatedAt?: string+ updatedBy?: string | null+ visible?: boolean+ }Update: {- active?: boolean;- description?: string | null;- id?: string;- jsonschema?: Json;- logoPath?: string | null;- metadata?: Json;- title?: string;- updatedAt?: string;- updatedBy?: string | null;- visible?: boolean;- };+ active?: boolean+ description?: string | null+ id?: string+ jsonschema?: Json+ logoPath?: string | null+ metadata?: Json+ title?: string+ updatedAt?: string+ updatedBy?: string | null+ visible?: boolean+ }Relationships: [{- foreignKeyName: "integration_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "integration_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "integration_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "integration_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "integration_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "integration_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "integration_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "integration_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }journal: {Row: {- accountingPeriodId: string | null;- createdAt: string;- customFields: Json | null;- description: string | null;- id: number;- postingDate: string;- };+ accountingPeriodId: string | null+ createdAt: string+ customFields: Json | null+ description: string | null+ id: number+ postingDate: string+ }Insert: {- accountingPeriodId?: string | null;- createdAt?: string;- customFields?: Json | null;- description?: string | null;- id?: number;- postingDate?: string;- };+ accountingPeriodId?: string | null+ createdAt?: string+ customFields?: Json | null+ description?: string | null+ id?: number+ postingDate?: string+ }Update: {- accountingPeriodId?: string | null;- createdAt?: string;- customFields?: Json | null;- description?: string | null;- id?: number;- postingDate?: string;- };+ accountingPeriodId?: string | null+ createdAt?: string+ customFields?: Json | null+ description?: string | null+ id?: number+ postingDate?: string+ }Relationships: [{- foreignKeyName: "journal_accountPeriodId_fkey";- columns: ["accountingPeriodId"];- isOneToOne: false;- referencedRelation: "accountingPeriod";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "journal_accountPeriodId_fkey"+ columns: ["accountingPeriodId"]+ isOneToOne: false+ referencedRelation: "accountingPeriod"+ referencedColumns: ["id"]+ },+ ]+ }journalLine: {Row: {- accountNumber: string;- accrual: boolean;- amount: number;- createdAt: string;- customFields: Json | null;- description: string | null;- documentId: string | null;- documentLineReference: string | null;+ accountNumber: string+ accrual: boolean+ amount: number+ createdAt: string+ customFields: Json | null+ description: string | null+ documentId: string | null+ documentLineReference: string | nulldocumentType:| Database["public"]["Enums"]["journalLineDocumentType"]- | null;- externalDocumentId: string | null;- id: string;- journalId: number;- journalLineReference: string;- quantity: number;- };+ | null+ externalDocumentId: string | null+ id: string+ journalId: number+ journalLineReference: string+ quantity: number+ }Insert: {- accountNumber: string;- accrual?: boolean;- amount: number;- createdAt?: string;- customFields?: Json | null;- description?: string | null;- documentId?: string | null;- documentLineReference?: string | null;+ accountNumber: string+ accrual?: boolean+ amount: number+ createdAt?: string+ customFields?: Json | null+ description?: string | null+ documentId?: string | null+ documentLineReference?: string | nulldocumentType?:| Database["public"]["Enums"]["journalLineDocumentType"]- | null;- externalDocumentId?: string | null;- id?: string;- journalId: number;- journalLineReference: string;- quantity?: number;- };+ | null+ externalDocumentId?: string | null+ id?: string+ journalId: number+ journalLineReference: string+ quantity?: number+ }Update: {- accountNumber?: string;- accrual?: boolean;- amount?: number;- createdAt?: string;- customFields?: Json | null;- description?: string | null;- documentId?: string | null;- documentLineReference?: string | null;+ accountNumber?: string+ accrual?: boolean+ amount?: number+ createdAt?: string+ customFields?: Json | null+ description?: string | null+ documentId?: string | null+ documentLineReference?: string | nulldocumentType?:| Database["public"]["Enums"]["journalLineDocumentType"]- | null;- externalDocumentId?: string | null;- id?: string;- journalId?: number;- journalLineReference?: string;- quantity?: number;- };+ | null+ externalDocumentId?: string | null+ id?: string+ journalId?: number+ journalLineReference?: string+ quantity?: number+ }Relationships: [{- foreignKeyName: "journalLine_accountNumber_fkey";- columns: ["accountNumber"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];- },- {- foreignKeyName: "journalLine_accountNumber_fkey";- columns: ["accountNumber"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];- }- ];- };+ foreignKeyName: "journalLine_accountNumber_fkey"+ columns: ["accountNumber"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]+ },+ {+ foreignKeyName: "journalLine_accountNumber_fkey"+ columns: ["accountNumber"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]+ },+ ]+ }location: {Row: {- addressLine1: string;- addressLine2: string | null;- city: string;- countryCode: string | null;- createdAt: string;- createdBy: string;- customFields: Json | null;- id: string;- latitude: number | null;- longitude: number | null;- name: string;- postalCode: string;- state: string;- timezone: string;- updatedAt: string | null;- updatedBy: string | null;- };+ addressLine1: string+ addressLine2: string | null+ city: string+ countryCode: string | null+ createdAt: string+ createdBy: string+ customFields: Json | null+ id: string+ latitude: number | null+ longitude: number | null+ name: string+ postalCode: string+ state: string+ timezone: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- addressLine1: string;- addressLine2?: string | null;- city: string;- countryCode?: string | null;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- id?: string;- latitude?: number | null;- longitude?: number | null;- name: string;- postalCode: string;- state: string;- timezone: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ addressLine1: string+ addressLine2?: string | null+ city: string+ countryCode?: string | null+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ id?: string+ latitude?: number | null+ longitude?: number | null+ name: string+ postalCode: string+ state: string+ timezone: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- addressLine1?: string;- addressLine2?: string | null;- city?: string;- countryCode?: string | null;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- id?: string;- latitude?: number | null;- longitude?: number | null;- name?: string;- postalCode?: string;- state?: string;- timezone?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };- Relationships: [];- };+ addressLine1?: string+ addressLine2?: string | null+ city?: string+ countryCode?: string | null+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ id?: string+ latitude?: number | null+ longitude?: number | null+ name?: string+ postalCode?: string+ state?: string+ timezone?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Relationships: []+ }membership: {Row: {- groupId: string;- id: number;- memberGroupId: string | null;- memberUserId: string | null;- };+ groupId: string+ id: number+ memberGroupId: string | null+ memberUserId: string | null+ }Insert: {- groupId: string;- id?: number;- memberGroupId?: string | null;- memberUserId?: string | null;- };+ groupId: string+ id?: number+ memberGroupId?: string | null+ memberUserId?: string | null+ }Update: {- groupId?: string;- id?: number;- memberGroupId?: string | null;- memberUserId?: string | null;- };+ groupId?: string+ id?: number+ memberGroupId?: string | null+ memberUserId?: string | null+ }Relationships: [{- foreignKeyName: "membership_groupId_fkey";- columns: ["groupId"];- isOneToOne: false;- referencedRelation: "group";- referencedColumns: ["id"];+ foreignKeyName: "membership_groupId_fkey"+ columns: ["groupId"]+ isOneToOne: false+ referencedRelation: "group"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberGroupId_fkey";- columns: ["memberGroupId"];- isOneToOne: false;- referencedRelation: "group";- referencedColumns: ["id"];+ foreignKeyName: "membership_memberGroupId_fkey"+ columns: ["memberGroupId"]+ isOneToOne: false+ referencedRelation: "group"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberUserId_fkey";- columns: ["memberUserId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "membership_memberUserId_fkey"+ columns: ["memberUserId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberUserId_fkey";- columns: ["memberUserId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "membership_memberUserId_fkey"+ columns: ["memberUserId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberUserId_fkey";- columns: ["memberUserId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "membership_memberUserId_fkey"+ columns: ["memberUserId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberUserId_fkey";- columns: ["memberUserId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "membership_memberUserId_fkey"+ columns: ["memberUserId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }note: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- documentId: string;- id: string;- note: string;- noteRichText: Json;- updatedAt: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ documentId: string+ id: string+ note: string+ noteRichText: Json+ updatedAt: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- documentId: string;- id?: string;- note: string;- noteRichText?: Json;- updatedAt?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ documentId: string+ id?: string+ note: string+ noteRichText?: Json+ updatedAt?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- documentId?: string;- id?: string;- note?: string;- noteRichText?: Json;- updatedAt?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ documentId?: string+ id?: string+ note?: string+ noteRichText?: Json+ updatedAt?: string | null+ }Relationships: [{- foreignKeyName: "notes_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "notes_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "notes_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "notes_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "notes_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "notes_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "notes_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "notes_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }part: {Row: {- active: boolean;- approved: boolean;- approvedBy: string | null;- assignee: string | null;- blocked: boolean;- createdAt: string;- createdBy: string;- customFields: Json | null;- description: string | null;- fromDate: string | null;- id: string;- manufacturerPartNumber: string | null;- name: string;- partGroupId: string | null;- partType: Database["public"]["Enums"]["partType"];- replenishmentSystem: Database["public"]["Enums"]["partReplenishmentSystem"];- toDate: string | null;- unitOfMeasureCode: string;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ approved: boolean+ approvedBy: string | null+ assignee: string | null+ blocked: boolean+ createdAt: string+ createdBy: string+ customFields: Json | null+ description: string | null+ fromDate: string | null+ id: string+ manufacturerPartNumber: string | null+ name: string+ partGroupId: string | null+ partType: Database["public"]["Enums"]["partType"]+ replenishmentSystem: Database["public"]["Enums"]["partReplenishmentSystem"]+ toDate: string | null+ unitOfMeasureCode: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- approved?: boolean;- approvedBy?: string | null;- assignee?: string | null;- blocked?: boolean;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- description?: string | null;- fromDate?: string | null;- id: string;- manufacturerPartNumber?: string | null;- name: string;- partGroupId?: string | null;- partType: Database["public"]["Enums"]["partType"];- replenishmentSystem: Database["public"]["Enums"]["partReplenishmentSystem"];- toDate?: string | null;- unitOfMeasureCode: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ approved?: boolean+ approvedBy?: string | null+ assignee?: string | null+ blocked?: boolean+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ description?: string | null+ fromDate?: string | null+ id: string+ manufacturerPartNumber?: string | null+ name: string+ partGroupId?: string | null+ partType: Database["public"]["Enums"]["partType"]+ replenishmentSystem: Database["public"]["Enums"]["partReplenishmentSystem"]+ toDate?: string | null+ unitOfMeasureCode: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- approved?: boolean;- approvedBy?: string | null;- assignee?: string | null;- blocked?: boolean;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- description?: string | null;- fromDate?: string | null;- id?: string;- manufacturerPartNumber?: string | null;- name?: string;- partGroupId?: string | null;- partType?: Database["public"]["Enums"]["partType"];- replenishmentSystem?: Database["public"]["Enums"]["partReplenishmentSystem"];- toDate?: string | null;- unitOfMeasureCode?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ approved?: boolean+ approvedBy?: string | null+ assignee?: string | null+ blocked?: boolean+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ description?: string | null+ fromDate?: string | null+ id?: string+ manufacturerPartNumber?: string | null+ name?: string+ partGroupId?: string | null+ partType?: Database["public"]["Enums"]["partType"]+ replenishmentSystem?: Database["public"]["Enums"]["partReplenishmentSystem"]+ toDate?: string | null+ unitOfMeasureCode?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "part_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "part_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "part_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "part_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "part_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "part_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "part_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "part_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "part_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "part_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "part_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "part_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "part_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "part_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "part_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "part_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "part_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "part_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "part_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "part_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "part_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "part_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "part_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "part_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "part_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "partGroup";- referencedColumns: ["id"];+ foreignKeyName: "part_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "partGroup"+ referencedColumns: ["id"]},{- foreignKeyName: "part_unitOfMeasureCode_fkey";- columns: ["unitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "part_unitOfMeasureCode_fkey"+ columns: ["unitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "part_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "part_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "part_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "part_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "part_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "part_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "part_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "part_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }partCost: {Row: {- costingMethod: Database["public"]["Enums"]["partCostingMethod"];- costIsAdjusted: boolean;- createdAt: string;- createdBy: string;- customFields: Json | null;- partId: string;- standardCost: number;- unitCost: number;- updatedAt: string | null;- updatedBy: string | null;- };+ costingMethod: Database["public"]["Enums"]["partCostingMethod"]+ costIsAdjusted: boolean+ createdAt: string+ createdBy: string+ customFields: Json | null+ partId: string+ standardCost: number+ unitCost: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- costingMethod: Database["public"]["Enums"]["partCostingMethod"];- costIsAdjusted?: boolean;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- partId: string;- standardCost?: number;- unitCost?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ costingMethod: Database["public"]["Enums"]["partCostingMethod"]+ costIsAdjusted?: boolean+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ partId: string+ standardCost?: number+ unitCost?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- costingMethod?: Database["public"]["Enums"]["partCostingMethod"];- costIsAdjusted?: boolean;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- partId?: string;- standardCost?: number;- unitCost?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ costingMethod?: Database["public"]["Enums"]["partCostingMethod"]+ costIsAdjusted?: boolean+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ partId?: string+ standardCost?: number+ unitCost?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partCost_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "partCost_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "partCost_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "partCost_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "partCost_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "partCost_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partGroup_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partGroup_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "partGroup_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }partGroup: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- customFields: Json | null;- description: string | null;- id: string;- name: string;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ customFields: Json | null+ description: string | null+ id: string+ name: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- description?: string | null;- id?: string;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ description?: string | null+ id?: string+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- description?: string | null;- id?: string;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ description?: string | null+ id?: string+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partGroup_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partGroup_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partGroup_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "partGroup_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }partInventory: {Row: {- createdAt: string;- createdBy: string;- customFields: Json | null;- defaultShelfId: string | null;- locationId: string;- partId: string;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string+ createdBy: string+ customFields: Json | null+ defaultShelfId: string | null+ locationId: string+ partId: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- customFields?: Json | null;- defaultShelfId?: string | null;- locationId: string;- partId: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ defaultShelfId?: string | null+ locationId: string+ partId: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- defaultShelfId?: string | null;- locationId?: string;- partId?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ defaultShelfId?: string | null+ locationId?: string+ partId?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partInventory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partInventory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partInventory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partInventory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partInventory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partInventory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partInventory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partInventory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partInventory_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "partInventory_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "partInventory_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "partInventory_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "partInventory_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "partInventory_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "partInventory_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "partInventory_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "partInventory_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "partInventory_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "partInventory_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "partInventory_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "partInventory_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "partInventory_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "partInventory_shelfId_fkey";- columns: ["defaultShelfId", "locationId"];- isOneToOne: false;- referencedRelation: "shelf";- referencedColumns: ["id", "locationId"];+ foreignKeyName: "partInventory_shelfId_fkey"+ columns: ["defaultShelfId", "locationId"]+ isOneToOne: false+ referencedRelation: "shelf"+ referencedColumns: ["id", "locationId"]},{- foreignKeyName: "partInventory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partInventory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partInventory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partInventory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partInventory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partInventory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partInventory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "partInventory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }partLedger: {Row: {- createdAt: string;- documentId: string | null;+ createdAt: string+ documentId: string | nulldocumentType:| Database["public"]["Enums"]["partLedgerDocumentType"]- | null;- entryNumber: number;- entryType: Database["public"]["Enums"]["partLedgerType"];- externalDocumentId: string | null;- id: string;- locationId: string | null;- partId: string;- postingDate: string;- quantity: number;- shelfId: string | null;- };+ | null+ entryNumber: number+ entryType: Database["public"]["Enums"]["partLedgerType"]+ externalDocumentId: string | null+ id: string+ locationId: string | null+ partId: string+ postingDate: string+ quantity: number+ shelfId: string | null+ }Insert: {- createdAt?: string;- documentId?: string | null;+ createdAt?: string+ documentId?: string | nulldocumentType?:| Database["public"]["Enums"]["partLedgerDocumentType"]- | null;- entryNumber?: number;- entryType: Database["public"]["Enums"]["partLedgerType"];- externalDocumentId?: string | null;- id?: string;- locationId?: string | null;- partId: string;- postingDate?: string;- quantity: number;- shelfId?: string | null;- };+ | null+ entryNumber?: number+ entryType: Database["public"]["Enums"]["partLedgerType"]+ externalDocumentId?: string | null+ id?: string+ locationId?: string | null+ partId: string+ postingDate?: string+ quantity: number+ shelfId?: string | null+ }Update: {- createdAt?: string;- documentId?: string | null;+ createdAt?: string+ documentId?: string | nulldocumentType?:| Database["public"]["Enums"]["partLedgerDocumentType"]- | null;- entryNumber?: number;- entryType?: Database["public"]["Enums"]["partLedgerType"];- externalDocumentId?: string | null;- id?: string;- locationId?: string | null;- partId?: string;- postingDate?: string;- quantity?: number;- shelfId?: string | null;- };+ | null+ entryNumber?: number+ entryType?: Database["public"]["Enums"]["partLedgerType"]+ externalDocumentId?: string | null+ id?: string+ locationId?: string | null+ partId?: string+ postingDate?: string+ quantity?: number+ shelfId?: string | null+ }Relationships: [{- foreignKeyName: "partLedger_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "partLedger_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "partLedger_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "partLedger_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "partLedger_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "partLedger_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "partLedger_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "partLedger_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "partLedger_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "partLedger_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "partLedger_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "partLedger_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "partLedger_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "partLedger_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "partLedger_shelfId_fkey";- columns: ["shelfId", "locationId"];- isOneToOne: false;- referencedRelation: "shelf";- referencedColumns: ["id", "locationId"];- }- ];- };+ foreignKeyName: "partLedger_shelfId_fkey"+ columns: ["shelfId", "locationId"]+ isOneToOne: false+ referencedRelation: "shelf"+ referencedColumns: ["id", "locationId"]+ },+ ]+ }partner: {Row: {- abilityId: string;- active: boolean;- createdAt: string;- createdBy: string;- customFields: Json | null;- hoursPerWeek: number;- id: string;- updatedAt: string | null;- updatedBy: string | null;- };+ abilityId: string+ active: boolean+ createdAt: string+ createdBy: string+ customFields: Json | null+ hoursPerWeek: number+ id: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- abilityId: string;- active?: boolean;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- hoursPerWeek?: number;- id: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ abilityId: string+ active?: boolean+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ hoursPerWeek?: number+ id: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- abilityId?: string;- active?: boolean;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- hoursPerWeek?: number;- id?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ abilityId?: string+ active?: boolean+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ hoursPerWeek?: number+ id?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partner_abilityId_fkey";- columns: ["abilityId"];- isOneToOne: false;- referencedRelation: "ability";- referencedColumns: ["id"];+ foreignKeyName: "partner_abilityId_fkey"+ columns: ["abilityId"]+ isOneToOne: false+ referencedRelation: "ability"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partner_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partner_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partner_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partner_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partner_id_fkey";- columns: ["id"];- isOneToOne: false;- referencedRelation: "supplierLocation";- referencedColumns: ["id"];+ foreignKeyName: "partner_id_fkey"+ columns: ["id"]+ isOneToOne: false+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partner_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partner_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partner_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "partner_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }partPlanning: {Row: {- createdAt: string;- createdBy: string;- critical: boolean;- customFields: Json | null;- demandAccumulationIncludesInventory: boolean;- demandAccumulationPeriod: number;- demandReschedulingPeriod: number;- locationId: string;- maximumOrderQuantity: number;- minimumOrderQuantity: number;- orderMultiple: number;- partId: string;- reorderingPolicy: Database["public"]["Enums"]["partReorderingPolicy"];- reorderMaximumInventory: number;- reorderPoint: number;- reorderQuantity: number;- safetyStockLeadTime: number;- safetyStockQuantity: number;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string+ createdBy: string+ critical: boolean+ customFields: Json | null+ demandAccumulationIncludesInventory: boolean+ demandAccumulationPeriod: number+ demandReschedulingPeriod: number+ locationId: string+ maximumOrderQuantity: number+ minimumOrderQuantity: number+ orderMultiple: number+ partId: string+ reorderingPolicy: Database["public"]["Enums"]["partReorderingPolicy"]+ reorderMaximumInventory: number+ reorderPoint: number+ reorderQuantity: number+ safetyStockLeadTime: number+ safetyStockQuantity: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- critical?: boolean;- customFields?: Json | null;- demandAccumulationIncludesInventory?: boolean;- demandAccumulationPeriod?: number;- demandReschedulingPeriod?: number;- locationId: string;- maximumOrderQuantity?: number;- minimumOrderQuantity?: number;- orderMultiple?: number;- partId: string;- reorderingPolicy?: Database["public"]["Enums"]["partReorderingPolicy"];- reorderMaximumInventory?: number;- reorderPoint?: number;- reorderQuantity?: number;- safetyStockLeadTime?: number;- safetyStockQuantity?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy: string+ critical?: boolean+ customFields?: Json | null+ demandAccumulationIncludesInventory?: boolean+ demandAccumulationPeriod?: number+ demandReschedulingPeriod?: number+ locationId: string+ maximumOrderQuantity?: number+ minimumOrderQuantity?: number+ orderMultiple?: number+ partId: string+ reorderingPolicy?: Database["public"]["Enums"]["partReorderingPolicy"]+ reorderMaximumInventory?: number+ reorderPoint?: number+ reorderQuantity?: number+ safetyStockLeadTime?: number+ safetyStockQuantity?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- critical?: boolean;- customFields?: Json | null;- demandAccumulationIncludesInventory?: boolean;- demandAccumulationPeriod?: number;- demandReschedulingPeriod?: number;- locationId?: string;- maximumOrderQuantity?: number;- minimumOrderQuantity?: number;- orderMultiple?: number;- partId?: string;- reorderingPolicy?: Database["public"]["Enums"]["partReorderingPolicy"];- reorderMaximumInventory?: number;- reorderPoint?: number;- reorderQuantity?: number;- safetyStockLeadTime?: number;- safetyStockQuantity?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy?: string+ critical?: boolean+ customFields?: Json | null+ demandAccumulationIncludesInventory?: boolean+ demandAccumulationPeriod?: number+ demandReschedulingPeriod?: number+ locationId?: string+ maximumOrderQuantity?: number+ minimumOrderQuantity?: number+ orderMultiple?: number+ partId?: string+ reorderingPolicy?: Database["public"]["Enums"]["partReorderingPolicy"]+ reorderMaximumInventory?: number+ reorderPoint?: number+ reorderQuantity?: number+ safetyStockLeadTime?: number+ safetyStockQuantity?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partPlanning_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partPlanning_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partPlanning_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partPlanning_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partPlanning_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partPlanning_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partPlanning_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partPlanning_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partPlanning_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "partPlanning_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "partPlanning_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "partPlanning_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "partPlanning_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "partPlanning_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "partPlanning_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "partPlanning_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "partPlanning_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "partPlanning_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "partPlanning_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "partPlanning_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "partPlanning_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "partPlanning_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "partPlanning_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partPlanning_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partPlanning_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partPlanning_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partPlanning_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partPlanning_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partPlanning_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "partPlanning_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }partReplenishment: {Row: {- conversionFactor: number;- createdAt: string;- createdBy: string;- customFields: Json | null;- lotSize: number | null;- manufacturingBlocked: boolean;- manufacturingLeadTime: number;- manufacturingPolicy: Database["public"]["Enums"]["partManufacturingPolicy"];- partId: string;- preferredSupplierId: string | null;- purchasingBlocked: boolean;- purchasingLeadTime: number;- purchasingUnitOfMeasureCode: string | null;- requiresConfiguration: boolean;- scrapPercentage: number;- updatedAt: string | null;- updatedBy: string | null;- };+ conversionFactor: number+ createdAt: string+ createdBy: string+ customFields: Json | null+ lotSize: number | null+ manufacturingBlocked: boolean+ manufacturingLeadTime: number+ manufacturingPolicy: Database["public"]["Enums"]["partManufacturingPolicy"]+ partId: string+ preferredSupplierId: string | null+ purchasingBlocked: boolean+ purchasingLeadTime: number+ purchasingUnitOfMeasureCode: string | null+ requiresConfiguration: boolean+ scrapPercentage: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- conversionFactor?: number;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- lotSize?: number | null;- manufacturingBlocked?: boolean;- manufacturingLeadTime?: number;- manufacturingPolicy?: Database["public"]["Enums"]["partManufacturingPolicy"];- partId: string;- preferredSupplierId?: string | null;- purchasingBlocked?: boolean;- purchasingLeadTime?: number;- purchasingUnitOfMeasureCode?: string | null;- requiresConfiguration?: boolean;- scrapPercentage?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ conversionFactor?: number+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ lotSize?: number | null+ manufacturingBlocked?: boolean+ manufacturingLeadTime?: number+ manufacturingPolicy?: Database["public"]["Enums"]["partManufacturingPolicy"]+ partId: string+ preferredSupplierId?: string | null+ purchasingBlocked?: boolean+ purchasingLeadTime?: number+ purchasingUnitOfMeasureCode?: string | null+ requiresConfiguration?: boolean+ scrapPercentage?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- conversionFactor?: number;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- lotSize?: number | null;- manufacturingBlocked?: boolean;- manufacturingLeadTime?: number;- manufacturingPolicy?: Database["public"]["Enums"]["partManufacturingPolicy"];- partId?: string;- preferredSupplierId?: string | null;- purchasingBlocked?: boolean;- purchasingLeadTime?: number;- purchasingUnitOfMeasureCode?: string | null;- requiresConfiguration?: boolean;- scrapPercentage?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ conversionFactor?: number+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ lotSize?: number | null+ manufacturingBlocked?: boolean+ manufacturingLeadTime?: number+ manufacturingPolicy?: Database["public"]["Enums"]["partManufacturingPolicy"]+ partId?: string+ preferredSupplierId?: string | null+ purchasingBlocked?: boolean+ purchasingLeadTime?: number+ purchasingUnitOfMeasureCode?: string | null+ requiresConfiguration?: boolean+ scrapPercentage?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partReplenishment_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partReplenishment_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partReplenishment_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "partReplenishment_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "partReplenishment_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_preferredSupplierId_fkey";- columns: ["preferredSupplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "partReplenishment_preferredSupplierId_fkey"+ columns: ["preferredSupplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "partReplenishment_preferredSupplierId_fkey";- columns: ["preferredSupplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "partReplenishment_preferredSupplierId_fkey"+ columns: ["preferredSupplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "partReplenishment_preferredSupplierId_fkey";- columns: ["preferredSupplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_preferredSupplierId_fkey"+ columns: ["preferredSupplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_preferredSupplierId_fkey";- columns: ["preferredSupplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_preferredSupplierId_fkey"+ columns: ["preferredSupplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_preferredSupplierId_fkey";- columns: ["preferredSupplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_preferredSupplierId_fkey"+ columns: ["preferredSupplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_purchaseUnitOfMeasureCode_fkey";- columns: ["purchasingUnitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "partReplenishment_purchaseUnitOfMeasureCode_fkey"+ columns: ["purchasingUnitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "partReplenishment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "partReplenishment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }partSupplier: {Row: {- active: boolean;- conversionFactor: number;- createdAt: string;- createdBy: string;- customFields: Json | null;- id: string;- minimumOrderQuantity: number | null;- partId: string;- supplierId: string;- supplierPartId: string | null;- supplierUnitOfMeasureCode: string | null;- unitPrice: number | null;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ conversionFactor: number+ createdAt: string+ createdBy: string+ customFields: Json | null+ id: string+ minimumOrderQuantity: number | null+ partId: string+ supplierId: string+ supplierPartId: string | null+ supplierUnitOfMeasureCode: string | null+ unitPrice: number | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- conversionFactor?: number;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- id?: string;- minimumOrderQuantity?: number | null;- partId: string;- supplierId: string;- supplierPartId?: string | null;- supplierUnitOfMeasureCode?: string | null;- unitPrice?: number | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ conversionFactor?: number+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ id?: string+ minimumOrderQuantity?: number | null+ partId: string+ supplierId: string+ supplierPartId?: string | null+ supplierUnitOfMeasureCode?: string | null+ unitPrice?: number | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- conversionFactor?: number;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- id?: string;- minimumOrderQuantity?: number | null;- partId?: string;- supplierId?: string;- supplierPartId?: string | null;- supplierUnitOfMeasureCode?: string | null;- unitPrice?: number | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ conversionFactor?: number+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ id?: string+ minimumOrderQuantity?: number | null+ partId?: string+ supplierId?: string+ supplierPartId?: string | null+ supplierUnitOfMeasureCode?: string | null+ unitPrice?: number | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partSupplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partSupplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partSupplier_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "partSupplier_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "partSupplier_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "partSupplier_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "partSupplier_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "partSupplier_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "partSupplier_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "partSupplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }partUnitSalePrice: {Row: {- allowInvoiceDiscount: boolean;- createdAt: string;- createdBy: string;- currencyCode: string;- customFields: Json | null;- partId: string;- priceIncludesTax: boolean;- salesBlocked: boolean;- salesUnitOfMeasureCode: string | null;- unitSalePrice: number;- updatedAt: string | null;- updatedBy: string | null;- };+ allowInvoiceDiscount: boolean+ createdAt: string+ createdBy: string+ currencyCode: string+ customFields: Json | null+ partId: string+ priceIncludesTax: boolean+ salesBlocked: boolean+ salesUnitOfMeasureCode: string | null+ unitSalePrice: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- allowInvoiceDiscount?: boolean;- createdAt?: string;- createdBy: string;- currencyCode: string;- customFields?: Json | null;- partId: string;- priceIncludesTax?: boolean;- salesBlocked?: boolean;- salesUnitOfMeasureCode?: string | null;- unitSalePrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ allowInvoiceDiscount?: boolean+ createdAt?: string+ createdBy: string+ currencyCode: string+ customFields?: Json | null+ partId: string+ priceIncludesTax?: boolean+ salesBlocked?: boolean+ salesUnitOfMeasureCode?: string | null+ unitSalePrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- allowInvoiceDiscount?: boolean;- createdAt?: string;- createdBy?: string;- currencyCode?: string;- customFields?: Json | null;- partId?: string;- priceIncludesTax?: boolean;- salesBlocked?: boolean;- salesUnitOfMeasureCode?: string | null;- unitSalePrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ allowInvoiceDiscount?: boolean+ createdAt?: string+ createdBy?: string+ currencyCode?: string+ customFields?: Json | null+ partId?: string+ priceIncludesTax?: boolean+ salesBlocked?: boolean+ salesUnitOfMeasureCode?: string | null+ unitSalePrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partUnitSalePrice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partUnitSalePrice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partUnitSalePrice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partUnitSalePrice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partUnitSalePrice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partUnitSalePrice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partUnitSalePrice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partUnitSalePrice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partUnitSalePrice_currencyCode_fkey";- columns: ["currencyCode"];- isOneToOne: false;- referencedRelation: "currency";- referencedColumns: ["code"];+ foreignKeyName: "partUnitSalePrice_currencyCode_fkey"+ columns: ["currencyCode"]+ isOneToOne: false+ referencedRelation: "currency"+ referencedColumns: ["code"]},{- foreignKeyName: "partUnitSalePrice_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "partUnitSalePrice_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "partUnitSalePrice_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "partUnitSalePrice_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "partUnitSalePrice_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "partUnitSalePrice_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "partUnitSalePrice_salesUnitOfMeasureId_fkey";- columns: ["salesUnitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "partUnitSalePrice_salesUnitOfMeasureId_fkey"+ columns: ["salesUnitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "partUnitSalePrice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partUnitSalePrice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partUnitSalePrice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partUnitSalePrice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partUnitSalePrice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partUnitSalePrice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partUnitSalePrice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "partUnitSalePrice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }paymentTerm: {Row: {- active: boolean;- calculationMethod: Database["public"]["Enums"]["paymentTermCalculationMethod"];- createdAt: string;- createdBy: string;- customFields: Json | null;- daysDiscount: number;- daysDue: number;- discountPercentage: number;- id: string;- name: string;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ calculationMethod: Database["public"]["Enums"]["paymentTermCalculationMethod"]+ createdAt: string+ createdBy: string+ customFields: Json | null+ daysDiscount: number+ daysDue: number+ discountPercentage: number+ id: string+ name: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- calculationMethod?: Database["public"]["Enums"]["paymentTermCalculationMethod"];- createdAt?: string;- createdBy: string;- customFields?: Json | null;- daysDiscount?: number;- daysDue?: number;- discountPercentage?: number;- id?: string;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ calculationMethod?: Database["public"]["Enums"]["paymentTermCalculationMethod"]+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ daysDiscount?: number+ daysDue?: number+ discountPercentage?: number+ id?: string+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- calculationMethod?: Database["public"]["Enums"]["paymentTermCalculationMethod"];- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- daysDiscount?: number;- daysDue?: number;- discountPercentage?: number;- id?: string;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ calculationMethod?: Database["public"]["Enums"]["paymentTermCalculationMethod"]+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ daysDiscount?: number+ daysDue?: number+ discountPercentage?: number+ id?: string+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "paymentTerm_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "paymentTerm_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "paymentTerm_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "paymentTerm_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "paymentTerm_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "paymentTerm_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "paymentTerm_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "paymentTerm_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "paymentTerm_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "paymentTerm_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "paymentTerm_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "paymentTerm_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "paymentTerm_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "paymentTerm_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "paymentTerm_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "paymentTerm_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }postingGroupInventory: {Row: {- capacityVarianceAccount: string;- costOfGoodsSoldAccount: string;- directCostAppliedAccount: string;- id: string;- inventoryAccount: string;- inventoryAdjustmentVarianceAccount: string;- inventoryInterimAccrualAccount: string;- inventoryInvoicedNotReceivedAccount: string;- inventoryReceivedNotInvoicedAccount: string;- inventoryShippedNotInvoicedAccount: string;- locationId: string | null;- materialVarianceAccount: string;- overheadAccount: string;- overheadCostAppliedAccount: string;- partGroupId: string | null;- purchaseVarianceAccount: string;- updatedBy: string | null;- workInProgressAccount: string;- };+ capacityVarianceAccount: string+ costOfGoodsSoldAccount: string+ directCostAppliedAccount: string+ id: string+ inventoryAccount: string+ inventoryAdjustmentVarianceAccount: string+ inventoryInterimAccrualAccount: string+ inventoryInvoicedNotReceivedAccount: string+ inventoryReceivedNotInvoicedAccount: string+ inventoryShippedNotInvoicedAccount: string+ locationId: string | null+ materialVarianceAccount: string+ overheadAccount: string+ overheadCostAppliedAccount: string+ partGroupId: string | null+ purchaseVarianceAccount: string+ updatedBy: string | null+ workInProgressAccount: string+ }Insert: {- capacityVarianceAccount: string;- costOfGoodsSoldAccount: string;- directCostAppliedAccount: string;- id?: string;- inventoryAccount: string;- inventoryAdjustmentVarianceAccount: string;- inventoryInterimAccrualAccount: string;- inventoryInvoicedNotReceivedAccount: string;- inventoryReceivedNotInvoicedAccount: string;- inventoryShippedNotInvoicedAccount: string;- locationId?: string | null;- materialVarianceAccount: string;- overheadAccount: string;- overheadCostAppliedAccount: string;- partGroupId?: string | null;- purchaseVarianceAccount: string;- updatedBy?: string | null;- workInProgressAccount: string;- };+ capacityVarianceAccount: string+ costOfGoodsSoldAccount: string+ directCostAppliedAccount: string+ id?: string+ inventoryAccount: string+ inventoryAdjustmentVarianceAccount: string+ inventoryInterimAccrualAccount: string+ inventoryInvoicedNotReceivedAccount: string+ inventoryReceivedNotInvoicedAccount: string+ inventoryShippedNotInvoicedAccount: string+ locationId?: string | null+ materialVarianceAccount: string+ overheadAccount: string+ overheadCostAppliedAccount: string+ partGroupId?: string | null+ purchaseVarianceAccount: string+ updatedBy?: string | null+ workInProgressAccount: string+ }Update: {- capacityVarianceAccount?: string;- costOfGoodsSoldAccount?: string;- directCostAppliedAccount?: string;- id?: string;- inventoryAccount?: string;- inventoryAdjustmentVarianceAccount?: string;- inventoryInterimAccrualAccount?: string;- inventoryInvoicedNotReceivedAccount?: string;- inventoryReceivedNotInvoicedAccount?: string;- inventoryShippedNotInvoicedAccount?: string;- locationId?: string | null;- materialVarianceAccount?: string;- overheadAccount?: string;- overheadCostAppliedAccount?: string;- partGroupId?: string | null;- purchaseVarianceAccount?: string;- updatedBy?: string | null;- workInProgressAccount?: string;- };+ capacityVarianceAccount?: string+ costOfGoodsSoldAccount?: string+ directCostAppliedAccount?: string+ id?: string+ inventoryAccount?: string+ inventoryAdjustmentVarianceAccount?: string+ inventoryInterimAccrualAccount?: string+ inventoryInvoicedNotReceivedAccount?: string+ inventoryReceivedNotInvoicedAccount?: string+ inventoryShippedNotInvoicedAccount?: string+ locationId?: string | null+ materialVarianceAccount?: string+ overheadAccount?: string+ overheadCostAppliedAccount?: string+ partGroupId?: string | null+ purchaseVarianceAccount?: string+ updatedBy?: string | null+ workInProgressAccount?: string+ }Relationships: [{- foreignKeyName: "postingGroupInventory_capacityVarianceAccount_fkey";- columns: ["capacityVarianceAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_capacityVarianceAccount_fkey"+ columns: ["capacityVarianceAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_capacityVarianceAccount_fkey";- columns: ["capacityVarianceAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_capacityVarianceAccount_fkey"+ columns: ["capacityVarianceAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_costOfGoodsSoldAccount_fkey";- columns: ["costOfGoodsSoldAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_costOfGoodsSoldAccount_fkey"+ columns: ["costOfGoodsSoldAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_costOfGoodsSoldAccount_fkey";- columns: ["costOfGoodsSoldAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_costOfGoodsSoldAccount_fkey"+ columns: ["costOfGoodsSoldAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_directCostAppliedAccount_fkey";- columns: ["directCostAppliedAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_directCostAppliedAccount_fkey"+ columns: ["directCostAppliedAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_directCostAppliedAccount_fkey";- columns: ["directCostAppliedAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_directCostAppliedAccount_fkey"+ columns: ["directCostAppliedAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryAccount_fkey";- columns: ["inventoryAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryAccount_fkey"+ columns: ["inventoryAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryAccount_fkey";- columns: ["inventoryAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryAccount_fkey"+ columns: ["inventoryAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryAdjustmentVarianceAccount_fkey";- columns: ["inventoryAdjustmentVarianceAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryAdjustmentVarianceAccount_fkey"+ columns: ["inventoryAdjustmentVarianceAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryAdjustmentVarianceAccount_fkey";- columns: ["inventoryAdjustmentVarianceAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryAdjustmentVarianceAccount_fkey"+ columns: ["inventoryAdjustmentVarianceAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryInterimAccrualAccount_fkey";- columns: ["inventoryInterimAccrualAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryInterimAccrualAccount_fkey"+ columns: ["inventoryInterimAccrualAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryInterimAccrualAccount_fkey";- columns: ["inventoryInterimAccrualAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryInterimAccrualAccount_fkey"+ columns: ["inventoryInterimAccrualAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryInvoicedNotReceivedAccount_fkey";- columns: ["inventoryInvoicedNotReceivedAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryInvoicedNotReceivedAccount_fkey"+ columns: ["inventoryInvoicedNotReceivedAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryInvoicedNotReceivedAccount_fkey";- columns: ["inventoryInvoicedNotReceivedAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryInvoicedNotReceivedAccount_fkey"+ columns: ["inventoryInvoicedNotReceivedAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryReceivedNotInvoicedAccount_fkey";- columns: ["inventoryReceivedNotInvoicedAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryReceivedNotInvoicedAccount_fkey"+ columns: ["inventoryReceivedNotInvoicedAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryReceivedNotInvoicedAccount_fkey";- columns: ["inventoryReceivedNotInvoicedAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryReceivedNotInvoicedAccount_fkey"+ columns: ["inventoryReceivedNotInvoicedAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryShippedNotInvoicedAccount_fkey";- columns: ["inventoryShippedNotInvoicedAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryShippedNotInvoicedAccount_fkey"+ columns: ["inventoryShippedNotInvoicedAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryShippedNotInvoicedAccount_fkey";- columns: ["inventoryShippedNotInvoicedAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryShippedNotInvoicedAccount_fkey"+ columns: ["inventoryShippedNotInvoicedAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupInventory_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupInventory_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "postingGroupInventory_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "postingGroupInventory_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "postingGroupInventory_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "postingGroupInventory_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "postingGroupInventory_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "postingGroupInventory_materialVarianceAccount_fkey";- columns: ["materialVarianceAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_materialVarianceAccount_fkey"+ columns: ["materialVarianceAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_materialVarianceAccount_fkey";- columns: ["materialVarianceAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_materialVarianceAccount_fkey"+ columns: ["materialVarianceAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_overheadAccount_fkey";- columns: ["overheadAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_overheadAccount_fkey"+ columns: ["overheadAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_overheadAccount_fkey";- columns: ["overheadAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_overheadAccount_fkey"+ columns: ["overheadAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_overheadCostAppliedAccount_fkey";- columns: ["overheadCostAppliedAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_overheadCostAppliedAccount_fkey"+ columns: ["overheadCostAppliedAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_overheadCostAppliedAccount_fkey";- columns: ["overheadCostAppliedAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_overheadCostAppliedAccount_fkey"+ columns: ["overheadCostAppliedAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "partGroup";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupInventory_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "partGroup"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupInventory_purchaseVarianceAccount_fkey";- columns: ["purchaseVarianceAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_purchaseVarianceAccount_fkey"+ columns: ["purchaseVarianceAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_purchaseVarianceAccount_fkey";- columns: ["purchaseVarianceAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_purchaseVarianceAccount_fkey"+ columns: ["purchaseVarianceAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupInventory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupInventory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupInventory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupInventory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupInventory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupInventory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "postingGroupInventory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "postingGroupInventory_workInProgressAccount_fkey";- columns: ["workInProgressAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_workInProgressAccount_fkey"+ columns: ["workInProgressAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_workInProgressAccount_fkey";- columns: ["workInProgressAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];- }- ];- };+ foreignKeyName: "postingGroupInventory_workInProgressAccount_fkey"+ columns: ["workInProgressAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]+ },+ ]+ }postingGroupPurchasing: {Row: {- id: string;- partGroupId: string | null;- payablesAccount: string;- purchaseAccount: string;- purchaseCreditAccount: string;- purchaseDiscountAccount: string;- purchasePrepaymentAccount: string;- purchaseTaxPayableAccount: string;- supplierTypeId: string | null;- updatedBy: string | null;- };+ id: string+ partGroupId: string | null+ payablesAccount: string+ purchaseAccount: string+ purchaseCreditAccount: string+ purchaseDiscountAccount: string+ purchasePrepaymentAccount: string+ purchaseTaxPayableAccount: string+ supplierTypeId: string | null+ updatedBy: string | null+ }Insert: {- id?: string;- partGroupId?: string | null;- payablesAccount: string;- purchaseAccount: string;- purchaseCreditAccount: string;- purchaseDiscountAccount: string;- purchasePrepaymentAccount: string;- purchaseTaxPayableAccount: string;- supplierTypeId?: string | null;- updatedBy?: string | null;- };+ id?: string+ partGroupId?: string | null+ payablesAccount: string+ purchaseAccount: string+ purchaseCreditAccount: string+ purchaseDiscountAccount: string+ purchasePrepaymentAccount: string+ purchaseTaxPayableAccount: string+ supplierTypeId?: string | null+ updatedBy?: string | null+ }Update: {- id?: string;- partGroupId?: string | null;- payablesAccount?: string;- purchaseAccount?: string;- purchaseCreditAccount?: string;- purchaseDiscountAccount?: string;- purchasePrepaymentAccount?: string;- purchaseTaxPayableAccount?: string;- supplierTypeId?: string | null;- updatedBy?: string | null;- };+ id?: string+ partGroupId?: string | null+ payablesAccount?: string+ purchaseAccount?: string+ purchaseCreditAccount?: string+ purchaseDiscountAccount?: string+ purchasePrepaymentAccount?: string+ purchaseTaxPayableAccount?: string+ supplierTypeId?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "postingGroupPurchasing_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "partGroup";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupPurchasing_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "partGroup"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupPurchasing_payablesAccount_fkey";- columns: ["payablesAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_payablesAccount_fkey"+ columns: ["payablesAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_payablesAccount_fkey";- columns: ["payablesAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_payablesAccount_fkey"+ columns: ["payablesAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchaseAccount_fkey";- columns: ["purchaseAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseAccount_fkey"+ columns: ["purchaseAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchaseAccount_fkey";- columns: ["purchaseAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseAccount_fkey"+ columns: ["purchaseAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchaseCreditAccount_fkey";- columns: ["purchaseCreditAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseCreditAccount_fkey"+ columns: ["purchaseCreditAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchaseCreditAccount_fkey";- columns: ["purchaseCreditAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseCreditAccount_fkey"+ columns: ["purchaseCreditAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchaseDiscountAccount_fkey";- columns: ["purchaseDiscountAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseDiscountAccount_fkey"+ columns: ["purchaseDiscountAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchaseDiscountAccount_fkey";- columns: ["purchaseDiscountAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseDiscountAccount_fkey"+ columns: ["purchaseDiscountAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchasePrepaymentAccount_fkey";- columns: ["purchasePrepaymentAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchasePrepaymentAccount_fkey"+ columns: ["purchasePrepaymentAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchasePrepaymentAccount_fkey";- columns: ["purchasePrepaymentAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchasePrepaymentAccount_fkey"+ columns: ["purchasePrepaymentAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchaseTaxPayableAccount_fkey";- columns: ["purchaseTaxPayableAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseTaxPayableAccount_fkey"+ columns: ["purchaseTaxPayableAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchaseTaxPayableAccount_fkey";- columns: ["purchaseTaxPayableAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseTaxPayableAccount_fkey"+ columns: ["purchaseTaxPayableAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_supplierTypeId_fkey";- columns: ["supplierTypeId"];- isOneToOne: false;- referencedRelation: "supplierType";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupPurchasing_supplierTypeId_fkey"+ columns: ["supplierTypeId"]+ isOneToOne: false+ referencedRelation: "supplierType"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupPurchasing_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupPurchasing_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupPurchasing_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupPurchasing_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupPurchasing_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupPurchasing_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupPurchasing_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "postingGroupPurchasing_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }postingGroupSales: {Row: {- customerTypeId: string | null;- id: string;- partGroupId: string | null;- receivablesAccount: string;- salesAccount: string;- salesCreditAccount: string;- salesDiscountAccount: string;- salesPrepaymentAccount: string;- salesTaxPayableAccount: string;- updatedBy: string | null;- };+ customerTypeId: string | null+ id: string+ partGroupId: string | null+ receivablesAccount: string+ salesAccount: string+ salesCreditAccount: string+ salesDiscountAccount: string+ salesPrepaymentAccount: string+ salesTaxPayableAccount: string+ updatedBy: string | null+ }Insert: {- customerTypeId?: string | null;- id?: string;- partGroupId?: string | null;- receivablesAccount: string;- salesAccount: string;- salesCreditAccount: string;- salesDiscountAccount: string;- salesPrepaymentAccount: string;- salesTaxPayableAccount: string;- updatedBy?: string | null;- };+ customerTypeId?: string | null+ id?: string+ partGroupId?: string | null+ receivablesAccount: string+ salesAccount: string+ salesCreditAccount: string+ salesDiscountAccount: string+ salesPrepaymentAccount: string+ salesTaxPayableAccount: string+ updatedBy?: string | null+ }Update: {- customerTypeId?: string | null;- id?: string;- partGroupId?: string | null;- receivablesAccount?: string;- salesAccount?: string;- salesCreditAccount?: string;- salesDiscountAccount?: string;- salesPrepaymentAccount?: string;- salesTaxPayableAccount?: string;- updatedBy?: string | null;- };+ customerTypeId?: string | null+ id?: string+ partGroupId?: string | null+ receivablesAccount?: string+ salesAccount?: string+ salesCreditAccount?: string+ salesDiscountAccount?: string+ salesPrepaymentAccount?: string+ salesTaxPayableAccount?: string+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "postingGroupSales_customerTypeId_fkey";- columns: ["customerTypeId"];- isOneToOne: false;- referencedRelation: "customerType";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupSales_customerTypeId_fkey"+ columns: ["customerTypeId"]+ isOneToOne: false+ referencedRelation: "customerType"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupSales_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "partGroup";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupSales_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "partGroup"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupSales_receivablesAccount_fkey";- columns: ["receivablesAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_receivablesAccount_fkey"+ columns: ["receivablesAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_receivablesAccount_fkey";- columns: ["receivablesAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_receivablesAccount_fkey"+ columns: ["receivablesAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesAccount_fkey";- columns: ["salesAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesAccount_fkey"+ columns: ["salesAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesAccount_fkey";- columns: ["salesAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesAccount_fkey"+ columns: ["salesAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesCreditAccount_fkey";- columns: ["salesCreditAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesCreditAccount_fkey"+ columns: ["salesCreditAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesCreditAccount_fkey";- columns: ["salesCreditAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesCreditAccount_fkey"+ columns: ["salesCreditAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesDiscountAccount_fkey";- columns: ["salesDiscountAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesDiscountAccount_fkey"+ columns: ["salesDiscountAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesDiscountAccount_fkey";- columns: ["salesDiscountAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesDiscountAccount_fkey"+ columns: ["salesDiscountAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesPrepaymentAccount_fkey";- columns: ["salesPrepaymentAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesPrepaymentAccount_fkey"+ columns: ["salesPrepaymentAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesPrepaymentAccount_fkey";- columns: ["salesPrepaymentAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesPrepaymentAccount_fkey"+ columns: ["salesPrepaymentAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesTaxPayableAccount_fkey";- columns: ["salesTaxPayableAccount"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesTaxPayableAccount_fkey"+ columns: ["salesTaxPayableAccount"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesTaxPayableAccount_fkey";- columns: ["salesTaxPayableAccount"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesTaxPayableAccount_fkey"+ columns: ["salesTaxPayableAccount"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupSales_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupSales_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupSales_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupSales_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupSales_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupSales_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "postingGroupSales_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }purchaseInvoice: {Row: {- assignee: string | null;- balance: number;- createdAt: string;- createdBy: string;- currencyCode: string;- customFields: Json | null;- dateDue: string | null;- dateIssued: string | null;- datePaid: string | null;- exchangeRate: number;- id: string;- invoiceId: string;- invoiceSupplierContactId: string | null;- invoiceSupplierId: string | null;- invoiceSupplierLocationId: string | null;- paymentTermId: string | null;- postingDate: string | null;- status: Database["public"]["Enums"]["purchaseInvoiceStatus"];- subtotal: number;- supplierId: string | null;- supplierReference: string | null;- totalAmount: number;- totalDiscount: number;- totalTax: number;- updatedAt: string | null;- updatedBy: string | null;- };+ assignee: string | null+ balance: number+ createdAt: string+ createdBy: string+ currencyCode: string+ customFields: Json | null+ dateDue: string | null+ dateIssued: string | null+ datePaid: string | null+ exchangeRate: number+ id: string+ invoiceId: string+ invoiceSupplierContactId: string | null+ invoiceSupplierId: string | null+ invoiceSupplierLocationId: string | null+ paymentTermId: string | null+ postingDate: string | null+ status: Database["public"]["Enums"]["purchaseInvoiceStatus"]+ subtotal: number+ supplierId: string | null+ supplierReference: string | null+ totalAmount: number+ totalDiscount: number+ totalTax: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- assignee?: string | null;- balance?: number;- createdAt?: string;- createdBy: string;- currencyCode: string;- customFields?: Json | null;- dateDue?: string | null;- dateIssued?: string | null;- datePaid?: string | null;- exchangeRate?: number;- id?: string;- invoiceId: string;- invoiceSupplierContactId?: string | null;- invoiceSupplierId?: string | null;- invoiceSupplierLocationId?: string | null;- paymentTermId?: string | null;- postingDate?: string | null;- status?: Database["public"]["Enums"]["purchaseInvoiceStatus"];- subtotal?: number;- supplierId?: string | null;- supplierReference?: string | null;- totalAmount?: number;- totalDiscount?: number;- totalTax?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ assignee?: string | null+ balance?: number+ createdAt?: string+ createdBy: string+ currencyCode: string+ customFields?: Json | null+ dateDue?: string | null+ dateIssued?: string | null+ datePaid?: string | null+ exchangeRate?: number+ id?: string+ invoiceId: string+ invoiceSupplierContactId?: string | null+ invoiceSupplierId?: string | null+ invoiceSupplierLocationId?: string | null+ paymentTermId?: string | null+ postingDate?: string | null+ status?: Database["public"]["Enums"]["purchaseInvoiceStatus"]+ subtotal?: number+ supplierId?: string | null+ supplierReference?: string | null+ totalAmount?: number+ totalDiscount?: number+ totalTax?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- assignee?: string | null;- balance?: number;- createdAt?: string;- createdBy?: string;- currencyCode?: string;- customFields?: Json | null;- dateDue?: string | null;- dateIssued?: string | null;- datePaid?: string | null;- exchangeRate?: number;- id?: string;- invoiceId?: string;- invoiceSupplierContactId?: string | null;- invoiceSupplierId?: string | null;- invoiceSupplierLocationId?: string | null;- paymentTermId?: string | null;- postingDate?: string | null;- status?: Database["public"]["Enums"]["purchaseInvoiceStatus"];- subtotal?: number;- supplierId?: string | null;- supplierReference?: string | null;- totalAmount?: number;- totalDiscount?: number;- totalTax?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ assignee?: string | null+ balance?: number+ createdAt?: string+ createdBy?: string+ currencyCode?: string+ customFields?: Json | null+ dateDue?: string | null+ dateIssued?: string | null+ datePaid?: string | null+ exchangeRate?: number+ id?: string+ invoiceId?: string+ invoiceSupplierContactId?: string | null+ invoiceSupplierId?: string | null+ invoiceSupplierLocationId?: string | null+ paymentTermId?: string | null+ postingDate?: string | null+ status?: Database["public"]["Enums"]["purchaseInvoiceStatus"]+ subtotal?: number+ supplierId?: string | null+ supplierReference?: string | null+ totalAmount?: number+ totalDiscount?: number+ totalTax?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "purchaseInvoice_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseInvoice_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseInvoice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseInvoice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseInvoice_currencyCode_fkey";- columns: ["currencyCode"];- isOneToOne: false;- referencedRelation: "currency";- referencedColumns: ["code"];+ foreignKeyName: "purchaseInvoice_currencyCode_fkey"+ columns: ["currencyCode"]+ isOneToOne: false+ referencedRelation: "currency"+ referencedColumns: ["code"]},{- foreignKeyName: "purchaseInvoice_invoiceSupplierContactId_fkey";- columns: ["invoiceSupplierContactId"];- isOneToOne: false;- referencedRelation: "supplierContact";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierContactId_fkey"+ columns: ["invoiceSupplierContactId"]+ isOneToOne: false+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_invoiceSupplierLocationId_fkey";- columns: ["invoiceSupplierLocationId"];- isOneToOne: false;- referencedRelation: "supplierLocation";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierLocationId_fkey"+ columns: ["invoiceSupplierLocationId"]+ isOneToOne: false+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_paymentTermId_fkey";- columns: ["paymentTermId"];- isOneToOne: false;- referencedRelation: "paymentTerm";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_paymentTermId_fkey"+ columns: ["paymentTermId"]+ isOneToOne: false+ referencedRelation: "paymentTerm"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "purchaseInvoice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }purchaseInvoiceLine: {Row: {- accountNumber: string | null;- assetId: string | null;- conversionFactor: number | null;- createdAt: string;- createdBy: string;- currencyCode: string;- customFields: Json | null;- description: string | null;- exchangeRate: number;- id: string;- inventoryUnitOfMeasureCode: string | null;- invoiceId: string;- invoiceLineType: Database["public"]["Enums"]["payableLineType"];- locationId: string | null;- partId: string | null;- purchaseOrderId: string | null;- purchaseOrderLineId: string | null;- purchaseUnitOfMeasureCode: string | null;- quantity: number;- serviceId: string | null;- shelfId: string | null;- totalAmount: number | null;- unitPrice: number;- updatedAt: string | null;- updatedBy: string | null;- };+ accountNumber: string | null+ assetId: string | null+ conversionFactor: number | null+ createdAt: string+ createdBy: string+ currencyCode: string+ customFields: Json | null+ description: string | null+ exchangeRate: number+ id: string+ inventoryUnitOfMeasureCode: string | null+ invoiceId: string+ invoiceLineType: Database["public"]["Enums"]["payableLineType"]+ locationId: string | null+ partId: string | null+ purchaseOrderId: string | null+ purchaseOrderLineId: string | null+ purchaseUnitOfMeasureCode: string | null+ quantity: number+ serviceId: string | null+ shelfId: string | null+ totalAmount: number | null+ unitPrice: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountNumber?: string | null;- assetId?: string | null;- conversionFactor?: number | null;- createdAt?: string;- createdBy: string;- currencyCode: string;- customFields?: Json | null;- description?: string | null;- exchangeRate?: number;- id?: string;- inventoryUnitOfMeasureCode?: string | null;- invoiceId: string;- invoiceLineType: Database["public"]["Enums"]["payableLineType"];- locationId?: string | null;- partId?: string | null;- purchaseOrderId?: string | null;- purchaseOrderLineId?: string | null;- purchaseUnitOfMeasureCode?: string | null;- quantity?: number;- serviceId?: string | null;- shelfId?: string | null;- totalAmount?: number | null;- unitPrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountNumber?: string | null+ assetId?: string | null+ conversionFactor?: number | null+ createdAt?: string+ createdBy: string+ currencyCode: string+ customFields?: Json | null+ description?: string | null+ exchangeRate?: number+ id?: string+ inventoryUnitOfMeasureCode?: string | null+ invoiceId: string+ invoiceLineType: Database["public"]["Enums"]["payableLineType"]+ locationId?: string | null+ partId?: string | null+ purchaseOrderId?: string | null+ purchaseOrderLineId?: string | null+ purchaseUnitOfMeasureCode?: string | null+ quantity?: number+ serviceId?: string | null+ shelfId?: string | null+ totalAmount?: number | null+ unitPrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountNumber?: string | null;- assetId?: string | null;- conversionFactor?: number | null;- createdAt?: string;- createdBy?: string;- currencyCode?: string;- customFields?: Json | null;- description?: string | null;- exchangeRate?: number;- id?: string;- inventoryUnitOfMeasureCode?: string | null;- invoiceId?: string;- invoiceLineType?: Database["public"]["Enums"]["payableLineType"];- locationId?: string | null;- partId?: string | null;- purchaseOrderId?: string | null;- purchaseOrderLineId?: string | null;- purchaseUnitOfMeasureCode?: string | null;- quantity?: number;- serviceId?: string | null;- shelfId?: string | null;- totalAmount?: number | null;- unitPrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountNumber?: string | null+ assetId?: string | null+ conversionFactor?: number | null+ createdAt?: string+ createdBy?: string+ currencyCode?: string+ customFields?: Json | null+ description?: string | null+ exchangeRate?: number+ id?: string+ inventoryUnitOfMeasureCode?: string | null+ invoiceId?: string+ invoiceLineType?: Database["public"]["Enums"]["payableLineType"]+ locationId?: string | null+ partId?: string | null+ purchaseOrderId?: string | null+ purchaseOrderLineId?: string | null+ purchaseUnitOfMeasureCode?: string | null+ quantity?: number+ serviceId?: string | null+ shelfId?: string | null+ totalAmount?: number | null+ unitPrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "purchaseInvoiceLine_inventoryUnitOfMeasureCode_fkey";- columns: ["inventoryUnitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "purchaseInvoiceLine_inventoryUnitOfMeasureCode_fkey"+ columns: ["inventoryUnitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "purchaseInvoiceLine_purchaseUnitOfMeasureCode_fkey";- columns: ["purchaseUnitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "purchaseInvoiceLine_purchaseUnitOfMeasureCode_fkey"+ columns: ["purchaseUnitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "purchaseInvoiceLines_accountNumber_fkey";- columns: ["accountNumber"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "purchaseInvoiceLines_accountNumber_fkey"+ columns: ["accountNumber"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "purchaseInvoiceLines_accountNumber_fkey";- columns: ["accountNumber"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "purchaseInvoiceLines_accountNumber_fkey"+ columns: ["accountNumber"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "purchaseInvoiceLines_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseInvoiceLines_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseInvoiceLines_currencyCode_fkey";- columns: ["currencyCode"];- isOneToOne: false;- referencedRelation: "currency";- referencedColumns: ["code"];+ foreignKeyName: "purchaseInvoiceLines_currencyCode_fkey"+ columns: ["currencyCode"]+ isOneToOne: false+ referencedRelation: "currency"+ referencedColumns: ["code"]},{- foreignKeyName: "purchaseInvoiceLines_invoiceId_fkey";- columns: ["invoiceId"];- isOneToOne: false;- referencedRelation: "purchaseInvoice";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_invoiceId_fkey"+ columns: ["invoiceId"]+ isOneToOne: false+ referencedRelation: "purchaseInvoice"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_invoiceId_fkey";- columns: ["invoiceId"];- isOneToOne: false;- referencedRelation: "purchaseInvoices";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_invoiceId_fkey"+ columns: ["invoiceId"]+ isOneToOne: false+ referencedRelation: "purchaseInvoices"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "purchaseInvoiceLines_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "purchaseInvoiceLines_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "purchaseInvoiceLines_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "purchaseInvoiceLines_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "purchaseInvoiceLines_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "purchaseInvoiceLines_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "purchaseInvoiceLines_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "purchaseInvoiceLines_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrder";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrderLocations";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderLocations"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_purchaseOrderLineId_fkey";- columns: ["purchaseOrderLineId"];- isOneToOne: false;- referencedRelation: "purchaseOrderLine";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_purchaseOrderLineId_fkey"+ columns: ["purchaseOrderLineId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderLine"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_purchaseOrderLineId_fkey";- columns: ["purchaseOrderLineId"];- isOneToOne: false;- referencedRelation: "purchaseOrderLines";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_purchaseOrderLineId_fkey"+ columns: ["purchaseOrderLineId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderLines"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_serviceId_fkey";- columns: ["serviceId"];- isOneToOne: false;- referencedRelation: "service";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_serviceId_fkey"+ columns: ["serviceId"]+ isOneToOne: false+ referencedRelation: "service"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_serviceId_fkey";- columns: ["serviceId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_serviceId_fkey"+ columns: ["serviceId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_shelfId_fkey";- columns: ["shelfId", "locationId"];- isOneToOne: false;- referencedRelation: "shelf";- referencedColumns: ["id", "locationId"];+ foreignKeyName: "purchaseInvoiceLines_shelfId_fkey"+ columns: ["shelfId", "locationId"]+ isOneToOne: false+ referencedRelation: "shelf"+ referencedColumns: ["id", "locationId"]},{- foreignKeyName: "purchaseInvoiceLines_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "purchaseInvoiceLines_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }purchaseInvoicePaymentRelation: {Row: {- id: string;- invoiceId: string;- paymentId: string;- };+ id: string+ invoiceId: string+ paymentId: string+ }Insert: {- id?: string;- invoiceId: string;- paymentId: string;- };+ id?: string+ invoiceId: string+ paymentId: string+ }Update: {- id?: string;- invoiceId?: string;- paymentId?: string;- };+ id?: string+ invoiceId?: string+ paymentId?: string+ }Relationships: [{- foreignKeyName: "purchasePayments_invoiceId_fkey";- columns: ["invoiceId"];- isOneToOne: false;- referencedRelation: "purchaseInvoice";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayments_invoiceId_fkey"+ columns: ["invoiceId"]+ isOneToOne: false+ referencedRelation: "purchaseInvoice"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayments_invoiceId_fkey";- columns: ["invoiceId"];- isOneToOne: false;- referencedRelation: "purchaseInvoices";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayments_invoiceId_fkey"+ columns: ["invoiceId"]+ isOneToOne: false+ referencedRelation: "purchaseInvoices"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayments_paymentId_fkey";- columns: ["paymentId"];- isOneToOne: false;- referencedRelation: "purchasePayment";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "purchasePayments_paymentId_fkey"+ columns: ["paymentId"]+ isOneToOne: false+ referencedRelation: "purchasePayment"+ referencedColumns: ["id"]+ },+ ]+ }purchaseInvoicePriceChange: {Row: {- id: string;- invoiceId: string;- invoiceLineId: string;- newPrice: number;- newQuantity: number;- previousPrice: number;- previousQuantity: number;- updatedBy: string;- };+ id: string+ invoiceId: string+ invoiceLineId: string+ newPrice: number+ newQuantity: number+ previousPrice: number+ previousQuantity: number+ updatedBy: string+ }Insert: {- id?: string;- invoiceId: string;- invoiceLineId: string;- newPrice?: number;- newQuantity?: number;- previousPrice?: number;- previousQuantity?: number;- updatedBy: string;- };+ id?: string+ invoiceId: string+ invoiceLineId: string+ newPrice?: number+ newQuantity?: number+ previousPrice?: number+ previousQuantity?: number+ updatedBy: string+ }Update: {- id?: string;- invoiceId?: string;- invoiceLineId?: string;- newPrice?: number;- newQuantity?: number;- previousPrice?: number;- previousQuantity?: number;- updatedBy?: string;- };+ id?: string+ invoiceId?: string+ invoiceLineId?: string+ newPrice?: number+ newQuantity?: number+ previousPrice?: number+ previousQuantity?: number+ updatedBy?: string+ }Relationships: [{- foreignKeyName: "purchaseInvoicePriceChange_invoiceId_fkey";- columns: ["invoiceId"];- isOneToOne: false;- referencedRelation: "purchaseInvoice";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoicePriceChange_invoiceId_fkey"+ columns: ["invoiceId"]+ isOneToOne: false+ referencedRelation: "purchaseInvoice"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoicePriceChange_invoiceId_fkey";- columns: ["invoiceId"];- isOneToOne: false;- referencedRelation: "purchaseInvoices";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoicePriceChange_invoiceId_fkey"+ columns: ["invoiceId"]+ isOneToOne: false+ referencedRelation: "purchaseInvoices"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoicePriceChange_invoiceLineId_fkey";- columns: ["invoiceLineId"];- isOneToOne: false;- referencedRelation: "purchaseInvoiceLine";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoicePriceChange_invoiceLineId_fkey"+ columns: ["invoiceLineId"]+ isOneToOne: false+ referencedRelation: "purchaseInvoiceLine"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoicePriceChange_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoicePriceChange_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoicePriceChange_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoicePriceChange_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoicePriceChange_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoicePriceChange_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoicePriceChange_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "purchaseInvoicePriceChange_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }purchaseInvoiceStatusHistory: {Row: {- createdAt: string;- id: string;- invoiceId: string;- status: Database["public"]["Enums"]["purchaseInvoiceStatus"];- };+ createdAt: string+ id: string+ invoiceId: string+ status: Database["public"]["Enums"]["purchaseInvoiceStatus"]+ }Insert: {- createdAt?: string;- id?: string;- invoiceId: string;- status: Database["public"]["Enums"]["purchaseInvoiceStatus"];- };+ createdAt?: string+ id?: string+ invoiceId: string+ status: Database["public"]["Enums"]["purchaseInvoiceStatus"]+ }Update: {- createdAt?: string;- id?: string;- invoiceId?: string;- status?: Database["public"]["Enums"]["purchaseInvoiceStatus"];- };+ createdAt?: string+ id?: string+ invoiceId?: string+ status?: Database["public"]["Enums"]["purchaseInvoiceStatus"]+ }Relationships: [{- foreignKeyName: "purchaseInvoiceStatusHistory_invoiceId_fkey";- columns: ["invoiceId"];- isOneToOne: false;- referencedRelation: "purchaseInvoice";- referencedColumns: ["id"];- },- {- foreignKeyName: "purchaseInvoiceStatusHistory_invoiceId_fkey";- columns: ["invoiceId"];- isOneToOne: false;- referencedRelation: "purchaseInvoices";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "purchaseInvoiceStatusHistory_invoiceId_fkey"+ columns: ["invoiceId"]+ isOneToOne: false+ referencedRelation: "purchaseInvoice"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoiceStatusHistory_invoiceId_fkey"+ columns: ["invoiceId"]+ isOneToOne: false+ referencedRelation: "purchaseInvoices"+ referencedColumns: ["id"]+ },+ ]+ }purchaseOrder: {Row: {- assignee: string | null;- closedAt: string | null;- closedBy: string | null;- createdAt: string;- createdBy: string;- customFields: Json | null;- id: string;- notes: string | null;- orderDate: string;- purchaseOrderId: string;- revisionId: number;- status: Database["public"]["Enums"]["purchaseOrderStatus"];- supplierContactId: string | null;- supplierId: string;- supplierLocationId: string | null;- supplierReference: string | null;- type: Database["public"]["Enums"]["purchaseOrderType"];- updatedAt: string | null;- updatedBy: string | null;- };+ assignee: string | null+ closedAt: string | null+ closedBy: string | null+ createdAt: string+ createdBy: string+ customFields: Json | null+ id: string+ notes: string | null+ orderDate: string+ purchaseOrderId: string+ revisionId: number+ status: Database["public"]["Enums"]["purchaseOrderStatus"]+ supplierContactId: string | null+ supplierId: string+ supplierLocationId: string | null+ supplierReference: string | null+ type: Database["public"]["Enums"]["purchaseOrderType"]+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- assignee?: string | null;- closedAt?: string | null;- closedBy?: string | null;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- id?: string;- notes?: string | null;- orderDate?: string;- purchaseOrderId: string;- revisionId?: number;- status?: Database["public"]["Enums"]["purchaseOrderStatus"];- supplierContactId?: string | null;- supplierId: string;- supplierLocationId?: string | null;- supplierReference?: string | null;- type: Database["public"]["Enums"]["purchaseOrderType"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ assignee?: string | null+ closedAt?: string | null+ closedBy?: string | null+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ id?: string+ notes?: string | null+ orderDate?: string+ purchaseOrderId: string+ revisionId?: number+ status?: Database["public"]["Enums"]["purchaseOrderStatus"]+ supplierContactId?: string | null+ supplierId: string+ supplierLocationId?: string | null+ supplierReference?: string | null+ type: Database["public"]["Enums"]["purchaseOrderType"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- assignee?: string | null;- closedAt?: string | null;- closedBy?: string | null;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- id?: string;- notes?: string | null;- orderDate?: string;- purchaseOrderId?: string;- revisionId?: number;- status?: Database["public"]["Enums"]["purchaseOrderStatus"];- supplierContactId?: string | null;- supplierId?: string;- supplierLocationId?: string | null;- supplierReference?: string | null;- type?: Database["public"]["Enums"]["purchaseOrderType"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ assignee?: string | null+ closedAt?: string | null+ closedBy?: string | null+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ id?: string+ notes?: string | null+ orderDate?: string+ purchaseOrderId?: string+ revisionId?: number+ status?: Database["public"]["Enums"]["purchaseOrderStatus"]+ supplierContactId?: string | null+ supplierId?: string+ supplierLocationId?: string | null+ supplierReference?: string | null+ type?: Database["public"]["Enums"]["purchaseOrderType"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "purchaseOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseOrder_supplierContactId_fkey";- columns: ["supplierContactId"];- isOneToOne: false;- referencedRelation: "supplierContact";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierContactId_fkey"+ columns: ["supplierContactId"]+ isOneToOne: false+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierLocationId_fkey";- columns: ["supplierLocationId"];- isOneToOne: false;- referencedRelation: "supplierLocation";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierLocationId_fkey"+ columns: ["supplierLocationId"]+ isOneToOne: false+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "purchaseOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }purchaseOrderDelivery: {Row: {- customerId: string | null;- customerLocationId: string | null;- customFields: Json | null;- deliveryDate: string | null;- dropShipment: boolean;- id: string;- locationId: string | null;- notes: string | null;- receiptPromisedDate: string | null;- receiptRequestedDate: string | null;- shippingMethodId: string | null;- shippingTermId: string | null;- trackingNumber: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ customerId: string | null+ customerLocationId: string | null+ customFields: Json | null+ deliveryDate: string | null+ dropShipment: boolean+ id: string+ locationId: string | null+ notes: string | null+ receiptPromisedDate: string | null+ receiptRequestedDate: string | null+ shippingMethodId: string | null+ shippingTermId: string | null+ trackingNumber: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- customerId?: string | null;- customerLocationId?: string | null;- customFields?: Json | null;- deliveryDate?: string | null;- dropShipment?: boolean;- id: string;- locationId?: string | null;- notes?: string | null;- receiptPromisedDate?: string | null;- receiptRequestedDate?: string | null;- shippingMethodId?: string | null;- shippingTermId?: string | null;- trackingNumber?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ customerId?: string | null+ customerLocationId?: string | null+ customFields?: Json | null+ deliveryDate?: string | null+ dropShipment?: boolean+ id: string+ locationId?: string | null+ notes?: string | null+ receiptPromisedDate?: string | null+ receiptRequestedDate?: string | null+ shippingMethodId?: string | null+ shippingTermId?: string | null+ trackingNumber?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- customerId?: string | null;- customerLocationId?: string | null;- customFields?: Json | null;- deliveryDate?: string | null;- dropShipment?: boolean;- id?: string;- locationId?: string | null;- notes?: string | null;- receiptPromisedDate?: string | null;- receiptRequestedDate?: string | null;- shippingMethodId?: string | null;- shippingTermId?: string | null;- trackingNumber?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ customerId?: string | null+ customerLocationId?: string | null+ customFields?: Json | null+ deliveryDate?: string | null+ dropShipment?: boolean+ id?: string+ locationId?: string | null+ notes?: string | null+ receiptPromisedDate?: string | null+ receiptRequestedDate?: string | null+ shippingMethodId?: string | null+ shippingTermId?: string | null+ trackingNumber?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "purchaseOrderDelivery_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "salesOrderCustomers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_customerLocationId_fkey";- columns: ["customerLocationId"];- isOneToOne: false;- referencedRelation: "customerLocation";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_customerLocationId_fkey"+ columns: ["customerLocationId"]+ isOneToOne: false+ referencedRelation: "customerLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "purchaseOrder";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "purchaseOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "purchaseOrderLocations";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "purchaseOrderLocations"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "purchaseOrders";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "purchaseOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "purchaseOrderDelivery_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "purchaseOrderDelivery_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "purchaseOrderDelivery_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "purchaseOrderDelivery_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "purchaseOrderDelivery_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "purchaseOrderDelivery_shippingMethodId_fkey";- columns: ["shippingMethodId"];- isOneToOne: false;- referencedRelation: "shippingMethod";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_shippingMethodId_fkey"+ columns: ["shippingMethodId"]+ isOneToOne: false+ referencedRelation: "shippingMethod"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_shippingTermId_fkey";- columns: ["shippingTermId"];- isOneToOne: false;- referencedRelation: "shippingTerm";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_shippingTermId_fkey"+ columns: ["shippingTermId"]+ isOneToOne: false+ referencedRelation: "shippingTerm"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "purchaseOrderDelivery_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }purchaseOrderFavorite: {Row: {- purchaseOrderId: string;- userId: string;- };+ purchaseOrderId: string+ userId: string+ }Insert: {- purchaseOrderId: string;- userId: string;- };+ purchaseOrderId: string+ userId: string+ }Update: {- purchaseOrderId?: string;- userId?: string;- };+ purchaseOrderId?: string+ userId?: string+ }Relationships: [{- foreignKeyName: "purchaseOrderFavorites_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrder";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderFavorites_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderFavorites_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrderLocations";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderFavorites_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderLocations"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderFavorites_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderFavorites_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "purchaseOrderFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }purchaseOrderLine: {Row: {- accountNumber: string | null;- assetId: string | null;- conversionFactor: number | null;- createdAt: string;- createdBy: string;- customFields: Json | null;- description: string | null;- id: string;- inventoryUnitOfMeasureCode: string | null;- invoicedComplete: boolean;- locationId: string | null;- partId: string | null;- purchaseOrderId: string;- purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"];- purchaseQuantity: number | null;- purchaseUnitOfMeasureCode: string | null;- quantityInvoiced: number | null;- quantityReceived: number | null;- quantityToInvoice: number | null;- quantityToReceive: number | null;- receivedComplete: boolean;- requiresInspection: boolean;- serviceId: string | null;- setupPrice: number | null;- shelfId: string | null;- unitPrice: number | null;- updatedAt: string | null;- updatedBy: string | null;- };+ accountNumber: string | null+ assetId: string | null+ conversionFactor: number | null+ createdAt: string+ createdBy: string+ customFields: Json | null+ description: string | null+ id: string+ inventoryUnitOfMeasureCode: string | null+ invoicedComplete: boolean+ locationId: string | null+ partId: string | null+ purchaseOrderId: string+ purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"]+ purchaseQuantity: number | null+ purchaseUnitOfMeasureCode: string | null+ quantityInvoiced: number | null+ quantityReceived: number | null+ quantityToInvoice: number | null+ quantityToReceive: number | null+ receivedComplete: boolean+ requiresInspection: boolean+ serviceId: string | null+ setupPrice: number | null+ shelfId: string | null+ unitPrice: number | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountNumber?: string | null;- assetId?: string | null;- conversionFactor?: number | null;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- description?: string | null;- id?: string;- inventoryUnitOfMeasureCode?: string | null;- invoicedComplete?: boolean;- locationId?: string | null;- partId?: string | null;- purchaseOrderId: string;- purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"];- purchaseQuantity?: number | null;- purchaseUnitOfMeasureCode?: string | null;- quantityInvoiced?: number | null;- quantityReceived?: number | null;- quantityToInvoice?: number | null;- quantityToReceive?: number | null;- receivedComplete?: boolean;- requiresInspection?: boolean;- serviceId?: string | null;- setupPrice?: number | null;- shelfId?: string | null;- unitPrice?: number | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountNumber?: string | null+ assetId?: string | null+ conversionFactor?: number | null+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ description?: string | null+ id?: string+ inventoryUnitOfMeasureCode?: string | null+ invoicedComplete?: boolean+ locationId?: string | null+ partId?: string | null+ purchaseOrderId: string+ purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"]+ purchaseQuantity?: number | null+ purchaseUnitOfMeasureCode?: string | null+ quantityInvoiced?: number | null+ quantityReceived?: number | null+ quantityToInvoice?: number | null+ quantityToReceive?: number | null+ receivedComplete?: boolean+ requiresInspection?: boolean+ serviceId?: string | null+ setupPrice?: number | null+ shelfId?: string | null+ unitPrice?: number | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountNumber?: string | null;- assetId?: string | null;- conversionFactor?: number | null;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- description?: string | null;- id?: string;- inventoryUnitOfMeasureCode?: string | null;- invoicedComplete?: boolean;- locationId?: string | null;- partId?: string | null;- purchaseOrderId?: string;- purchaseOrderLineType?: Database["public"]["Enums"]["purchaseOrderLineType"];- purchaseQuantity?: number | null;- purchaseUnitOfMeasureCode?: string | null;- quantityInvoiced?: number | null;- quantityReceived?: number | null;- quantityToInvoice?: number | null;- quantityToReceive?: number | null;- receivedComplete?: boolean;- requiresInspection?: boolean;- serviceId?: string | null;- setupPrice?: number | null;- shelfId?: string | null;- unitPrice?: number | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountNumber?: string | null+ assetId?: string | null+ conversionFactor?: number | null+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ description?: string | null+ id?: string+ inventoryUnitOfMeasureCode?: string | null+ invoicedComplete?: boolean+ locationId?: string | null+ partId?: string | null+ purchaseOrderId?: string+ purchaseOrderLineType?: Database["public"]["Enums"]["purchaseOrderLineType"]+ purchaseQuantity?: number | null+ purchaseUnitOfMeasureCode?: string | null+ quantityInvoiced?: number | null+ quantityReceived?: number | null+ quantityToInvoice?: number | null+ quantityToReceive?: number | null+ receivedComplete?: boolean+ requiresInspection?: boolean+ serviceId?: string | null+ setupPrice?: number | null+ shelfId?: string | null+ unitPrice?: number | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "purchaseOrderLine_accountNumber_fkey";- columns: ["accountNumber"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "purchaseOrderLine_accountNumber_fkey"+ columns: ["accountNumber"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "purchaseOrderLine_accountNumber_fkey";- columns: ["accountNumber"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "purchaseOrderLine_accountNumber_fkey"+ columns: ["accountNumber"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "purchaseOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseOrderLine_inventoryUnitOfMeasureCode_fkey";- columns: ["inventoryUnitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "purchaseOrderLine_inventoryUnitOfMeasureCode_fkey"+ columns: ["inventoryUnitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "purchaseOrderLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "purchaseOrderLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "purchaseOrderLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrder";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrderLocations";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderLocations"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_purchaseUnitOfMeasureCode_fkey";- columns: ["purchaseUnitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "purchaseOrderLine_purchaseUnitOfMeasureCode_fkey"+ columns: ["purchaseUnitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "purchaseOrderLine_serviceId_fkey";- columns: ["serviceId"];- isOneToOne: false;- referencedRelation: "service";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_serviceId_fkey"+ columns: ["serviceId"]+ isOneToOne: false+ referencedRelation: "service"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_serviceId_fkey";- columns: ["serviceId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_serviceId_fkey"+ columns: ["serviceId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_shelfId_fkey";- columns: ["shelfId", "locationId"];- isOneToOne: false;- referencedRelation: "shelf";- referencedColumns: ["id", "locationId"];+ foreignKeyName: "purchaseOrderLine_shelfId_fkey"+ columns: ["shelfId", "locationId"]+ isOneToOne: false+ referencedRelation: "shelf"+ referencedColumns: ["id", "locationId"]},{- foreignKeyName: "purchaseOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "purchaseOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }purchaseOrderPayment: {Row: {- currencyCode: string;- customFields: Json | null;- id: string;- invoiceSupplierContactId: string | null;- invoiceSupplierId: string | null;- invoiceSupplierLocationId: string | null;- paymentComplete: boolean;- paymentTermId: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ currencyCode: string+ customFields: Json | null+ id: string+ invoiceSupplierContactId: string | null+ invoiceSupplierId: string | null+ invoiceSupplierLocationId: string | null+ paymentComplete: boolean+ paymentTermId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- currencyCode?: string;- customFields?: Json | null;- id: string;- invoiceSupplierContactId?: string | null;- invoiceSupplierId?: string | null;- invoiceSupplierLocationId?: string | null;- paymentComplete?: boolean;- paymentTermId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ currencyCode?: string+ customFields?: Json | null+ id: string+ invoiceSupplierContactId?: string | null+ invoiceSupplierId?: string | null+ invoiceSupplierLocationId?: string | null+ paymentComplete?: boolean+ paymentTermId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- currencyCode?: string;- customFields?: Json | null;- id?: string;- invoiceSupplierContactId?: string | null;- invoiceSupplierId?: string | null;- invoiceSupplierLocationId?: string | null;- paymentComplete?: boolean;- paymentTermId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ currencyCode?: string+ customFields?: Json | null+ id?: string+ invoiceSupplierContactId?: string | null+ invoiceSupplierId?: string | null+ invoiceSupplierLocationId?: string | null+ paymentComplete?: boolean+ paymentTermId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "purchaseOrderPayment_currencyCode_fkey";- columns: ["currencyCode"];- isOneToOne: false;- referencedRelation: "currency";- referencedColumns: ["code"];+ foreignKeyName: "purchaseOrderPayment_currencyCode_fkey"+ columns: ["currencyCode"]+ isOneToOne: false+ referencedRelation: "currency"+ referencedColumns: ["code"]},{- foreignKeyName: "purchaseOrderPayment_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "purchaseOrder";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "purchaseOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderPayment_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "purchaseOrderLocations";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "purchaseOrderLocations"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderPayment_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "purchaseOrders";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "purchaseOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderPayment_invoiceSupplierContactId_fkey";- columns: ["invoiceSupplierContactId"];- isOneToOne: false;- referencedRelation: "supplierContact";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_invoiceSupplierContactId_fkey"+ columns: ["invoiceSupplierContactId"]+ isOneToOne: false+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderPayment_invoiceSupplierLocationId_fkey";- columns: ["invoiceSupplierLocationId"];- isOneToOne: false;- referencedRelation: "supplierLocation";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_invoiceSupplierLocationId_fkey"+ columns: ["invoiceSupplierLocationId"]+ isOneToOne: false+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderPayment_paymentTermId_fkey";- columns: ["paymentTermId"];- isOneToOne: false;- referencedRelation: "paymentTerm";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "purchaseOrderPayment_paymentTermId_fkey"+ columns: ["paymentTermId"]+ isOneToOne: false+ referencedRelation: "paymentTerm"+ referencedColumns: ["id"]+ },+ ]+ }purchaseOrderStatusHistory: {Row: {- createdAt: string;- createdBy: string;- id: string;- purchaseOrderId: string;- status: Database["public"]["Enums"]["purchaseOrderStatus"];- };+ createdAt: string+ createdBy: string+ id: string+ purchaseOrderId: string+ status: Database["public"]["Enums"]["purchaseOrderStatus"]+ }Insert: {- createdAt?: string;- createdBy: string;- id?: string;- purchaseOrderId: string;- status: Database["public"]["Enums"]["purchaseOrderStatus"];- };+ createdAt?: string+ createdBy: string+ id?: string+ purchaseOrderId: string+ status: Database["public"]["Enums"]["purchaseOrderStatus"]+ }Update: {- createdAt?: string;- createdBy?: string;- id?: string;- purchaseOrderId?: string;- status?: Database["public"]["Enums"]["purchaseOrderStatus"];- };+ createdAt?: string+ createdBy?: string+ id?: string+ purchaseOrderId?: string+ status?: Database["public"]["Enums"]["purchaseOrderStatus"]+ }Relationships: [{- foreignKeyName: "purchaseOrderStatusHistory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderStatusHistory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderStatusHistory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderStatusHistory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderStatusHistory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderStatusHistory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderStatusHistory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrderStatusHistory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseOrderStatusHistory_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrder";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderStatusHistory_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderStatusHistory_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrderLocations";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderStatusHistory_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderLocations"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderStatusHistory_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "purchaseOrderStatusHistory_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["id"]+ },+ ]+ }purchaseOrderTransaction: {Row: {- createdAt: string;- id: string;- purchaseOrderId: string;- type: Database["public"]["Enums"]["purchaseOrderTransactionType"];- userId: string;- };+ createdAt: string+ id: string+ purchaseOrderId: string+ type: Database["public"]["Enums"]["purchaseOrderTransactionType"]+ userId: string+ }Insert: {- createdAt?: string;- id?: string;- purchaseOrderId: string;- type: Database["public"]["Enums"]["purchaseOrderTransactionType"];- userId: string;- };+ createdAt?: string+ id?: string+ purchaseOrderId: string+ type: Database["public"]["Enums"]["purchaseOrderTransactionType"]+ userId: string+ }Update: {- createdAt?: string;- id?: string;- purchaseOrderId?: string;- type?: Database["public"]["Enums"]["purchaseOrderTransactionType"];- userId?: string;- };+ createdAt?: string+ id?: string+ purchaseOrderId?: string+ type?: Database["public"]["Enums"]["purchaseOrderTransactionType"]+ userId?: string+ }Relationships: [{- foreignKeyName: "purchaseOrderTransaction_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrder";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderTransaction_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderTransaction_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrderLocations";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderTransaction_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderLocations"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderTransaction_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderTransaction_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderTransaction_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderTransaction_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderTransaction_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderTransaction_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderTransaction_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderTransaction_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderTransaction_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "purchaseOrderTransaction_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }purchasePayment: {Row: {- createdAt: string;- createdBy: string;- currencyCode: string;- customFields: Json | null;- exchangeRate: number;- id: string;- paymentDate: string | null;- paymentId: string;- supplierId: string;- totalAmount: number;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string+ createdBy: string+ currencyCode: string+ customFields: Json | null+ exchangeRate: number+ id: string+ paymentDate: string | null+ paymentId: string+ supplierId: string+ totalAmount: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- currencyCode: string;- customFields?: Json | null;- exchangeRate?: number;- id?: string;- paymentDate?: string | null;- paymentId: string;- supplierId: string;- totalAmount?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy: string+ currencyCode: string+ customFields?: Json | null+ exchangeRate?: number+ id?: string+ paymentDate?: string | null+ paymentId: string+ supplierId: string+ totalAmount?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- currencyCode?: string;- customFields?: Json | null;- exchangeRate?: number;- id?: string;- paymentDate?: string | null;- paymentId?: string;- supplierId?: string;- totalAmount?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy?: string+ currencyCode?: string+ customFields?: Json | null+ exchangeRate?: number+ id?: string+ paymentDate?: string | null+ paymentId?: string+ supplierId?: string+ totalAmount?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "purchasePayment_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayment_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayment_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayment_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayment_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayment_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayment_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchasePayment_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchasePayment_currencyCode_fkey";- columns: ["currencyCode"];- isOneToOne: false;- referencedRelation: "currency";- referencedColumns: ["code"];+ foreignKeyName: "purchasePayment_currencyCode_fkey"+ columns: ["currencyCode"]+ isOneToOne: false+ referencedRelation: "currency"+ referencedColumns: ["code"]},{- foreignKeyName: "purchasePayment_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchasePayment_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchasePayment_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchasePayment_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchasePayment_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayment_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayment_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayment_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayment_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayment_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "purchasePayment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }quote: {Row: {- assignee: string | null;- createdAt: string;- createdBy: string;- customerContactId: string | null;- customerId: string;- customerLocationId: string | null;- customerReference: string | null;- customFields: Json | null;- expirationDate: string | null;- id: string;- locationId: string | null;- name: string;- notes: string | null;- quoteDate: string | null;- quoteId: string;- revisionId: number;- status: Database["public"]["Enums"]["quoteStatus"];- updatedAt: string | null;- updatedBy: string | null;- };+ assignee: string | null+ createdAt: string+ createdBy: string+ customerContactId: string | null+ customerId: string+ customerLocationId: string | null+ customerReference: string | null+ customFields: Json | null+ expirationDate: string | null+ id: string+ locationId: string | null+ name: string+ notes: string | null+ quoteDate: string | null+ quoteId: string+ revisionId: number+ status: Database["public"]["Enums"]["quoteStatus"]+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- assignee?: string | null;- createdAt?: string;- createdBy: string;- customerContactId?: string | null;- customerId: string;- customerLocationId?: string | null;- customerReference?: string | null;- customFields?: Json | null;- expirationDate?: string | null;- id?: string;- locationId?: string | null;- name: string;- notes?: string | null;- quoteDate?: string | null;- quoteId: string;- revisionId?: number;- status?: Database["public"]["Enums"]["quoteStatus"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ assignee?: string | null+ createdAt?: string+ createdBy: string+ customerContactId?: string | null+ customerId: string+ customerLocationId?: string | null+ customerReference?: string | null+ customFields?: Json | null+ expirationDate?: string | null+ id?: string+ locationId?: string | null+ name: string+ notes?: string | null+ quoteDate?: string | null+ quoteId: string+ revisionId?: number+ status?: Database["public"]["Enums"]["quoteStatus"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- assignee?: string | null;- createdAt?: string;- createdBy?: string;- customerContactId?: string | null;- customerId?: string;- customerLocationId?: string | null;- customerReference?: string | null;- customFields?: Json | null;- expirationDate?: string | null;- id?: string;- locationId?: string | null;- name?: string;- notes?: string | null;- quoteDate?: string | null;- quoteId?: string;- revisionId?: number;- status?: Database["public"]["Enums"]["quoteStatus"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ assignee?: string | null+ createdAt?: string+ createdBy?: string+ customerContactId?: string | null+ customerId?: string+ customerLocationId?: string | null+ customerReference?: string | null+ customFields?: Json | null+ expirationDate?: string | null+ id?: string+ locationId?: string | null+ name?: string+ notes?: string | null+ quoteDate?: string | null+ quoteId?: string+ revisionId?: number+ status?: Database["public"]["Enums"]["quoteStatus"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "quote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "quote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "quote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "quote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "quote_customerContactId_fkey";- columns: ["customerContactId"];- isOneToOne: false;- referencedRelation: "customerContact";- referencedColumns: ["id"];+ foreignKeyName: "quote_customerContactId_fkey"+ columns: ["customerContactId"]+ isOneToOne: false+ referencedRelation: "customerContact"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "quote_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "quote_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "salesOrderCustomers";- referencedColumns: ["id"];+ foreignKeyName: "quote_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_customerLocationId_fkey";- columns: ["customerLocationId"];- isOneToOne: false;- referencedRelation: "customerLocation";- referencedColumns: ["id"];+ foreignKeyName: "quote_customerLocationId_fkey"+ columns: ["customerLocationId"]+ isOneToOne: false+ referencedRelation: "customerLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "quote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "quote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "quote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "quote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "quote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "quote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "quote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "quote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }quoteAssembly: {Row: {- createdAt: string;- createdBy: string;- customFields: Json | null;- description: string | null;- id: string;- parentAssemblyId: string | null;- partId: string;- quantityPerParent: number;- quoteId: string;- quoteLineId: string;- unitOfMeasureCode: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string+ createdBy: string+ customFields: Json | null+ description: string | null+ id: string+ parentAssemblyId: string | null+ partId: string+ quantityPerParent: number+ quoteId: string+ quoteLineId: string+ unitOfMeasureCode: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- customFields?: Json | null;- description?: string | null;- id?: string;- parentAssemblyId?: string | null;- partId: string;- quantityPerParent?: number;- quoteId: string;- quoteLineId: string;- unitOfMeasureCode?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ description?: string | null+ id?: string+ parentAssemblyId?: string | null+ partId: string+ quantityPerParent?: number+ quoteId: string+ quoteLineId: string+ unitOfMeasureCode?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- description?: string | null;- id?: string;- parentAssemblyId?: string | null;- partId?: string;- quantityPerParent?: number;- quoteId?: string;- quoteLineId?: string;- unitOfMeasureCode?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ description?: string | null+ id?: string+ parentAssemblyId?: string | null+ partId?: string+ quantityPerParent?: number+ quoteId?: string+ quoteLineId?: string+ unitOfMeasureCode?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "quoteAssembly_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quoteAssembly_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteAssembly_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteAssembly_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteAssembly_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteAssembly_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteAssembly_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "quoteAssembly_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "quoteAssembly_parentAssemblyId_fkey";- columns: ["parentAssemblyId"];- isOneToOne: false;- referencedRelation: "quoteAssembly";- referencedColumns: ["id"];+ foreignKeyName: "quoteAssembly_parentAssemblyId_fkey"+ columns: ["parentAssemblyId"]+ isOneToOne: false+ referencedRelation: "quoteAssembly"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteAssembly_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quote";- referencedColumns: ["id"];+ foreignKeyName: "quoteAssembly_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quote"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteAssembly_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quoteCustomerDetails";- referencedColumns: ["quoteId"];+ foreignKeyName: "quoteAssembly_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quoteCustomerDetails"+ referencedColumns: ["quoteId"]},{- foreignKeyName: "quoteAssembly_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quotes";- referencedColumns: ["id"];+ foreignKeyName: "quoteAssembly_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quotes"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteAssembly_quoteLineId_fkey";- columns: ["quoteLineId"];- isOneToOne: false;- referencedRelation: "quoteLine";- referencedColumns: ["id"];+ foreignKeyName: "quoteAssembly_quoteLineId_fkey"+ columns: ["quoteLineId"]+ isOneToOne: false+ referencedRelation: "quoteLine"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteAssembly_quoteLineId_fkey";- columns: ["quoteLineId"];- isOneToOne: false;- referencedRelation: "quoteLines";- referencedColumns: ["id"];+ foreignKeyName: "quoteAssembly_quoteLineId_fkey"+ columns: ["quoteLineId"]+ isOneToOne: false+ referencedRelation: "quoteLines"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteAssembly_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quoteAssembly_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteAssembly_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteAssembly_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteAssembly_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteAssembly_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteAssembly_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "quoteAssembly_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }quoteFavorite: {Row: {- quoteId: string;- userId: string;- };+ quoteId: string+ userId: string+ }Insert: {- quoteId: string;- userId: string;- };+ quoteId: string+ userId: string+ }Update: {- quoteId?: string;- userId?: string;- };+ quoteId?: string+ userId?: string+ }Relationships: [{- foreignKeyName: "quoteFavorites_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quote";- referencedColumns: ["id"];+ foreignKeyName: "quoteFavorites_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quote"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteFavorites_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quoteCustomerDetails";- referencedColumns: ["quoteId"];+ foreignKeyName: "quoteFavorites_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quoteCustomerDetails"+ referencedColumns: ["quoteId"]},{- foreignKeyName: "quoteFavorites_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quotes";- referencedColumns: ["id"];+ foreignKeyName: "quoteFavorites_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quotes"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quoteFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "quoteFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }quoteLine: {Row: {- createdBy: string;- customerPartId: string | null;- customerPartRevision: string | null;- customFields: Json | null;- description: string;- id: string;- partId: string;- quoteId: string;- quoteRevisionId: number;- replenishmentSystem: string | null;- status: Database["public"]["Enums"]["quoteLineStatus"];- unitOfMeasureCode: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ createdBy: string+ customerPartId: string | null+ customerPartRevision: string | null+ customFields: Json | null+ description: string+ id: string+ partId: string+ quoteId: string+ quoteRevisionId: number+ replenishmentSystem: string | null+ status: Database["public"]["Enums"]["quoteLineStatus"]+ unitOfMeasureCode: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdBy: string;- customerPartId?: string | null;- customerPartRevision?: string | null;- customFields?: Json | null;- description: string;- id?: string;- partId: string;- quoteId: string;- quoteRevisionId?: number;- replenishmentSystem?: string | null;- status?: Database["public"]["Enums"]["quoteLineStatus"];- unitOfMeasureCode?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdBy: string+ customerPartId?: string | null+ customerPartRevision?: string | null+ customFields?: Json | null+ description: string+ id?: string+ partId: string+ quoteId: string+ quoteRevisionId?: number+ replenishmentSystem?: string | null+ status?: Database["public"]["Enums"]["quoteLineStatus"]+ unitOfMeasureCode?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdBy?: string;- customerPartId?: string | null;- customerPartRevision?: string | null;- customFields?: Json | null;- description?: string;- id?: string;- partId?: string;- quoteId?: string;- quoteRevisionId?: number;- replenishmentSystem?: string | null;- status?: Database["public"]["Enums"]["quoteLineStatus"];- unitOfMeasureCode?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdBy?: string+ customerPartId?: string | null+ customerPartRevision?: string | null+ customFields?: Json | null+ description?: string+ id?: string+ partId?: string+ quoteId?: string+ quoteRevisionId?: number+ replenishmentSystem?: string | null+ status?: Database["public"]["Enums"]["quoteLineStatus"]+ unitOfMeasureCode?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "quoteLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "quoteLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "quoteLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "quoteLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "quoteLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quote";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quote"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quoteCustomerDetails";- referencedColumns: ["quoteId"];+ foreignKeyName: "quoteLine_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quoteCustomerDetails"+ referencedColumns: ["quoteId"]},{- foreignKeyName: "quoteLine_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quotes";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quotes"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "quoteLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }quoteLinePrice: {Row: {- createdAt: string;- createdBy: string;- discountPercent: number;- extendedPrice: number;- id: string;- leadTime: number;- markupPercent: number;- quantity: number;- quoteId: string;- quoteLineId: string;- unitCost: number;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string+ createdBy: string+ discountPercent: number+ extendedPrice: number+ id: string+ leadTime: number+ markupPercent: number+ quantity: number+ quoteId: string+ quoteLineId: string+ unitCost: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- discountPercent?: number;- extendedPrice?: number;- id?: string;- leadTime?: number;- markupPercent?: number;- quantity?: number;- quoteId: string;- quoteLineId: string;- unitCost?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy: string+ discountPercent?: number+ extendedPrice?: number+ id?: string+ leadTime?: number+ markupPercent?: number+ quantity?: number+ quoteId: string+ quoteLineId: string+ unitCost?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- discountPercent?: number;- extendedPrice?: number;- id?: string;- leadTime?: number;- markupPercent?: number;- quantity?: number;- quoteId?: string;- quoteLineId?: string;- unitCost?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy?: string+ discountPercent?: number+ extendedPrice?: number+ id?: string+ leadTime?: number+ markupPercent?: number+ quantity?: number+ quoteId?: string+ quoteLineId?: string+ unitCost?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "quoteLinePrice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quoteLinePrice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLinePrice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteLinePrice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLinePrice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteLinePrice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLinePrice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "quoteLinePrice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "quoteLinePrice_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quote";- referencedColumns: ["id"];+ foreignKeyName: "quoteLinePrice_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quote"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLinePrice_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quoteCustomerDetails";- referencedColumns: ["quoteId"];+ foreignKeyName: "quoteLinePrice_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quoteCustomerDetails"+ referencedColumns: ["quoteId"]},{- foreignKeyName: "quoteLinePrice_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quotes";- referencedColumns: ["id"];+ foreignKeyName: "quoteLinePrice_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quotes"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLinePrice_quoteLineId_fkey";- columns: ["quoteLineId"];- isOneToOne: false;- referencedRelation: "quoteLine";- referencedColumns: ["id"];+ foreignKeyName: "quoteLinePrice_quoteLineId_fkey"+ columns: ["quoteLineId"]+ isOneToOne: false+ referencedRelation: "quoteLine"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLinePrice_quoteLineId_fkey";- columns: ["quoteLineId"];- isOneToOne: false;- referencedRelation: "quoteLines";- referencedColumns: ["id"];+ foreignKeyName: "quoteLinePrice_quoteLineId_fkey"+ columns: ["quoteLineId"]+ isOneToOne: false+ referencedRelation: "quoteLines"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLinePrice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quoteLinePrice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLinePrice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteLinePrice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLinePrice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteLinePrice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLinePrice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "quoteLinePrice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }quoteMaterial: {Row: {- createdAt: string;- createdBy: string;- customFields: Json | null;- description: string;- id: string;- partId: string;- quantity: number;- quoteId: string;- quoteLineId: string;- quoteOperationId: string;- unitCost: number;- unitOfMeasureCode: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string+ createdBy: string+ customFields: Json | null+ description: string+ id: string+ partId: string+ quantity: number+ quoteId: string+ quoteLineId: string+ quoteOperationId: string+ unitCost: number+ unitOfMeasureCode: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- customFields?: Json | null;- description: string;- id?: string;- partId: string;- quantity?: number;- quoteId: string;- quoteLineId: string;- quoteOperationId: string;- unitCost?: number;- unitOfMeasureCode?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ description: string+ id?: string+ partId: string+ quantity?: number+ quoteId: string+ quoteLineId: string+ quoteOperationId: string+ unitCost?: number+ unitOfMeasureCode?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- description?: string;- id?: string;- partId?: string;- quantity?: number;- quoteId?: string;- quoteLineId?: string;- quoteOperationId?: string;- unitCost?: number;- unitOfMeasureCode?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ description?: string+ id?: string+ partId?: string+ quantity?: number+ quoteId?: string+ quoteLineId?: string+ quoteOperationId?: string+ unitCost?: number+ unitOfMeasureCode?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "quoteMaterial_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quoteMaterial_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteMaterial_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteMaterial_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteMaterial_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteMaterial_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteMaterial_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "quoteMaterial_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "quoteMaterial_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "quoteMaterial_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteMaterial_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "quoteMaterial_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "quoteMaterial_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "quoteMaterial_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteMaterial_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quote";- referencedColumns: ["id"];+ foreignKeyName: "quoteMaterial_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quote"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteMaterial_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quoteCustomerDetails";- referencedColumns: ["quoteId"];+ foreignKeyName: "quoteMaterial_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quoteCustomerDetails"+ referencedColumns: ["quoteId"]},{- foreignKeyName: "quoteMaterial_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quotes";- referencedColumns: ["id"];+ foreignKeyName: "quoteMaterial_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quotes"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteMaterial_quoteLineId_fkey";- columns: ["quoteLineId"];- isOneToOne: false;- referencedRelation: "quoteLine";- referencedColumns: ["id"];+ foreignKeyName: "quoteMaterial_quoteLineId_fkey"+ columns: ["quoteLineId"]+ isOneToOne: false+ referencedRelation: "quoteLine"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteMaterial_quoteLineId_fkey";- columns: ["quoteLineId"];- isOneToOne: false;- referencedRelation: "quoteLines";- referencedColumns: ["id"];+ foreignKeyName: "quoteMaterial_quoteLineId_fkey"+ columns: ["quoteLineId"]+ isOneToOne: false+ referencedRelation: "quoteLines"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteMaterial_quoteOperationId_fkey";- columns: ["quoteOperationId"];- isOneToOne: false;- referencedRelation: "quoteOperation";- referencedColumns: ["id"];+ foreignKeyName: "quoteMaterial_quoteOperationId_fkey"+ columns: ["quoteOperationId"]+ isOneToOne: false+ referencedRelation: "quoteOperation"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteMaterial_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quoteMaterial_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteMaterial_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteMaterial_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteMaterial_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteMaterial_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteMaterial_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "quoteMaterial_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }quoteOperation: {Row: {- createdAt: string;- createdBy: string;- customFields: Json | null;- description: string | null;- equipmentTypeId: string | null;- id: string;- laborRate: number;- overheadRate: number;- productionStandard: number;- quoteAssemblyId: string | null;- quoteId: string;- quoteLineId: string;- quotingRate: number;- setupHours: number;- standardFactor: Database["public"]["Enums"]["factor"];- updatedAt: string | null;- updatedBy: string | null;- workCellTypeId: string;- };+ createdAt: string+ createdBy: string+ customFields: Json | null+ description: string | null+ equipmentTypeId: string | null+ id: string+ laborRate: number+ overheadRate: number+ productionStandard: number+ quoteAssemblyId: string | null+ quoteId: string+ quoteLineId: string+ quotingRate: number+ setupHours: number+ standardFactor: Database["public"]["Enums"]["factor"]+ updatedAt: string | null+ updatedBy: string | null+ workCellTypeId: string+ }Insert: {- createdAt?: string;- createdBy: string;- customFields?: Json | null;- description?: string | null;- equipmentTypeId?: string | null;- id?: string;- laborRate?: number;- overheadRate?: number;- productionStandard?: number;- quoteAssemblyId?: string | null;- quoteId: string;- quoteLineId: string;- quotingRate?: number;- setupHours?: number;- standardFactor?: Database["public"]["Enums"]["factor"];- updatedAt?: string | null;- updatedBy?: string | null;- workCellTypeId: string;- };+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ description?: string | null+ equipmentTypeId?: string | null+ id?: string+ laborRate?: number+ overheadRate?: number+ productionStandard?: number+ quoteAssemblyId?: string | null+ quoteId: string+ quoteLineId: string+ quotingRate?: number+ setupHours?: number+ standardFactor?: Database["public"]["Enums"]["factor"]+ updatedAt?: string | null+ updatedBy?: string | null+ workCellTypeId: string+ }Update: {- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- description?: string | null;- equipmentTypeId?: string | null;- id?: string;- laborRate?: number;- overheadRate?: number;- productionStandard?: number;- quoteAssemblyId?: string | null;- quoteId?: string;- quoteLineId?: string;- quotingRate?: number;- setupHours?: number;- standardFactor?: Database["public"]["Enums"]["factor"];- updatedAt?: string | null;- updatedBy?: string | null;- workCellTypeId?: string;- };+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ description?: string | null+ equipmentTypeId?: string | null+ id?: string+ laborRate?: number+ overheadRate?: number+ productionStandard?: number+ quoteAssemblyId?: string | null+ quoteId?: string+ quoteLineId?: string+ quotingRate?: number+ setupHours?: number+ standardFactor?: Database["public"]["Enums"]["factor"]+ updatedAt?: string | null+ updatedBy?: string | null+ workCellTypeId?: string+ }Relationships: [{- foreignKeyName: "quoteOperation_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quoteOperation_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteOperation_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteOperation_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteOperation_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteOperation_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteOperation_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "quoteOperation_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "quoteOperation_equipmentTypeId_fkey";- columns: ["equipmentTypeId"];- isOneToOne: false;- referencedRelation: "equipmentType";- referencedColumns: ["id"];+ foreignKeyName: "quoteOperation_equipmentTypeId_fkey"+ columns: ["equipmentTypeId"]+ isOneToOne: false+ referencedRelation: "equipmentType"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteOperation_quoteAssemblyId_fkey";- columns: ["quoteAssemblyId"];- isOneToOne: false;- referencedRelation: "quoteAssembly";- referencedColumns: ["id"];+ foreignKeyName: "quoteOperation_quoteAssemblyId_fkey"+ columns: ["quoteAssemblyId"]+ isOneToOne: false+ referencedRelation: "quoteAssembly"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteOperation_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quote";- referencedColumns: ["id"];+ foreignKeyName: "quoteOperation_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quote"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteOperation_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quoteCustomerDetails";- referencedColumns: ["quoteId"];+ foreignKeyName: "quoteOperation_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quoteCustomerDetails"+ referencedColumns: ["quoteId"]},{- foreignKeyName: "quoteOperation_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quotes";- referencedColumns: ["id"];+ foreignKeyName: "quoteOperation_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quotes"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteOperation_quoteLineId_fkey";- columns: ["quoteLineId"];- isOneToOne: false;- referencedRelation: "quoteLine";- referencedColumns: ["id"];+ foreignKeyName: "quoteOperation_quoteLineId_fkey"+ columns: ["quoteLineId"]+ isOneToOne: false+ referencedRelation: "quoteLine"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteOperation_quoteLineId_fkey";- columns: ["quoteLineId"];- isOneToOne: false;- referencedRelation: "quoteLines";- referencedColumns: ["id"];+ foreignKeyName: "quoteOperation_quoteLineId_fkey"+ columns: ["quoteLineId"]+ isOneToOne: false+ referencedRelation: "quoteLines"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteOperation_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quoteOperation_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteOperation_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteOperation_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteOperation_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteOperation_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteOperation_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "quoteOperation_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "quoteOperation_workCellTypeId_fkey";- columns: ["workCellTypeId"];- isOneToOne: false;- referencedRelation: "workCellType";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "quoteOperation_workCellTypeId_fkey"+ columns: ["workCellTypeId"]+ isOneToOne: false+ referencedRelation: "workCellType"+ referencedColumns: ["id"]+ },+ ]+ }receipt: {Row: {- assignee: string | null;- createdAt: string;- createdBy: string;- customFields: Json | null;- externalDocumentId: string | null;- id: string;- invoiced: boolean | null;- locationId: string | null;- postingDate: string | null;- receiptId: string;+ assignee: string | null+ createdAt: string+ createdBy: string+ customFields: Json | null+ externalDocumentId: string | null+ id: string+ invoiced: boolean | null+ locationId: string | null+ postingDate: string | null+ receiptId: stringsourceDocument:| Database["public"]["Enums"]["receiptSourceDocument"]- | null;- sourceDocumentId: string | null;- sourceDocumentReadableId: string | null;- status: Database["public"]["Enums"]["receiptStatus"];- supplierId: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ | null+ sourceDocumentId: string | null+ sourceDocumentReadableId: string | null+ status: Database["public"]["Enums"]["receiptStatus"]+ supplierId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- assignee?: string | null;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- externalDocumentId?: string | null;- id?: string;- invoiced?: boolean | null;- locationId?: string | null;- postingDate?: string | null;- receiptId: string;+ assignee?: string | null+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ externalDocumentId?: string | null+ id?: string+ invoiced?: boolean | null+ locationId?: string | null+ postingDate?: string | null+ receiptId: stringsourceDocument?:| Database["public"]["Enums"]["receiptSourceDocument"]- | null;- sourceDocumentId?: string | null;- sourceDocumentReadableId?: string | null;- status?: Database["public"]["Enums"]["receiptStatus"];- supplierId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ | null+ sourceDocumentId?: string | null+ sourceDocumentReadableId?: string | null+ status?: Database["public"]["Enums"]["receiptStatus"]+ supplierId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- assignee?: string | null;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- externalDocumentId?: string | null;- id?: string;- invoiced?: boolean | null;- locationId?: string | null;- postingDate?: string | null;- receiptId?: string;+ assignee?: string | null+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ externalDocumentId?: string | null+ id?: string+ invoiced?: boolean | null+ locationId?: string | null+ postingDate?: string | null+ receiptId?: stringsourceDocument?:| Database["public"]["Enums"]["receiptSourceDocument"]- | null;- sourceDocumentId?: string | null;- sourceDocumentReadableId?: string | null;- status?: Database["public"]["Enums"]["receiptStatus"];- supplierId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ | null+ sourceDocumentId?: string | null+ sourceDocumentReadableId?: string | null+ status?: Database["public"]["Enums"]["receiptStatus"]+ supplierId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "receipt_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "receipt_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "receipt_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "receipt_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "receipt_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "receipt_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "receipt_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "receipt_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "receipt_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "receipt_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "receipt_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "receipt_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "receipt_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "receipt_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "receipt_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "receipt_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "receipt_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "receipt_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "receipt_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "receipt_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "receipt_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }receiptLine: {Row: {- conversionFactor: number | null;- createdAt: string;- createdBy: string;- id: string;- lineId: string | null;- locationId: string | null;- orderQuantity: number;- outstandingQuantity: number;- partId: string;- receiptId: string;- receivedQuantity: number;- shelfId: string | null;- unitOfMeasure: string;- unitPrice: number;- updatedAt: string | null;- updatedBy: string | null;- };+ conversionFactor: number | null+ createdAt: string+ createdBy: string+ id: string+ lineId: string | null+ locationId: string | null+ orderQuantity: number+ outstandingQuantity: number+ partId: string+ receiptId: string+ receivedQuantity: number+ shelfId: string | null+ unitOfMeasure: string+ unitPrice: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- conversionFactor?: number | null;- createdAt?: string;- createdBy: string;- id?: string;- lineId?: string | null;- locationId?: string | null;- orderQuantity: number;- outstandingQuantity?: number;- partId: string;- receiptId: string;- receivedQuantity?: number;- shelfId?: string | null;- unitOfMeasure: string;- unitPrice: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ conversionFactor?: number | null+ createdAt?: string+ createdBy: string+ id?: string+ lineId?: string | null+ locationId?: string | null+ orderQuantity: number+ outstandingQuantity?: number+ partId: string+ receiptId: string+ receivedQuantity?: number+ shelfId?: string | null+ unitOfMeasure: string+ unitPrice: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- conversionFactor?: number | null;- createdAt?: string;- createdBy?: string;- id?: string;- lineId?: string | null;- locationId?: string | null;- orderQuantity?: number;- outstandingQuantity?: number;- partId?: string;- receiptId?: string;- receivedQuantity?: number;- shelfId?: string | null;- unitOfMeasure?: string;- unitPrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ conversionFactor?: number | null+ createdAt?: string+ createdBy?: string+ id?: string+ lineId?: string | null+ locationId?: string | null+ orderQuantity?: number+ outstandingQuantity?: number+ partId?: string+ receiptId?: string+ receivedQuantity?: number+ shelfId?: string | null+ unitOfMeasure?: string+ unitPrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "receiptLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "receiptLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "receiptLine_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "receiptLine_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "receiptLine_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "receiptLine_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "receiptLine_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "receiptLine_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "receiptLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "receiptLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "receiptLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_receiptId_fkey";- columns: ["receiptId"];- isOneToOne: false;- referencedRelation: "receipt";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_receiptId_fkey"+ columns: ["receiptId"]+ isOneToOne: false+ referencedRelation: "receipt"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_receiptId_fkey";- columns: ["receiptId"];- isOneToOne: false;- referencedRelation: "receipts";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_receiptId_fkey"+ columns: ["receiptId"]+ isOneToOne: false+ referencedRelation: "receipts"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_receiptId_fkey";- columns: ["receiptId"];- isOneToOne: false;- referencedRelation: "receiptsPostedNotInvoiced";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_receiptId_fkey"+ columns: ["receiptId"]+ isOneToOne: false+ referencedRelation: "receiptsPostedNotInvoiced"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_shelfId_fkey";- columns: ["shelfId", "locationId"];- isOneToOne: false;- referencedRelation: "shelf";- referencedColumns: ["id", "locationId"];+ foreignKeyName: "receiptLine_shelfId_fkey"+ columns: ["shelfId", "locationId"]+ isOneToOne: false+ referencedRelation: "shelf"+ referencedColumns: ["id", "locationId"]},{- foreignKeyName: "receiptLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "receiptLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }requestForQuote: {Row: {- assignee: string | null;- createdAt: string | null;- createdBy: string;- customFields: Json | null;- expirationDate: string | null;- id: string;- locationId: string | null;- name: string | null;- notes: string | null;- receiptDate: string;- requestForQuoteId: string;- revisionId: number;- status: Database["public"]["Enums"]["requestForQuoteStatus"];- updatedAt: string | null;- updatedBy: string | null;- };+ assignee: string | null+ createdAt: string | null+ createdBy: string+ customFields: Json | null+ expirationDate: string | null+ id: string+ locationId: string | null+ name: string | null+ notes: string | null+ receiptDate: string+ requestForQuoteId: string+ revisionId: number+ status: Database["public"]["Enums"]["requestForQuoteStatus"]+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- assignee?: string | null;- createdAt?: string | null;- createdBy: string;- customFields?: Json | null;- expirationDate?: string | null;- id?: string;- locationId?: string | null;- name?: string | null;- notes?: string | null;- receiptDate: string;- requestForQuoteId: string;- revisionId?: number;- status?: Database["public"]["Enums"]["requestForQuoteStatus"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ assignee?: string | null+ createdAt?: string | null+ createdBy: string+ customFields?: Json | null+ expirationDate?: string | null+ id?: string+ locationId?: string | null+ name?: string | null+ notes?: string | null+ receiptDate: string+ requestForQuoteId: string+ revisionId?: number+ status?: Database["public"]["Enums"]["requestForQuoteStatus"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- assignee?: string | null;- createdAt?: string | null;- createdBy?: string;- customFields?: Json | null;- expirationDate?: string | null;- id?: string;- locationId?: string | null;- name?: string | null;- notes?: string | null;- receiptDate?: string;- requestForQuoteId?: string;- revisionId?: number;- status?: Database["public"]["Enums"]["requestForQuoteStatus"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ assignee?: string | null+ createdAt?: string | null+ createdBy?: string+ customFields?: Json | null+ expirationDate?: string | null+ id?: string+ locationId?: string | null+ name?: string | null+ notes?: string | null+ receiptDate?: string+ requestForQuoteId?: string+ revisionId?: number+ status?: Database["public"]["Enums"]["requestForQuoteStatus"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "requestForQuote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "requestForQuote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "requestForQuote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "requestForQuote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "requestForQuote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "requestForQuote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "requestForQuote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "requestForQuote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "requestForQuote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "requestForQuote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "requestForQuote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "requestForQuote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }requestForQuoteFavorite: {Row: {- requestForQuoteId: string;- userId: string;- };+ requestForQuoteId: string+ userId: string+ }Insert: {- requestForQuoteId: string;- userId: string;- };+ requestForQuoteId: string+ userId: string+ }Update: {- requestForQuoteId?: string;- userId?: string;- };+ requestForQuoteId?: string+ userId?: string+ }Relationships: [{- foreignKeyName: "requestForQuoteFavorites_requestForQuoteId_fkey";- columns: ["requestForQuoteId"];- isOneToOne: false;- referencedRelation: "requestForQuote";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteFavorites_requestForQuoteId_fkey"+ columns: ["requestForQuoteId"]+ isOneToOne: false+ referencedRelation: "requestForQuote"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteFavorites_requestForQuoteId_fkey";- columns: ["requestForQuoteId"];- isOneToOne: false;- referencedRelation: "requestForQuotes";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteFavorites_requestForQuoteId_fkey"+ columns: ["requestForQuoteId"]+ isOneToOne: false+ referencedRelation: "requestForQuotes"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "requestForQuoteFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }requestForQuoteLine: {Row: {- createdAt: string | null;- createdBy: string;- customFields: Json | null;- description: string | null;- id: string;- locationId: string | null;- partId: string;- quantity: number;- requestForQuoteId: string;- shelfId: string | null;- unitOfMeasureCode: string | null;- unitPrice: number;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string | null+ createdBy: string+ customFields: Json | null+ description: string | null+ id: string+ locationId: string | null+ partId: string+ quantity: number+ requestForQuoteId: string+ shelfId: string | null+ unitOfMeasureCode: string | null+ unitPrice: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string | null;- createdBy: string;- customFields?: Json | null;- description?: string | null;- id?: string;- locationId?: string | null;- partId: string;- quantity: number;- requestForQuoteId: string;- shelfId?: string | null;- unitOfMeasureCode?: string | null;- unitPrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string | null+ createdBy: string+ customFields?: Json | null+ description?: string | null+ id?: string+ locationId?: string | null+ partId: string+ quantity: number+ requestForQuoteId: string+ shelfId?: string | null+ unitOfMeasureCode?: string | null+ unitPrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string | null;- createdBy?: string;- customFields?: Json | null;- description?: string | null;- id?: string;- locationId?: string | null;- partId?: string;- quantity?: number;- requestForQuoteId?: string;- shelfId?: string | null;- unitOfMeasureCode?: string | null;- unitPrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string | null+ createdBy?: string+ customFields?: Json | null+ description?: string | null+ id?: string+ locationId?: string | null+ partId?: string+ quantity?: number+ requestForQuoteId?: string+ shelfId?: string | null+ unitOfMeasureCode?: string | null+ unitPrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "requestForQuoteLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "requestForQuoteLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "requestForQuoteLine_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteLine_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteLine_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "requestForQuoteLine_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "requestForQuoteLine_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "requestForQuoteLine_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "requestForQuoteLine_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "requestForQuoteLine_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "requestForQuoteLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "requestForQuoteLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "requestForQuoteLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteLine_requestForQuoteId_fkey";- columns: ["requestForQuoteId"];- isOneToOne: false;- referencedRelation: "requestForQuote";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteLine_requestForQuoteId_fkey"+ columns: ["requestForQuoteId"]+ isOneToOne: false+ referencedRelation: "requestForQuote"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteLine_requestForQuoteId_fkey";- columns: ["requestForQuoteId"];- isOneToOne: false;- referencedRelation: "requestForQuotes";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteLine_requestForQuoteId_fkey"+ columns: ["requestForQuoteId"]+ isOneToOne: false+ referencedRelation: "requestForQuotes"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteLine_shelfId_fkey";- columns: ["shelfId", "locationId"];- isOneToOne: false;- referencedRelation: "shelf";- referencedColumns: ["id", "locationId"];+ foreignKeyName: "requestForQuoteLine_shelfId_fkey"+ columns: ["shelfId", "locationId"]+ isOneToOne: false+ referencedRelation: "shelf"+ referencedColumns: ["id", "locationId"]},{- foreignKeyName: "requestForQuoteLine_unitOfMeasureCode_fkey";- columns: ["unitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "requestForQuoteLine_unitOfMeasureCode_fkey"+ columns: ["unitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "requestForQuoteLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "requestForQuoteLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }requestForQuoteSupplier: {Row: {- completedAt: string | null;- createdAt: string | null;- createdBy: string;- customFields: Json | null;- id: string;- password: string | null;- requestForQuoteId: string;- supplierContactId: string | null;- supplierId: string;- supplierLocationId: string | null;- token: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ completedAt: string | null+ createdAt: string | null+ createdBy: string+ customFields: Json | null+ id: string+ password: string | null+ requestForQuoteId: string+ supplierContactId: string | null+ supplierId: string+ supplierLocationId: string | null+ token: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- completedAt?: string | null;- createdAt?: string | null;- createdBy: string;- customFields?: Json | null;- id?: string;- password?: string | null;- requestForQuoteId: string;- supplierContactId?: string | null;- supplierId: string;- supplierLocationId?: string | null;- token?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ completedAt?: string | null+ createdAt?: string | null+ createdBy: string+ customFields?: Json | null+ id?: string+ password?: string | null+ requestForQuoteId: string+ supplierContactId?: string | null+ supplierId: string+ supplierLocationId?: string | null+ token?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- completedAt?: string | null;- createdAt?: string | null;- createdBy?: string;- customFields?: Json | null;- id?: string;- password?: string | null;- requestForQuoteId?: string;- supplierContactId?: string | null;- supplierId?: string;- supplierLocationId?: string | null;- token?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ completedAt?: string | null+ createdAt?: string | null+ createdBy?: string+ customFields?: Json | null+ id?: string+ password?: string | null+ requestForQuoteId?: string+ supplierContactId?: string | null+ supplierId?: string+ supplierLocationId?: string | null+ token?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "requestForQuoteSupplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "requestForQuoteSupplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "requestForQuoteSupplier_requestForQuoteId_fkey";- columns: ["requestForQuoteId"];- isOneToOne: false;- referencedRelation: "requestForQuote";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplier_requestForQuoteId_fkey"+ columns: ["requestForQuoteId"]+ isOneToOne: false+ referencedRelation: "requestForQuote"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplier_requestForQuoteId_fkey";- columns: ["requestForQuoteId"];- isOneToOne: false;- referencedRelation: "requestForQuotes";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplier_requestForQuoteId_fkey"+ columns: ["requestForQuoteId"]+ isOneToOne: false+ referencedRelation: "requestForQuotes"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplier_supplierContactId_fkey";- columns: ["supplierContactId"];- isOneToOne: false;- referencedRelation: "contact";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplier_supplierContactId_fkey"+ columns: ["supplierContactId"]+ isOneToOne: false+ referencedRelation: "contact"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplier_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "requestForQuoteSupplier_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "requestForQuoteSupplier_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "requestForQuoteSupplier_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "requestForQuoteSupplier_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplier_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplier_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplier_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplier_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplier_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplier_supplierLocationId_fkey";- columns: ["supplierLocationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplier_supplierLocationId_fkey"+ columns: ["supplierLocationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplier_supplierLocationId_fkey";- columns: ["supplierLocationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "requestForQuoteSupplier_supplierLocationId_fkey"+ columns: ["supplierLocationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "requestForQuoteSupplier_supplierLocationId_fkey";- columns: ["supplierLocationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "requestForQuoteSupplier_supplierLocationId_fkey"+ columns: ["supplierLocationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "requestForQuoteSupplier_supplierLocationId_fkey";- columns: ["supplierLocationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "requestForQuoteSupplier_supplierLocationId_fkey"+ columns: ["supplierLocationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "requestForQuoteSupplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "requestForQuoteSupplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }requestForQuoteSupplierLine: {Row: {- createdAt: string | null;- createdBy: string;- id: string;- requestForQuoteLineId: string;- requestForQuoteSupplierId: string;- unitPrice: number;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string | null+ createdBy: string+ id: string+ requestForQuoteLineId: string+ requestForQuoteSupplierId: string+ unitPrice: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string | null;- createdBy: string;- id?: string;- requestForQuoteLineId: string;- requestForQuoteSupplierId: string;- unitPrice: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string | null+ createdBy: string+ id?: string+ requestForQuoteLineId: string+ requestForQuoteSupplierId: string+ unitPrice: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string | null;- createdBy?: string;- id?: string;- requestForQuoteLineId?: string;- requestForQuoteSupplierId?: string;- unitPrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string | null+ createdBy?: string+ id?: string+ requestForQuoteLineId?: string+ requestForQuoteSupplierId?: string+ unitPrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "requestForQuoteSupplierLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplierLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplierLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplierLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplierLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplierLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplierLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "requestForQuoteSupplierLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "requestForQuoteSupplierLine_requestForQuoteLineId_fkey";- columns: ["requestForQuoteLineId"];- isOneToOne: false;- referencedRelation: "requestForQuoteLine";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplierLine_requestForQuoteLineId_fkey"+ columns: ["requestForQuoteLineId"]+ isOneToOne: false+ referencedRelation: "requestForQuoteLine"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplierLine_requestForQuoteSupplierId_fkey";- columns: ["requestForQuoteSupplierId"];- isOneToOne: false;- referencedRelation: "requestForQuoteSupplier";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplierLine_requestForQuoteSupplierId_fkey"+ columns: ["requestForQuoteSupplierId"]+ isOneToOne: false+ referencedRelation: "requestForQuoteSupplier"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplierLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplierLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplierLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplierLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplierLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuoteSupplierLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuoteSupplierLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "requestForQuoteSupplierLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }salesOrder: {Row: {- assignee: string | null;- closedAt: string | null;- closedBy: string | null;- createdAt: string;- createdBy: string;- customerContactId: string | null;- customerId: string;- customerLocationId: string | null;- customerReference: string | null;- customFields: Json | null;- id: string;- notes: string | null;- orderDate: string;- quoteId: string | null;- revisionId: number;- salesOrderId: string;- status: Database["public"]["Enums"]["salesOrderStatus"];- updatedAt: string | null;- updatedBy: string | null;- };+ assignee: string | null+ closedAt: string | null+ closedBy: string | null+ createdAt: string+ createdBy: string+ customerContactId: string | null+ customerId: string+ customerLocationId: string | null+ customerReference: string | null+ customFields: Json | null+ id: string+ notes: string | null+ orderDate: string+ quoteId: string | null+ revisionId: number+ salesOrderId: string+ status: Database["public"]["Enums"]["salesOrderStatus"]+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- assignee?: string | null;- closedAt?: string | null;- closedBy?: string | null;- createdAt?: string;- createdBy: string;- customerContactId?: string | null;- customerId: string;- customerLocationId?: string | null;- customerReference?: string | null;- customFields?: Json | null;- id?: string;- notes?: string | null;- orderDate?: string;- quoteId?: string | null;- revisionId?: number;- salesOrderId: string;- status?: Database["public"]["Enums"]["salesOrderStatus"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ assignee?: string | null+ closedAt?: string | null+ closedBy?: string | null+ createdAt?: string+ createdBy: string+ customerContactId?: string | null+ customerId: string+ customerLocationId?: string | null+ customerReference?: string | null+ customFields?: Json | null+ id?: string+ notes?: string | null+ orderDate?: string+ quoteId?: string | null+ revisionId?: number+ salesOrderId: string+ status?: Database["public"]["Enums"]["salesOrderStatus"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- assignee?: string | null;- closedAt?: string | null;- closedBy?: string | null;- createdAt?: string;- createdBy?: string;- customerContactId?: string | null;- customerId?: string;- customerLocationId?: string | null;- customerReference?: string | null;- customFields?: Json | null;- id?: string;- notes?: string | null;- orderDate?: string;- quoteId?: string | null;- revisionId?: number;- salesOrderId?: string;- status?: Database["public"]["Enums"]["salesOrderStatus"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ assignee?: string | null+ closedAt?: string | null+ closedBy?: string | null+ createdAt?: string+ createdBy?: string+ customerContactId?: string | null+ customerId?: string+ customerLocationId?: string | null+ customerReference?: string | null+ customFields?: Json | null+ id?: string+ notes?: string | null+ orderDate?: string+ quoteId?: string | null+ revisionId?: number+ salesOrderId?: string+ status?: Database["public"]["Enums"]["salesOrderStatus"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "salesOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "salesOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "salesOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "salesOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "salesOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "salesOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "salesOrder_customerContactId_fkey";- columns: ["customerContactId"];- isOneToOne: false;- referencedRelation: "customerContact";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_customerContactId_fkey"+ columns: ["customerContactId"]+ isOneToOne: false+ referencedRelation: "customerContact"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "salesOrderCustomers";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_customerLocationId_fkey";- columns: ["customerLocationId"];- isOneToOne: false;- referencedRelation: "customerLocation";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_customerLocationId_fkey"+ columns: ["customerLocationId"]+ isOneToOne: false+ referencedRelation: "customerLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quote";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quote"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quoteCustomerDetails";- referencedColumns: ["quoteId"];+ foreignKeyName: "salesOrder_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quoteCustomerDetails"+ referencedColumns: ["quoteId"]},{- foreignKeyName: "salesOrder_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quotes";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quotes"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "salesOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }salesOrderFavorite: {Row: {- salesOrderId: string;- userId: string;- };+ salesOrderId: string+ userId: string+ }Insert: {- salesOrderId: string;- userId: string;- };+ salesOrderId: string+ userId: string+ }Update: {- salesOrderId?: string;- userId?: string;- };+ salesOrderId?: string+ userId?: string+ }Relationships: [{- foreignKeyName: "salesOrderFavorites_salesOrderId_fkey";- columns: ["salesOrderId"];- isOneToOne: false;- referencedRelation: "salesOrder";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderFavorites_salesOrderId_fkey"+ columns: ["salesOrderId"]+ isOneToOne: false+ referencedRelation: "salesOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderFavorites_salesOrderId_fkey";- columns: ["salesOrderId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderFavorites_salesOrderId_fkey"+ columns: ["salesOrderId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderFavorites_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "salesOrderFavorites_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }salesOrderLine: {Row: {- accountNumber: string | null;- assetId: string | null;- createdAt: string;- createdBy: string;- customFields: Json | null;- description: string | null;- id: string;- invoicedComplete: boolean;- locationId: string | null;- partId: string | null;- quantityInvoiced: number | null;- quantitySent: number | null;- quantityToInvoice: number | null;- quantityToSend: number | null;- requiresInspection: boolean;- saleQuantity: number | null;- salesOrderId: string;- salesOrderLineType: Database["public"]["Enums"]["salesOrderLineType"];- sentComplete: boolean;- serviceId: string | null;- setupPrice: number | null;- shelfId: string | null;- unitOfMeasureCode: string | null;- unitPrice: number | null;- updatedAt: string | null;- updatedBy: string | null;- };+ accountNumber: string | null+ assetId: string | null+ createdAt: string+ createdBy: string+ customFields: Json | null+ description: string | null+ id: string+ invoicedComplete: boolean+ locationId: string | null+ partId: string | null+ quantityInvoiced: number | null+ quantitySent: number | null+ quantityToInvoice: number | null+ quantityToSend: number | null+ requiresInspection: boolean+ saleQuantity: number | null+ salesOrderId: string+ salesOrderLineType: Database["public"]["Enums"]["salesOrderLineType"]+ sentComplete: boolean+ serviceId: string | null+ setupPrice: number | null+ shelfId: string | null+ unitOfMeasureCode: string | null+ unitPrice: number | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountNumber?: string | null;- assetId?: string | null;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- description?: string | null;- id?: string;- invoicedComplete?: boolean;- locationId?: string | null;- partId?: string | null;- quantityInvoiced?: number | null;- quantitySent?: number | null;- quantityToInvoice?: number | null;- quantityToSend?: number | null;- requiresInspection?: boolean;- saleQuantity?: number | null;- salesOrderId: string;- salesOrderLineType: Database["public"]["Enums"]["salesOrderLineType"];- sentComplete?: boolean;- serviceId?: string | null;- setupPrice?: number | null;- shelfId?: string | null;- unitOfMeasureCode?: string | null;- unitPrice?: number | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountNumber?: string | null+ assetId?: string | null+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ description?: string | null+ id?: string+ invoicedComplete?: boolean+ locationId?: string | null+ partId?: string | null+ quantityInvoiced?: number | null+ quantitySent?: number | null+ quantityToInvoice?: number | null+ quantityToSend?: number | null+ requiresInspection?: boolean+ saleQuantity?: number | null+ salesOrderId: string+ salesOrderLineType: Database["public"]["Enums"]["salesOrderLineType"]+ sentComplete?: boolean+ serviceId?: string | null+ setupPrice?: number | null+ shelfId?: string | null+ unitOfMeasureCode?: string | null+ unitPrice?: number | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountNumber?: string | null;- assetId?: string | null;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- description?: string | null;- id?: string;- invoicedComplete?: boolean;- locationId?: string | null;- partId?: string | null;- quantityInvoiced?: number | null;- quantitySent?: number | null;- quantityToInvoice?: number | null;- quantityToSend?: number | null;- requiresInspection?: boolean;- saleQuantity?: number | null;- salesOrderId?: string;- salesOrderLineType?: Database["public"]["Enums"]["salesOrderLineType"];- sentComplete?: boolean;- serviceId?: string | null;- setupPrice?: number | null;- shelfId?: string | null;- unitOfMeasureCode?: string | null;- unitPrice?: number | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountNumber?: string | null+ assetId?: string | null+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ description?: string | null+ id?: string+ invoicedComplete?: boolean+ locationId?: string | null+ partId?: string | null+ quantityInvoiced?: number | null+ quantitySent?: number | null+ quantityToInvoice?: number | null+ quantityToSend?: number | null+ requiresInspection?: boolean+ saleQuantity?: number | null+ salesOrderId?: string+ salesOrderLineType?: Database["public"]["Enums"]["salesOrderLineType"]+ sentComplete?: boolean+ serviceId?: string | null+ setupPrice?: number | null+ shelfId?: string | null+ unitOfMeasureCode?: string | null+ unitPrice?: number | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "salesOrderLine_accountNumber_fkey";- columns: ["accountNumber"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "salesOrderLine_accountNumber_fkey"+ columns: ["accountNumber"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "salesOrderLine_accountNumber_fkey";- columns: ["accountNumber"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "salesOrderLine_accountNumber_fkey"+ columns: ["accountNumber"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "salesOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "salesOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "salesOrderLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "salesOrderLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "salesOrderLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_salesOrderId_fkey";- columns: ["salesOrderId"];- isOneToOne: false;- referencedRelation: "salesOrder";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_salesOrderId_fkey"+ columns: ["salesOrderId"]+ isOneToOne: false+ referencedRelation: "salesOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_salesOrderId_fkey";- columns: ["salesOrderId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_salesOrderId_fkey"+ columns: ["salesOrderId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_serviceId_fkey";- columns: ["serviceId"];- isOneToOne: false;- referencedRelation: "service";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_serviceId_fkey"+ columns: ["serviceId"]+ isOneToOne: false+ referencedRelation: "service"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_serviceId_fkey";- columns: ["serviceId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_serviceId_fkey"+ columns: ["serviceId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_shelfId_fkey";- columns: ["shelfId", "locationId"];- isOneToOne: false;- referencedRelation: "shelf";- referencedColumns: ["id", "locationId"];+ foreignKeyName: "salesOrderLine_shelfId_fkey"+ columns: ["shelfId", "locationId"]+ isOneToOne: false+ referencedRelation: "shelf"+ referencedColumns: ["id", "locationId"]},{- foreignKeyName: "salesOrderLine_unitOfMeasureCode_fkey";- columns: ["unitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "salesOrderLine_unitOfMeasureCode_fkey"+ columns: ["unitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "salesOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "salesOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }salesOrderPayment: {Row: {- currencyCode: string;- customFields: Json | null;- id: string;- invoiceCustomerContactId: string | null;- invoiceCustomerId: string | null;- invoiceCustomerLocationId: string | null;- paymentComplete: boolean;- paymentTermId: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ currencyCode: string+ customFields: Json | null+ id: string+ invoiceCustomerContactId: string | null+ invoiceCustomerId: string | null+ invoiceCustomerLocationId: string | null+ paymentComplete: boolean+ paymentTermId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- currencyCode?: string;- customFields?: Json | null;- id: string;- invoiceCustomerContactId?: string | null;- invoiceCustomerId?: string | null;- invoiceCustomerLocationId?: string | null;- paymentComplete?: boolean;- paymentTermId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ currencyCode?: string+ customFields?: Json | null+ id: string+ invoiceCustomerContactId?: string | null+ invoiceCustomerId?: string | null+ invoiceCustomerLocationId?: string | null+ paymentComplete?: boolean+ paymentTermId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- currencyCode?: string;- customFields?: Json | null;- id?: string;- invoiceCustomerContactId?: string | null;- invoiceCustomerId?: string | null;- invoiceCustomerLocationId?: string | null;- paymentComplete?: boolean;- paymentTermId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ currencyCode?: string+ customFields?: Json | null+ id?: string+ invoiceCustomerContactId?: string | null+ invoiceCustomerId?: string | null+ invoiceCustomerLocationId?: string | null+ paymentComplete?: boolean+ paymentTermId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "salesOrderPayment_currencyCode_fkey";- columns: ["currencyCode"];- isOneToOne: false;- referencedRelation: "currency";- referencedColumns: ["code"];+ foreignKeyName: "salesOrderPayment_currencyCode_fkey"+ columns: ["currencyCode"]+ isOneToOne: false+ referencedRelation: "currency"+ referencedColumns: ["code"]},{- foreignKeyName: "salesOrderPayment_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "salesOrder";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderPayment_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "salesOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderPayment_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "salesOrders";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderPayment_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "salesOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderPayment_invoiceCustomerContactId_fkey";- columns: ["invoiceCustomerContactId"];- isOneToOne: false;- referencedRelation: "customerContact";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderPayment_invoiceCustomerContactId_fkey"+ columns: ["invoiceCustomerContactId"]+ isOneToOne: false+ referencedRelation: "customerContact"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderPayment_invoiceCustomerId_fkey";- columns: ["invoiceCustomerId"];- isOneToOne: false;- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderPayment_invoiceCustomerId_fkey"+ columns: ["invoiceCustomerId"]+ isOneToOne: false+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderPayment_invoiceCustomerId_fkey";- columns: ["invoiceCustomerId"];- isOneToOne: false;- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderPayment_invoiceCustomerId_fkey"+ columns: ["invoiceCustomerId"]+ isOneToOne: false+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderPayment_invoiceCustomerId_fkey";- columns: ["invoiceCustomerId"];- isOneToOne: false;- referencedRelation: "salesOrderCustomers";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderPayment_invoiceCustomerId_fkey"+ columns: ["invoiceCustomerId"]+ isOneToOne: false+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderPayment_invoiceCustomerLocationId_fkey";- columns: ["invoiceCustomerLocationId"];- isOneToOne: false;- referencedRelation: "customerLocation";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderPayment_invoiceCustomerLocationId_fkey"+ columns: ["invoiceCustomerLocationId"]+ isOneToOne: false+ referencedRelation: "customerLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderPayment_paymentTermId_fkey";- columns: ["paymentTermId"];- isOneToOne: false;- referencedRelation: "paymentTerm";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "salesOrderPayment_paymentTermId_fkey"+ columns: ["paymentTermId"]+ isOneToOne: false+ referencedRelation: "paymentTerm"+ referencedColumns: ["id"]+ },+ ]+ }salesOrderShipment: {Row: {- assignee: string | null;- customerId: string | null;- customerLocationId: string | null;- customFields: Json | null;- deliveryDate: string | null;- dropShipment: boolean;- id: string;- locationId: string | null;- notes: string | null;- receiptPromisedDate: string | null;- receiptRequestedDate: string | null;- shippingMethodId: string | null;- shippingTermId: string | null;- supplierId: string | null;- supplierLocationId: string | null;- trackingNumber: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ assignee: string | null+ customerId: string | null+ customerLocationId: string | null+ customFields: Json | null+ deliveryDate: string | null+ dropShipment: boolean+ id: string+ locationId: string | null+ notes: string | null+ receiptPromisedDate: string | null+ receiptRequestedDate: string | null+ shippingMethodId: string | null+ shippingTermId: string | null+ supplierId: string | null+ supplierLocationId: string | null+ trackingNumber: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- assignee?: string | null;- customerId?: string | null;- customerLocationId?: string | null;- customFields?: Json | null;- deliveryDate?: string | null;- dropShipment?: boolean;- id: string;- locationId?: string | null;- notes?: string | null;- receiptPromisedDate?: string | null;- receiptRequestedDate?: string | null;- shippingMethodId?: string | null;- shippingTermId?: string | null;- supplierId?: string | null;- supplierLocationId?: string | null;- trackingNumber?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ assignee?: string | null+ customerId?: string | null+ customerLocationId?: string | null+ customFields?: Json | null+ deliveryDate?: string | null+ dropShipment?: boolean+ id: string+ locationId?: string | null+ notes?: string | null+ receiptPromisedDate?: string | null+ receiptRequestedDate?: string | null+ shippingMethodId?: string | null+ shippingTermId?: string | null+ supplierId?: string | null+ supplierLocationId?: string | null+ trackingNumber?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- assignee?: string | null;- customerId?: string | null;- customerLocationId?: string | null;- customFields?: Json | null;- deliveryDate?: string | null;- dropShipment?: boolean;- id?: string;- locationId?: string | null;- notes?: string | null;- receiptPromisedDate?: string | null;- receiptRequestedDate?: string | null;- shippingMethodId?: string | null;- shippingTermId?: string | null;- supplierId?: string | null;- supplierLocationId?: string | null;- trackingNumber?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ assignee?: string | null+ customerId?: string | null+ customerLocationId?: string | null+ customFields?: Json | null+ deliveryDate?: string | null+ dropShipment?: boolean+ id?: string+ locationId?: string | null+ notes?: string | null+ receiptPromisedDate?: string | null+ receiptRequestedDate?: string | null+ shippingMethodId?: string | null+ shippingTermId?: string | null+ supplierId?: string | null+ supplierLocationId?: string | null+ trackingNumber?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "salesOrderShipment_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderShipment_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderShipment_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderShipment_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderShipment_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderShipment_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderShipment_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "salesOrderShipment_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "salesOrderShipment_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderShipment_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderShipment_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderShipment_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderShipment_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "salesOrderCustomers";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderShipment_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderShipment_customerLocationId_fkey";- columns: ["customerLocationId"];- isOneToOne: false;- referencedRelation: "customerLocation";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderShipment_customerLocationId_fkey"+ columns: ["customerLocationId"]+ isOneToOne: false+ referencedRelation: "customerLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderShipment_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "salesOrder";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderShipment_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "salesOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderShipment_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "salesOrders";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderShipment_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "salesOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderShipment_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderShipment_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderShipment_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "salesOrderShipment_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "salesOrderShipment_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "salesOrderShipment_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "salesOrderShipment_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "salesOrderShipment_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "salesOrderShipment_shippingMethodId_fkey";- columns: ["shippingMethodId"];- isOneToOne: false;- referencedRelation: "shippingMethod";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderShipment_shippingMethodId_fkey"+ columns: ["shippingMethodId"]+ isOneToOne: false+ referencedRelation: "shippingMethod"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderShipment_shippingTermId_fkey";- columns: ["shippingTermId"];- isOneToOne: false;- referencedRelation: "shippingTerm";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderShipment_shippingTermId_fkey"+ columns: ["shippingTermId"]+ isOneToOne: false+ referencedRelation: "shippingTerm"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderShipment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderShipment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderShipment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderShipment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderShipment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderShipment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderShipment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "salesOrderShipment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }salesOrderStatusHistory: {Row: {- createdAt: string;- createdBy: string;- id: string;- salesOrderId: string;- status: Database["public"]["Enums"]["salesOrderStatus"];- };+ createdAt: string+ createdBy: string+ id: string+ salesOrderId: string+ status: Database["public"]["Enums"]["salesOrderStatus"]+ }Insert: {- createdAt?: string;- createdBy: string;- id?: string;- salesOrderId: string;- status: Database["public"]["Enums"]["salesOrderStatus"];- };+ createdAt?: string+ createdBy: string+ id?: string+ salesOrderId: string+ status: Database["public"]["Enums"]["salesOrderStatus"]+ }Update: {- createdAt?: string;- createdBy?: string;- id?: string;- salesOrderId?: string;- status?: Database["public"]["Enums"]["salesOrderStatus"];- };+ createdAt?: string+ createdBy?: string+ id?: string+ salesOrderId?: string+ status?: Database["public"]["Enums"]["salesOrderStatus"]+ }Relationships: [{- foreignKeyName: "salesOrderStatusHistory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderStatusHistory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderStatusHistory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderStatusHistory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderStatusHistory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderStatusHistory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderStatusHistory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "salesOrderStatusHistory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "salesOrderStatusHistory_salesOrderId_fkey";- columns: ["salesOrderId"];- isOneToOne: false;- referencedRelation: "salesOrder";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderStatusHistory_salesOrderId_fkey"+ columns: ["salesOrderId"]+ isOneToOne: false+ referencedRelation: "salesOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderStatusHistory_salesOrderId_fkey";- columns: ["salesOrderId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "salesOrderStatusHistory_salesOrderId_fkey"+ columns: ["salesOrderId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["id"]+ },+ ]+ }salesOrderTransaction: {Row: {- createdAt: string;- id: string;- salesOrderId: string;- type: Database["public"]["Enums"]["salesOrderTransactionType"];- userId: string;- };+ createdAt: string+ id: string+ salesOrderId: string+ type: Database["public"]["Enums"]["salesOrderTransactionType"]+ userId: string+ }Insert: {- createdAt?: string;- id?: string;- salesOrderId: string;- type: Database["public"]["Enums"]["salesOrderTransactionType"];- userId: string;- };+ createdAt?: string+ id?: string+ salesOrderId: string+ type: Database["public"]["Enums"]["salesOrderTransactionType"]+ userId: string+ }Update: {- createdAt?: string;- id?: string;- salesOrderId?: string;- type?: Database["public"]["Enums"]["salesOrderTransactionType"];- userId?: string;- };+ createdAt?: string+ id?: string+ salesOrderId?: string+ type?: Database["public"]["Enums"]["salesOrderTransactionType"]+ userId?: string+ }Relationships: [{- foreignKeyName: "salesOrderTransaction_salesOrderId_fkey";- columns: ["salesOrderId"];- isOneToOne: false;- referencedRelation: "salesOrder";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderTransaction_salesOrderId_fkey"+ columns: ["salesOrderId"]+ isOneToOne: false+ referencedRelation: "salesOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderTransaction_salesOrderId_fkey";- columns: ["salesOrderId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderTransaction_salesOrderId_fkey"+ columns: ["salesOrderId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderTransaction_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderTransaction_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderTransaction_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderTransaction_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderTransaction_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderTransaction_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderTransaction_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "salesOrderTransaction_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }search: {Row: {- description: string | null;- entity: Database["public"]["Enums"]["searchEntity"] | null;- fts: unknown | null;- id: number;- link: string;- name: string;- uuid: string | null;- };+ description: string | null+ entity: Database["public"]["Enums"]["searchEntity"] | null+ fts: unknown | null+ id: number+ link: string+ name: string+ uuid: string | null+ }Insert: {- description?: string | null;- entity?: Database["public"]["Enums"]["searchEntity"] | null;- fts?: unknown | null;- id?: number;- link: string;- name: string;- uuid?: string | null;- };+ description?: string | null+ entity?: Database["public"]["Enums"]["searchEntity"] | null+ fts?: unknown | null+ id?: number+ link: string+ name: string+ uuid?: string | null+ }Update: {- description?: string | null;- entity?: Database["public"]["Enums"]["searchEntity"] | null;- fts?: unknown | null;- id?: number;- link?: string;- name?: string;- uuid?: string | null;- };- Relationships: [];- };+ description?: string | null+ entity?: Database["public"]["Enums"]["searchEntity"] | null+ fts?: unknown | null+ id?: number+ link?: string+ name?: string+ uuid?: string | null+ }+ Relationships: []+ }sequence: {Row: {- id: string;- name: string;- next: number;- prefix: string | null;- size: number;- step: number;- suffix: string | null;- table: string;- updatedAt: string | null;- updatedBy: string | null;- };+ id: string+ name: string+ next: number+ prefix: string | null+ size: number+ step: number+ suffix: string | null+ table: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- id?: string;- name: string;- next?: number;- prefix?: string | null;- size?: number;- step?: number;- suffix?: string | null;- table: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ id?: string+ name: string+ next?: number+ prefix?: string | null+ size?: number+ step?: number+ suffix?: string | null+ table: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- id?: string;- name?: string;- next?: number;- prefix?: string | null;- size?: number;- step?: number;- suffix?: string | null;- table?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ id?: string+ name?: string+ next?: number+ prefix?: string | null+ size?: number+ step?: number+ suffix?: string | null+ table?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "sequence_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "sequence_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "sequence_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "sequence_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "sequence_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "sequence_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "sequence_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "sequence_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }service: {Row: {- active: boolean;- approved: boolean;- approvedBy: string | null;- assignee: string | null;- blocked: boolean;- createdAt: string;- createdBy: string;- customFields: Json | null;- description: string | null;- fromDate: string | null;- id: string;- name: string;- partGroupId: string | null;- serviceType: Database["public"]["Enums"]["serviceType"];- toDate: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ approved: boolean+ approvedBy: string | null+ assignee: string | null+ blocked: boolean+ createdAt: string+ createdBy: string+ customFields: Json | null+ description: string | null+ fromDate: string | null+ id: string+ name: string+ partGroupId: string | null+ serviceType: Database["public"]["Enums"]["serviceType"]+ toDate: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- approved?: boolean;- approvedBy?: string | null;- assignee?: string | null;- blocked?: boolean;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- description?: string | null;- fromDate?: string | null;- id: string;- name: string;- partGroupId?: string | null;- serviceType: Database["public"]["Enums"]["serviceType"];- toDate?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ approved?: boolean+ approvedBy?: string | null+ assignee?: string | null+ blocked?: boolean+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ description?: string | null+ fromDate?: string | null+ id: string+ name: string+ partGroupId?: string | null+ serviceType: Database["public"]["Enums"]["serviceType"]+ toDate?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- approved?: boolean;- approvedBy?: string | null;- assignee?: string | null;- blocked?: boolean;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- description?: string | null;- fromDate?: string | null;- id?: string;- name?: string;- partGroupId?: string | null;- serviceType?: Database["public"]["Enums"]["serviceType"];- toDate?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ approved?: boolean+ approvedBy?: string | null+ assignee?: string | null+ blocked?: boolean+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ description?: string | null+ fromDate?: string | null+ id?: string+ name?: string+ partGroupId?: string | null+ serviceType?: Database["public"]["Enums"]["serviceType"]+ toDate?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "service_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "service_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "service_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "service_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "service_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "service_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "service_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "service_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "service_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "service_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "service_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "service_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "service_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "service_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "service_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "service_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "service_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "service_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "service_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "service_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "service_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "service_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "service_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "service_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "service_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "partGroup";- referencedColumns: ["id"];+ foreignKeyName: "service_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "partGroup"+ referencedColumns: ["id"]},{- foreignKeyName: "service_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "service_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "service_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "service_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "service_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "service_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "service_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "service_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }serviceSupplier: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- customFields: Json | null;- id: string;- serviceId: string;- supplierId: string;- supplierServiceId: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ customFields: Json | null+ id: string+ serviceId: string+ supplierId: string+ supplierServiceId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- id?: string;- serviceId: string;- supplierId: string;- supplierServiceId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ id?: string+ serviceId: string+ supplierId: string+ supplierServiceId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- id?: string;- serviceId?: string;- supplierId?: string;- supplierServiceId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ id?: string+ serviceId?: string+ supplierId?: string+ supplierServiceId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "serviceSupplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "serviceSupplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "serviceSupplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "serviceSupplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "serviceSupplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "serviceSupplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "serviceSupplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "serviceSupplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "serviceSupplier_serviceId_fkey";- columns: ["serviceId"];- isOneToOne: false;- referencedRelation: "service";- referencedColumns: ["id"];+ foreignKeyName: "serviceSupplier_serviceId_fkey"+ columns: ["serviceId"]+ isOneToOne: false+ referencedRelation: "service"+ referencedColumns: ["id"]},{- foreignKeyName: "serviceSupplier_serviceId_fkey";- columns: ["serviceId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["id"];+ foreignKeyName: "serviceSupplier_serviceId_fkey"+ columns: ["serviceId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["id"]},{- foreignKeyName: "serviceSupplier_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "serviceSupplier_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "serviceSupplier_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "serviceSupplier_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "serviceSupplier_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "serviceSupplier_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "serviceSupplier_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "serviceSupplier_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "serviceSupplier_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "serviceSupplier_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "serviceSupplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "serviceSupplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "serviceSupplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "serviceSupplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "serviceSupplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "serviceSupplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "serviceSupplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "serviceSupplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }shelf: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- customFields: Json | null;- id: string;- locationId: string;- updatedAt: string | null;- updatedBy: string | null;- warehouseId: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ customFields: Json | null+ id: string+ locationId: string+ updatedAt: string | null+ updatedBy: string | null+ warehouseId: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- id: string;- locationId: string;- updatedAt?: string | null;- updatedBy?: string | null;- warehouseId?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ id: string+ locationId: string+ updatedAt?: string | null+ updatedBy?: string | null+ warehouseId?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- id?: string;- locationId?: string;- updatedAt?: string | null;- updatedBy?: string | null;- warehouseId?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ id?: string+ locationId?: string+ updatedAt?: string | null+ updatedBy?: string | null+ warehouseId?: string | null+ }Relationships: [{- foreignKeyName: "shelf_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "shelf_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "shelf_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "shelf_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "shelf_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shelf_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shelf_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "shelf_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "shelf_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "shelf_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "shelf_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "shelf_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "shelf_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "shelf_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "shelf_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "shelf_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "shelf_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "shelf_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "shelf_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "shelf_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "shelf_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shelf_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shelf_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "shelf_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "shelf_warehouseId_fkey";- columns: ["warehouseId"];- isOneToOne: false;- referencedRelation: "warehouse";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "shelf_warehouseId_fkey"+ columns: ["warehouseId"]+ isOneToOne: false+ referencedRelation: "warehouse"+ referencedColumns: ["id"]+ },+ ]+ }shift: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- customFields: Json | null;- endTime: string;- friday: boolean;- id: string;- locationId: string;- monday: boolean;- name: string;- saturday: boolean;- startTime: string;- sunday: boolean;- thursday: boolean;- tuesday: boolean;- updatedAt: string | null;- updatedBy: string | null;- wednesday: boolean;- };+ active: boolean+ createdAt: string+ createdBy: string+ customFields: Json | null+ endTime: string+ friday: boolean+ id: string+ locationId: string+ monday: boolean+ name: string+ saturday: boolean+ startTime: string+ sunday: boolean+ thursday: boolean+ tuesday: boolean+ updatedAt: string | null+ updatedBy: string | null+ wednesday: boolean+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- endTime: string;- friday?: boolean;- id?: string;- locationId: string;- monday?: boolean;- name: string;- saturday?: boolean;- startTime: string;- sunday?: boolean;- thursday?: boolean;- tuesday?: boolean;- updatedAt?: string | null;- updatedBy?: string | null;- wednesday?: boolean;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ endTime: string+ friday?: boolean+ id?: string+ locationId: string+ monday?: boolean+ name: string+ saturday?: boolean+ startTime: string+ sunday?: boolean+ thursday?: boolean+ tuesday?: boolean+ updatedAt?: string | null+ updatedBy?: string | null+ wednesday?: boolean+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- endTime?: string;- friday?: boolean;- id?: string;- locationId?: string;- monday?: boolean;- name?: string;- saturday?: boolean;- startTime?: string;- sunday?: boolean;- thursday?: boolean;- tuesday?: boolean;- updatedAt?: string | null;- updatedBy?: string | null;- wednesday?: boolean;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ endTime?: string+ friday?: boolean+ id?: string+ locationId?: string+ monday?: boolean+ name?: string+ saturday?: boolean+ startTime?: string+ sunday?: boolean+ thursday?: boolean+ tuesday?: boolean+ updatedAt?: string | null+ updatedBy?: string | null+ wednesday?: boolean+ }Relationships: [{- foreignKeyName: "shifts_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "shifts_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "shifts_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "shifts_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "shifts_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shifts_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shifts_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "shifts_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "shifts_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "shifts_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "shifts_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "shifts_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "shifts_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "shifts_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "shifts_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "shifts_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "shifts_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "shifts_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "shifts_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "shifts_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "shifts_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shifts_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shifts_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "shifts_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }shippingMethod: {Row: {- active: boolean;- carrier: Database["public"]["Enums"]["shippingCarrier"];- carrierAccountId: string | null;- createdAt: string;- createdBy: string;- customFields: Json | null;- id: string;- name: string;- trackingUrl: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ carrier: Database["public"]["Enums"]["shippingCarrier"]+ carrierAccountId: string | null+ createdAt: string+ createdBy: string+ customFields: Json | null+ id: string+ name: string+ trackingUrl: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- carrier?: Database["public"]["Enums"]["shippingCarrier"];- carrierAccountId?: string | null;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- id?: string;- name: string;- trackingUrl?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ carrier?: Database["public"]["Enums"]["shippingCarrier"]+ carrierAccountId?: string | null+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ id?: string+ name: string+ trackingUrl?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- carrier?: Database["public"]["Enums"]["shippingCarrier"];- carrierAccountId?: string | null;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- id?: string;- name?: string;- trackingUrl?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ carrier?: Database["public"]["Enums"]["shippingCarrier"]+ carrierAccountId?: string | null+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ id?: string+ name?: string+ trackingUrl?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "shippingMethod_carrierAccountId_fkey";- columns: ["carrierAccountId"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "shippingMethod_carrierAccountId_fkey"+ columns: ["carrierAccountId"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "shippingMethod_carrierAccountId_fkey";- columns: ["carrierAccountId"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "shippingMethod_carrierAccountId_fkey"+ columns: ["carrierAccountId"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "shippingMethod_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "shippingMethod_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingMethod_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "shippingMethod_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingMethod_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shippingMethod_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingMethod_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "shippingMethod_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "shippingMethod_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "shippingMethod_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingMethod_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "shippingMethod_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingMethod_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shippingMethod_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingMethod_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "shippingMethod_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }shippingTerm: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- id: string;- name: string;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ id: string+ name: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- id?: string;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ id?: string+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- id?: string;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ id?: string+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "shippingTerm_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "shippingTerm_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingTerm_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "shippingTerm_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingTerm_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shippingTerm_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingTerm_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "shippingTerm_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "shippingTerm_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "shippingTerm_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingTerm_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "shippingTerm_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingTerm_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shippingTerm_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingTerm_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "shippingTerm_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }supplier: {Row: {- accountManagerId: string | null;- assignee: string | null;- createdAt: string;- createdBy: string | null;- customFields: Json | null;- id: string;- logo: string | null;- name: string;- supplierStatusId: string | null;- supplierTypeId: string | null;- taxId: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ accountManagerId: string | null+ assignee: string | null+ createdAt: string+ createdBy: string | null+ customFields: Json | null+ id: string+ logo: string | null+ name: string+ supplierStatusId: string | null+ supplierTypeId: string | null+ taxId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountManagerId?: string | null;- assignee?: string | null;- createdAt?: string;- createdBy?: string | null;- customFields?: Json | null;- id?: string;- logo?: string | null;- name: string;- supplierStatusId?: string | null;- supplierTypeId?: string | null;- taxId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountManagerId?: string | null+ assignee?: string | null+ createdAt?: string+ createdBy?: string | null+ customFields?: Json | null+ id?: string+ logo?: string | null+ name: string+ supplierStatusId?: string | null+ supplierTypeId?: string | null+ taxId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountManagerId?: string | null;- assignee?: string | null;- createdAt?: string;- createdBy?: string | null;- customFields?: Json | null;- id?: string;- logo?: string | null;- name?: string;- supplierStatusId?: string | null;- supplierTypeId?: string | null;- taxId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountManagerId?: string | null+ assignee?: string | null+ createdAt?: string+ createdBy?: string | null+ customFields?: Json | null+ id?: string+ logo?: string | null+ name?: string+ supplierStatusId?: string | null+ supplierTypeId?: string | null+ taxId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "supplier_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplier_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplier_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplier_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "supplier_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "supplier_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplier_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplier_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplier_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "supplier_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "supplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "supplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "supplier_supplierStatusId_fkey";- columns: ["supplierStatusId"];- isOneToOne: false;- referencedRelation: "supplierStatus";- referencedColumns: ["id"];+ foreignKeyName: "supplier_supplierStatusId_fkey"+ columns: ["supplierStatusId"]+ isOneToOne: false+ referencedRelation: "supplierStatus"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_supplierTypeId_fkey";- columns: ["supplierTypeId"];- isOneToOne: false;- referencedRelation: "supplierType";- referencedColumns: ["id"];+ foreignKeyName: "supplier_supplierTypeId_fkey"+ columns: ["supplierTypeId"]+ isOneToOne: false+ referencedRelation: "supplierType"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "supplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }supplierAccount: {Row: {- id: string;- supplierId: string;- };+ id: string+ supplierId: string+ }Insert: {- id: string;- supplierId: string;- };+ id: string+ supplierId: string+ }Update: {- id?: string;- supplierId?: string;- };+ id?: string+ supplierId?: string+ }Relationships: [{- foreignKeyName: "supplierAccount_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplierAccount_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierAccount_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplierAccount_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierAccount_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplierAccount_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierAccount_id_fkey";- columns: ["id"];- isOneToOne: true;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "supplierAccount_id_fkey"+ columns: ["id"]+ isOneToOne: true+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "supplierAccount_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierAccount_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierAccount_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierAccount_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierAccount_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierAccount_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierAccount_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "supplierAccount_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierAccount_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "supplierAccount_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]+ },+ ]+ }supplierContact: {Row: {- contactId: string;- customFields: Json | null;- id: string;- supplierId: string;- supplierLocationId: string | null;- userId: string | null;- };+ contactId: string+ customFields: Json | null+ id: string+ supplierId: string+ supplierLocationId: string | null+ userId: string | null+ }Insert: {- contactId: string;- customFields?: Json | null;- id?: string;- supplierId: string;- supplierLocationId?: string | null;- userId?: string | null;- };+ contactId: string+ customFields?: Json | null+ id?: string+ supplierId: string+ supplierLocationId?: string | null+ userId?: string | null+ }Update: {- contactId?: string;- customFields?: Json | null;- id?: string;- supplierId?: string;- supplierLocationId?: string | null;- userId?: string | null;- };+ contactId?: string+ customFields?: Json | null+ id?: string+ supplierId?: string+ supplierLocationId?: string | null+ userId?: string | null+ }Relationships: [{- foreignKeyName: "supplierContact_contactId_fkey";- columns: ["contactId"];- isOneToOne: false;- referencedRelation: "contact";- referencedColumns: ["id"];+ foreignKeyName: "supplierContact_contactId_fkey"+ columns: ["contactId"]+ isOneToOne: false+ referencedRelation: "contact"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierContact_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierContact_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierContact_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierContact_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierContact_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierContact_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierContact_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "supplierContact_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierContact_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierContact_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierContact_supplierLocationId_fkey";- columns: ["supplierLocationId"];- isOneToOne: false;- referencedRelation: "supplierLocation";- referencedColumns: ["id"];+ foreignKeyName: "supplierContact_supplierLocationId_fkey"+ columns: ["supplierLocationId"]+ isOneToOne: false+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierContact_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplierContact_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierContact_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplierContact_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierContact_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplierContact_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierContact_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "supplierContact_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }supplierLedger: {Row: {- amount: number;- createdAt: string;- documentId: string | null;+ amount: number+ createdAt: string+ documentId: string | nulldocumentType:| Database["public"]["Enums"]["supplierLedgerDocumentType"]- | null;- entryNumber: number;- externalDocumentId: string | null;- id: string;- postingDate: string;- supplierId: string;- };+ | null+ entryNumber: number+ externalDocumentId: string | null+ id: string+ postingDate: string+ supplierId: string+ }Insert: {- amount: number;- createdAt?: string;- documentId?: string | null;+ amount: number+ createdAt?: string+ documentId?: string | nulldocumentType?:| Database["public"]["Enums"]["supplierLedgerDocumentType"]- | null;- entryNumber?: number;- externalDocumentId?: string | null;- id?: string;- postingDate?: string;- supplierId: string;- };+ | null+ entryNumber?: number+ externalDocumentId?: string | null+ id?: string+ postingDate?: string+ supplierId: string+ }Update: {- amount?: number;- createdAt?: string;- documentId?: string | null;+ amount?: number+ createdAt?: string+ documentId?: string | nulldocumentType?:| Database["public"]["Enums"]["supplierLedgerDocumentType"]- | null;- entryNumber?: number;- externalDocumentId?: string | null;- id?: string;- postingDate?: string;- supplierId?: string;- };+ | null+ entryNumber?: number+ externalDocumentId?: string | null+ id?: string+ postingDate?: string+ supplierId?: string+ }Relationships: [{- foreignKeyName: "supplierLedger_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierLedger_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierLedger_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierLedger_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierLedger_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierLedger_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierLedger_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "supplierLedger_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierLedger_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "supplierLedger_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]+ },+ ]+ }supplierLocation: {Row: {- addressId: string;- customFields: Json | null;- id: string;- supplierId: string;- };+ addressId: string+ customFields: Json | null+ id: string+ supplierId: string+ }Insert: {- addressId: string;- customFields?: Json | null;- id?: string;- supplierId: string;- };+ addressId: string+ customFields?: Json | null+ id?: string+ supplierId: string+ }Update: {- addressId?: string;- customFields?: Json | null;- id?: string;- supplierId?: string;- };+ addressId?: string+ customFields?: Json | null+ id?: string+ supplierId?: string+ }Relationships: [{- foreignKeyName: "supplierLocation_addressId_fkey";- columns: ["addressId"];- isOneToOne: false;- referencedRelation: "address";- referencedColumns: ["id"];+ foreignKeyName: "supplierLocation_addressId_fkey"+ columns: ["addressId"]+ isOneToOne: false+ referencedRelation: "address"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierLocation_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierLocation_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierLocation_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierLocation_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierLocation_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierLocation_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierLocation_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "supplierLocation_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierLocation_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "supplierLocation_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]+ },+ ]+ }supplierPayment: {Row: {- currencyCode: string | null;- customFields: Json | null;- invoiceSupplierContactId: string | null;- invoiceSupplierId: string | null;- invoiceSupplierLocationId: string | null;- paymentTermId: string | null;- supplierId: string;- updatedAt: string | null;- updatedBy: string | null;- };+ currencyCode: string | null+ customFields: Json | null+ invoiceSupplierContactId: string | null+ invoiceSupplierId: string | null+ invoiceSupplierLocationId: string | null+ paymentTermId: string | null+ supplierId: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- currencyCode?: string | null;- customFields?: Json | null;- invoiceSupplierContactId?: string | null;- invoiceSupplierId?: string | null;- invoiceSupplierLocationId?: string | null;- paymentTermId?: string | null;- supplierId: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ currencyCode?: string | null+ customFields?: Json | null+ invoiceSupplierContactId?: string | null+ invoiceSupplierId?: string | null+ invoiceSupplierLocationId?: string | null+ paymentTermId?: string | null+ supplierId: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- currencyCode?: string | null;- customFields?: Json | null;- invoiceSupplierContactId?: string | null;- invoiceSupplierId?: string | null;- invoiceSupplierLocationId?: string | null;- paymentTermId?: string | null;- supplierId?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ currencyCode?: string | null+ customFields?: Json | null+ invoiceSupplierContactId?: string | null+ invoiceSupplierId?: string | null+ invoiceSupplierLocationId?: string | null+ paymentTermId?: string | null+ supplierId?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "supplierPayment_invoiceSupplierContactId_fkey";- columns: ["invoiceSupplierContactId"];- isOneToOne: false;- referencedRelation: "supplierContact";- referencedColumns: ["id"];+ foreignKeyName: "supplierPayment_invoiceSupplierContactId_fkey"+ columns: ["invoiceSupplierContactId"]+ isOneToOne: false+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierPayment_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierPayment_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierPayment_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierPayment_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "supplierPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierPayment_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierPayment_invoiceSupplierLocationId_fkey";- columns: ["invoiceSupplierLocationId"];- isOneToOne: false;- referencedRelation: "supplierLocation";- referencedColumns: ["id"];+ foreignKeyName: "supplierPayment_invoiceSupplierLocationId_fkey"+ columns: ["invoiceSupplierLocationId"]+ isOneToOne: false+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierPayment_paymentTermId_fkey";- columns: ["paymentTermId"];- isOneToOne: false;- referencedRelation: "paymentTerm";- referencedColumns: ["id"];+ foreignKeyName: "supplierPayment_paymentTermId_fkey"+ columns: ["paymentTermId"]+ isOneToOne: false+ referencedRelation: "paymentTerm"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierPayment_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: true;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierPayment_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: true+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierPayment_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: true;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierPayment_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: true+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierPayment_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: true;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierPayment_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: true+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierPayment_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: true;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "supplierPayment_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: true+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierPayment_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: true;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierPayment_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: true+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierPayment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplierPayment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierPayment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplierPayment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierPayment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplierPayment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierPayment_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "supplierPayment_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }supplierShipping: {Row: {- customFields: Json | null;- shippingMethodId: string | null;- shippingSupplierContactId: string | null;- shippingSupplierId: string | null;- shippingSupplierLocationId: string | null;- shippingTermId: string | null;- supplierId: string;- updatedAt: string | null;- updatedBy: string | null;- };+ customFields: Json | null+ shippingMethodId: string | null+ shippingSupplierContactId: string | null+ shippingSupplierId: string | null+ shippingSupplierLocationId: string | null+ shippingTermId: string | null+ supplierId: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- customFields?: Json | null;- shippingMethodId?: string | null;- shippingSupplierContactId?: string | null;- shippingSupplierId?: string | null;- shippingSupplierLocationId?: string | null;- shippingTermId?: string | null;- supplierId: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ customFields?: Json | null+ shippingMethodId?: string | null+ shippingSupplierContactId?: string | null+ shippingSupplierId?: string | null+ shippingSupplierLocationId?: string | null+ shippingTermId?: string | null+ supplierId: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- customFields?: Json | null;- shippingMethodId?: string | null;- shippingSupplierContactId?: string | null;- shippingSupplierId?: string | null;- shippingSupplierLocationId?: string | null;- shippingTermId?: string | null;- supplierId?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ customFields?: Json | null+ shippingMethodId?: string | null+ shippingSupplierContactId?: string | null+ shippingSupplierId?: string | null+ shippingSupplierLocationId?: string | null+ shippingTermId?: string | null+ supplierId?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "supplierShipping_shippingMethodId_fkey";- columns: ["shippingMethodId"];- isOneToOne: false;- referencedRelation: "shippingMethod";- referencedColumns: ["id"];+ foreignKeyName: "supplierShipping_shippingMethodId_fkey"+ columns: ["shippingMethodId"]+ isOneToOne: false+ referencedRelation: "shippingMethod"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierShipping_shippingSupplierContactId_fkey";- columns: ["shippingSupplierContactId"];- isOneToOne: false;- referencedRelation: "supplierContact";- referencedColumns: ["id"];+ foreignKeyName: "supplierShipping_shippingSupplierContactId_fkey"+ columns: ["shippingSupplierContactId"]+ isOneToOne: false+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierShipping_shippingSupplierId_fkey";- columns: ["shippingSupplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierShipping_shippingSupplierId_fkey"+ columns: ["shippingSupplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierShipping_shippingSupplierId_fkey";- columns: ["shippingSupplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierShipping_shippingSupplierId_fkey"+ columns: ["shippingSupplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierShipping_shippingSupplierId_fkey";- columns: ["shippingSupplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierShipping_shippingSupplierId_fkey"+ columns: ["shippingSupplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierShipping_shippingSupplierId_fkey";- columns: ["shippingSupplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "supplierShipping_shippingSupplierId_fkey"+ columns: ["shippingSupplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierShipping_shippingSupplierId_fkey";- columns: ["shippingSupplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierShipping_shippingSupplierId_fkey"+ columns: ["shippingSupplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierShipping_shippingSupplierLocationId_fkey";- columns: ["shippingSupplierLocationId"];- isOneToOne: false;- referencedRelation: "supplierLocation";- referencedColumns: ["id"];+ foreignKeyName: "supplierShipping_shippingSupplierLocationId_fkey"+ columns: ["shippingSupplierLocationId"]+ isOneToOne: false+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierShipping_shippingTermId_fkey";- columns: ["shippingTermId"];- isOneToOne: false;- referencedRelation: "shippingTerm";- referencedColumns: ["id"];+ foreignKeyName: "supplierShipping_shippingTermId_fkey"+ columns: ["shippingTermId"]+ isOneToOne: false+ referencedRelation: "shippingTerm"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierShipping_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: true;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierShipping_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: true+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierShipping_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: true;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierShipping_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: true+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierShipping_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: true;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierShipping_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: true+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierShipping_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: true;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "supplierShipping_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: true+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierShipping_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: true;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierShipping_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: true+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierShipping_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplierShipping_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierShipping_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplierShipping_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierShipping_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplierShipping_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierShipping_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "supplierShipping_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }supplierStatus: {Row: {- createdAt: string;- createdBy: string;- customFields: Json | null;- id: string;- name: string;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string+ createdBy: string+ customFields: Json | null+ id: string+ name: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- customFields?: Json | null;- id?: string;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ id?: string+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- id?: string;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ id?: string+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "supplierStatus_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplierStatus_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierStatus_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplierStatus_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierStatus_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplierStatus_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierStatus_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "supplierStatus_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "supplierStatus_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplierStatus_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierStatus_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplierStatus_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierStatus_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplierStatus_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierStatus_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "supplierStatus_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }supplierType: {Row: {- createdAt: string;- createdBy: string;- customFields: Json | null;- id: string;- name: string;- protected: boolean;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string+ createdBy: string+ customFields: Json | null+ id: string+ name: string+ protected: boolean+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- customFields?: Json | null;- id?: string;- name: string;- protected?: boolean;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ id?: string+ name: string+ protected?: boolean+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- id?: string;- name?: string;- protected?: boolean;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ id?: string+ name?: string+ protected?: boolean+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "supplierType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplierType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplierType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplierType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "supplierType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "supplierType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplierType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplierType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplierType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "supplierType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }theme: {Row: {- id: boolean;- theme: string;- updatedAt: string;- updatedBy: string;- };+ id: boolean+ theme: string+ updatedAt: string+ updatedBy: string+ }Insert: {- id?: boolean;- theme: string;- updatedAt?: string;- updatedBy: string;- };+ id?: boolean+ theme: string+ updatedAt?: string+ updatedBy: string+ }Update: {- id?: boolean;- theme?: string;- updatedAt?: string;- updatedBy?: string;- };+ id?: boolean+ theme?: string+ updatedAt?: string+ updatedBy?: string+ }Relationships: [{- foreignKeyName: "theme_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "theme_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "theme_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "theme_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "theme_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "theme_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "theme_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "theme_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }unitOfMeasure: {Row: {- active: boolean;- code: string;- createdAt: string;- createdBy: string;- customFields: Json | null;- id: string;- name: string;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ code: string+ createdAt: string+ createdBy: string+ customFields: Json | null+ id: string+ name: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- code: string;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- id?: string;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ code: string+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ id?: string+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- code?: string;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- id?: string;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ code?: string+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ id?: string+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "unitOfMeasure_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "unitOfMeasure_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "unitOfMeasure_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "unitOfMeasure_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "unitOfMeasure_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "unitOfMeasure_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "unitOfMeasure_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "unitOfMeasure_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "unitOfMeasure_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "unitOfMeasure_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "unitOfMeasure_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "unitOfMeasure_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "unitOfMeasure_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "unitOfMeasure_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "unitOfMeasure_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "unitOfMeasure_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }user: {Row: {- about: string;- active: boolean | null;- avatarUrl: string | null;- createdAt: string;- email: string;- emailVerified: string | null;- firstName: string;- fullName: string | null;- id: string;- lastName: string;- updatedAt: string | null;- };+ about: string+ active: boolean | null+ avatarUrl: string | null+ createdAt: string+ email: string+ emailVerified: string | null+ firstName: string+ fullName: string | null+ id: string+ lastName: string+ updatedAt: string | null+ }Insert: {- about?: string;- active?: boolean | null;- avatarUrl?: string | null;- createdAt?: string;- email: string;- emailVerified?: string | null;- firstName: string;- fullName?: string | null;- id: string;- lastName: string;- updatedAt?: string | null;- };+ about?: string+ active?: boolean | null+ avatarUrl?: string | null+ createdAt?: string+ email: string+ emailVerified?: string | null+ firstName: string+ fullName?: string | null+ id: string+ lastName: string+ updatedAt?: string | null+ }Update: {- about?: string;- active?: boolean | null;- avatarUrl?: string | null;- createdAt?: string;- email?: string;- emailVerified?: string | null;- firstName?: string;- fullName?: string | null;- id?: string;- lastName?: string;- updatedAt?: string | null;- };- Relationships: [];- };+ about?: string+ active?: boolean | null+ avatarUrl?: string | null+ createdAt?: string+ email?: string+ emailVerified?: string | null+ firstName?: string+ fullName?: string | null+ id?: string+ lastName?: string+ updatedAt?: string | null+ }+ Relationships: []+ }userAttribute: {Row: {- active: boolean | null;- attributeDataTypeId: number;- canSelfManage: boolean | null;- createdAt: string;- createdBy: string;- id: string;- listOptions: string[] | null;- name: string;- sortOrder: number;- updatedAt: string | null;- updatedBy: string | null;- userAttributeCategoryId: string;- };+ active: boolean | null+ attributeDataTypeId: number+ canSelfManage: boolean | null+ createdAt: string+ createdBy: string+ id: string+ listOptions: string[] | null+ name: string+ sortOrder: number+ updatedAt: string | null+ updatedBy: string | null+ userAttributeCategoryId: string+ }Insert: {- active?: boolean | null;- attributeDataTypeId: number;- canSelfManage?: boolean | null;- createdAt?: string;- createdBy: string;- id?: string;- listOptions?: string[] | null;- name: string;- sortOrder?: number;- updatedAt?: string | null;- updatedBy?: string | null;- userAttributeCategoryId: string;- };+ active?: boolean | null+ attributeDataTypeId: number+ canSelfManage?: boolean | null+ createdAt?: string+ createdBy: string+ id?: string+ listOptions?: string[] | null+ name: string+ sortOrder?: number+ updatedAt?: string | null+ updatedBy?: string | null+ userAttributeCategoryId: string+ }Update: {- active?: boolean | null;- attributeDataTypeId?: number;- canSelfManage?: boolean | null;- createdAt?: string;- createdBy?: string;- id?: string;- listOptions?: string[] | null;- name?: string;- sortOrder?: number;- updatedAt?: string | null;- updatedBy?: string | null;- userAttributeCategoryId?: string;- };+ active?: boolean | null+ attributeDataTypeId?: number+ canSelfManage?: boolean | null+ createdAt?: string+ createdBy?: string+ id?: string+ listOptions?: string[] | null+ name?: string+ sortOrder?: number+ updatedAt?: string | null+ updatedBy?: string | null+ userAttributeCategoryId?: string+ }Relationships: [{- foreignKeyName: "userAttribute_attributeDataTypeId_fkey";- columns: ["attributeDataTypeId"];- isOneToOne: false;- referencedRelation: "attributeDataType";- referencedColumns: ["id"];+ foreignKeyName: "userAttribute_attributeDataTypeId_fkey"+ columns: ["attributeDataTypeId"]+ isOneToOne: false+ referencedRelation: "attributeDataType"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttribute_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "userAttribute_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttribute_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "userAttribute_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttribute_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttribute_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttribute_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "userAttribute_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "userAttribute_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "userAttribute_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttribute_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "userAttribute_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttribute_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttribute_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttribute_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "userAttribute_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "userAttribute_userAttributeCategoryId_fkey";- columns: ["userAttributeCategoryId"];- isOneToOne: false;- referencedRelation: "userAttributeCategory";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "userAttribute_userAttributeCategoryId_fkey"+ columns: ["userAttributeCategoryId"]+ isOneToOne: false+ referencedRelation: "userAttributeCategory"+ referencedColumns: ["id"]+ },+ ]+ }userAttributeCategory: {Row: {- active: boolean | null;- createdAt: string;- createdBy: string;- id: string;- name: string;- protected: boolean | null;- public: boolean | null;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean | null+ createdAt: string+ createdBy: string+ id: string+ name: string+ protected: boolean | null+ public: boolean | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean | null;- createdAt?: string;- createdBy: string;- id?: string;- name: string;- protected?: boolean | null;- public?: boolean | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean | null+ createdAt?: string+ createdBy: string+ id?: string+ name: string+ protected?: boolean | null+ public?: boolean | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean | null;- createdAt?: string;- createdBy?: string;- id?: string;- name?: string;- protected?: boolean | null;- public?: boolean | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean | null+ createdAt?: string+ createdBy?: string+ id?: string+ name?: string+ protected?: boolean | null+ public?: boolean | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "userAttributeCategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeCategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeCategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeCategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeCategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeCategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeCategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "userAttributeCategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "userAttributeCategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeCategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeCategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeCategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "userAttributeCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }userAttributeValue: {Row: {- createdAt: string;- createdBy: string;- id: string;- updatedAt: string | null;- updatedBy: string | null;- userAttributeId: string;- userId: string;- valueBoolean: boolean | null;- valueDate: string | null;- valueNumeric: number | null;- valueText: string | null;- valueUser: string | null;- };+ createdAt: string+ createdBy: string+ id: string+ updatedAt: string | null+ updatedBy: string | null+ userAttributeId: string+ userId: string+ valueBoolean: boolean | null+ valueDate: string | null+ valueNumeric: number | null+ valueText: string | null+ valueUser: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- id?: string;- updatedAt?: string | null;- updatedBy?: string | null;- userAttributeId: string;- userId: string;- valueBoolean?: boolean | null;- valueDate?: string | null;- valueNumeric?: number | null;- valueText?: string | null;- valueUser?: string | null;- };+ createdAt?: string+ createdBy: string+ id?: string+ updatedAt?: string | null+ updatedBy?: string | null+ userAttributeId: string+ userId: string+ valueBoolean?: boolean | null+ valueDate?: string | null+ valueNumeric?: number | null+ valueText?: string | null+ valueUser?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- id?: string;- updatedAt?: string | null;- updatedBy?: string | null;- userAttributeId?: string;- userId?: string;- valueBoolean?: boolean | null;- valueDate?: string | null;- valueNumeric?: number | null;- valueText?: string | null;- valueUser?: string | null;- };+ createdAt?: string+ createdBy?: string+ id?: string+ updatedAt?: string | null+ updatedBy?: string | null+ userAttributeId?: string+ userId?: string+ valueBoolean?: boolean | null+ valueDate?: string | null+ valueNumeric?: number | null+ valueText?: string | null+ valueUser?: string | null+ }Relationships: [{- foreignKeyName: "userAttributeValue_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "userAttributeValue_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "userAttributeValue_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "userAttributeValue_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "userAttributeValue_userAttributeId_fkey";- columns: ["userAttributeId"];- isOneToOne: false;- referencedRelation: "userAttribute";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_userAttributeId_fkey"+ columns: ["userAttributeId"]+ isOneToOne: false+ referencedRelation: "userAttribute"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "userAttributeValue_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "userAttributeValue_valueUser_fkey";- columns: ["valueUser"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_valueUser_fkey"+ columns: ["valueUser"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_valueUser_fkey";- columns: ["valueUser"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_valueUser_fkey"+ columns: ["valueUser"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_valueUser_fkey";- columns: ["valueUser"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_valueUser_fkey"+ columns: ["valueUser"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_valueUser_fkey";- columns: ["valueUser"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "userAttributeValue_valueUser_fkey"+ columns: ["valueUser"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }warehouse: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- id: string;- locationId: string;- name: string;- requiresBin: boolean;- requiresPick: boolean;- requiresPutAway: boolean;- requiresReceive: boolean;- requiresShipment: boolean;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ id: string+ locationId: string+ name: string+ requiresBin: boolean+ requiresPick: boolean+ requiresPutAway: boolean+ requiresReceive: boolean+ requiresShipment: boolean+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- id?: string;- locationId: string;- name: string;- requiresBin?: boolean;- requiresPick?: boolean;- requiresPutAway?: boolean;- requiresReceive?: boolean;- requiresShipment?: boolean;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ id?: string+ locationId: string+ name: string+ requiresBin?: boolean+ requiresPick?: boolean+ requiresPutAway?: boolean+ requiresReceive?: boolean+ requiresShipment?: boolean+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- id?: string;- locationId?: string;- name?: string;- requiresBin?: boolean;- requiresPick?: boolean;- requiresPutAway?: boolean;- requiresReceive?: boolean;- requiresShipment?: boolean;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ id?: string+ locationId?: string+ name?: string+ requiresBin?: boolean+ requiresPick?: boolean+ requiresPutAway?: boolean+ requiresReceive?: boolean+ requiresShipment?: boolean+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "warehouse_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "warehouse_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "warehouse_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "warehouse_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "warehouse_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "warehouse_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "warehouse_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "warehouse_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "warehouse_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "warehouse_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "warehouse_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "warehouse_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "warehouse_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "warehouse_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "warehouse_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "warehouse_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "warehouse_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "warehouse_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "warehouse_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "warehouse_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "warehouse_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "warehouse_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "warehouse_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "warehouse_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }workCell: {Row: {- active: boolean;- activeDate: string | null;- createdAt: string;- createdBy: string;- customFields: Json | null;- defaultStandardFactor: Database["public"]["Enums"]["factor"];- departmentId: string;- description: string | null;- id: string;- locationId: string | null;- name: string;- updatedAt: string | null;- updatedBy: string | null;- workCellTypeId: string;- };+ active: boolean+ activeDate: string | null+ createdAt: string+ createdBy: string+ customFields: Json | null+ defaultStandardFactor: Database["public"]["Enums"]["factor"]+ departmentId: string+ description: string | null+ id: string+ locationId: string | null+ name: string+ updatedAt: string | null+ updatedBy: string | null+ workCellTypeId: string+ }Insert: {- active?: boolean;- activeDate?: string | null;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- defaultStandardFactor?: Database["public"]["Enums"]["factor"];- departmentId: string;- description?: string | null;- id?: string;- locationId?: string | null;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- workCellTypeId: string;- };+ active?: boolean+ activeDate?: string | null+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ defaultStandardFactor?: Database["public"]["Enums"]["factor"]+ departmentId: string+ description?: string | null+ id?: string+ locationId?: string | null+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ workCellTypeId: string+ }Update: {- active?: boolean;- activeDate?: string | null;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- defaultStandardFactor?: Database["public"]["Enums"]["factor"];- departmentId?: string;- description?: string | null;- id?: string;- locationId?: string | null;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- workCellTypeId?: string;- };+ active?: boolean+ activeDate?: string | null+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ defaultStandardFactor?: Database["public"]["Enums"]["factor"]+ departmentId?: string+ description?: string | null+ id?: string+ locationId?: string | null+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ workCellTypeId?: string+ }Relationships: [{- foreignKeyName: "workCell_departmentId_fkey";- columns: ["departmentId"];- isOneToOne: false;- referencedRelation: "department";- referencedColumns: ["id"];+ foreignKeyName: "workCell_departmentId_fkey"+ columns: ["departmentId"]+ isOneToOne: false+ referencedRelation: "department"+ referencedColumns: ["id"]},{- foreignKeyName: "workCell_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "workCell_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "workCell_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "workCell_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "workCell_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "workCell_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "workCell_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "workCell_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "workCell_workCellTypeId_fkey";- columns: ["workCellTypeId"];- isOneToOne: false;- referencedRelation: "workCellType";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "workCell_workCellTypeId_fkey"+ columns: ["workCellTypeId"]+ isOneToOne: false+ referencedRelation: "workCellType"+ referencedColumns: ["id"]+ },+ ]+ }workCellType: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- customFields: Json | null;- defaultStandardFactor: Database["public"]["Enums"]["factor"];- description: string | null;- id: string;- laborRate: number;- name: string;- overheadRate: number;- quotingRate: number;- requiredAbility: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ customFields: Json | null+ defaultStandardFactor: Database["public"]["Enums"]["factor"]+ description: string | null+ id: string+ laborRate: number+ name: string+ overheadRate: number+ quotingRate: number+ requiredAbility: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- customFields?: Json | null;- defaultStandardFactor?: Database["public"]["Enums"]["factor"];- description?: string | null;- id?: string;- laborRate?: number;- name: string;- overheadRate?: number;- quotingRate?: number;- requiredAbility?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ customFields?: Json | null+ defaultStandardFactor?: Database["public"]["Enums"]["factor"]+ description?: string | null+ id?: string+ laborRate?: number+ name: string+ overheadRate?: number+ quotingRate?: number+ requiredAbility?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- defaultStandardFactor?: Database["public"]["Enums"]["factor"];- description?: string | null;- id?: string;- laborRate?: number;- name?: string;- overheadRate?: number;- quotingRate?: number;- requiredAbility?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ customFields?: Json | null+ defaultStandardFactor?: Database["public"]["Enums"]["factor"]+ description?: string | null+ id?: string+ laborRate?: number+ name?: string+ overheadRate?: number+ quotingRate?: number+ requiredAbility?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "workCellType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "workCellType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "workCellType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "workCellType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "workCellType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "workCellType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "workCellType_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "workCellType_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "workCellType_requiredAbility_fkey";- columns: ["requiredAbility"];- isOneToOne: false;- referencedRelation: "ability";- referencedColumns: ["id"];+ foreignKeyName: "workCellType_requiredAbility_fkey"+ columns: ["requiredAbility"]+ isOneToOne: false+ referencedRelation: "ability"+ referencedColumns: ["id"]},{- foreignKeyName: "workCellType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "workCellType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "workCellType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "workCellType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "workCellType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "workCellType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "workCellType_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };- };+ foreignKeyName: "workCellType_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }+ }Views: {accountCategories: {Row: {- category: string | null;- class: Database["public"]["Enums"]["glAccountClass"] | null;- createdAt: string | null;- createdBy: string | null;- customFields: Json | null;- id: string | null;- incomeBalance: Database["public"]["Enums"]["glIncomeBalance"] | null;- subCategoriesCount: number | null;- updatedAt: string | null;- updatedBy: string | null;- };+ category: string | null+ class: Database["public"]["Enums"]["glAccountClass"] | null+ createdAt: string | null+ createdBy: string | null+ customFields: Json | null+ id: string | null+ incomeBalance: Database["public"]["Enums"]["glIncomeBalance"] | null+ subCategoriesCount: number | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- category?: string | null;- class?: Database["public"]["Enums"]["glAccountClass"] | null;- createdAt?: string | null;- createdBy?: string | null;- customFields?: Json | null;- id?: string | null;- incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null;- subCategoriesCount?: never;- updatedAt?: string | null;- updatedBy?: string | null;- };+ category?: string | null+ class?: Database["public"]["Enums"]["glAccountClass"] | null+ createdAt?: string | null+ createdBy?: string | null+ customFields?: Json | null+ id?: string | null+ incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null+ subCategoriesCount?: never+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- category?: string | null;- class?: Database["public"]["Enums"]["glAccountClass"] | null;- createdAt?: string | null;- createdBy?: string | null;- customFields?: Json | null;- id?: string | null;- incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null;- subCategoriesCount?: never;- updatedAt?: string | null;- updatedBy?: string | null;- };+ category?: string | null+ class?: Database["public"]["Enums"]["glAccountClass"] | null+ createdAt?: string | null+ createdBy?: string | null+ customFields?: Json | null+ id?: string | null+ incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null+ subCategoriesCount?: never+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "accountCategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountCategory_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "accountCategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "accountCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }accounts: {Row: {- accountCategory: string | null;- accountCategoryId: string | null;- accountSubCategory: string | null;- accountSubcategoryId: string | null;- active: boolean | null;- class: Database["public"]["Enums"]["glAccountClass"] | null;+ accountCategory: string | null+ accountCategoryId: string | null+ accountSubCategory: string | null+ accountSubcategoryId: string | null+ active: boolean | null+ class: Database["public"]["Enums"]["glAccountClass"] | nullconsolidatedRate:| Database["public"]["Enums"]["glConsolidatedRate"]- | null;- createdAt: string | null;- createdBy: string | null;- customFields: Json | null;- directPosting: boolean | null;- id: string | null;- incomeBalance: Database["public"]["Enums"]["glIncomeBalance"] | null;- name: string | null;- number: string | null;- type: Database["public"]["Enums"]["glAccountType"] | null;- updatedAt: string | null;- updatedBy: string | null;- };+ | null+ createdAt: string | null+ createdBy: string | null+ customFields: Json | null+ directPosting: boolean | null+ id: string | null+ incomeBalance: Database["public"]["Enums"]["glIncomeBalance"] | null+ name: string | null+ number: string | null+ type: Database["public"]["Enums"]["glAccountType"] | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountCategory?: never;- accountCategoryId?: string | null;- accountSubCategory?: never;- accountSubcategoryId?: string | null;- active?: boolean | null;- class?: Database["public"]["Enums"]["glAccountClass"] | null;+ accountCategory?: never+ accountCategoryId?: string | null+ accountSubCategory?: never+ accountSubcategoryId?: string | null+ active?: boolean | null+ class?: Database["public"]["Enums"]["glAccountClass"] | nullconsolidatedRate?:| Database["public"]["Enums"]["glConsolidatedRate"]- | null;- createdAt?: string | null;- createdBy?: string | null;- customFields?: Json | null;- directPosting?: boolean | null;- id?: string | null;- incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null;- name?: string | null;- number?: string | null;- type?: Database["public"]["Enums"]["glAccountType"] | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ | null+ createdAt?: string | null+ createdBy?: string | null+ customFields?: Json | null+ directPosting?: boolean | null+ id?: string | null+ incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null+ name?: string | null+ number?: string | null+ type?: Database["public"]["Enums"]["glAccountType"] | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountCategory?: never;- accountCategoryId?: string | null;- accountSubCategory?: never;- accountSubcategoryId?: string | null;- active?: boolean | null;- class?: Database["public"]["Enums"]["glAccountClass"] | null;+ accountCategory?: never+ accountCategoryId?: string | null+ accountSubCategory?: never+ accountSubcategoryId?: string | null+ active?: boolean | null+ class?: Database["public"]["Enums"]["glAccountClass"] | nullconsolidatedRate?:| Database["public"]["Enums"]["glConsolidatedRate"]- | null;- createdAt?: string | null;- createdBy?: string | null;- customFields?: Json | null;- directPosting?: boolean | null;- id?: string | null;- incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null;- name?: string | null;- number?: string | null;- type?: Database["public"]["Enums"]["glAccountType"] | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ | null+ createdAt?: string | null+ createdBy?: string | null+ customFields?: Json | null+ directPosting?: boolean | null+ id?: string | null+ incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null+ name?: string | null+ number?: string | null+ type?: Database["public"]["Enums"]["glAccountType"] | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "account_accountCategoryId_fkey";- columns: ["accountCategoryId"];- isOneToOne: false;- referencedRelation: "accountCategory";- referencedColumns: ["id"];+ foreignKeyName: "account_accountCategoryId_fkey"+ columns: ["accountCategoryId"]+ isOneToOne: false+ referencedRelation: "accountCategory"+ referencedColumns: ["id"]},{- foreignKeyName: "account_accountCategoryId_fkey";- columns: ["accountCategoryId"];- isOneToOne: false;- referencedRelation: "accountCategories";- referencedColumns: ["id"];+ foreignKeyName: "account_accountCategoryId_fkey"+ columns: ["accountCategoryId"]+ isOneToOne: false+ referencedRelation: "accountCategories"+ referencedColumns: ["id"]},{- foreignKeyName: "account_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "account_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "account_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "account_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "account_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "account_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "account_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "account_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "account_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "account_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "account_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "account_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "account_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "account_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "account_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "account_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }contractors: {Row: {- abilityIds: string[] | null;- active: boolean | null;- customFields: Json | null;- email: string | null;- firstName: string | null;- hoursPerWeek: number | null;- lastName: string | null;- supplierContactId: string | null;- supplierId: string | null;- supplierName: string | null;- };+ abilityIds: string[] | null+ active: boolean | null+ customFields: Json | null+ email: string | null+ firstName: string | null+ hoursPerWeek: number | null+ lastName: string | null+ supplierContactId: string | null+ supplierId: string | null+ supplierName: string | null+ }Relationships: [{- foreignKeyName: "contractor_id_fkey";- columns: ["supplierContactId"];- isOneToOne: true;- referencedRelation: "supplierContact";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "contractor_id_fkey"+ columns: ["supplierContactId"]+ isOneToOne: true+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]+ },+ ]+ }customers: {Row: {- accountManagerId: string | null;- assignee: string | null;- createdAt: string | null;- createdBy: string | null;- customerStatusId: string | null;- customerTypeId: string | null;- customFields: Json | null;- id: string | null;- logo: string | null;- name: string | null;- orderCount: number | null;- status: string | null;- taxId: string | null;- type: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ accountManagerId: string | null+ assignee: string | null+ createdAt: string | null+ createdBy: string | null+ customerStatusId: string | null+ customerTypeId: string | null+ customFields: Json | null+ id: string | null+ logo: string | null+ name: string | null+ orderCount: number | null+ status: string | null+ taxId: string | null+ type: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Relationships: [{- foreignKeyName: "customer_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customer_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customer_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customer_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customer_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "customer_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customer_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customer_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customer_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customer_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "customer_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customer_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customer_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customer_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customer_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "customer_customerStatusId_fkey";- columns: ["customerStatusId"];- isOneToOne: false;- referencedRelation: "customerStatus";- referencedColumns: ["id"];+ foreignKeyName: "customer_customerStatusId_fkey"+ columns: ["customerStatusId"]+ isOneToOne: false+ referencedRelation: "customerStatus"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_customerTypeId_fkey";- columns: ["customerTypeId"];- isOneToOne: false;- referencedRelation: "customerType";- referencedColumns: ["id"];+ foreignKeyName: "customer_customerTypeId_fkey"+ columns: ["customerTypeId"]+ isOneToOne: false+ referencedRelation: "customerType"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customer_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "customer_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "customer_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "customer_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }customFieldTables: {Row: {- fields: Json | null;- id: string | null;- module: Database["public"]["Enums"]["module"] | null;- name: string | null;- table: string | null;- };- Relationships: [];- };+ fields: Json | null+ id: string | null+ module: Database["public"]["Enums"]["module"] | null+ name: string | null+ table: string | null+ }+ Relationships: []+ }documentExtensions: {Row: {- extension: string | null;- };- Relationships: [];- };+ extension: string | null+ }+ Relationships: []+ }documentLabels: {Row: {- label: string | null;- userId: string | null;- };+ label: string | null+ userId: string | null+ }Relationships: [{- foreignKeyName: "documentLabels_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "documentLabels_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "documentLabels_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "documentLabels_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "documentLabels_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "documentLabels_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "documentLabels_userId_fkey";- columns: ["userId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "documentLabels_userId_fkey"+ columns: ["userId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }documents: {Row: {- active: boolean | null;- createdAt: string | null;- createdBy: string | null;- description: string | null;- extension: string | null;- favorite: boolean | null;- id: string | null;- labels: string[] | null;- lastActivityAt: string | null;- name: string | null;- path: string | null;- readGroups: string[] | null;- size: number | null;+ active: boolean | null+ createdAt: string | null+ createdBy: string | null+ description: string | null+ extension: string | null+ favorite: boolean | null+ id: string | null+ labels: string[] | null+ lastActivityAt: string | null+ name: string | null+ path: string | null+ readGroups: string[] | null+ size: number | nullsourceDocument:| Database["public"]["Enums"]["documentSourceType"]- | null;- sourceDocumentId: string | null;- type: Database["public"]["Enums"]["documentType"] | null;- updatedAt: string | null;- updatedBy: string | null;- writeGroups: string[] | null;- };+ | null+ sourceDocumentId: string | null+ type: Database["public"]["Enums"]["documentType"] | null+ updatedAt: string | null+ updatedBy: string | null+ writeGroups: string[] | null+ }Relationships: [{- foreignKeyName: "document_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "document_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "document_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "document_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "document_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "document_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "document_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "document_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "document_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "document_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "document_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "document_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "document_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "document_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "document_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "document_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }employees: {Row: {- avatarUrl: string | null;- id: string | null;- name: string | null;- };- Relationships: [];- };+ avatarUrl: string | null+ id: string | null+ name: string | null+ }+ Relationships: []+ }employeeSummary: {Row: {- avatarUrl: string | null;- departmentName: string | null;- id: string | null;- locationName: string | null;- managerName: string | null;- name: string | null;- startDate: string | null;- title: string | null;- };- Relationships: [];- };+ avatarUrl: string | null+ departmentName: string | null+ id: string | null+ locationName: string | null+ managerName: string | null+ name: string | null+ startDate: string | null+ title: string | null+ }+ Relationships: []+ }groupMembers: {Row: {- groupId: string | null;- id: number | null;- isCustomerOrgGroup: boolean | null;- isCustomerTypeGroup: boolean | null;- isEmployeeTypeGroup: boolean | null;- isIdentityGroup: boolean | null;- isSupplierOrgGroup: boolean | null;- isSupplierTypeGroup: boolean | null;- memberGroupId: string | null;- memberUserId: string | null;- name: string | null;- user: Json | null;- };+ groupId: string | null+ id: number | null+ isCustomerOrgGroup: boolean | null+ isCustomerTypeGroup: boolean | null+ isEmployeeTypeGroup: boolean | null+ isIdentityGroup: boolean | null+ isSupplierOrgGroup: boolean | null+ isSupplierTypeGroup: boolean | null+ memberGroupId: string | null+ memberUserId: string | null+ name: string | null+ user: Json | null+ }Relationships: [{- foreignKeyName: "membership_groupId_fkey";- columns: ["groupId"];- isOneToOne: false;- referencedRelation: "group";- referencedColumns: ["id"];+ foreignKeyName: "membership_groupId_fkey"+ columns: ["groupId"]+ isOneToOne: false+ referencedRelation: "group"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberGroupId_fkey";- columns: ["memberGroupId"];- isOneToOne: false;- referencedRelation: "group";- referencedColumns: ["id"];+ foreignKeyName: "membership_memberGroupId_fkey"+ columns: ["memberGroupId"]+ isOneToOne: false+ referencedRelation: "group"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberUserId_fkey";- columns: ["memberUserId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "membership_memberUserId_fkey"+ columns: ["memberUserId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberUserId_fkey";- columns: ["memberUserId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "membership_memberUserId_fkey"+ columns: ["memberUserId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberUserId_fkey";- columns: ["memberUserId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "membership_memberUserId_fkey"+ columns: ["memberUserId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberUserId_fkey";- columns: ["memberUserId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "membership_memberUserId_fkey"+ columns: ["memberUserId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }groups: {Row: {- id: string | null;- isCustomerOrgGroup: boolean | null;- isCustomerTypeGroup: boolean | null;- isEmployeeTypeGroup: boolean | null;- isSupplierOrgGroup: boolean | null;- isSupplierTypeGroup: boolean | null;- name: string | null;- parentId: string | null;- users: Json | null;- };- Relationships: [];- };+ id: string | null+ isCustomerOrgGroup: boolean | null+ isCustomerTypeGroup: boolean | null+ isEmployeeTypeGroup: boolean | null+ isSupplierOrgGroup: boolean | null+ isSupplierTypeGroup: boolean | null+ name: string | null+ parentId: string | null+ users: Json | null+ }+ Relationships: []+ }groups_recursive: {Row: {- groupId: string | null;- isCustomerOrgGroup: boolean | null;- isCustomerTypeGroup: boolean | null;- isEmployeeTypeGroup: boolean | null;- isIdentityGroup: boolean | null;- isSupplierOrgGroup: boolean | null;- isSupplierTypeGroup: boolean | null;- name: string | null;- parentId: string | null;- user: Json | null;- };- Relationships: [];- };+ groupId: string | null+ isCustomerOrgGroup: boolean | null+ isCustomerTypeGroup: boolean | null+ isEmployeeTypeGroup: boolean | null+ isIdentityGroup: boolean | null+ isSupplierOrgGroup: boolean | null+ isSupplierTypeGroup: boolean | null+ name: string | null+ parentId: string | null+ user: Json | null+ }+ Relationships: []+ }holidayYears: {Row: {- year: number | null;- };- Relationships: [];- };+ year: number | null+ }+ Relationships: []+ }partners: {Row: {- abilityId: string | null;- abilityName: string | null;- active: boolean | null;- city: string | null;- createdAt: string | null;- createdBy: string | null;- customFields: Json | null;- hoursPerWeek: number | null;- id: string | null;- state: string | null;- supplierId: string | null;- supplierLocationId: string | null;- supplierName: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ abilityId: string | null+ abilityName: string | null+ active: boolean | null+ city: string | null+ createdAt: string | null+ createdBy: string | null+ customFields: Json | null+ hoursPerWeek: number | null+ id: string | null+ state: string | null+ supplierId: string | null+ supplierLocationId: string | null+ supplierName: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Relationships: [{- foreignKeyName: "partner_abilityId_fkey";- columns: ["abilityId"];- isOneToOne: false;- referencedRelation: "ability";- referencedColumns: ["id"];+ foreignKeyName: "partner_abilityId_fkey"+ columns: ["abilityId"]+ isOneToOne: false+ referencedRelation: "ability"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partner_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partner_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partner_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partner_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partner_id_fkey";- columns: ["id"];- isOneToOne: false;- referencedRelation: "supplierLocation";- referencedColumns: ["id"];+ foreignKeyName: "partner_id_fkey"+ columns: ["id"]+ isOneToOne: false+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_id_fkey";- columns: ["supplierLocationId"];- isOneToOne: false;- referencedRelation: "supplierLocation";- referencedColumns: ["id"];+ foreignKeyName: "partner_id_fkey"+ columns: ["supplierLocationId"]+ isOneToOne: false+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partner_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "partner_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "partner_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "partner_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }partQuantities: {Row: {- locationId: string | null;- partId: string | null;- quantityAvailable: number | null;- quantityOnHand: number | null;- quantityOnProdOrder: number | null;- quantityOnPurchaseOrder: number | null;- quantityOnSalesOrder: number | null;- };- Relationships: [];- };+ locationId: string | null+ partId: string | null+ quantityAvailable: number | null+ quantityOnHand: number | null+ quantityOnProdOrder: number | null+ quantityOnPurchaseOrder: number | null+ quantityOnSalesOrder: number | null+ }+ Relationships: []+ }parts: {Row: {- active: boolean | null;- approved: boolean | null;- approvedBy: string | null;- assignee: string | null;- blocked: boolean | null;- createdAt: string | null;- createdBy: string | null;- customFields: Json | null;- description: string | null;- fromDate: string | null;- id: string | null;- manufacturerPartNumber: string | null;- name: string | null;- partGroup: string | null;- partGroupId: string | null;- partType: Database["public"]["Enums"]["partType"] | null;+ active: boolean | null+ approved: boolean | null+ approvedBy: string | null+ assignee: string | null+ blocked: boolean | null+ createdAt: string | null+ createdBy: string | null+ customFields: Json | null+ description: string | null+ fromDate: string | null+ id: string | null+ manufacturerPartNumber: string | null+ name: string | null+ partGroup: string | null+ partGroupId: string | null+ partType: Database["public"]["Enums"]["partType"] | nullreplenishmentSystem:| Database["public"]["Enums"]["partReplenishmentSystem"]- | null;- supplierIds: string[] | null;- toDate: string | null;- unitOfMeasureCode: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ | null+ supplierIds: string[] | null+ toDate: string | null+ unitOfMeasureCode: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Relationships: [{- foreignKeyName: "part_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "part_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "part_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "part_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "part_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "part_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "part_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "part_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "part_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "part_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "part_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "part_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "part_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "part_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "part_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "part_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "part_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "part_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "part_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "part_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "part_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "part_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "part_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "part_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "part_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "partGroup";- referencedColumns: ["id"];+ foreignKeyName: "part_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "partGroup"+ referencedColumns: ["id"]},{- foreignKeyName: "part_unitOfMeasureCode_fkey";- columns: ["unitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "part_unitOfMeasureCode_fkey"+ columns: ["unitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "part_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "part_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "part_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "part_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "part_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "part_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "part_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "part_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }purchaseInvoices: {Row: {- assignee: string | null;- balance: number | null;- createdAt: string | null;- createdBy: string | null;- currencyCode: string | null;- customFields: Json | null;- dateDue: string | null;- dateIssued: string | null;- datePaid: string | null;- exchangeRate: number | null;- id: string | null;- invoiceId: string | null;- invoiceSupplierId: string | null;- paymentTermId: string | null;- paymentTermName: string | null;- postingDate: string | null;- status: Database["public"]["Enums"]["purchaseInvoiceStatus"] | null;- subtotal: number | null;- supplierId: string | null;- supplierReference: string | null;- totalAmount: number | null;- totalDiscount: number | null;- totalTax: number | null;- updatedAt: string | null;- updatedBy: string | null;- };+ assignee: string | null+ balance: number | null+ createdAt: string | null+ createdBy: string | null+ currencyCode: string | null+ customFields: Json | null+ dateDue: string | null+ dateIssued: string | null+ datePaid: string | null+ exchangeRate: number | null+ id: string | null+ invoiceId: string | null+ invoiceSupplierId: string | null+ paymentTermId: string | null+ paymentTermName: string | null+ postingDate: string | null+ status: Database["public"]["Enums"]["purchaseInvoiceStatus"] | null+ subtotal: number | null+ supplierId: string | null+ supplierReference: string | null+ totalAmount: number | null+ totalDiscount: number | null+ totalTax: number | null+ updatedAt: string | null+ updatedBy: string | null+ }Relationships: [{- foreignKeyName: "purchaseInvoice_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseInvoice_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseInvoice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseInvoice_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseInvoice_currencyCode_fkey";- columns: ["currencyCode"];- isOneToOne: false;- referencedRelation: "currency";- referencedColumns: ["code"];+ foreignKeyName: "purchaseInvoice_currencyCode_fkey"+ columns: ["currencyCode"]+ isOneToOne: false+ referencedRelation: "currency"+ referencedColumns: ["code"]},{- foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_paymentTermId_fkey";- columns: ["paymentTermId"];- isOneToOne: false;- referencedRelation: "paymentTerm";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_paymentTermId_fkey"+ columns: ["paymentTermId"]+ isOneToOne: false+ referencedRelation: "paymentTerm"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "purchaseInvoice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }purchaseOrderLines: {Row: {- accountNumber: string | null;- assetId: string | null;- conversionFactor: number | null;- createdAt: string | null;- createdBy: string | null;- customFields: Json | null;- description: string | null;- id: string | null;- inventoryUnitOfMeasureCode: string | null;- invoicedComplete: boolean | null;- locationId: string | null;- partDescription: string | null;- partId: string | null;- partName: string | null;- purchaseOrderId: string | null;+ accountNumber: string | null+ assetId: string | null+ conversionFactor: number | null+ createdAt: string | null+ createdBy: string | null+ customFields: Json | null+ description: string | null+ id: string | null+ inventoryUnitOfMeasureCode: string | null+ invoicedComplete: boolean | null+ locationId: string | null+ partDescription: string | null+ partId: string | null+ partName: string | null+ purchaseOrderId: string | nullpurchaseOrderLineType:| Database["public"]["Enums"]["purchaseOrderLineType"]- | null;- purchaseQuantity: number | null;- purchaseUnitOfMeasureCode: string | null;- quantityInvoiced: number | null;- quantityReceived: number | null;- quantityToInvoice: number | null;- quantityToReceive: number | null;- receivedComplete: boolean | null;- requiresInspection: boolean | null;- serviceDescription: string | null;- serviceId: string | null;- serviceName: string | null;- setupPrice: number | null;- shelfId: string | null;- supplierId: string | null;- supplierPartId: string | null;- supplierServiceId: string | null;- unitPrice: number | null;- updatedAt: string | null;- updatedBy: string | null;- };+ | null+ purchaseQuantity: number | null+ purchaseUnitOfMeasureCode: string | null+ quantityInvoiced: number | null+ quantityReceived: number | null+ quantityToInvoice: number | null+ quantityToReceive: number | null+ receivedComplete: boolean | null+ requiresInspection: boolean | null+ serviceDescription: string | null+ serviceId: string | null+ serviceName: string | null+ setupPrice: number | null+ shelfId: string | null+ supplierId: string | null+ supplierPartId: string | null+ supplierServiceId: string | null+ unitPrice: number | null+ updatedAt: string | null+ updatedBy: string | null+ }Relationships: [{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_accountNumber_fkey";- columns: ["accountNumber"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "purchaseOrderLine_accountNumber_fkey"+ columns: ["accountNumber"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "purchaseOrderLine_accountNumber_fkey";- columns: ["accountNumber"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "purchaseOrderLine_accountNumber_fkey"+ columns: ["accountNumber"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "purchaseOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseOrderLine_inventoryUnitOfMeasureCode_fkey";- columns: ["inventoryUnitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "purchaseOrderLine_inventoryUnitOfMeasureCode_fkey"+ columns: ["inventoryUnitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "purchaseOrderLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "purchaseOrderLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "purchaseOrderLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrder";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrderLocations";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderLocations"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_purchaseUnitOfMeasureCode_fkey";- columns: ["purchaseUnitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "purchaseOrderLine_purchaseUnitOfMeasureCode_fkey"+ columns: ["purchaseUnitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "purchaseOrderLine_serviceId_fkey";- columns: ["serviceId"];- isOneToOne: false;- referencedRelation: "service";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_serviceId_fkey"+ columns: ["serviceId"]+ isOneToOne: false+ referencedRelation: "service"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_serviceId_fkey";- columns: ["serviceId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_serviceId_fkey"+ columns: ["serviceId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_shelfId_fkey";- columns: ["shelfId", "locationId"];- isOneToOne: false;- referencedRelation: "shelf";- referencedColumns: ["id", "locationId"];+ foreignKeyName: "purchaseOrderLine_shelfId_fkey"+ columns: ["shelfId", "locationId"]+ isOneToOne: false+ referencedRelation: "shelf"+ referencedColumns: ["id", "locationId"]},{- foreignKeyName: "purchaseOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "purchaseOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }purchaseOrderLocations: {Row: {- customerAddressLine1: string | null;- customerAddressLine2: string | null;- customerCity: string | null;- customerCountryCode: number | null;- customerName: string | null;- customerPostalCode: string | null;- customerState: string | null;- deliveryAddressLine1: string | null;- deliveryAddressLine2: string | null;- deliveryCity: string | null;- deliveryCountryCode: string | null;- deliveryName: string | null;- deliveryPostalCode: string | null;- deliveryState: string | null;- dropShipment: boolean | null;- id: string | null;- supplierAddressLine1: string | null;- supplierAddressLine2: string | null;- supplierCity: string | null;- supplierCountryCode: number | null;- supplierName: string | null;- supplierPostalCode: string | null;- supplierState: string | null;- };+ customerAddressLine1: string | null+ customerAddressLine2: string | null+ customerCity: string | null+ customerCountryCode: number | null+ customerName: string | null+ customerPostalCode: string | null+ customerState: string | null+ deliveryAddressLine1: string | null+ deliveryAddressLine2: string | null+ deliveryCity: string | null+ deliveryCountryCode: string | null+ deliveryName: string | null+ deliveryPostalCode: string | null+ deliveryState: string | null+ dropShipment: boolean | null+ id: string | null+ supplierAddressLine1: string | null+ supplierAddressLine2: string | null+ supplierCity: string | null+ supplierCountryCode: number | null+ supplierName: string | null+ supplierPostalCode: string | null+ supplierState: string | null+ }Relationships: [{- foreignKeyName: "address_countryCode_fkey";- columns: ["supplierCountryCode"];- isOneToOne: false;- referencedRelation: "country";- referencedColumns: ["id"];- },- {- foreignKeyName: "address_countryCode_fkey";- columns: ["customerCountryCode"];- isOneToOne: false;- referencedRelation: "country";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "address_countryCode_fkey"+ columns: ["supplierCountryCode"]+ isOneToOne: false+ referencedRelation: "country"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "address_countryCode_fkey"+ columns: ["customerCountryCode"]+ isOneToOne: false+ referencedRelation: "country"+ referencedColumns: ["id"]+ },+ ]+ }purchaseOrders: {Row: {- assignee: string | null;- closedAt: string | null;- closedBy: string | null;- createdAt: string | null;- createdBy: string | null;- customFields: Json | null;- dropShipment: boolean | null;- favorite: boolean | null;- id: string | null;- locationId: string | null;- locationName: string | null;- notes: string | null;- orderDate: string | null;- paymentTermName: string | null;- purchaseOrderId: string | null;- receiptPromisedDate: string | null;- receiptRequestedDate: string | null;- revisionId: number | null;- shippingMethodName: string | null;- shippingTermName: string | null;- status: Database["public"]["Enums"]["purchaseOrderStatus"] | null;- supplierContactId: string | null;- supplierId: string | null;- supplierLocationId: string | null;- supplierReference: string | null;- type: Database["public"]["Enums"]["purchaseOrderType"] | null;- updatedAt: string | null;- updatedBy: string | null;- };+ assignee: string | null+ closedAt: string | null+ closedBy: string | null+ createdAt: string | null+ createdBy: string | null+ customFields: Json | null+ dropShipment: boolean | null+ favorite: boolean | null+ id: string | null+ locationId: string | null+ locationName: string | null+ notes: string | null+ orderDate: string | null+ paymentTermName: string | null+ purchaseOrderId: string | null+ receiptPromisedDate: string | null+ receiptRequestedDate: string | null+ revisionId: number | null+ shippingMethodName: string | null+ shippingTermName: string | null+ status: Database["public"]["Enums"]["purchaseOrderStatus"] | null+ supplierContactId: string | null+ supplierId: string | null+ supplierLocationId: string | null+ supplierReference: string | null+ type: Database["public"]["Enums"]["purchaseOrderType"] | null+ updatedAt: string | null+ updatedBy: string | null+ }Relationships: [{- foreignKeyName: "purchaseOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseOrder_supplierContactId_fkey";- columns: ["supplierContactId"];- isOneToOne: false;- referencedRelation: "supplierContact";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierContactId_fkey"+ columns: ["supplierContactId"]+ isOneToOne: false+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierLocationId_fkey";- columns: ["supplierLocationId"];- isOneToOne: false;- referencedRelation: "supplierLocation";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierLocationId_fkey"+ columns: ["supplierLocationId"]+ isOneToOne: false+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "purchaseOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }purchaseOrderSuppliers: {Row: {- id: string | null;- name: string | null;- };- Relationships: [];- };+ id: string | null+ name: string | null+ }+ Relationships: []+ }quoteCustomerDetails: {Row: {- customerAddressLine1: string | null;- customerAddressLine2: string | null;- customerCity: string | null;- customerCountryCode: number | null;- customerName: string | null;- customerPostalCode: string | null;- customerState: string | null;- quoteId: string | null;- };+ customerAddressLine1: string | null+ customerAddressLine2: string | null+ customerCity: string | null+ customerCountryCode: number | null+ customerName: string | null+ customerPostalCode: string | null+ customerState: string | null+ quoteId: string | null+ }Relationships: [{- foreignKeyName: "address_countryCode_fkey";- columns: ["customerCountryCode"];- isOneToOne: false;- referencedRelation: "country";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "address_countryCode_fkey"+ columns: ["customerCountryCode"]+ isOneToOne: false+ referencedRelation: "country"+ referencedColumns: ["id"]+ },+ ]+ }quoteLines: {Row: {- createdBy: string | null;- customerPartId: string | null;- customerPartRevision: string | null;- customFields: Json | null;- description: string | null;- id: string | null;- partId: string | null;- pricingDiscountPercent: number | null;- pricingExtendedPrice: number | null;- pricingLeadTime: number | null;- pricingMarkupPercent: number | null;- pricingQuantity: number | null;- pricingUnitCost: number | null;- quoteId: string | null;- quoteRevisionId: number | null;- replenishmentSystem: string | null;- status: Database["public"]["Enums"]["quoteLineStatus"] | null;- unitOfMeasureCode: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ createdBy: string | null+ customerPartId: string | null+ customerPartRevision: string | null+ customFields: Json | null+ description: string | null+ id: string | null+ partId: string | null+ pricingDiscountPercent: number | null+ pricingExtendedPrice: number | null+ pricingLeadTime: number | null+ pricingMarkupPercent: number | null+ pricingQuantity: number | null+ pricingUnitCost: number | null+ quoteId: string | null+ quoteRevisionId: number | null+ replenishmentSystem: string | null+ status: Database["public"]["Enums"]["quoteLineStatus"] | null+ unitOfMeasureCode: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Relationships: [{- foreignKeyName: "quoteLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "quoteLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "quoteLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "quoteLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "quoteLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quote";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quote"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quoteCustomerDetails";- referencedColumns: ["quoteId"];+ foreignKeyName: "quoteLine_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quoteCustomerDetails"+ referencedColumns: ["quoteId"]},{- foreignKeyName: "quoteLine_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quotes";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quotes"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "quoteLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }quotes: {Row: {- assignee: string | null;- createdAt: string | null;- createdBy: string | null;- customerContactId: string | null;- customerId: string | null;- customerLocationId: string | null;- customerReference: string | null;- customFields: Json | null;- expirationDate: string | null;- favorite: boolean | null;- id: string | null;- locationId: string | null;- locationName: string | null;- name: string | null;- notes: string | null;- partIds: string[] | null;- quoteDate: string | null;- quoteId: string | null;- revisionId: number | null;- status: Database["public"]["Enums"]["quoteStatus"] | null;- updatedAt: string | null;- updatedBy: string | null;- };+ assignee: string | null+ createdAt: string | null+ createdBy: string | null+ customerContactId: string | null+ customerId: string | null+ customerLocationId: string | null+ customerReference: string | null+ customFields: Json | null+ expirationDate: string | null+ favorite: boolean | null+ id: string | null+ locationId: string | null+ locationName: string | null+ name: string | null+ notes: string | null+ partIds: string[] | null+ quoteDate: string | null+ quoteId: string | null+ revisionId: number | null+ status: Database["public"]["Enums"]["quoteStatus"] | null+ updatedAt: string | null+ updatedBy: string | null+ }Relationships: [{- foreignKeyName: "quote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "quote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "quote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "quote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "quote_customerContactId_fkey";- columns: ["customerContactId"];- isOneToOne: false;- referencedRelation: "customerContact";- referencedColumns: ["id"];+ foreignKeyName: "quote_customerContactId_fkey"+ columns: ["customerContactId"]+ isOneToOne: false+ referencedRelation: "customerContact"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "quote_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "quote_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "salesOrderCustomers";- referencedColumns: ["id"];+ foreignKeyName: "quote_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_customerLocationId_fkey";- columns: ["customerLocationId"];- isOneToOne: false;- referencedRelation: "customerLocation";- referencedColumns: ["id"];+ foreignKeyName: "quote_customerLocationId_fkey"+ columns: ["customerLocationId"]+ isOneToOne: false+ referencedRelation: "customerLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "quote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "quote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "quote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "quote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "quote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "quote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "quote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "quote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "quote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }receipts: {Row: {- assignee: string | null;- createdAt: string | null;- createdBy: string | null;- customFields: Json | null;- externalDocumentId: string | null;- id: string | null;- invoiced: boolean | null;- locationId: string | null;- locationName: string | null;- postingDate: string | null;- receiptId: string | null;+ assignee: string | null+ createdAt: string | null+ createdBy: string | null+ customFields: Json | null+ externalDocumentId: string | null+ id: string | null+ invoiced: boolean | null+ locationId: string | null+ locationName: string | null+ postingDate: string | null+ receiptId: string | nullsourceDocument:| Database["public"]["Enums"]["receiptSourceDocument"]- | null;- sourceDocumentId: string | null;- sourceDocumentReadableId: string | null;- status: Database["public"]["Enums"]["receiptStatus"] | null;- supplierId: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ | null+ sourceDocumentId: string | null+ sourceDocumentReadableId: string | null+ status: Database["public"]["Enums"]["receiptStatus"] | null+ supplierId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Relationships: [{- foreignKeyName: "receipt_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "receipt_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "receipt_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "receipt_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "receipt_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "receipt_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "receipt_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "receipt_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "receipt_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "receipt_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "receipt_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "receipt_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "receipt_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "receipt_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "receipt_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "receipt_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "receipt_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "receipt_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "receipt_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "receipt_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "receipt_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }receiptsPostedNotInvoiced: {Row: {- estimatedCost: number | null;- id: string | null;- postingDate: string | null;- receiptId: string | null;+ estimatedCost: number | null+ id: string | null+ postingDate: string | null+ receiptId: string | nullsourceDocument:| Database["public"]["Enums"]["receiptSourceDocument"]- | null;- sourceDocumentId: string | null;- sourceDocumentReadableId: string | null;- supplierId: string | null;- supplierName: string | null;- };+ | null+ sourceDocumentId: string | null+ sourceDocumentReadableId: string | null+ supplierId: string | null+ supplierName: string | null+ }Relationships: [{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- isOneToOne: false;- referencedRelation: "suppliers";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ isOneToOne: false+ referencedRelation: "suppliers"+ referencedColumns: ["id"]+ },+ ]+ }requestForQuotes: {Row: {- assignee: string | null;- createdAt: string | null;- createdBy: string | null;- customFields: Json | null;- expirationDate: string | null;- favorite: boolean | null;- id: string | null;- locationId: string | null;- locationName: string | null;- name: string | null;- notes: string | null;- partIds: string[] | null;- receiptDate: string | null;- requestForQuoteId: string | null;- revisionId: number | null;- status: Database["public"]["Enums"]["requestForQuoteStatus"] | null;- supplierIds: string[] | null;- updatedAt: string | null;- updatedBy: string | null;- };+ assignee: string | null+ createdAt: string | null+ createdBy: string | null+ customFields: Json | null+ expirationDate: string | null+ favorite: boolean | null+ id: string | null+ locationId: string | null+ locationName: string | null+ name: string | null+ notes: string | null+ partIds: string[] | null+ receiptDate: string | null+ requestForQuoteId: string | null+ revisionId: number | null+ status: Database["public"]["Enums"]["requestForQuoteStatus"] | null+ supplierIds: string[] | null+ updatedAt: string | null+ updatedBy: string | null+ }Relationships: [{- foreignKeyName: "requestForQuote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "requestForQuote_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "requestForQuote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "requestForQuote_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "requestForQuote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "requestForQuote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "requestForQuote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "requestForQuote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "requestForQuote_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "requestForQuote_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "requestForQuote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "requestForQuote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "requestForQuote_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "requestForQuote_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }salesOrderCustomers: {Row: {- id: string | null;- name: string | null;- };- Relationships: [];- };+ id: string | null+ name: string | null+ }+ Relationships: []+ }salesOrderLines: {Row: {- accountNumber: string | null;- assetId: string | null;- createdAt: string | null;- createdBy: string | null;- customerId: string | null;- customFields: Json | null;- description: string | null;- id: string | null;- invoicedComplete: boolean | null;- locationId: string | null;- partDescription: string | null;- partId: string | null;- partName: string | null;- quantityInvoiced: number | null;- quantitySent: number | null;- quantityToInvoice: number | null;- quantityToSend: number | null;- requiresInspection: boolean | null;- saleQuantity: number | null;- salesOrderId: string | null;+ accountNumber: string | null+ assetId: string | null+ createdAt: string | null+ createdBy: string | null+ customerId: string | null+ customFields: Json | null+ description: string | null+ id: string | null+ invoicedComplete: boolean | null+ locationId: string | null+ partDescription: string | null+ partId: string | null+ partName: string | null+ quantityInvoiced: number | null+ quantitySent: number | null+ quantityToInvoice: number | null+ quantityToSend: number | null+ requiresInspection: boolean | null+ saleQuantity: number | null+ salesOrderId: string | nullsalesOrderLineType:| Database["public"]["Enums"]["salesOrderLineType"]- | null;- sentComplete: boolean | null;- serviceId: string | null;- setupPrice: number | null;- shelfId: string | null;- unitOfMeasureCode: string | null;- unitPrice: number | null;- updatedAt: string | null;- updatedBy: string | null;- };+ | null+ sentComplete: boolean | null+ serviceId: string | null+ setupPrice: number | null+ shelfId: string | null+ unitOfMeasureCode: string | null+ unitPrice: number | null+ updatedAt: string | null+ updatedBy: string | null+ }Relationships: [{- foreignKeyName: "salesOrder_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "salesOrderCustomers";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_accountNumber_fkey";- columns: ["accountNumber"];- isOneToOne: false;- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "salesOrderLine_accountNumber_fkey"+ columns: ["accountNumber"]+ isOneToOne: false+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "salesOrderLine_accountNumber_fkey";- columns: ["accountNumber"];- isOneToOne: false;- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "salesOrderLine_accountNumber_fkey"+ columns: ["accountNumber"]+ isOneToOne: false+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "salesOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "salesOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "salesOrderLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "salesOrderLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "salesOrderLine_partId_fkey";- columns: ["partId"];- isOneToOne: false;- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_partId_fkey"+ columns: ["partId"]+ isOneToOne: false+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_salesOrderId_fkey";- columns: ["salesOrderId"];- isOneToOne: false;- referencedRelation: "salesOrder";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_salesOrderId_fkey"+ columns: ["salesOrderId"]+ isOneToOne: false+ referencedRelation: "salesOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_salesOrderId_fkey";- columns: ["salesOrderId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_salesOrderId_fkey"+ columns: ["salesOrderId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_serviceId_fkey";- columns: ["serviceId"];- isOneToOne: false;- referencedRelation: "service";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_serviceId_fkey"+ columns: ["serviceId"]+ isOneToOne: false+ referencedRelation: "service"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_serviceId_fkey";- columns: ["serviceId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_serviceId_fkey"+ columns: ["serviceId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_shelfId_fkey";- columns: ["shelfId", "locationId"];- isOneToOne: false;- referencedRelation: "shelf";- referencedColumns: ["id", "locationId"];+ foreignKeyName: "salesOrderLine_shelfId_fkey"+ columns: ["shelfId", "locationId"]+ isOneToOne: false+ referencedRelation: "shelf"+ referencedColumns: ["id", "locationId"]},{- foreignKeyName: "salesOrderLine_unitOfMeasureCode_fkey";- columns: ["unitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "salesOrderLine_unitOfMeasureCode_fkey"+ columns: ["unitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "salesOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "salesOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }salesOrders: {Row: {- assignee: string | null;- closedAt: string | null;- closedBy: string | null;- closedByAvatar: string | null;- closedByFullName: string | null;- createdAt: string | null;- createdBy: string | null;- createdByAvatar: string | null;- createdByFullName: string | null;- customerContactId: string | null;- customerId: string | null;- customerLocationId: string | null;- customerName: string | null;- customerReference: string | null;- customFields: Json | null;- dropShipment: boolean | null;- favorite: boolean | null;- id: string | null;- locationId: string | null;- locationName: string | null;- notes: string | null;- orderDate: string | null;- paymentTermName: string | null;- quoteId: string | null;- receiptPromisedDate: string | null;- receiptRequestedDate: string | null;- revisionId: number | null;- salesOrderId: string | null;- shippingMethodName: string | null;- shippingTermName: string | null;- status: Database["public"]["Enums"]["salesOrderStatus"] | null;- updatedAt: string | null;- updatedBy: string | null;- updatedByAvatar: string | null;- updatedByFullName: string | null;- };+ assignee: string | null+ closedAt: string | null+ closedBy: string | null+ closedByAvatar: string | null+ closedByFullName: string | null+ createdAt: string | null+ createdBy: string | null+ createdByAvatar: string | null+ createdByFullName: string | null+ customerContactId: string | null+ customerId: string | null+ customerLocationId: string | null+ customerName: string | null+ customerReference: string | null+ customFields: Json | null+ dropShipment: boolean | null+ favorite: boolean | null+ id: string | null+ locationId: string | null+ locationName: string | null+ notes: string | null+ orderDate: string | null+ paymentTermName: string | null+ quoteId: string | null+ receiptPromisedDate: string | null+ receiptRequestedDate: string | null+ revisionId: number | null+ salesOrderId: string | null+ shippingMethodName: string | null+ shippingTermName: string | null+ status: Database["public"]["Enums"]["salesOrderStatus"] | null+ updatedAt: string | null+ updatedBy: string | null+ updatedByAvatar: string | null+ updatedByFullName: string | null+ }Relationships: [{- foreignKeyName: "salesOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "salesOrder_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "salesOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_closedBy_fkey";- columns: ["closedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "salesOrder_closedBy_fkey"+ columns: ["closedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "salesOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "salesOrder_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "salesOrder_customerContactId_fkey";- columns: ["customerContactId"];- isOneToOne: false;- referencedRelation: "customerContact";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_customerContactId_fkey"+ columns: ["customerContactId"]+ isOneToOne: false+ referencedRelation: "customerContact"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_customerId_fkey";- columns: ["customerId"];- isOneToOne: false;- referencedRelation: "salesOrderCustomers";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_customerId_fkey"+ columns: ["customerId"]+ isOneToOne: false+ referencedRelation: "salesOrderCustomers"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_customerLocationId_fkey";- columns: ["customerLocationId"];- isOneToOne: false;- referencedRelation: "customerLocation";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_customerLocationId_fkey"+ columns: ["customerLocationId"]+ isOneToOne: false+ referencedRelation: "customerLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quote";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quote"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quoteCustomerDetails";- referencedColumns: ["quoteId"];+ foreignKeyName: "salesOrder_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quoteCustomerDetails"+ referencedColumns: ["quoteId"]},{- foreignKeyName: "salesOrder_quoteId_fkey";- columns: ["quoteId"];- isOneToOne: false;- referencedRelation: "quotes";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quotes"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "salesOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "salesOrder_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "salesOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }services: {Row: {- active: boolean | null;- approved: boolean | null;- approvedBy: string | null;- assignee: string | null;- blocked: boolean | null;- createdAt: string | null;- createdBy: string | null;- customFields: Json | null;- description: string | null;- fromDate: string | null;- id: string | null;- name: string | null;- partGroup: string | null;- partGroupId: string | null;- serviceType: Database["public"]["Enums"]["serviceType"] | null;- supplierIds: string[] | null;- toDate: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean | null+ approved: boolean | null+ approvedBy: string | null+ assignee: string | null+ blocked: boolean | null+ createdAt: string | null+ createdBy: string | null+ customFields: Json | null+ description: string | null+ fromDate: string | null+ id: string | null+ name: string | null+ partGroup: string | null+ partGroupId: string | null+ serviceType: Database["public"]["Enums"]["serviceType"] | null+ supplierIds: string[] | null+ toDate: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Relationships: [{- foreignKeyName: "service_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "service_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "service_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "service_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "service_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "service_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "service_approvedBy_fkey";- columns: ["approvedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "service_approvedBy_fkey"+ columns: ["approvedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "service_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "service_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "service_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "service_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "service_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "service_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "service_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "service_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "service_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "service_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "service_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "service_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "service_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "service_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "service_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "service_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "service_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "partGroup";- referencedColumns: ["id"];+ foreignKeyName: "service_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "partGroup"+ referencedColumns: ["id"]},{- foreignKeyName: "service_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "service_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "service_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "service_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "service_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "service_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "service_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "service_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }shifts: {Row: {- active: boolean | null;- createdAt: string | null;- createdBy: string | null;- customFields: Json | null;- endTime: string | null;- friday: boolean | null;- id: string | null;- locationId: string | null;- locationName: string | null;- monday: boolean | null;- name: string | null;- saturday: boolean | null;- startTime: string | null;- sunday: boolean | null;- thursday: boolean | null;- tuesday: boolean | null;- updatedAt: string | null;- updatedBy: string | null;- wednesday: boolean | null;- };+ active: boolean | null+ createdAt: string | null+ createdBy: string | null+ customFields: Json | null+ endTime: string | null+ friday: boolean | null+ id: string | null+ locationId: string | null+ locationName: string | null+ monday: boolean | null+ name: string | null+ saturday: boolean | null+ startTime: string | null+ sunday: boolean | null+ thursday: boolean | null+ tuesday: boolean | null+ updatedAt: string | null+ updatedBy: string | null+ wednesday: boolean | null+ }Relationships: [{- foreignKeyName: "shifts_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shifts_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shifts_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "shifts_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "shifts_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "shifts_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "shifts_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "shifts_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "shifts_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "shifts_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "shifts_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "shifts_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "shifts_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "shifts_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "shifts_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "shifts_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "shifts_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shifts_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shifts_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "shifts_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "shifts_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "shifts_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "shifts_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "shifts_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }suppliers: {Row: {- accountManagerId: string | null;- assignee: string | null;- createdAt: string | null;- createdBy: string | null;- customFields: Json | null;- id: string | null;- logo: string | null;- name: string | null;- orderCount: number | null;- partCount: number | null;- status: string | null;- supplierStatusId: string | null;- supplierTypeId: string | null;- taxId: string | null;- type: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ accountManagerId: string | null+ assignee: string | null+ createdAt: string | null+ createdBy: string | null+ customFields: Json | null+ id: string | null+ logo: string | null+ name: string | null+ orderCount: number | null+ partCount: number | null+ status: string | null+ supplierStatusId: string | null+ supplierTypeId: string | null+ taxId: string | null+ type: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Relationships: [{- foreignKeyName: "supplier_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplier_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplier_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplier_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_accountManagerId_fkey";- columns: ["accountManagerId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "supplier_accountManagerId_fkey"+ columns: ["accountManagerId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "supplier_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplier_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplier_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplier_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_assignee_fkey";- columns: ["assignee"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "supplier_assignee_fkey"+ columns: ["assignee"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "supplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "supplier_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "supplier_supplierStatusId_fkey";- columns: ["supplierStatusId"];- isOneToOne: false;- referencedRelation: "supplierStatus";- referencedColumns: ["id"];+ foreignKeyName: "supplier_supplierStatusId_fkey"+ columns: ["supplierStatusId"]+ isOneToOne: false+ referencedRelation: "supplierStatus"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_supplierTypeId_fkey";- columns: ["supplierTypeId"];- isOneToOne: false;- referencedRelation: "supplierType";- referencedColumns: ["id"];+ foreignKeyName: "supplier_supplierTypeId_fkey"+ columns: ["supplierTypeId"]+ isOneToOne: false+ referencedRelation: "supplierType"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "supplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employees";- referencedColumns: ["id"];+ foreignKeyName: "supplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "supplier_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }totalReceiptsPostedNotInvoiced: {Row: {- total: number | null;- };- Relationships: [];- };+ total: number | null+ }+ Relationships: []+ }userDefaults: {Row: {- locationId: string | null;- userId: string | null;- };+ locationId: string | null+ userId: string | null+ }Relationships: [{- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "employeeJob_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "employeeJob_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "salesOrders";- referencedColumns: ["locationId"];- }- ];- };- };+ foreignKeyName: "employeeJob_locationId_fkey"+ columns: ["locationId"]+ isOneToOne: false+ referencedRelation: "salesOrders"+ referencedColumns: ["locationId"]+ },+ ]+ }+ }Functions: {_xid_machine_id: {- Args: Record<PropertyKey, never>;- Returns: number;- };+ Args: Record<PropertyKey, never>+ Returns: number+ }delete_claim: {Args: {- uid: string;- claim: string;- };- Returns: string;- };+ uid: string+ claim: string+ }+ Returns: string+ }get_claim: {Args: {- uid: string;- claim: string;- };- Returns: Json;- };+ uid: string+ claim: string+ }+ Returns: Json+ }get_claims: {Args: {- uid: string;- };- Returns: Json;- };+ uid: string+ }+ Returns: Json+ }get_my_claim: {Args: {- claim: string;- };- Returns: Json;- };+ claim: string+ }+ Returns: Json+ }get_my_claims: {- Args: Record<PropertyKey, never>;- Returns: Json;- };+ Args: Record<PropertyKey, never>+ Returns: Json+ }groups_for_user: {Args: {- uid: string;- };- Returns: unknown;- };+ uid: string+ }+ Returns: unknown+ }groups_query: {Args: {- _name?: string;- _uid?: string;- };+ _name?: string+ _uid?: string+ }Returns: {- id: string;- name: string;- parentId: string;- isEmployeeTypeGroup: boolean;- isCustomerOrgGroup: boolean;- isCustomerTypeGroup: boolean;- isSupplierOrgGroup: boolean;- isSupplierTypeGroup: boolean;- users: Json;- }[];- };+ id: string+ name: string+ parentId: string+ isEmployeeTypeGroup: boolean+ isCustomerOrgGroup: boolean+ isCustomerTypeGroup: boolean+ isSupplierOrgGroup: boolean+ isSupplierTypeGroup: boolean+ users: Json+ }[]+ }is_claims_admin: {- Args: Record<PropertyKey, never>;- Returns: boolean;- };+ Args: Record<PropertyKey, never>+ Returns: boolean+ }journalLinesByAccountNumber: {Args: {- from_date?: string;- to_date?: string;- };+ from_date?: string+ to_date?: string+ }Returns: {- number: string;- balance: number;- balanceAtDate: number;- netChange: number;- }[];- };+ number: string+ balance: number+ balanceAtDate: number+ netChange: number+ }[]+ }set_claim: {Args: {- uid: string;- claim: string;- value: Json;- };- Returns: string;- };+ uid: string+ claim: string+ value: Json+ }+ Returns: string+ }users_for_groups: {Args: {- groups: string[];- };- Returns: Json;- };+ groups: string[]+ }+ Returns: Json+ }xid: {Args: {- _at?: string;- };- Returns: unknown;- };+ _at?: string+ }+ Returns: unknown+ }xid_counter: {Args: {- _xid: unknown;- };- Returns: number;- };+ _xid: unknown+ }+ Returns: number+ }xid_decode: {Args: {- _xid: unknown;- };- Returns: unknown;- };+ _xid: unknown+ }+ Returns: unknown+ }xid_encode: {Args: {- _id: number[];- };- Returns: unknown;- };+ _id: number[]+ }+ Returns: unknown+ }xid_machine: {Args: {- _xid: unknown;- };- Returns: unknown;- };+ _xid: unknown+ }+ Returns: unknown+ }xid_pid: {Args: {- _xid: unknown;- };- Returns: number;- };+ _xid: unknown+ }+ Returns: number+ }xid_time: {Args: {- _xid: unknown;- };- Returns: string;- };- };+ _xid: unknown+ }+ Returns: string+ }+ }Enums: {- accountingPeriodStatus: "Inactive" | "Active";+ accountingPeriodStatus: "Inactive" | "Active"costLedgerType:| "Direct Cost"| "Revaluation"| "Rounding"| "Indirect Cost"| "Variance"- | "Total";+ | "Total"documentSourceType:| "Job"| "Part"@@ -17742,14 +17742,14 @@ export type Database = {| "Sales Invoice"| "Sales Return Order"| "Service"- | "Shipment";+ | "Shipment"documentTransactionType:| "Download"| "Edit"| "Favorite"| "Label"| "Unfavorite"- | "Upload";+ | "Upload"documentType:| "Archive"| "Document"@@ -17760,7 +17760,7 @@ export type Database = {| "Image"| "Video"| "Audio"- | "Other";+ | "Other"factor:| "Hours/Piece"| "Hours/100 Pieces"@@ -17772,7 +17772,7 @@ export type Database = {| "Pieces/Minute"| "Seconds/Piece"| "Total Hours"- | "Total Minutes";+ | "Total Minutes"glAccountCategory:| "Bank"| "Accounts Receivable"@@ -17791,17 +17791,17 @@ export type Database = {| "Cost of Goods Sold"| "Expense"| "Other Income"- | "Other Expense";- glAccountClass: "Asset" | "Liability" | "Equity" | "Revenue" | "Expense";- glAccountType: "Posting" | "Total" | "Begin Total" | "End Total";- glConsolidatedRate: "Average" | "Current" | "Historical";- glIncomeBalance: "Balance Sheet" | "Income Statement";+ | "Other Expense"+ glAccountClass: "Asset" | "Liability" | "Equity" | "Revenue" | "Expense"+ glAccountType: "Posting" | "Total" | "Begin Total" | "End Total"+ glConsolidatedRate: "Average" | "Current" | "Historical"+ glIncomeBalance: "Balance Sheet" | "Income Statement"journalLineDocumentType:| "Receipt"| "Invoice"| "Credit Memo"| "Blanket Order"- | "Return Order";+ | "Return Order"module:| "Accounting"| "Documents"@@ -17815,7 +17815,7 @@ export type Database = {| "Sales"| "Scheduling"| "Timecards"- | "Users";+ | "Users"month:| "January"| "February"@@ -17828,8 +17828,8 @@ export type Database = {| "September"| "October"| "November"- | "December";- partCostingMethod: "Standard" | "Average" | "LIFO" | "FIFO";+ | "December"+ partCostingMethod: "Standard" | "Average" | "LIFO" | "FIFO"partLedgerDocumentType:| "Sales Shipment"| "Sales Invoice"@@ -17847,7 +17847,7 @@ export type Database = {| "Posted Assembly"| "Inventory Receipt"| "Inventory Shipment"- | "Direct Transfer";+ | "Direct Transfer"partLedgerType:| "Purchase"| "Sale"@@ -17857,22 +17857,22 @@ export type Database = {| "Consumption"| "Output"| "Assembly Consumption"- | "Assembly Output";- partManufacturingPolicy: "Make to Order" | "Make to Stock";+ | "Assembly Output"+ partManufacturingPolicy: "Make to Order" | "Make to Stock"partReorderingPolicy:| "Manual Reorder"| "Demand-Based Reorder"| "Fixed Reorder Quantity"- | "Maximum Quantity";- partReplenishmentSystem: "Buy" | "Make" | "Buy and Make";- partType: "Inventory" | "Non-Inventory";+ | "Maximum Quantity"+ partReplenishmentSystem: "Buy" | "Make" | "Buy and Make"+ partType: "Inventory" | "Non-Inventory"payableLineType:| "G/L Account"| "Part"| "Service"| "Fixed Asset"- | "Comment";- paymentTermCalculationMethod: "Net" | "End of Month" | "Day of Month";+ | "Comment"+ paymentTermCalculationMethod: "Net" | "End of Month" | "Day of Month"purchaseInvoiceStatus:| "Draft"| "Pending"@@ -17882,13 +17882,13 @@ export type Database = {| "Paid"| "Partially Paid"| "Overdue"- | "Voided";+ | "Voided"purchaseOrderLineType:| "Comment"| "G/L Account"| "Part"| "Service"- | "Fixed Asset";+ | "Fixed Asset"purchaseOrderStatus:| "Draft"| "To Review"@@ -17897,16 +17897,16 @@ export type Database = {| "To Receive and Invoice"| "To Invoice"| "Completed"- | "Closed";+ | "Closed"purchaseOrderTransactionType:| "Edit"| "Favorite"| "Unfavorite"| "Approved"| "Reject"- | "Request Approval";- purchaseOrderType: "Purchase" | "Return";- quoteLineStatus: "Draft" | "In Progress" | "Complete";+ | "Request Approval"+ purchaseOrderType: "Purchase" | "Return"+ quoteLineStatus: "Draft" | "In Progress" | "Complete"quoteStatus:| "Draft"| "Open"@@ -17915,7 +17915,7 @@ export type Database = {| "Partial"| "Lost"| "Cancelled"- | "Expired";+ | "Expired"receiptSourceDocument:| "Sales Order"| "Sales Invoice"@@ -17926,10 +17926,10 @@ export type Database = {| "Inbound Transfer"| "Outbound Transfer"| "Manufacturing Consumption"- | "Manufacturing Output";- receiptStatus: "Draft" | "Pending" | "Posted";- requestForQuoteStatus: "Draft" | "Sent" | "Expired" | "Closed";- salesOrderLineType: "Comment" | "Part" | "Service";+ | "Manufacturing Output"+ receiptStatus: "Draft" | "Pending" | "Posted"+ requestForQuoteStatus: "Draft" | "Sent" | "Expired" | "Closed"+ salesOrderLineType: "Comment" | "Part" | "Service"salesOrderStatus:| "Draft"| "Needs Approval"@@ -17937,14 +17937,14 @@ export type Database = {| "In Progress"| "Completed"| "Invoiced"- | "Cancelled";+ | "Cancelled"salesOrderTransactionType:| "Edit"| "Favorite"| "Unfavorite"| "Approved"| "Reject"- | "Request Approval";+ | "Request Approval"searchEntity:| "Resource"| "Person"@@ -17960,201 +17960,201 @@ export type Database = {| "Request for Quotation"| "Sales Invoice"| "Purchase Invoice"- | "Document";- serviceType: "Internal" | "External";- shippingCarrier: "UPS" | "FedEx" | "USPS" | "DHL" | "Other";+ | "Document"+ serviceType: "Internal" | "External"+ shippingCarrier: "UPS" | "FedEx" | "USPS" | "DHL" | "Other"supplierLedgerDocumentType:| "Payment"| "Invoice"| "Credit Memo"| "Finance Charge Memo"| "Reminder"- | "Refund";- };+ | "Refund"+ }CompositeTypes: {- [_ in never]: never;- };- };+ [_ in never]: never+ }+ }storage: {Tables: {buckets: {Row: {- allowed_mime_types: string[] | null;- avif_autodetection: boolean | null;- created_at: string | null;- file_size_limit: number | null;- id: string;- name: string;- owner: string | null;- owner_id: string | null;- public: boolean | null;- updated_at: string | null;- };+ allowed_mime_types: string[] | null+ avif_autodetection: boolean | null+ created_at: string | null+ file_size_limit: number | null+ id: string+ name: string+ owner: string | null+ owner_id: string | null+ public: boolean | null+ updated_at: string | null+ }Insert: {- allowed_mime_types?: string[] | null;- avif_autodetection?: boolean | null;- created_at?: string | null;- file_size_limit?: number | null;- id: string;- name: string;- owner?: string | null;- owner_id?: string | null;- public?: boolean | null;- updated_at?: string | null;- };+ allowed_mime_types?: string[] | null+ avif_autodetection?: boolean | null+ created_at?: string | null+ file_size_limit?: number | null+ id: string+ name: string+ owner?: string | null+ owner_id?: string | null+ public?: boolean | null+ updated_at?: string | null+ }Update: {- allowed_mime_types?: string[] | null;- avif_autodetection?: boolean | null;- created_at?: string | null;- file_size_limit?: number | null;- id?: string;- name?: string;- owner?: string | null;- owner_id?: string | null;- public?: boolean | null;- updated_at?: string | null;- };- Relationships: [];- };+ allowed_mime_types?: string[] | null+ avif_autodetection?: boolean | null+ created_at?: string | null+ file_size_limit?: number | null+ id?: string+ name?: string+ owner?: string | null+ owner_id?: string | null+ public?: boolean | null+ updated_at?: string | null+ }+ Relationships: []+ }migrations: {Row: {- executed_at: string | null;- hash: string;- id: number;- name: string;- };+ executed_at: string | null+ hash: string+ id: number+ name: string+ }Insert: {- executed_at?: string | null;- hash: string;- id: number;- name: string;- };+ executed_at?: string | null+ hash: string+ id: number+ name: string+ }Update: {- executed_at?: string | null;- hash?: string;- id?: number;- name?: string;- };- Relationships: [];- };+ executed_at?: string | null+ hash?: string+ id?: number+ name?: string+ }+ Relationships: []+ }objects: {Row: {- bucket_id: string | null;- created_at: string | null;- id: string;- last_accessed_at: string | null;- metadata: Json | null;- name: string | null;- owner: string | null;- owner_id: string | null;- path_tokens: string[] | null;- updated_at: string | null;- version: string | null;- };+ bucket_id: string | null+ created_at: string | null+ id: string+ last_accessed_at: string | null+ metadata: Json | null+ name: string | null+ owner: string | null+ owner_id: string | null+ path_tokens: string[] | null+ updated_at: string | null+ version: string | null+ }Insert: {- bucket_id?: string | null;- created_at?: string | null;- id?: string;- last_accessed_at?: string | null;- metadata?: Json | null;- name?: string | null;- owner?: string | null;- owner_id?: string | null;- path_tokens?: string[] | null;- updated_at?: string | null;- version?: string | null;- };+ bucket_id?: string | null+ created_at?: string | null+ id?: string+ last_accessed_at?: string | null+ metadata?: Json | null+ name?: string | null+ owner?: string | null+ owner_id?: string | null+ path_tokens?: string[] | null+ updated_at?: string | null+ version?: string | null+ }Update: {- bucket_id?: string | null;- created_at?: string | null;- id?: string;- last_accessed_at?: string | null;- metadata?: Json | null;- name?: string | null;- owner?: string | null;- owner_id?: string | null;- path_tokens?: string[] | null;- updated_at?: string | null;- version?: string | null;- };+ bucket_id?: string | null+ created_at?: string | null+ id?: string+ last_accessed_at?: string | null+ metadata?: Json | null+ name?: string | null+ owner?: string | null+ owner_id?: string | null+ path_tokens?: string[] | null+ updated_at?: string | null+ version?: string | null+ }Relationships: [{- foreignKeyName: "objects_bucketId_fkey";- columns: ["bucket_id"];- isOneToOne: false;- referencedRelation: "buckets";- referencedColumns: ["id"];- }- ];- };- };+ foreignKeyName: "objects_bucketId_fkey"+ columns: ["bucket_id"]+ isOneToOne: false+ referencedRelation: "buckets"+ referencedColumns: ["id"]+ },+ ]+ }+ }Views: {- [_ in never]: never;- };+ [_ in never]: never+ }Functions: {can_insert_object: {Args: {- bucketid: string;- name: string;- owner: string;- metadata: Json;- };- Returns: undefined;- };+ bucketid: string+ name: string+ owner: string+ metadata: Json+ }+ Returns: undefined+ }extension: {Args: {- name: string;- };- Returns: string;- };+ name: string+ }+ Returns: string+ }filename: {Args: {- name: string;- };- Returns: string;- };+ name: string+ }+ Returns: string+ }foldername: {Args: {- name: string;- };- Returns: unknown;- };+ name: string+ }+ Returns: unknown+ }get_size_by_bucket: {- Args: Record<PropertyKey, never>;+ Args: Record<PropertyKey, never>Returns: {- size: number;- bucket_id: string;- }[];- };+ size: number+ bucket_id: string+ }[]+ }search: {Args: {- prefix: string;- bucketname: string;- limits?: number;- levels?: number;- offsets?: number;- search?: string;- sortcolumn?: string;- sortorder?: string;- };+ prefix: string+ bucketname: string+ limits?: number+ levels?: number+ offsets?: number+ search?: string+ sortcolumn?: string+ sortorder?: string+ }Returns: {- name: string;- id: string;- updated_at: string;- created_at: string;- last_accessed_at: string;- metadata: Json;- }[];- };- };+ name: string+ id: string+ updated_at: string+ created_at: string+ last_accessed_at: string+ metadata: Json+ }[]+ }+ }Enums: {- [_ in never]: never;- };+ [_ in never]: never+ }CompositeTypes: {- [_ in never]: never;- };- };-};+ [_ in never]: never+ }+ }+}export type Tables<PublicTableNameOrOptions extends@@ -18163,23 +18163,23 @@ export type Tables<TableName extends PublicTableNameOrOptions extends { schema: keyof Database }? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] &Database[PublicTableNameOrOptions["schema"]]["Views"])- : never = never+ : never = never,> = PublicTableNameOrOptions extends { schema: keyof Database }? (Database[PublicTableNameOrOptions["schema"]]["Tables"] &Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {- Row: infer R;+ Row: infer R}? R: never: PublicTableNameOrOptions extends keyof (Database["public"]["Tables"] &- Database["public"]["Views"])- ? (Database["public"]["Tables"] &- Database["public"]["Views"])[PublicTableNameOrOptions] extends {- Row: infer R;- }- ? R+ Database["public"]["Views"])+ ? (Database["public"]["Tables"] &+ Database["public"]["Views"])[PublicTableNameOrOptions] extends {+ Row: infer R+ }+ ? R+ : never: never- : never;export type TablesInsert<PublicTableNameOrOptions extends@@ -18187,20 +18187,20 @@ export type TablesInsert<| { schema: keyof Database },TableName extends PublicTableNameOrOptions extends { schema: keyof Database }? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]- : never = never+ : never = never,> = PublicTableNameOrOptions extends { schema: keyof Database }? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {- Insert: infer I;+ Insert: infer I}? I: never: PublicTableNameOrOptions extends keyof Database["public"]["Tables"]- ? Database["public"]["Tables"][PublicTableNameOrOptions] extends {- Insert: infer I;- }- ? I+ ? Database["public"]["Tables"][PublicTableNameOrOptions] extends {+ Insert: infer I+ }+ ? I+ : never: never- : never;export type TablesUpdate<PublicTableNameOrOptions extends@@ -18208,20 +18208,20 @@ export type TablesUpdate<| { schema: keyof Database },TableName extends PublicTableNameOrOptions extends { schema: keyof Database }? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"]- : never = never+ : never = never,> = PublicTableNameOrOptions extends { schema: keyof Database }? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {- Update: infer U;+ Update: infer U}? U: never: PublicTableNameOrOptions extends keyof Database["public"]["Tables"]- ? Database["public"]["Tables"][PublicTableNameOrOptions] extends {- Update: infer U;- }- ? U+ ? Database["public"]["Tables"][PublicTableNameOrOptions] extends {+ Update: infer U+ }+ ? U+ : never: never- : never;export type Enums<PublicEnumNameOrOptions extends@@ -18229,9 +18229,10 @@ export type Enums<| { schema: keyof Database },EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"]- : never = never+ : never = never,> = PublicEnumNameOrOptions extends { schema: keyof Database }? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName]: PublicEnumNameOrOptions extends keyof Database["public"]["Enums"]- ? Database["public"]["Enums"][PublicEnumNameOrOptions]- : never;+ ? Database["public"]["Enums"][PublicEnumNameOrOptions]+ : never+diff --git a/packages/react/src/HTML.tsx b/packages/react/src/HTML.tsxindex 7113e029fe..bc6bfd8c99 100644--- a/packages/react/src/HTML.tsx+++ b/packages/react/src/HTML.tsx@@ -1,4 +1,5 @@-import { sanitize } from "dompurify";+import pkg from "dompurify";+const { sanitize } = pkg;type HTMLProps = {text: string;diff --git a/turbo.json b/turbo.jsonindex 9bdb4537b2..55894971a3 100644--- a/turbo.json+++ b/turbo.json@@ -28,6 +28,10 @@"dependsOn": ["^build"],"cache": false},+ "carbon#dev": {+ "cache": false,+ "persistent": true+ },"clean": {"cache": false},