Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

remove drifted schemas

Thiago Araujo da Silva496452f397ff
diff --git a/backend/src/db/schemas/approval-policies.ts b/backend/src/db/schemas/approval-policies.ts
index 7833dc4ec7..f358b620a4 100644
--- a/backend/src/db/schemas/approval-policies.ts
+++ b/backend/src/db/schemas/approval-policies.ts
@@ -20,9 +20,9 @@ export const ApprovalPoliciesSchema = z.object({
createdAt: z.date(),
updatedAt: z.date(),
bypassForMachineIdentities: z.boolean().default(false).nullable().optional(),
+ enforcementLevel: z.string().default("hard"),
scopeType: z.string().nullable().optional(),
- scopeId: z.string().uuid().nullable().optional(),
- enforcementLevel: z.string().default("hard")
+ scopeId: z.string().uuid().nullable().optional()
});
export type TApprovalPolicies = z.infer<typeof ApprovalPoliciesSchema>;
diff --git a/backend/src/db/schemas/audit-log-streams.ts b/backend/src/db/schemas/audit-log-streams.ts
index 3c961734eb..a3f6bafba8 100644
--- a/backend/src/db/schemas/audit-log-streams.ts
+++ b/backend/src/db/schemas/audit-log-streams.ts
@@ -21,8 +21,7 @@ export const AuditLogStreamsSchema = z.object({
createdAt: z.date(),
updatedAt: z.date(),
provider: z.string().default("custom"),
- encryptedCredentials: zodBuffer,
- streamMode: z.string().default("batch")
+ encryptedCredentials: zodBuffer
});
export type TAuditLogStreams = z.infer<typeof AuditLogStreamsSchema>;
diff --git a/backend/src/db/schemas/org-github-apps.ts b/backend/src/db/schemas/org-github-apps.ts
deleted file mode 100644
index 4b9816b502..0000000000
--- a/backend/src/db/schemas/org-github-apps.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-// Code generated by automation script, DO NOT EDIT.
-// Automated by pulling database and generating zod schema
-// To update. Just run npm run generate:schema
-// Written by akhilmhdh.
-
-import { z } from "zod";
-
-import { zodBuffer } from "@app/lib/zod";
-
-import { TImmutableDBKeys } from "./models";
-
-export const OrgGithubAppsSchema = z.object({
- id: z.string().uuid(),
- orgId: z.string().uuid(),
- name: z.string(),
- encryptedAppId: zodBuffer,
- encryptedClientId: zodBuffer,
- encryptedClientSecret: zodBuffer,
- encryptedPrivateKey: zodBuffer,
- encryptedSlug: zodBuffer,
- encryptedWebhookSecret: zodBuffer.nullable().optional(),
- createdAt: z.date(),
- updatedAt: z.date()
-});
-
-export type TOrgGithubApps = z.infer<typeof OrgGithubAppsSchema>;
-export type TOrgGithubAppsInsert = Omit<z.input<typeof OrgGithubAppsSchema>, TImmutableDBKeys>;
-export type TOrgGithubAppsUpdate = Partial<Omit<z.input<typeof OrgGithubAppsSchema>, TImmutableDBKeys>>;