// 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 MicrosoftTeamsIntegrationsSchema = z.object({ id: z.string().uuid(), internalTeamsAppId: z.string().nullable().optional(), tenantId: z.string(), encryptedAccessToken: zodBuffer.nullable().optional(), encryptedBotAccessToken: zodBuffer.nullable().optional(), accessTokenExpiresAt: z.date().nullable().optional(), botAccessTokenExpiresAt: z.date().nullable().optional(), createdAt: z.date(), updatedAt: z.date() }); export type TMicrosoftTeamsIntegrations = z.infer; export type TMicrosoftTeamsIntegrationsInsert = Omit< z.input, TImmutableDBKeys >; export type TMicrosoftTeamsIntegrationsUpdate = Partial< Omit, TImmutableDBKeys> >;