Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
feat: custom fields for contractor form
Brad Barbina6cd645ef4cc
diff --git a/apps/carbon/app/modules/resources/resources.service.ts b/apps/carbon/app/modules/resources/resources.service.tsindex 78fbc7d0c3..f5cbdad68f 100644--- a/apps/carbon/app/modules/resources/resources.service.ts+++ b/apps/carbon/app/modules/resources/resources.service.ts@@ -1,4 +1,4 @@-import type { Database } from "@carbon/database";+import type { Database, Json } from "@carbon/database";import type { SupabaseClient } from "@supabase/supabase-js";import type { z } from "zod";import type { DataType } from "~/modules/shared";@@ -962,12 +962,14 @@ export async function upsertContractor(hoursPerWeek?: number;abilities: string[];createdBy: string;+ customFields?: Json;}| {id: string;hoursPerWeek?: number;abilities: string[];updatedBy: string;+ customFields?: Json;}) {const { abilities, ...contractor } = contractorWithAbilities;diff --git a/apps/carbon/app/modules/resources/ui/Contractors/ContractorsTable.tsx b/apps/carbon/app/modules/resources/ui/Contractors/ContractorsTable.tsxindex 22a18536b7..4dd25a341a 100644--- a/apps/carbon/app/modules/resources/ui/Contractors/ContractorsTable.tsx+++ b/apps/carbon/app/modules/resources/ui/Contractors/ContractorsTable.tsx@@ -21,6 +21,28 @@ const ContractorsTable = memo(({ data, count }: ContractorsTableProps) => {const columns = useMemo<ColumnDef<Contractor>[]>(() => {return [+ {+ header: "Contractor",+ cell: ({ row }) => (+ <HStack>+ <Avatar+ size="sm"+ name={`${row.original.firstName} ${row.original.lastName}` ?? ""}+ />+ <Hyperlink+ onClick={() => {+ navigate(+ `${path.to.contractor(+ row.original.supplierContactId!+ )}?${params.toString()}`+ );+ }}+ >+ {row.original.firstName} {row.original.lastName}+ </Hyperlink>+ </HStack>+ ),+ },{accessorKey: "supplier",header: "Supplier",@@ -37,12 +59,6 @@ const ContractorsTable = memo(({ data, count }: ContractorsTableProps) => {</HStack>),},- {- header: "Contractor",- cell: ({ row }) => (- <>{`${row.original.firstName} ${row.original.lastName}`}</>- ),- },{accessorKey: "hoursPerWeek",header: "Hours per Week",diff --git a/apps/carbon/app/routes/x+/resources+/contractors.$supplierContactId.tsx b/apps/carbon/app/routes/x+/resources+/contractors.$supplierContactId.tsxindex 8914d6b73a..4356e1869f 100644--- a/apps/carbon/app/routes/x+/resources+/contractors.$supplierContactId.tsx+++ b/apps/carbon/app/routes/x+/resources+/contractors.$supplierContactId.tsx@@ -10,6 +10,7 @@ import {} from "~/modules/resources";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session.server";+import { getCustomFields, setCustomFields } from "~/utils/form";import { assertIsPost, notFound } from "~/utils/http";import { path } from "~/utils/path";import { error, success } from "~/utils/result";@@ -42,9 +43,8 @@ export async function action({ request }: ActionFunctionArgs) {create: "resources",});- const validation = await validator(contractorValidator).validate(- await request.formData()- );+ const formData = await request.formData();+ const validation = await validator(contractorValidator).validate(formData);if (validation.error) {return validationError(validation.error);@@ -57,6 +57,7 @@ export async function action({ request }: ActionFunctionArgs) {id,hoursPerWeek,abilities: abilities ?? [],+ customFields: setCustomFields(formData),updatedBy: userId,});@@ -84,6 +85,7 @@ export default function ContractorRoute() {supplierId: contractor.supplierId ?? "",hoursPerWeek: contractor.hoursPerWeek ?? 0,abilities: contractor.abilityIds ?? ([] as string[]),+ ...getCustomFields(contractor.customFields),};return (diff --git a/apps/carbon/app/routes/x+/resources+/contractors.new.tsx b/apps/carbon/app/routes/x+/resources+/contractors.new.tsxindex 92ce7dda09..a1e0264bc7 100644--- a/apps/carbon/app/routes/x+/resources+/contractors.new.tsx+++ b/apps/carbon/app/routes/x+/resources+/contractors.new.tsx@@ -9,6 +9,7 @@ import {} from "~/modules/resources";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session.server";+import { setCustomFields } from "~/utils/form";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";import { error, success } from "~/utils/result";@@ -19,9 +20,8 @@ export async function action({ request }: ActionFunctionArgs) {create: "resources",});- const validation = await validator(contractorValidator).validate(- await request.formData()- );+ const formData = await request.formData();+ const validation = await validator(contractorValidator).validate(formData);if (validation.error) {return validationError(validation.error);@@ -33,6 +33,7 @@ export async function action({ request }: ActionFunctionArgs) {id,hoursPerWeek,abilities: abilities ?? [],+ customFields: setCustomFields(formData),createdBy: userId,});diff --git a/packages/database/src/types.ts b/packages/database/src/types.tsindex 7842fe4de2..4f8ee6d300 100644--- a/packages/database/src/types.ts+++ b/packages/database/src/types.ts@@ -4,13355 +4,13356 @@ 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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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_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: "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_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_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: "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"]+ },+ ]+ }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_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_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: "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_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_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: "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: "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: "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: "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: "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: "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: "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;- id: string;- name: string;- path: string;- readGroups: string[] | null;- size: number;- type: string | null;- updatedAt: string | null;- updatedBy: string | null;- writeGroups: string[] | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ description: string | null+ id: string+ name: string+ path: string+ readGroups: string[] | null+ size: number+ type: string | null+ updatedAt: string | null+ updatedBy: string | null+ writeGroups: string[] | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- description?: string | null;- id?: string;- name: string;- path: string;- readGroups?: string[] | null;- size: number;- type?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- writeGroups?: string[] | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ description?: string | null+ id?: string+ name: string+ path: string+ readGroups?: string[] | null+ size: number+ type?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ writeGroups?: string[] | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- description?: string | null;- id?: string;- name?: string;- path?: string;- readGroups?: string[] | null;- size?: number;- type?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- writeGroups?: string[] | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ description?: string | null+ id?: string+ name?: string+ path?: string+ readGroups?: string[] | null+ size?: number+ type?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ writeGroups?: string[] | null+ }Relationships: [{- 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: "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: "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: "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: "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: "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;- customFields?: Json | null;- employeeId: string;- id: string;- lastTrainingDate: string | null;- trainingCompleted: boolean | null;- trainingDays: number;- };+ abilityId: string+ active: boolean+ customFields: Json | null+ employeeId: string+ id: string+ lastTrainingDate: string | null+ trainingCompleted: boolean | null+ trainingDays: number+ }Insert: {- abilityId: string;- active?: boolean;- customFields?: Json | null;- employeeId: string;- id?: string;- lastTrainingDate?: string | null;- trainingCompleted?: boolean | null;- trainingDays?: number;- };+ abilityId: string+ active?: boolean+ customFields?: Json | null+ employeeId: string+ id?: string+ lastTrainingDate?: string | null+ trainingCompleted?: boolean | null+ trainingDays?: number+ }Update: {- abilityId?: string;- active?: boolean;- customFields?: Json | null;- employeeId?: string;- id?: string;- lastTrainingDate?: string | null;- trainingCompleted?: boolean | null;- trainingDays?: number;- };+ abilityId?: string+ active?: boolean+ customFields?: Json | null+ 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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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_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_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: "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"]+ },+ ]+ }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: "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_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: "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: "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: "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: "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: "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: "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: "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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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_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_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["partGroupId"];+ foreignKeyName: "part_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["partGroupId"]},{- 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: "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: "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: "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: "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: "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: "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_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: "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_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: "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: "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: "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_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: "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: "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: "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;- 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+ 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;- 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+ 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;- 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+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- 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: "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: "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: "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: "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: "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_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_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["partGroupId"];+ foreignKeyName: "postingGroupInventory_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["partGroupId"]},{- 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: "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_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["partGroupId"];+ foreignKeyName: "postingGroupPurchasing_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["partGroupId"]},{- 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: "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_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["partGroupId"];+ foreignKeyName: "postingGroupSales_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["partGroupId"]},{- 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: "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: {- 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;- };+ 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: {- 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;- };+ 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: {- 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;- };+ 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_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: "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;- createdAt: string;- createdBy: string;- currencyCode: string;- customFields?: Json | null;- description: string | null;- exchangeRate: number;- id: string;- invoiceId: string;- invoiceLineType: Database["public"]["Enums"]["payableLineType"];- locationId: string | null;- partId: string | null;- purchaseOrderId: string | null;- purchaseOrderLineId: string | null;- quantity: number;- serviceId: string | null;- shelfId: string | null;- totalAmount: number | null;- unitOfMeasureCode: string | null;- unitPrice: number;- updatedAt: string | null;- updatedBy: string | null;- };+ accountNumber: string | null+ assetId: string | null+ createdAt: string+ createdBy: string+ currencyCode: string+ customFields: Json | null+ description: string | null+ exchangeRate: number+ id: string+ invoiceId: string+ invoiceLineType: Database["public"]["Enums"]["payableLineType"]+ locationId: string | null+ partId: string | null+ purchaseOrderId: string | null+ purchaseOrderLineId: string | null+ quantity: number+ serviceId: string | null+ shelfId: string | null+ totalAmount: number | null+ unitOfMeasureCode: string | null+ unitPrice: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountNumber?: string | null;- assetId?: string | null;- createdAt?: string;- createdBy: string;- currencyCode: string;- customFields?: Json | null;- description?: string | null;- exchangeRate?: number;- id?: string;- invoiceId: string;- invoiceLineType: Database["public"]["Enums"]["payableLineType"];- locationId?: string | null;- partId?: string | null;- purchaseOrderId?: string | null;- purchaseOrderLineId?: string | null;- quantity?: number;- serviceId?: string | null;- shelfId?: string | null;- totalAmount?: number | null;- unitOfMeasureCode?: string | null;- unitPrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountNumber?: string | null+ assetId?: string | null+ createdAt?: string+ createdBy: string+ currencyCode: string+ customFields?: Json | null+ description?: string | null+ exchangeRate?: number+ id?: string+ invoiceId: string+ invoiceLineType: Database["public"]["Enums"]["payableLineType"]+ locationId?: string | null+ partId?: string | null+ purchaseOrderId?: string | null+ purchaseOrderLineId?: string | null+ quantity?: number+ serviceId?: string | null+ shelfId?: string | null+ totalAmount?: number | null+ unitOfMeasureCode?: string | null+ unitPrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountNumber?: string | null;- assetId?: string | null;- createdAt?: string;- createdBy?: string;- currencyCode?: string;- customFields?: Json | null;- description?: string | null;- exchangeRate?: number;- id?: string;- invoiceId?: string;- invoiceLineType?: Database["public"]["Enums"]["payableLineType"];- locationId?: string | null;- partId?: string | null;- purchaseOrderId?: string | null;- purchaseOrderLineId?: string | null;- quantity?: number;- serviceId?: string | null;- shelfId?: string | null;- totalAmount?: number | null;- unitOfMeasureCode?: string | null;- unitPrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountNumber?: string | null+ assetId?: string | null+ createdAt?: string+ createdBy?: string+ currencyCode?: string+ customFields?: Json | null+ description?: string | null+ exchangeRate?: number+ id?: string+ invoiceId?: string+ invoiceLineType?: Database["public"]["Enums"]["payableLineType"]+ locationId?: string | null+ partId?: string | null+ purchaseOrderId?: string | null+ purchaseOrderLineId?: string | null+ quantity?: number+ serviceId?: string | null+ shelfId?: string | null+ totalAmount?: number | null+ unitOfMeasureCode?: string | null+ unitPrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- 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: "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_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_unitOfMeasureCode_fkey";- columns: ["unitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "purchaseInvoiceLines_unitOfMeasureCode_fkey"+ columns: ["unitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- 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: "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: {- 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;- };+ 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: {- 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;- };+ 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: {- 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;- };+ 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_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: "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: "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_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_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: "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: "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;- createdAt: string;- createdBy: string;- customFields?: Json | null;- description: string | null;- id: string;- invoicedComplete: boolean;- locationId: string | null;- partId: string | null;- purchaseOrderId: string;- purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"];- purchaseQuantity: number | 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;- 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+ purchaseOrderId: string+ purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"]+ purchaseQuantity: number | 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+ 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;- purchaseOrderId: string;- purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"];- purchaseQuantity?: number | 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;- 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+ purchaseOrderId: string+ purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"]+ purchaseQuantity?: number | 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+ 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;- purchaseOrderId?: string;- purchaseOrderLineType?: Database["public"]["Enums"]["purchaseOrderLineType"];- purchaseQuantity?: number | 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;- 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+ purchaseOrderId?: string+ purchaseOrderLineType?: Database["public"]["Enums"]["purchaseOrderLineType"]+ purchaseQuantity?: number | 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+ unitOfMeasureCode?: 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: "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_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_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_unitOfMeasureCode_fkey";- columns: ["unitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "purchaseOrderLine_unitOfMeasureCode_fkey"+ columns: ["unitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- 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: "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: "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: "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: "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: {- 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;- ownerId: string;- quoteDate: string | null;- quoteId: string;- revisionId: number;- status: Database["public"]["Enums"]["quoteStatus"];- updatedAt: string | null;- updatedBy: 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+ ownerId: string+ quoteDate: string | null+ quoteId: string+ revisionId: number+ status: Database["public"]["Enums"]["quoteStatus"]+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- 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;- ownerId: string;- quoteDate?: string | null;- quoteId: string;- revisionId?: number;- status?: Database["public"]["Enums"]["quoteStatus"];- updatedAt?: string | null;- updatedBy?: 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+ ownerId: string+ quoteDate?: string | null+ quoteId: string+ revisionId?: number+ status?: Database["public"]["Enums"]["quoteStatus"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- 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;- ownerId?: string;- quoteDate?: string | null;- quoteId?: string;- revisionId?: number;- status?: Database["public"]["Enums"]["quoteStatus"];- updatedAt?: string | null;- updatedBy?: 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+ ownerId?: string+ quoteDate?: string | null+ quoteId?: string+ revisionId?: number+ status?: Database["public"]["Enums"]["quoteStatus"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- 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_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_ownerId_fkey";- columns: ["ownerId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quote_ownerId_fkey"+ columns: ["ownerId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_ownerId_fkey";- columns: ["ownerId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quote_ownerId_fkey"+ columns: ["ownerId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_ownerId_fkey";- columns: ["ownerId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "quote_ownerId_fkey"+ columns: ["ownerId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- 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: "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: "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_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: "quotes";- referencedColumns: ["id"];+ foreignKeyName: "quoteFavorites_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quotes"+ 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: "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: "quotes";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quotes"+ 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"]+ },+ ]+ }quoteLineQuantity: {Row: {- additionalCost: number;- createdAt: string;- createdBy: string;- discountPercentage: number;- extendedCost: number;- id: string;- laborCost: number;- leadTime: number;- markupPercentage: number;- materialCost: number;- overheadCost: number;- productionHours: number;- quantity: number;- quoteId: string;- quoteLineId: string;- scrapPercentage: number;- setupHours: number;- unitCostBase: number;- unitTaxAmount: number;- updatedAt: string | null;- updatedBy: string | null;- };+ additionalCost: number+ createdAt: string+ createdBy: string+ discountPercentage: number+ extendedCost: number+ id: string+ laborCost: number+ leadTime: number+ markupPercentage: number+ materialCost: number+ overheadCost: number+ productionHours: number+ quantity: number+ quoteId: string+ quoteLineId: string+ scrapPercentage: number+ setupHours: number+ unitCostBase: number+ unitTaxAmount: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- additionalCost?: number;- createdAt?: string;- createdBy: string;- discountPercentage?: number;- extendedCost?: number;- id?: string;- laborCost?: number;- leadTime?: number;- markupPercentage?: number;- materialCost?: number;- overheadCost?: number;- productionHours?: number;- quantity?: number;- quoteId: string;- quoteLineId: string;- scrapPercentage?: number;- setupHours?: number;- unitCostBase?: number;- unitTaxAmount?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ additionalCost?: number+ createdAt?: string+ createdBy: string+ discountPercentage?: number+ extendedCost?: number+ id?: string+ laborCost?: number+ leadTime?: number+ markupPercentage?: number+ materialCost?: number+ overheadCost?: number+ productionHours?: number+ quantity?: number+ quoteId: string+ quoteLineId: string+ scrapPercentage?: number+ setupHours?: number+ unitCostBase?: number+ unitTaxAmount?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- additionalCost?: number;- createdAt?: string;- createdBy?: string;- discountPercentage?: number;- extendedCost?: number;- id?: string;- laborCost?: number;- leadTime?: number;- markupPercentage?: number;- materialCost?: number;- overheadCost?: number;- productionHours?: number;- quantity?: number;- quoteId?: string;- quoteLineId?: string;- scrapPercentage?: number;- setupHours?: number;- unitCostBase?: number;- unitTaxAmount?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ additionalCost?: number+ createdAt?: string+ createdBy?: string+ discountPercentage?: number+ extendedCost?: number+ id?: string+ laborCost?: number+ leadTime?: number+ markupPercentage?: number+ materialCost?: number+ overheadCost?: number+ productionHours?: number+ quantity?: number+ quoteId?: string+ quoteLineId?: string+ scrapPercentage?: number+ setupHours?: number+ unitCostBase?: number+ unitTaxAmount?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "quoteLineQuantity_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteLineQuantity_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLineQuantity_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteLineQuantity_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLineQuantity_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "quoteLineQuantity_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "quoteLineQuantity_quoteLineId_fkey";- columns: ["quoteLineId"];- isOneToOne: false;- referencedRelation: "quoteLine";- referencedColumns: ["id"];+ foreignKeyName: "quoteLineQuantity_quoteLineId_fkey"+ columns: ["quoteLineId"]+ isOneToOne: false+ referencedRelation: "quoteLine"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLineQuantity_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteLineQuantity_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLineQuantity_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteLineQuantity_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLineQuantity_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "quoteLineQuantity_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: "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: "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_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: "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: "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: "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_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: {- createdAt: string;- createdBy: string;- customFields?: Json | null;- externalDocumentId: string | null;- id: string;- invoiced: boolean | null;- locationId: string | null;- postingDate: string | null;- receiptId: string;+ 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: {- createdAt?: string;- createdBy: string;- customFields?: Json | null;- externalDocumentId?: string | null;- id?: string;- invoiced?: boolean | null;- locationId?: string | null;- postingDate?: string | null;- receiptId: string;+ 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: {- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- externalDocumentId?: string | null;- id?: string;- invoiced?: boolean | null;- locationId?: string | null;- postingDate?: string | null;- receiptId?: string;+ 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_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_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: "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: {- 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;- };+ 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: {- 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;- };+ 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: {- 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;- };+ 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: "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_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: "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: "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: {- 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;- };+ 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: {- 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;- };+ 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: {- 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;- };+ 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_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_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: "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: "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_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: "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: "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_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: "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: "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"]+ },+ ]+ }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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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_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_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["partGroupId"];+ foreignKeyName: "service_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["partGroupId"]},{- 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: "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: "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: "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_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;- 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;- wednesday: boolean;- };+ active: boolean+ 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+ wednesday: boolean+ }Insert: {- active?: boolean;- 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;- wednesday?: boolean;- };+ active?: boolean+ 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+ wednesday?: boolean+ }Update: {- active?: boolean;- 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;- wednesday?: boolean;- };+ active?: boolean+ 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+ wednesday?: boolean+ }Relationships: [{- 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"]+ },+ ]+ }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: "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: "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: "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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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_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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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_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_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: "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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "account_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }contractors: {Row: {- abilityIds: string[] | null;- active: boolean | 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: {- customerStatusId: string | null;- customerTypeId: string | null;- id: string | null;- name: string | null;- status: string | null;- type: string | null;- };+ customerStatusId: string | null+ customerTypeId: string | null+ id: string | null+ name: string | null+ status: string | null+ type: string | null+ }Relationships: [{- 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_customerStatusId_fkey"+ columns: ["customerStatusId"]+ isOneToOne: false+ referencedRelation: "customerStatus"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customer_customerTypeId_fkey"+ columns: ["customerTypeId"]+ isOneToOne: false+ referencedRelation: "customerType"+ referencedColumns: ["id"]+ },+ ]+ }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: []+ }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: "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;- createdByAvatar: string | null;- createdByFullName: string | null;- description: 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;- type: string | null;- updatedAt: string | null;- updatedBy: string | null;- updatedByAvatar: string | null;- updatedByFullName: string | null;- writeGroups: string[] | null;- };+ active: boolean | null+ createdAt: string | null+ createdBy: string | null+ createdByAvatar: string | null+ createdByFullName: string | null+ description: 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+ type: string | null+ updatedAt: string | null+ updatedBy: string | null+ updatedByAvatar: string | null+ updatedByFullName: 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: "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: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "document_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }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: "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;- hoursPerWeek: number | null;- state: string | null;- supplierId: string | null;- supplierLocationId: string | null;- supplierName: string | null;- };+ abilityId: string | null+ abilityName: string | null+ active: boolean | null+ city: string | null+ hoursPerWeek: number | null+ state: string | null+ supplierId: string | null+ supplierLocationId: string | null+ supplierName: string | null+ }Relationships: [{- foreignKeyName: "partner_abilityId_fkey";- columns: ["abilityId"];- isOneToOne: false;- referencedRelation: "ability";- referencedColumns: ["id"];- },- {- foreignKeyName: "partner_id_fkey";- columns: ["supplierLocationId"];- isOneToOne: false;- referencedRelation: "supplierLocation";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "partner_abilityId_fkey"+ columns: ["abilityId"]+ isOneToOne: false+ referencedRelation: "ability"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "partner_id_fkey"+ columns: ["supplierLocationId"]+ isOneToOne: false+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]+ },+ ]+ }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;- description: string | null;- id: string | null;- name: string | null;- partGroup: string | null;- partGroupId: string | null;- partType: Database["public"]["Enums"]["partType"] | null;+ active: boolean | null+ description: string | null+ id: 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;- };+ | null+ supplierIds: string[] | null+ }Relationships: [{- foreignKeyName: "part_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "partGroup";- referencedColumns: ["id"];- },- {- foreignKeyName: "part_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["partGroupId"];- }- ];- };+ foreignKeyName: "part_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "partGroup"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "part_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["partGroupId"]+ },+ ]+ }purchaseInvoices: {Row: {- balance: number | null;- contactName: string | null;- createdAt: string | null;- createdBy: string | null;- createdByAvatar: string | null;- createdByFullName: string | null;- currencyCode: string | null;- dateDue: string | null;- dateIssued: string | null;- datePaid: string | null;- exchangeRate: number | null;- id: string | null;- invoiceId: string | null;- invoiceSupplierContactId: string | null;- invoiceSupplierId: string | null;- invoiceSupplierLocationId: string | null;- paymentTermId: string | null;- postingDate: string | null;- status: Database["public"]["Enums"]["purchaseInvoiceStatus"] | null;- subtotal: number | null;- supplierId: string | null;- supplierName: string | null;- supplierReference: string | null;- totalAmount: number | null;- totalDiscount: number | null;- totalTax: number | null;- updatedAt: string | null;- updatedBy: string | null;- updatedByAvatar: string | null;- updatedByFullName: string | null;- };+ balance: number | null+ contactName: string | null+ createdAt: string | null+ createdBy: string | null+ createdByAvatar: string | null+ createdByFullName: string | null+ currencyCode: string | null+ dateDue: string | null+ dateIssued: string | null+ datePaid: string | null+ exchangeRate: number | null+ id: string | null+ invoiceId: string | null+ invoiceSupplierContactId: string | null+ invoiceSupplierId: string | null+ invoiceSupplierLocationId: string | null+ paymentTermId: string | null+ postingDate: string | null+ status: Database["public"]["Enums"]["purchaseInvoiceStatus"] | null+ subtotal: number | null+ supplierId: string | null+ supplierName: string | null+ supplierReference: string | null+ totalAmount: number | null+ totalDiscount: number | null+ totalTax: number | null+ updatedAt: string | null+ updatedBy: string | null+ updatedByAvatar: string | null+ updatedByFullName: string | null+ }Relationships: [{- 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: "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: "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_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: "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: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "purchaseInvoice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }purchaseOrderLines: {Row: {- accountNumber: string | null;- assetId: string | null;- createdAt: string | null;- createdBy: string | null;- description: string | null;- id: 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+ createdAt: string | null+ createdBy: string | null+ description: string | null+ id: 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;- 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;- unitOfMeasureCode: string | null;- unitPrice: number | null;- updatedAt: string | null;- updatedBy: string | null;- };+ | null+ purchaseQuantity: number | 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+ unitOfMeasureCode: 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: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- 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_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_unitOfMeasureCode_fkey";- columns: ["unitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "purchaseOrderLine_unitOfMeasureCode_fkey"+ columns: ["unitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- 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: "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: {- closedAt: string | null;- closedBy: string | null;- closedByAvatar: string | null;- closedByFullName: string | null;- createdAt: string | null;- createdBy: string | null;- createdByAvatar: string | null;- createdByFullName: string | 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;- supplierName: string | null;- supplierReference: string | null;- type: Database["public"]["Enums"]["purchaseOrderType"] | null;- updatedAt: string | null;- updatedBy: string | null;- updatedByAvatar: string | null;- updatedByFullName: 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+ 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+ supplierName: string | null+ supplierReference: string | null+ type: Database["public"]["Enums"]["purchaseOrderType"] | null+ updatedAt: string | null+ updatedBy: string | null+ updatedByAvatar: string | null+ updatedByFullName: string | null+ }Relationships: [{- 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: "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: "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: "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: []+ }quotes: {Row: {- 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;- expirationDate: string | null;- favorite: boolean | null;- id: string | null;- locationId: string | null;- locationName: string | null;- name: string | null;- notes: string | null;- ownerAvatar: string | null;- ownerFullName: string | null;- ownerId: string | null;- partIds: string[] | null;- quoteDate: string | null;- quoteId: string | null;- status: Database["public"]["Enums"]["quoteStatus"] | null;- updatedByAvatar: string | null;- updatedByFullName: 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+ expirationDate: string | null+ favorite: boolean | null+ id: string | null+ locationId: string | null+ locationName: string | null+ name: string | null+ notes: string | null+ ownerAvatar: string | null+ ownerFullName: string | null+ ownerId: string | null+ partIds: string[] | null+ quoteDate: string | null+ quoteId: string | null+ status: Database["public"]["Enums"]["quoteStatus"] | null+ updatedByAvatar: string | null+ updatedByFullName: string | null+ }Relationships: [{- 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: "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_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_ownerId_fkey";- columns: ["ownerId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quote_ownerId_fkey"+ columns: ["ownerId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_ownerId_fkey";- columns: ["ownerId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quote_ownerId_fkey"+ columns: ["ownerId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_ownerId_fkey";- columns: ["ownerId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "quote_ownerId_fkey"+ columns: ["ownerId"]+ 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: {- createdAt: string | null;- createdBy: string | null;- createdByAvatar: string | null;- createdByFullName: string | 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;- status: Database["public"]["Enums"]["requestForQuoteStatus"] | null;- supplierIds: string[] | null;- updatedByAvatar: string | null;- updatedByFullName: string | null;- };+ createdAt: string | null+ createdBy: string | null+ createdByAvatar: string | null+ createdByFullName: string | 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+ status: Database["public"]["Enums"]["requestForQuoteStatus"] | null+ supplierIds: string[] | null+ updatedByAvatar: string | null+ updatedByFullName: string | null+ }Relationships: [{- 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: "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"]+ },+ ]+ }services: {Row: {- active: boolean | null;- blocked: boolean | null;- description: string | null;- id: string | null;- name: string | null;- partGroup: string | null;- partGroupId: string | null;- serviceType: Database["public"]["Enums"]["serviceType"] | null;- supplierIds: string[] | null;- };- Relationships: [];- };+ active: boolean | null+ blocked: boolean | null+ description: string | null+ id: string | null+ name: string | null+ partGroup: string | null+ partGroupId: string | null+ serviceType: Database["public"]["Enums"]["serviceType"] | null+ supplierIds: string[] | null+ }+ Relationships: []+ }suppliers: {Row: {- id: string | null;- name: string | null;- orderCount: number | null;- partCount: number | null;- status: string | null;- supplierStatusId: string | null;- supplierTypeId: string | null;- type: string | null;- };+ id: string | null+ name: string | null+ orderCount: number | null+ partCount: number | null+ status: string | null+ supplierStatusId: string | null+ supplierTypeId: string | null+ type: string | null+ }Relationships: [{- 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_supplierStatusId_fkey"+ columns: ["supplierStatusId"]+ isOneToOne: false+ referencedRelation: "supplierStatus"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplier_supplierTypeId_fkey"+ columns: ["supplierTypeId"]+ isOneToOne: false+ referencedRelation: "supplierType"+ referencedColumns: ["id"]+ },+ ]+ }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: "partQuantities";- referencedColumns: ["locationId"];- },- {- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];- }- ];- };- };+ 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: "purchaseOrders"+ 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"documentTransactionType:| "Download"| "Edit"| "Favorite"| "Label"| "Unfavorite"- | "Upload";+ | "Upload"factor:| "Hours/Piece"| "Hours/100 Pieces"@@ -13364,7 +13365,7 @@ export type Database = {| "Pieces/Minute"| "Seconds/Piece"| "Total Hours"- | "Total Minutes";+ | "Total Minutes"glAccountCategory:| "Bank"| "Accounts Receivable"@@ -13383,17 +13384,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"@@ -13407,7 +13408,7 @@ export type Database = {| "Sales"| "Scheduling"| "Timecards"- | "Users";+ | "Users"month:| "January"| "February"@@ -13420,8 +13421,8 @@ export type Database = {| "September"| "October"| "November"- | "December";- partCostingMethod: "Standard" | "Average" | "LIFO" | "FIFO";+ | "December"+ partCostingMethod: "Standard" | "Average" | "LIFO" | "FIFO"partLedgerDocumentType:| "Sales Shipment"| "Sales Invoice"@@ -13439,7 +13440,7 @@ export type Database = {| "Posted Assembly"| "Inventory Receipt"| "Inventory Shipment"- | "Direct Transfer";+ | "Direct Transfer"partLedgerType:| "Purchase"| "Sale"@@ -13449,22 +13450,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"@@ -13474,13 +13475,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"@@ -13489,16 +13490,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"@@ -13507,7 +13508,7 @@ export type Database = {| "Partially Ordered"| "Lost"| "Cancelled"- | "Expired";+ | "Expired"receiptSourceDocument:| "Sales Order"| "Sales Invoice"@@ -13518,9 +13519,9 @@ export type Database = {| "Inbound Transfer"| "Outbound Transfer"| "Manufacturing Consumption"- | "Manufacturing Output";- receiptStatus: "Draft" | "Pending" | "Posted";- requestForQuoteStatus: "Draft" | "Sent" | "Expired" | "Closed";+ | "Manufacturing Output"+ receiptStatus: "Draft" | "Pending" | "Posted"+ requestForQuoteStatus: "Draft" | "Sent" | "Expired" | "Closed"searchEntity:| "Resource"| "Person"@@ -13536,201 +13537,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@@ -13739,23 +13740,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@@ -13763,20 +13764,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@@ -13784,20 +13785,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@@ -13805,9 +13806,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/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.tsindex 7842fe4de2..4f8ee6d300 100644--- a/packages/database/supabase/functions/lib/types.ts+++ b/packages/database/supabase/functions/lib/types.ts@@ -4,13355 +4,13356 @@ 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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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_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: "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_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_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: "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"]+ },+ ]+ }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_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_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: "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_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_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: "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: "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: "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: "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: "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: "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: "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;- id: string;- name: string;- path: string;- readGroups: string[] | null;- size: number;- type: string | null;- updatedAt: string | null;- updatedBy: string | null;- writeGroups: string[] | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ description: string | null+ id: string+ name: string+ path: string+ readGroups: string[] | null+ size: number+ type: string | null+ updatedAt: string | null+ updatedBy: string | null+ writeGroups: string[] | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- description?: string | null;- id?: string;- name: string;- path: string;- readGroups?: string[] | null;- size: number;- type?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- writeGroups?: string[] | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ description?: string | null+ id?: string+ name: string+ path: string+ readGroups?: string[] | null+ size: number+ type?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ writeGroups?: string[] | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- description?: string | null;- id?: string;- name?: string;- path?: string;- readGroups?: string[] | null;- size?: number;- type?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- writeGroups?: string[] | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ description?: string | null+ id?: string+ name?: string+ path?: string+ readGroups?: string[] | null+ size?: number+ type?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ writeGroups?: string[] | null+ }Relationships: [{- 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: "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: "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: "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: "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: "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;- customFields?: Json | null;- employeeId: string;- id: string;- lastTrainingDate: string | null;- trainingCompleted: boolean | null;- trainingDays: number;- };+ abilityId: string+ active: boolean+ customFields: Json | null+ employeeId: string+ id: string+ lastTrainingDate: string | null+ trainingCompleted: boolean | null+ trainingDays: number+ }Insert: {- abilityId: string;- active?: boolean;- customFields?: Json | null;- employeeId: string;- id?: string;- lastTrainingDate?: string | null;- trainingCompleted?: boolean | null;- trainingDays?: number;- };+ abilityId: string+ active?: boolean+ customFields?: Json | null+ employeeId: string+ id?: string+ lastTrainingDate?: string | null+ trainingCompleted?: boolean | null+ trainingDays?: number+ }Update: {- abilityId?: string;- active?: boolean;- customFields?: Json | null;- employeeId?: string;- id?: string;- lastTrainingDate?: string | null;- trainingCompleted?: boolean | null;- trainingDays?: number;- };+ abilityId?: string+ active?: boolean+ customFields?: Json | null+ 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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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_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_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: "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"]+ },+ ]+ }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: "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_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: "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: "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: "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: "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: "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: "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: "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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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_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_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["partGroupId"];+ foreignKeyName: "part_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["partGroupId"]},{- 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: "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: "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: "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: "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: "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: "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_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: "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_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: "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: "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: "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_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: "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: "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: "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;- 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+ 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;- 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+ 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;- 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+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- 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: "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: "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: "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: "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: "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_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_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["partGroupId"];+ foreignKeyName: "postingGroupInventory_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["partGroupId"]},{- 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: "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_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["partGroupId"];+ foreignKeyName: "postingGroupPurchasing_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["partGroupId"]},{- 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: "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_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["partGroupId"];+ foreignKeyName: "postingGroupSales_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["partGroupId"]},{- 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: "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: {- 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;- };+ 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: {- 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;- };+ 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: {- 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;- };+ 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_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: "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;- createdAt: string;- createdBy: string;- currencyCode: string;- customFields?: Json | null;- description: string | null;- exchangeRate: number;- id: string;- invoiceId: string;- invoiceLineType: Database["public"]["Enums"]["payableLineType"];- locationId: string | null;- partId: string | null;- purchaseOrderId: string | null;- purchaseOrderLineId: string | null;- quantity: number;- serviceId: string | null;- shelfId: string | null;- totalAmount: number | null;- unitOfMeasureCode: string | null;- unitPrice: number;- updatedAt: string | null;- updatedBy: string | null;- };+ accountNumber: string | null+ assetId: string | null+ createdAt: string+ createdBy: string+ currencyCode: string+ customFields: Json | null+ description: string | null+ exchangeRate: number+ id: string+ invoiceId: string+ invoiceLineType: Database["public"]["Enums"]["payableLineType"]+ locationId: string | null+ partId: string | null+ purchaseOrderId: string | null+ purchaseOrderLineId: string | null+ quantity: number+ serviceId: string | null+ shelfId: string | null+ totalAmount: number | null+ unitOfMeasureCode: string | null+ unitPrice: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountNumber?: string | null;- assetId?: string | null;- createdAt?: string;- createdBy: string;- currencyCode: string;- customFields?: Json | null;- description?: string | null;- exchangeRate?: number;- id?: string;- invoiceId: string;- invoiceLineType: Database["public"]["Enums"]["payableLineType"];- locationId?: string | null;- partId?: string | null;- purchaseOrderId?: string | null;- purchaseOrderLineId?: string | null;- quantity?: number;- serviceId?: string | null;- shelfId?: string | null;- totalAmount?: number | null;- unitOfMeasureCode?: string | null;- unitPrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountNumber?: string | null+ assetId?: string | null+ createdAt?: string+ createdBy: string+ currencyCode: string+ customFields?: Json | null+ description?: string | null+ exchangeRate?: number+ id?: string+ invoiceId: string+ invoiceLineType: Database["public"]["Enums"]["payableLineType"]+ locationId?: string | null+ partId?: string | null+ purchaseOrderId?: string | null+ purchaseOrderLineId?: string | null+ quantity?: number+ serviceId?: string | null+ shelfId?: string | null+ totalAmount?: number | null+ unitOfMeasureCode?: string | null+ unitPrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountNumber?: string | null;- assetId?: string | null;- createdAt?: string;- createdBy?: string;- currencyCode?: string;- customFields?: Json | null;- description?: string | null;- exchangeRate?: number;- id?: string;- invoiceId?: string;- invoiceLineType?: Database["public"]["Enums"]["payableLineType"];- locationId?: string | null;- partId?: string | null;- purchaseOrderId?: string | null;- purchaseOrderLineId?: string | null;- quantity?: number;- serviceId?: string | null;- shelfId?: string | null;- totalAmount?: number | null;- unitOfMeasureCode?: string | null;- unitPrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountNumber?: string | null+ assetId?: string | null+ createdAt?: string+ createdBy?: string+ currencyCode?: string+ customFields?: Json | null+ description?: string | null+ exchangeRate?: number+ id?: string+ invoiceId?: string+ invoiceLineType?: Database["public"]["Enums"]["payableLineType"]+ locationId?: string | null+ partId?: string | null+ purchaseOrderId?: string | null+ purchaseOrderLineId?: string | null+ quantity?: number+ serviceId?: string | null+ shelfId?: string | null+ totalAmount?: number | null+ unitOfMeasureCode?: string | null+ unitPrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- 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: "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_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_unitOfMeasureCode_fkey";- columns: ["unitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "purchaseInvoiceLines_unitOfMeasureCode_fkey"+ columns: ["unitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- 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: "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: {- 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;- };+ 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: {- 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;- };+ 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: {- 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;- };+ 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_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: "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: "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_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_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: "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: "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;- createdAt: string;- createdBy: string;- customFields?: Json | null;- description: string | null;- id: string;- invoicedComplete: boolean;- locationId: string | null;- partId: string | null;- purchaseOrderId: string;- purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"];- purchaseQuantity: number | 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;- 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+ purchaseOrderId: string+ purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"]+ purchaseQuantity: number | 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+ 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;- purchaseOrderId: string;- purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"];- purchaseQuantity?: number | 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;- 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+ purchaseOrderId: string+ purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"]+ purchaseQuantity?: number | 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+ 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;- purchaseOrderId?: string;- purchaseOrderLineType?: Database["public"]["Enums"]["purchaseOrderLineType"];- purchaseQuantity?: number | 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;- 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+ purchaseOrderId?: string+ purchaseOrderLineType?: Database["public"]["Enums"]["purchaseOrderLineType"]+ purchaseQuantity?: number | 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+ unitOfMeasureCode?: 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: "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_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_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_unitOfMeasureCode_fkey";- columns: ["unitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "purchaseOrderLine_unitOfMeasureCode_fkey"+ columns: ["unitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- 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: "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: "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: "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: "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: {- 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;- ownerId: string;- quoteDate: string | null;- quoteId: string;- revisionId: number;- status: Database["public"]["Enums"]["quoteStatus"];- updatedAt: string | null;- updatedBy: 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+ ownerId: string+ quoteDate: string | null+ quoteId: string+ revisionId: number+ status: Database["public"]["Enums"]["quoteStatus"]+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- 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;- ownerId: string;- quoteDate?: string | null;- quoteId: string;- revisionId?: number;- status?: Database["public"]["Enums"]["quoteStatus"];- updatedAt?: string | null;- updatedBy?: 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+ ownerId: string+ quoteDate?: string | null+ quoteId: string+ revisionId?: number+ status?: Database["public"]["Enums"]["quoteStatus"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- 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;- ownerId?: string;- quoteDate?: string | null;- quoteId?: string;- revisionId?: number;- status?: Database["public"]["Enums"]["quoteStatus"];- updatedAt?: string | null;- updatedBy?: 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+ ownerId?: string+ quoteDate?: string | null+ quoteId?: string+ revisionId?: number+ status?: Database["public"]["Enums"]["quoteStatus"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- 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_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_ownerId_fkey";- columns: ["ownerId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quote_ownerId_fkey"+ columns: ["ownerId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_ownerId_fkey";- columns: ["ownerId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quote_ownerId_fkey"+ columns: ["ownerId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_ownerId_fkey";- columns: ["ownerId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "quote_ownerId_fkey"+ columns: ["ownerId"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- 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: "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: "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_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: "quotes";- referencedColumns: ["id"];+ foreignKeyName: "quoteFavorites_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quotes"+ 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: "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: "quotes";- referencedColumns: ["id"];+ foreignKeyName: "quoteLine_quoteId_fkey"+ columns: ["quoteId"]+ isOneToOne: false+ referencedRelation: "quotes"+ 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"]+ },+ ]+ }quoteLineQuantity: {Row: {- additionalCost: number;- createdAt: string;- createdBy: string;- discountPercentage: number;- extendedCost: number;- id: string;- laborCost: number;- leadTime: number;- markupPercentage: number;- materialCost: number;- overheadCost: number;- productionHours: number;- quantity: number;- quoteId: string;- quoteLineId: string;- scrapPercentage: number;- setupHours: number;- unitCostBase: number;- unitTaxAmount: number;- updatedAt: string | null;- updatedBy: string | null;- };+ additionalCost: number+ createdAt: string+ createdBy: string+ discountPercentage: number+ extendedCost: number+ id: string+ laborCost: number+ leadTime: number+ markupPercentage: number+ materialCost: number+ overheadCost: number+ productionHours: number+ quantity: number+ quoteId: string+ quoteLineId: string+ scrapPercentage: number+ setupHours: number+ unitCostBase: number+ unitTaxAmount: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- additionalCost?: number;- createdAt?: string;- createdBy: string;- discountPercentage?: number;- extendedCost?: number;- id?: string;- laborCost?: number;- leadTime?: number;- markupPercentage?: number;- materialCost?: number;- overheadCost?: number;- productionHours?: number;- quantity?: number;- quoteId: string;- quoteLineId: string;- scrapPercentage?: number;- setupHours?: number;- unitCostBase?: number;- unitTaxAmount?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ additionalCost?: number+ createdAt?: string+ createdBy: string+ discountPercentage?: number+ extendedCost?: number+ id?: string+ laborCost?: number+ leadTime?: number+ markupPercentage?: number+ materialCost?: number+ overheadCost?: number+ productionHours?: number+ quantity?: number+ quoteId: string+ quoteLineId: string+ scrapPercentage?: number+ setupHours?: number+ unitCostBase?: number+ unitTaxAmount?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- additionalCost?: number;- createdAt?: string;- createdBy?: string;- discountPercentage?: number;- extendedCost?: number;- id?: string;- laborCost?: number;- leadTime?: number;- markupPercentage?: number;- materialCost?: number;- overheadCost?: number;- productionHours?: number;- quantity?: number;- quoteId?: string;- quoteLineId?: string;- scrapPercentage?: number;- setupHours?: number;- unitCostBase?: number;- unitTaxAmount?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ additionalCost?: number+ createdAt?: string+ createdBy?: string+ discountPercentage?: number+ extendedCost?: number+ id?: string+ laborCost?: number+ leadTime?: number+ markupPercentage?: number+ materialCost?: number+ overheadCost?: number+ productionHours?: number+ quantity?: number+ quoteId?: string+ quoteLineId?: string+ scrapPercentage?: number+ setupHours?: number+ unitCostBase?: number+ unitTaxAmount?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "quoteLineQuantity_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteLineQuantity_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLineQuantity_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteLineQuantity_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLineQuantity_createdBy_fkey";- columns: ["createdBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "quoteLineQuantity_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "quoteLineQuantity_quoteLineId_fkey";- columns: ["quoteLineId"];- isOneToOne: false;- referencedRelation: "quoteLine";- referencedColumns: ["id"];+ foreignKeyName: "quoteLineQuantity_quoteLineId_fkey"+ columns: ["quoteLineId"]+ isOneToOne: false+ referencedRelation: "quoteLine"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLineQuantity_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quoteLineQuantity_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLineQuantity_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quoteLineQuantity_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quoteLineQuantity_updatedBy_fkey";- columns: ["updatedBy"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "quoteLineQuantity_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: "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: "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_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: "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: "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: "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_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: {- createdAt: string;- createdBy: string;- customFields?: Json | null;- externalDocumentId: string | null;- id: string;- invoiced: boolean | null;- locationId: string | null;- postingDate: string | null;- receiptId: string;+ 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: {- createdAt?: string;- createdBy: string;- customFields?: Json | null;- externalDocumentId?: string | null;- id?: string;- invoiced?: boolean | null;- locationId?: string | null;- postingDate?: string | null;- receiptId: string;+ 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: {- createdAt?: string;- createdBy?: string;- customFields?: Json | null;- externalDocumentId?: string | null;- id?: string;- invoiced?: boolean | null;- locationId?: string | null;- postingDate?: string | null;- receiptId?: string;+ 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_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_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: "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: {- 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;- };+ 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: {- 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;- };+ 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: {- 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;- };+ 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: "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_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: "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: "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: {- 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;- };+ 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: {- 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;- };+ 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: {- 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;- };+ 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_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_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: "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: "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_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: "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: "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_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: "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: "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"]+ },+ ]+ }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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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_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_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["partGroupId"];+ foreignKeyName: "service_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["partGroupId"]},{- 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: "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: "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: "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_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;- 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;- wednesday: boolean;- };+ active: boolean+ 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+ wednesday: boolean+ }Insert: {- active?: boolean;- 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;- wednesday?: boolean;- };+ active?: boolean+ 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+ wednesday?: boolean+ }Update: {- active?: boolean;- 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;- wednesday?: boolean;- };+ active?: boolean+ 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+ wednesday?: boolean+ }Relationships: [{- 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"]+ },+ ]+ }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: "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: "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: "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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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_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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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: "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_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_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: "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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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: "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;- 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+ 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;- 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+ 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;- 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+ 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: "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: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "account_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }contractors: {Row: {- abilityIds: string[] | null;- active: boolean | 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: {- customerStatusId: string | null;- customerTypeId: string | null;- id: string | null;- name: string | null;- status: string | null;- type: string | null;- };+ customerStatusId: string | null+ customerTypeId: string | null+ id: string | null+ name: string | null+ status: string | null+ type: string | null+ }Relationships: [{- 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_customerStatusId_fkey"+ columns: ["customerStatusId"]+ isOneToOne: false+ referencedRelation: "customerStatus"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customer_customerTypeId_fkey"+ columns: ["customerTypeId"]+ isOneToOne: false+ referencedRelation: "customerType"+ referencedColumns: ["id"]+ },+ ]+ }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: []+ }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: "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;- createdByAvatar: string | null;- createdByFullName: string | null;- description: 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;- type: string | null;- updatedAt: string | null;- updatedBy: string | null;- updatedByAvatar: string | null;- updatedByFullName: string | null;- writeGroups: string[] | null;- };+ active: boolean | null+ createdAt: string | null+ createdBy: string | null+ createdByAvatar: string | null+ createdByFullName: string | null+ description: 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+ type: string | null+ updatedAt: string | null+ updatedBy: string | null+ updatedByAvatar: string | null+ updatedByFullName: 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: "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: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "document_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }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: "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;- hoursPerWeek: number | null;- state: string | null;- supplierId: string | null;- supplierLocationId: string | null;- supplierName: string | null;- };+ abilityId: string | null+ abilityName: string | null+ active: boolean | null+ city: string | null+ hoursPerWeek: number | null+ state: string | null+ supplierId: string | null+ supplierLocationId: string | null+ supplierName: string | null+ }Relationships: [{- foreignKeyName: "partner_abilityId_fkey";- columns: ["abilityId"];- isOneToOne: false;- referencedRelation: "ability";- referencedColumns: ["id"];- },- {- foreignKeyName: "partner_id_fkey";- columns: ["supplierLocationId"];- isOneToOne: false;- referencedRelation: "supplierLocation";- referencedColumns: ["id"];- }- ];- };+ foreignKeyName: "partner_abilityId_fkey"+ columns: ["abilityId"]+ isOneToOne: false+ referencedRelation: "ability"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "partner_id_fkey"+ columns: ["supplierLocationId"]+ isOneToOne: false+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]+ },+ ]+ }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;- description: string | null;- id: string | null;- name: string | null;- partGroup: string | null;- partGroupId: string | null;- partType: Database["public"]["Enums"]["partType"] | null;+ active: boolean | null+ description: string | null+ id: 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;- };+ | null+ supplierIds: string[] | null+ }Relationships: [{- foreignKeyName: "part_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "partGroup";- referencedColumns: ["id"];- },- {- foreignKeyName: "part_partGroupId_fkey";- columns: ["partGroupId"];- isOneToOne: false;- referencedRelation: "services";- referencedColumns: ["partGroupId"];- }- ];- };+ foreignKeyName: "part_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "partGroup"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "part_partGroupId_fkey"+ columns: ["partGroupId"]+ isOneToOne: false+ referencedRelation: "services"+ referencedColumns: ["partGroupId"]+ },+ ]+ }purchaseInvoices: {Row: {- balance: number | null;- contactName: string | null;- createdAt: string | null;- createdBy: string | null;- createdByAvatar: string | null;- createdByFullName: string | null;- currencyCode: string | null;- dateDue: string | null;- dateIssued: string | null;- datePaid: string | null;- exchangeRate: number | null;- id: string | null;- invoiceId: string | null;- invoiceSupplierContactId: string | null;- invoiceSupplierId: string | null;- invoiceSupplierLocationId: string | null;- paymentTermId: string | null;- postingDate: string | null;- status: Database["public"]["Enums"]["purchaseInvoiceStatus"] | null;- subtotal: number | null;- supplierId: string | null;- supplierName: string | null;- supplierReference: string | null;- totalAmount: number | null;- totalDiscount: number | null;- totalTax: number | null;- updatedAt: string | null;- updatedBy: string | null;- updatedByAvatar: string | null;- updatedByFullName: string | null;- };+ balance: number | null+ contactName: string | null+ createdAt: string | null+ createdBy: string | null+ createdByAvatar: string | null+ createdByFullName: string | null+ currencyCode: string | null+ dateDue: string | null+ dateIssued: string | null+ datePaid: string | null+ exchangeRate: number | null+ id: string | null+ invoiceId: string | null+ invoiceSupplierContactId: string | null+ invoiceSupplierId: string | null+ invoiceSupplierLocationId: string | null+ paymentTermId: string | null+ postingDate: string | null+ status: Database["public"]["Enums"]["purchaseInvoiceStatus"] | null+ subtotal: number | null+ supplierId: string | null+ supplierName: string | null+ supplierReference: string | null+ totalAmount: number | null+ totalDiscount: number | null+ totalTax: number | null+ updatedAt: string | null+ updatedBy: string | null+ updatedByAvatar: string | null+ updatedByFullName: string | null+ }Relationships: [{- 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: "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: "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_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: "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: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "purchaseInvoice_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }purchaseOrderLines: {Row: {- accountNumber: string | null;- assetId: string | null;- createdAt: string | null;- createdBy: string | null;- description: string | null;- id: 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+ createdAt: string | null+ createdBy: string | null+ description: string | null+ id: 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;- 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;- unitOfMeasureCode: string | null;- unitPrice: number | null;- updatedAt: string | null;- updatedBy: string | null;- };+ | null+ purchaseQuantity: number | 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+ unitOfMeasureCode: 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: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- 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_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_unitOfMeasureCode_fkey";- columns: ["unitOfMeasureCode"];- isOneToOne: false;- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "purchaseOrderLine_unitOfMeasureCode_fkey"+ columns: ["unitOfMeasureCode"]+ isOneToOne: false+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- 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: "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: {- closedAt: string | null;- closedBy: string | null;- closedByAvatar: string | null;- closedByFullName: string | null;- createdAt: string | null;- createdBy: string | null;- createdByAvatar: string | null;- createdByFullName: string | 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;- supplierName: string | null;- supplierReference: string | null;- type: Database["public"]["Enums"]["purchaseOrderType"] | null;- updatedAt: string | null;- updatedBy: string | null;- updatedByAvatar: string | null;- updatedByFullName: 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+ 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+ supplierName: string | null+ supplierReference: string | null+ type: Database["public"]["Enums"]["purchaseOrderType"] | null+ updatedAt: string | null+ updatedBy: string | null+ updatedByAvatar: string | null+ updatedByFullName: string | null+ }Relationships: [{- 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: "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: "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: "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: []+ }quotes: {Row: {- 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;- expirationDate: string | null;- favorite: boolean | null;- id: string | null;- locationId: string | null;- locationName: string | null;- name: string | null;- notes: string | null;- ownerAvatar: string | null;- ownerFullName: string | null;- ownerId: string | null;- partIds: string[] | null;- quoteDate: string | null;- quoteId: string | null;- status: Database["public"]["Enums"]["quoteStatus"] | null;- updatedByAvatar: string | null;- updatedByFullName: 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+ expirationDate: string | null+ favorite: boolean | null+ id: string | null+ locationId: string | null+ locationName: string | null+ name: string | null+ notes: string | null+ ownerAvatar: string | null+ ownerFullName: string | null+ ownerId: string | null+ partIds: string[] | null+ quoteDate: string | null+ quoteId: string | null+ status: Database["public"]["Enums"]["quoteStatus"] | null+ updatedByAvatar: string | null+ updatedByFullName: string | null+ }Relationships: [{- 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: "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_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_ownerId_fkey";- columns: ["ownerId"];- isOneToOne: false;- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "quote_ownerId_fkey"+ columns: ["ownerId"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_ownerId_fkey";- columns: ["ownerId"];- isOneToOne: false;- referencedRelation: "employeeSummary";- referencedColumns: ["id"];+ foreignKeyName: "quote_ownerId_fkey"+ columns: ["ownerId"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]},{- foreignKeyName: "quote_ownerId_fkey";- columns: ["ownerId"];- isOneToOne: false;- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- }- ];- };+ foreignKeyName: "quote_ownerId_fkey"+ columns: ["ownerId"]+ 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: {- createdAt: string | null;- createdBy: string | null;- createdByAvatar: string | null;- createdByFullName: string | 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;- status: Database["public"]["Enums"]["requestForQuoteStatus"] | null;- supplierIds: string[] | null;- updatedByAvatar: string | null;- updatedByFullName: string | null;- };+ createdAt: string | null+ createdBy: string | null+ createdByAvatar: string | null+ createdByFullName: string | 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+ status: Database["public"]["Enums"]["requestForQuoteStatus"] | null+ supplierIds: string[] | null+ updatedByAvatar: string | null+ updatedByFullName: string | null+ }Relationships: [{- 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: "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"]+ },+ ]+ }services: {Row: {- active: boolean | null;- blocked: boolean | null;- description: string | null;- id: string | null;- name: string | null;- partGroup: string | null;- partGroupId: string | null;- serviceType: Database["public"]["Enums"]["serviceType"] | null;- supplierIds: string[] | null;- };- Relationships: [];- };+ active: boolean | null+ blocked: boolean | null+ description: string | null+ id: string | null+ name: string | null+ partGroup: string | null+ partGroupId: string | null+ serviceType: Database["public"]["Enums"]["serviceType"] | null+ supplierIds: string[] | null+ }+ Relationships: []+ }suppliers: {Row: {- id: string | null;- name: string | null;- orderCount: number | null;- partCount: number | null;- status: string | null;- supplierStatusId: string | null;- supplierTypeId: string | null;- type: string | null;- };+ id: string | null+ name: string | null+ orderCount: number | null+ partCount: number | null+ status: string | null+ supplierStatusId: string | null+ supplierTypeId: string | null+ type: string | null+ }Relationships: [{- 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_supplierStatusId_fkey"+ columns: ["supplierStatusId"]+ isOneToOne: false+ referencedRelation: "supplierStatus"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplier_supplierTypeId_fkey"+ columns: ["supplierTypeId"]+ isOneToOne: false+ referencedRelation: "supplierType"+ referencedColumns: ["id"]+ },+ ]+ }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: "partQuantities";- referencedColumns: ["locationId"];- },- {- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- isOneToOne: false;- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];- }- ];- };- };+ 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: "purchaseOrders"+ 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"documentTransactionType:| "Download"| "Edit"| "Favorite"| "Label"| "Unfavorite"- | "Upload";+ | "Upload"factor:| "Hours/Piece"| "Hours/100 Pieces"@@ -13364,7 +13365,7 @@ export type Database = {| "Pieces/Minute"| "Seconds/Piece"| "Total Hours"- | "Total Minutes";+ | "Total Minutes"glAccountCategory:| "Bank"| "Accounts Receivable"@@ -13383,17 +13384,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"@@ -13407,7 +13408,7 @@ export type Database = {| "Sales"| "Scheduling"| "Timecards"- | "Users";+ | "Users"month:| "January"| "February"@@ -13420,8 +13421,8 @@ export type Database = {| "September"| "October"| "November"- | "December";- partCostingMethod: "Standard" | "Average" | "LIFO" | "FIFO";+ | "December"+ partCostingMethod: "Standard" | "Average" | "LIFO" | "FIFO"partLedgerDocumentType:| "Sales Shipment"| "Sales Invoice"@@ -13439,7 +13440,7 @@ export type Database = {| "Posted Assembly"| "Inventory Receipt"| "Inventory Shipment"- | "Direct Transfer";+ | "Direct Transfer"partLedgerType:| "Purchase"| "Sale"@@ -13449,22 +13450,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"@@ -13474,13 +13475,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"@@ -13489,16 +13490,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"@@ -13507,7 +13508,7 @@ export type Database = {| "Partially Ordered"| "Lost"| "Cancelled"- | "Expired";+ | "Expired"receiptSourceDocument:| "Sales Order"| "Sales Invoice"@@ -13518,9 +13519,9 @@ export type Database = {| "Inbound Transfer"| "Outbound Transfer"| "Manufacturing Consumption"- | "Manufacturing Output";- receiptStatus: "Draft" | "Pending" | "Posted";- requestForQuoteStatus: "Draft" | "Sent" | "Expired" | "Closed";+ | "Manufacturing Output"+ receiptStatus: "Draft" | "Pending" | "Posted"+ requestForQuoteStatus: "Draft" | "Sent" | "Expired" | "Closed"searchEntity:| "Resource"| "Person"@@ -13536,201 +13537,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@@ -13739,23 +13740,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@@ -13763,20 +13764,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@@ -13784,20 +13785,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@@ -13805,9 +13806,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/database/supabase/migrations/20230329021751_contractors.sql b/packages/database/supabase/migrations/20230329021751_contractors.sqlindex 5d98459002..f3623c9c88 100644--- a/packages/database/supabase/migrations/20230329021751_contractors.sql+++ b/packages/database/supabase/migrations/20230329021751_contractors.sql@@ -6,6 +6,7 @@ CREATE TABLE "contractor" ("createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW(),"updatedBy" TEXT,"updatedAt" TIMESTAMP WITH TIME ZONE,+ "customFields" JSONB,CONSTRAINT "contractor_pkey" PRIMARY KEY ("id"),CONSTRAINT "contractor_id_fkey" FOREIGN KEY ("id") REFERENCES "supplierContact"("id"),@@ -92,6 +93,7 @@ CREATE OR REPLACE VIEW "contractors" ASp.id AS "supplierContactId",p."active",p."hoursPerWeek",+ p."customFields",s.id AS "supplierId",s.name AS "supplierName",c."firstName",@@ -108,5 +110,4 @@ CREATE OR REPLACE VIEW "contractors" ASLEFT JOIN "contractorAbility" paON pa."contractorId" = p.idWHERE p."active" = true- GROUP BY p.id, p.active, p."hoursPerWeek", s.id, c.id, s.name, c."firstName", c."lastName", c."email"-;\ No newline at end of file+ GROUP BY p.id, p.active, p."hoursPerWeek", p."customFields", s.id, c.id, s.name, c."firstName", c."lastName", c."email";\ No newline at end of filediff --git a/packages/database/supabase/migrations/20240313021647_custom-fields-on-tables.sql b/packages/database/supabase/migrations/20240313021647_custom-fields-on-tables.sqlindex 4ade5b0009..31e18f834b 100644--- a/packages/database/supabase/migrations/20240313021647_custom-fields-on-tables.sql+++ b/packages/database/supabase/migrations/20240313021647_custom-fields-on-tables.sql@@ -1,7 +1,7 @@ALTER TABLE "account" ADD COLUMN "customFields" JSONB;ALTER TABLE "accountCategory" ADD COLUMN "customFields" JSONB;ALTER TABLE "accountSubcategory" ADD COLUMN "customFields" JSONB;-ALTER TABLE "contractor" ADD COLUMN "customFields" JSONB;+-- ALTER TABLE "contractor" ADD COLUMN "customFields" JSONB;ALTER TABLE "currency" ADD COLUMN "customFields" JSONB;ALTER TABLE "customer" ADD COLUMN "customFields" JSONB;ALTER TABLE "customerContact" ADD COLUMN "customFields" JSONB;