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.

chore(database): regenerate types for nullable notificationPreference.companyId

naveenkash9e69d54ecf9f
diff --git a/packages/database/src/swagger-docs-schema.ts b/packages/database/src/swagger-docs-schema.ts
index af5f6a2aae..e13db8daa5 100644
--- a/packages/database/src/swagger-docs-schema.ts
+++ b/packages/database/src/swagger-docs-schema.ts
@@ -148612,15 +148612,7 @@ export default {
type: "object"
},
notificationPreference: {
- required: [
- "id",
- "userId",
- "companyId",
- "channel",
- "topic",
- "enabled",
- "updatedAt"
- ],
+ required: ["id", "userId", "channel", "topic", "enabled", "updatedAt"],
properties: {
id: {
default: "public.xid()",
diff --git a/packages/database/src/types.ts b/packages/database/src/types.ts
index f382570173..e4f185acee 100644
--- a/packages/database/src/types.ts
+++ b/packages/database/src/types.ts
@@ -41503,7 +41503,7 @@ export type Database = {
notificationPreference: {
Row: {
channel: string
- companyId: string
+ companyId: string | null
enabled: boolean
id: string
topic: string
@@ -41512,7 +41512,7 @@ export type Database = {
}
Insert: {
channel: string
- companyId: string
+ companyId?: string | null
enabled?: boolean
id?: string
topic: string
@@ -41521,7 +41521,7 @@ export type Database = {
}
Update: {
channel?: string
- companyId?: string
+ companyId?: string | null
enabled?: boolean
id?: string
topic?: string