Skip to content

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.

fix: generate types

naveenkashfafe6ce3037a
diff --git a/packages/database/src/types.ts b/packages/database/src/types.ts
index 9fb8a4104b..46a4ea8299 100644
--- a/packages/database/src/types.ts
+++ b/packages/database/src/types.ts
@@ -23857,6 +23857,134 @@ export type Database = {
},
]
}
+ notification: {
+ Row: {
+ companyId: string
+ createdAt: string
+ description: string | null
+ digestedInto: string | null
+ documentType: string | null
+ event: string
+ from: string | null
+ href: string | null
+ id: string
+ payload: Json
+ readAt: string | null
+ recordId: string | null
+ seenAt: string | null
+ title: string
+ topic: string
+ userId: string
+ }
+ Insert: {
+ companyId: string
+ createdAt?: string
+ description?: string | null
+ digestedInto?: string | null
+ documentType?: string | null
+ event: string
+ from?: string | null
+ href?: string | null
+ id?: string
+ payload?: Json
+ readAt?: string | null
+ recordId?: string | null
+ seenAt?: string | null
+ title: string
+ topic: string
+ userId: string
+ }
+ Update: {
+ companyId?: string
+ createdAt?: string
+ description?: string | null
+ digestedInto?: string | null
+ documentType?: string | null
+ event?: string
+ from?: string | null
+ href?: string | null
+ id?: string
+ payload?: Json
+ readAt?: string | null
+ recordId?: string | null
+ seenAt?: string | null
+ title?: string
+ topic?: string
+ userId?: string
+ }
+ Relationships: [
+ {
+ foreignKeyName: "notification_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "companies"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "notification_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "company"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "notification_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "customFieldTables"
+ referencedColumns: ["companyId"]
+ },
+ {
+ foreignKeyName: "notification_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "integrations"
+ referencedColumns: ["companyId"]
+ },
+ {
+ foreignKeyName: "notification_digestedInto_fkey"
+ columns: ["digestedInto"]
+ isOneToOne: false
+ referencedRelation: "notification"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "notification_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "employees"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "notification_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "employeesAcrossCompanies"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "notification_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "employeeSummary"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "notification_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "user"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "notification_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "userDefaults"
+ referencedColumns: ["userId"]
+ },
+ ]
+ }
oauthClient: {
Row: {
clientId: string
@@ -36107,48 +36235,6 @@ export type Database = {
},
]
}
- searchIndex_CYj9v111oXXm6PX9ZD6Yn2: {
- Row: {
- createdAt: string
- description: string | null
- entityId: string
- entityType: string
- id: number
- link: string
- metadata: Json | null
- searchVector: unknown
- tags: string[] | null
- title: string
- updatedAt: string | null
- }
- Insert: {
- createdAt?: string
- description?: string | null
- entityId: string
- entityType: string
- id?: number
- link: string
- metadata?: Json | null
- searchVector?: unknown
- tags?: string[] | null
- title: string
- updatedAt?: string | null
- }
- Update: {
- createdAt?: string
- description?: string | null
- entityId?: string
- entityType?: string
- id?: number
- link?: string
- metadata?: Json | null
- searchVector?: unknown
- tags?: string[] | null
- title?: string
- updatedAt?: string | null
- }
- Relationships: []
- }
searchIndexRegistry: {
Row: {
companyId: string
@@ -51382,14 +51468,14 @@ export type Database = {
},
{
foreignKeyName: "partner_id_fkey"
- columns: ["supplierLocationId"]
+ columns: ["id"]
isOneToOne: false
referencedRelation: "supplierLocation"
referencedColumns: ["id"]
},
{
foreignKeyName: "partner_id_fkey"
- columns: ["id"]
+ columns: ["supplierLocationId"]
isOneToOne: false
referencedRelation: "supplierLocation"
referencedColumns: ["id"]
@@ -52873,14 +52959,14 @@ export type Database = {
Relationships: [
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["supplierCountryCode"]
+ columns: ["customerCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
},
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["customerCountryCode"]
+ columns: ["supplierCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
@@ -56863,14 +56949,14 @@ export type Database = {
Relationships: [
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["customerCountryCode"]
+ columns: ["paymentCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
},
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["paymentCountryCode"]
+ columns: ["customerCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
diff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.ts
index 9fb8a4104b..46a4ea8299 100644
--- a/packages/database/supabase/functions/lib/types.ts
+++ b/packages/database/supabase/functions/lib/types.ts
@@ -23857,6 +23857,134 @@ export type Database = {
},
]
}
+ notification: {
+ Row: {
+ companyId: string
+ createdAt: string
+ description: string | null
+ digestedInto: string | null
+ documentType: string | null
+ event: string
+ from: string | null
+ href: string | null
+ id: string
+ payload: Json
+ readAt: string | null
+ recordId: string | null
+ seenAt: string | null
+ title: string
+ topic: string
+ userId: string
+ }
+ Insert: {
+ companyId: string
+ createdAt?: string
+ description?: string | null
+ digestedInto?: string | null
+ documentType?: string | null
+ event: string
+ from?: string | null
+ href?: string | null
+ id?: string
+ payload?: Json
+ readAt?: string | null
+ recordId?: string | null
+ seenAt?: string | null
+ title: string
+ topic: string
+ userId: string
+ }
+ Update: {
+ companyId?: string
+ createdAt?: string
+ description?: string | null
+ digestedInto?: string | null
+ documentType?: string | null
+ event?: string
+ from?: string | null
+ href?: string | null
+ id?: string
+ payload?: Json
+ readAt?: string | null
+ recordId?: string | null
+ seenAt?: string | null
+ title?: string
+ topic?: string
+ userId?: string
+ }
+ Relationships: [
+ {
+ foreignKeyName: "notification_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "companies"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "notification_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "company"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "notification_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "customFieldTables"
+ referencedColumns: ["companyId"]
+ },
+ {
+ foreignKeyName: "notification_companyId_fkey"
+ columns: ["companyId"]
+ isOneToOne: false
+ referencedRelation: "integrations"
+ referencedColumns: ["companyId"]
+ },
+ {
+ foreignKeyName: "notification_digestedInto_fkey"
+ columns: ["digestedInto"]
+ isOneToOne: false
+ referencedRelation: "notification"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "notification_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "employees"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "notification_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "employeesAcrossCompanies"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "notification_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "employeeSummary"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "notification_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "user"
+ referencedColumns: ["id"]
+ },
+ {
+ foreignKeyName: "notification_userId_fkey"
+ columns: ["userId"]
+ isOneToOne: false
+ referencedRelation: "userDefaults"
+ referencedColumns: ["userId"]
+ },
+ ]
+ }
oauthClient: {
Row: {
clientId: string
@@ -36107,48 +36235,6 @@ export type Database = {
},
]
}
- searchIndex_CYj9v111oXXm6PX9ZD6Yn2: {
- Row: {
- createdAt: string
- description: string | null
- entityId: string
- entityType: string
- id: number
- link: string
- metadata: Json | null
- searchVector: unknown
- tags: string[] | null
- title: string
- updatedAt: string | null
- }
- Insert: {
- createdAt?: string
- description?: string | null
- entityId: string
- entityType: string
- id?: number
- link: string
- metadata?: Json | null
- searchVector?: unknown
- tags?: string[] | null
- title: string
- updatedAt?: string | null
- }
- Update: {
- createdAt?: string
- description?: string | null
- entityId?: string
- entityType?: string
- id?: number
- link?: string
- metadata?: Json | null
- searchVector?: unknown
- tags?: string[] | null
- title?: string
- updatedAt?: string | null
- }
- Relationships: []
- }
searchIndexRegistry: {
Row: {
companyId: string
@@ -51382,14 +51468,14 @@ export type Database = {
},
{
foreignKeyName: "partner_id_fkey"
- columns: ["supplierLocationId"]
+ columns: ["id"]
isOneToOne: false
referencedRelation: "supplierLocation"
referencedColumns: ["id"]
},
{
foreignKeyName: "partner_id_fkey"
- columns: ["id"]
+ columns: ["supplierLocationId"]
isOneToOne: false
referencedRelation: "supplierLocation"
referencedColumns: ["id"]
@@ -52873,14 +52959,14 @@ export type Database = {
Relationships: [
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["supplierCountryCode"]
+ columns: ["customerCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
},
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["customerCountryCode"]
+ columns: ["supplierCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
@@ -56863,14 +56949,14 @@ export type Database = {
Relationships: [
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["customerCountryCode"]
+ columns: ["paymentCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
},
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["paymentCountryCode"]
+ columns: ["customerCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]