Open source personal finance application
feat(categories): manage children from edit form
Ilya Komichev39b419e5d119
diff --git a/app/components/categories/Form.vue b/app/components/categories/Form.vueindex 00793cec..34e935b9 100644--- a/app/components/categories/Form.vue+++ b/app/components/categories/Form.vue@@ -23,18 +23,134 @@ const categoriesStore = useCategoriesStore()const editCategoryId = props.categoryId ?? generateId()const isUpdateChildCategoriesColor = ref(true)-const childIds = computed(() => categoriesStore.getChildrenIds(props.categoryId!))-const hasChildren = computed(() => childIds.value.length > 0)+const prevChildIds = computed(() => props.categoryId ? categoriesStore.getChildrenIds(props.categoryId) : [])+const selectedChildIds = ref<CategoryId[]>([...prevChildIds.value])++watch(prevChildIds, (ids) => {+ selectedChildIds.value = [...ids]+}, { flush: 'sync' })++const hasChildren = computed(() => selectedChildIds.value.length > 0)+const hadChildrenInitially = computed(() => prevChildIds.value.length > 0)+const isRootCategory = computed(() => props.categoryForm.parentId === 0)const isAllowChangeParent = computed(() =>!hasChildren.value && categoriesStore.categoriesForBeParent.length > 0,)+// A root can manage children only if it has no direct transactions of its own,+// otherwise adopting children would hide its trns from stats.+// We allow it also if it already has children (legacy safety valve).+const canHaveChildren = computed(() =>+ hadChildrenInitially.value+ || (!!props.categoryId && categoriesStore.categoriesForBeParent.includes(props.categoryId)),+)++const rootsWithOwnChildren = computed<Set<CategoryId>>(() => {+ const items = categoriesStore.items+ const out = new Set<CategoryId>()+ for (const cid of Object.keys(items)) {+ const pid = items[cid]?.parentId+ if (pid && pid !== 0 && typeof pid === 'string')+ out.add(pid)+ }+ return out+})++const childrenCandidateIds = computed<CategoryId[]>(() => {+ const items = categoriesStore.items+ const roots = rootsWithOwnChildren.value+ const result: CategoryId[] = []+ for (const id of Object.keys(items)) {+ if (id === 'adjustment' || id === 'transfer' || id === editCategoryId)+ continue+ const cat = items[id]+ if (!cat)+ continue+ // Currently our child → include so it appears and can be removed+ if (cat.parentId === editCategoryId) {+ result.push(id)+ continue+ }+ // Root category: adoptable only if it has no own children+ if (cat.parentId === 0) {+ if (!roots.has(id))+ result.push(id)+ continue+ }+ // Child of another root: can be reparented+ result.push(id)+ }+ return result+})++type CandidateGroup = 'current' | 'fromOther' | 'freeRoot'++const candidateGroups = computed<Record<CandidateGroup, CategoryId[]>>(() => {+ const items = categoriesStore.items+ const groups: Record<CandidateGroup, CategoryId[]> = { current: [], freeRoot: [], fromOther: [] }+ for (const id of childrenCandidateIds.value) {+ const cat = items[id]+ if (!cat)+ continue+ if (prevChildIds.value.includes(id))+ groups.current.push(id)+ else if (cat.parentId === 0)+ groups.freeRoot.push(id)+ else+ groups.fromOther.push(id)+ }+ const byName = (a: CategoryId, b: CategoryId) =>+ (items[a]?.name ?? '').localeCompare(items[b]?.name ?? '')+ groups.current.sort(byName)+ groups.freeRoot.sort(byName)+ groups.fromOther.sort(byName)+ return groups+})++const childrenSearch = ref('')++const filteredCandidateGroups = computed(() => {+ const q = childrenSearch.value.trim().toLowerCase()+ if (!q)+ return candidateGroups.value+ const items = categoriesStore.items+ const match = (id: CategoryId) => {+ const cat = items[id]+ if (!cat)+ return false+ const parentName = typeof cat.parentId === 'string' ? items[cat.parentId]?.name ?? '' : ''+ return cat.name.toLowerCase().includes(q) || parentName.toLowerCase().includes(q)+ }+ const g = candidateGroups.value+ return {+ current: g.current.filter(match),+ freeRoot: g.freeRoot.filter(match),+ fromOther: g.fromOther.filter(match),+ }+})++function getParentName(id: CategoryId): string {+ const cat = categoriesStore.items[id]+ if (!cat || cat.parentId === 0 || typeof cat.parentId !== 'string')+ return ''+ return categoriesStore.items[cat.parentId]?.name ?? ''+}++const isAllowManageChildren = computed(() =>+ isRootCategory.value+ && !!props.categoryId+ && canHaveChildren.value+ && (childrenCandidateIds.value.length > 0 || prevChildIds.value.length > 0),+)const modals = ref({+ children: false,colors: false,icon: false,parent: false,})+const childrenConfirm = ref<{ closeModal: () => void, count: number } | null>(null)+const categoryPlaceholder = computed(() => ({...props.categoryForm,name: props.categoryForm.name ? props.categoryForm.name : t('categories.form.name.label'),@@ -59,6 +175,40 @@ function onParentSelect(parentId: CategoryId | false, close: () => void) {close()}+function toggleChildSelection(id: CategoryId) {+ const idx = selectedChildIds.value.indexOf(id)+ if (idx >= 0)+ selectedChildIds.value = selectedChildIds.value.filter(x => x !== id)+ else+ selectedChildIds.value = [...selectedChildIds.value, id]+}++function applyChildrenSelection(close: () => void) {+ const removedCount = prevChildIds.value.filter(id => !selectedChildIds.value.includes(id)).length+ if (removedCount >= 2) {+ childrenConfirm.value = { closeModal: close, count: removedCount }+ return+ }+ close()+}++const childrenConfirmResolved = ref(false)++function onChildrenConfirm() {+ childrenConfirmResolved.value = true+ childrenConfirm.value?.closeModal()+ childrenConfirm.value = null+}++function onChildrenConfirmClosed() {+ if (!childrenConfirmResolved.value) {+ // User dismissed without confirming — revert selection back+ selectedChildIds.value = [...prevChildIds.value]+ }+ childrenConfirmResolved.value = false+ childrenConfirm.value = null+}+async function onSave() {const parsed = categoryFormSchema.safeParse(props.categoryForm)@@ -75,9 +225,26 @@ async function onSave() {}}+ // Validate uniqueness of names within the new children set+ if (isAllowManageChildren.value) {+ const finalChildren = selectedChildIds.value+ const names = new Map<string, string>()+ for (const cid of finalChildren) {+ const cat = categoriesStore.items[cid]+ if (!cat)+ continue+ if (names.has(cat.name)) {+ showErrorToast('categories.form.name.exist')+ return+ }+ names.set(cat.name, cid)+ }+ }+await categoriesStore.saveCategory({id: editCategoryId,isUpdateChildCategoriesColor: isUpdateChildCategoriesColor.value,+ nextChildIds: isAllowManageChildren.value ? [...selectedChildIds.value] : undefined,values: parsed.data,})emit('afterSave')@@ -117,6 +284,20 @@ async function onSave() {</template></UiButtonWithRight>+ <!-- Children -->+ <UiButtonWithRight+ v-if="isAllowManageChildren"+ @click="modals.children = true"+ >+ <template #label>+ {{ t('categories.form.children.label') }}+ </template>++ <template #value>+ {{ selectedChildIds.length > 0 ? t('categories.form.children.selected', { count: selectedChildIds.length }) : t('categories.form.children.empty') }}+ </template>+ </UiButtonWithRight>+<!-- Icon --><UiButtonWithRight @click="modals.icon = true"><template #label>@@ -278,6 +459,114 @@ async function onSave() {</template></BottomSheetModal>+ <!-- Children -->+ <BottomSheetModal+ v-if="modals.children"+ @closed="modals.children = false; childrenSearch = ''"+ >+ <template #default="{ close }">+ <UiTitleModal>+ {{ t('categories.form.selectChildren') }}+ <span v-if="selectedChildIds.length > 0" class="text-muted ml-2 text-sm font-normal">+ {{ t('categories.form.children.selected', { count: selectedChildIds.length }) }}+ </span>+ </UiTitleModal>++ <div class="px-3 pt-1 pb-2">+ <FormInput+ v-model="childrenSearch"+ :placeholder="t('categories.form.children.searchPlaceholder')"+ />+ </div>++ <div class="scrollerBlock bottomSheetContentInside">+ <div+ v-if="childrenCandidateIds.length === 0"+ class="text-muted p-4 text-center"+ >+ {{ t('categories.form.children.noCandidates') }}+ </div>++ <template v-else>+ <template+ v-for="group in (['current', 'freeRoot', 'fromOther'] as const)"+ :key="group"+ >+ <div+ v-if="filteredCandidateGroups[group].length > 0"+ class="pb-2"+ >+ <div class="text-muted px-3 pt-2 pb-1 text-xs tracking-wide uppercase">+ {{ t(`categories.form.children.group.${group}`) }}+ </div>++ <button+ v-for="id in filteredCandidateGroups[group]"+ :key="id"+ type="button"+ :aria-pressed="selectedChildIds.includes(id)"+ :class="cn('flex w-full items-center gap-3 px-3 py-2 text-left transition hover:bg-(--ui-bg-muted)', selectedChildIds.includes(id) && 'bg-(--ui-bg-muted)')"+ @click="toggleChildSelection(id)"+ >+ <div :class="cn('flex size-5 shrink-0 items-center justify-center rounded border transition', selectedChildIds.includes(id) ? 'border-(--ui-primary) bg-(--ui-primary)' : 'border-(--ui-border)')">+ <Icon+ v-if="selectedChildIds.includes(id)"+ name="mdi:check"+ size="14"+ class="text-(--ui-bg)"+ />+ </div>+ <UiIconBase+ :color="categoriesStore.items[id]?.color"+ :name="categoriesStore.items[id]?.icon ?? ''"+ invert+ />+ <div class="min-w-0 flex-1">+ <div class="truncate">+ {{ categoriesStore.items[id]?.name }}+ </div>+ <div+ v-if="group === 'fromOther'"+ class="text-muted truncate text-xs"+ >+ {{ t('categories.form.children.currentlyIn', { parent: getParentName(id) }) }}+ </div>+ </div>+ </button>+ </div>+ </template>++ <div+ v-if="+ filteredCandidateGroups.current.length === 0+ && filteredCandidateGroups.freeRoot.length === 0+ && filteredCandidateGroups.fromOther.length === 0+ "+ class="text-muted p-4 text-center"+ >+ {{ t('categories.form.children.noMatches') }}+ </div>+ </template>+ </div>++ <div class="bottomSheetContentBottom">+ <UiButtonAccent+ rounded+ @click="applyChildrenSelection(close)"+ >+ {{ t('base.apply') }}+ </UiButtonAccent>+ </div>+ </template>+ </BottomSheetModal>++ <LayoutConfirmModal+ v-if="childrenConfirm"+ :description="t('categories.form.children.confirmRemove', { count: childrenConfirm.count })"+ @closed="onChildrenConfirmClosed"+ @confirm="onChildrenConfirm"+ />+<!-- Parent --><BottomSheetModalv-if="modals.parent"diff --git a/app/components/categories/types.ts b/app/components/categories/types.tsindex 582842df..416a7ba6 100644--- a/app/components/categories/types.ts+++ b/app/components/categories/types.ts@@ -30,5 +30,6 @@ export type Categories = Record<CategoryId, CategoryItem> & Record<'transfer', Cexport type AddCategoryParams = {id: CategoryIdisUpdateChildCategoriesColor: boolean+ nextChildIds?: CategoryId[]values: CategoryItem}diff --git a/app/components/categories/useCategoriesStore.ts b/app/components/categories/useCategoriesStore.tsindex 1bd68974..7db0654a 100644--- a/app/components/categories/useCategoriesStore.ts+++ b/app/components/categories/useCategoriesStore.ts@@ -4,7 +4,7 @@ import type { AddCategoryParams, Categories, CategoryId, CategoryItem } from '~/import type { TrnId } from '~/components/trns/types'import type { RemapInfo } from '~/composables/useStoreSync'-import { compareCategoryIds, getTransactibleCategoriesIds } from '~/components/categories/utils'+import { compareCategoryIds, computeChildrenDiff, getTransactibleCategoriesIds } from '~/components/categories/utils'import { useDemo } from '~/components/demo/useDemo'import { STORAGE_KEYS } from '~/components/offline/storageKeys'import { TrnType } from '~/components/trns/types'@@ -259,32 +259,80 @@ export const useCategoriesStore = defineStore('categories', (): CategoriesStorereturn transactibleIdsSet.value.has(categoryId)}- function applyOptimisticUpdate(id: CategoryId, categoryValues: CategoryItem, isUpdateChildCategoriesColor: boolean, categoryChildIds: CategoryId[]) {+ function applyOptimisticUpdate(+ id: CategoryId,+ categoryValues: CategoryItem,+ isUpdateChildCategoriesColor: boolean,+ colorPropagationIds: CategoryId[],+ reparent?: { added: CategoryId[], removed: CategoryId[] },+ ) {const updatedItems: Categories = {...items.value,[id]: categoryValues,}- if (isUpdateChildCategoriesColor && categoryChildIds.length > 0) {- for (const childId of categoryChildIds) {+ if (isUpdateChildCategoriesColor && colorPropagationIds.length > 0) {+ for (const childId of colorPropagationIds) {if (updatedItems[childId])updatedItems[childId] = { ...updatedItems[childId], color: categoryValues.color }}}+ if (reparent) {+ for (const addId of reparent.added) {+ const existing = updatedItems[addId]+ if (!existing)+ continue+ updatedItems[addId] = {+ ...existing,+ color: isUpdateChildCategoriesColor ? categoryValues.color : existing.color,+ parentId: id,+ }+ }+ for (const removeId of reparent.removed) {+ if (updatedItems[removeId])+ updatedItems[removeId] = { ...updatedItems[removeId], parentId: 0 }+ }+ }+setCategories(updatedItems)}- function saveCategory({ id, isUpdateChildCategoriesColor, values }: AddCategoryParams) {+ function saveCategory({ id, isUpdateChildCategoriesColor, nextChildIds, values }: AddCategoryParams) {if (id === 'transfer' || id === 'adjustment')return- const categoryChildIds = getChildrenIds(id)+ const prevChildIds = getChildrenIds(id)+ const useChildrenDiff = Array.isArray(nextChildIds)+ const diff = useChildrenDiff+ ? computeChildrenDiff(prevChildIds, nextChildIds!)+ : { added: [] as CategoryId[], removed: [] as CategoryId[] }+ const hasChildrenDiff = diff.added.length > 0 || diff.removed.length > 0+ // Children that stay under this parent — safe color propagation targets+ const keptChildIds = useChildrenDiff+ ? prevChildIds.filter(cid => nextChildIds!.includes(cid))+ : prevChildIds// Frontend IDs are always treated as new creates (server generates real ID)const isExisting = !isLocalId(id) && items.value && id in items.value- applyOptimisticUpdate(id, values, isUpdateChildCategoriesColor, categoryChildIds)+ // Capture pre-optimistic snapshot for rollback (only for reparented children)+ const reparentRollback = new Map<CategoryId, { color: string, parentId: CategoryId | 0 }>()+ if (hasChildrenDiff) {+ for (const cid of [...diff.added, ...diff.removed]) {+ const prev = items.value[cid]+ if (prev)+ reparentRollback.set(cid, { color: prev.color, parentId: prev.parentId })+ }+ }++ applyOptimisticUpdate(+ id,+ values,+ isUpdateChildCategoriesColor,+ keptChildIds,+ hasChildrenDiff ? diff : undefined,+ )if (!pushSaveOp({ entity: 'categories', id, isDemo: !!isDemo.value, isExisting: !!isExisting, values }))return@@ -301,9 +349,9 @@ export const useCategoriesStore = defineStore('categories', (): CategoriesStoreshowInQuickSelector: values.showInQuickSelector,}- const mutation = isExisting && isUpdateChildCategoriesColor && categoryChildIds.length > 0+ const mutation = isExisting && isUpdateChildCategoriesColor && keptChildIds.length > 0? client.mutation(api.categories.updateWithChildren, {- childIds: categoryChildIds.map(cid => asConvexId<'categories'>(cid)),+ childIds: keptChildIds.map(cid => asConvexId<'categories'>(cid)),id: asConvexId<'categories'>(id),...categoryData,})@@ -311,15 +359,73 @@ export const useCategoriesStore = defineStore('categories', (): CategoriesStore? client.mutation(api.categories.update, { id: asConvexId<'categories'>(id), ...categoryData }): client.mutation(api.categories.create, categoryData)- return handleMutationResult({+ const coreResult = handleMutationResult({action,entity: 'categories',errorMessage: 'categories.errors.saveFailed',id,items,mutation,-})++ if (hasChildrenDiff) {+ const snapshot = items.value+ const reparentIds: CategoryId[] = []+ for (const addId of diff.added) {+ const current = snapshot[addId]+ if (!current)+ continue+ reparentIds.push(addId)+ pushSaveOp({+ entity: 'categories',+ id: addId,+ isDemo: !!isDemo.value,+ isExisting: true,+ values: { ...current, parentId: id } as unknown as Record<string, unknown>,+ })+ }+ for (const removeId of diff.removed) {+ const current = snapshot[removeId]+ if (!current)+ continue+ reparentIds.push(removeId)+ pushSaveOp({+ entity: 'categories',+ id: removeId,+ isDemo: !!isDemo.value,+ isExisting: true,+ values: { ...current, parentId: 0 } as unknown as Record<string, unknown>,+ })+ }++ if (reparentIds.length > 0 && !isLocalId(id)) {+ const reparentMutation = client.mutation(api.categories.setChildren, {+ addIds: diff.added.map(cid => asConvexId<'categories'>(cid)),+ childrenColor: isUpdateChildCategoriesColor ? values.color : undefined,+ id: asConvexId<'categories'>(id),+ removeIds: diff.removed.map(cid => asConvexId<'categories'>(cid)),+ })+ handleMutationResult({+ action: 'update',+ entity: 'categories',+ errorMessage: 'categories.errors.saveFailed',+ id: reparentIds,+ items,+ mutation: reparentMutation,+ onError: () => {+ // Restore previous parentIds/colors for reparented categories+ const restored: Categories = { ...items.value }+ for (const [cid, prev] of reparentRollback) {+ if (restored[cid])+ restored[cid] = { ...restored[cid], color: prev.color, parentId: prev.parentId }+ }+ setCategories(restored)+ },+ })+ }+ }++ return coreResult}function deleteCategory(id: CategoryId, trnsIds?: TrnId[]) {diff --git a/app/components/categories/utils.test.ts b/app/components/categories/utils.test.tsindex 71750ed0..1b92641c 100644--- a/app/components/categories/utils.test.ts+++ b/app/components/categories/utils.test.ts@@ -2,7 +2,7 @@ import { describe, expect, it } from 'vitest'import type { Categories } from '~/components/categories/types'-import { getTransactibleCategoriesIds } from '~/components/categories/utils'+import { computeChildrenDiff, getTransactibleCategoriesIds } from '~/components/categories/utils'export const mockCategories: Categories = {child1: {@@ -126,3 +126,25 @@ describe('getTransactibleCategoriesIds', () => {expect(result).toEqual(['241120_7fxrno'])})})++describe('computeChildrenDiff', () => {+ it('returns empty when both arrays are empty', () => {+ expect(computeChildrenDiff([], [])).toEqual({ added: [], removed: [] })+ })++ it('all added when prev is empty', () => {+ expect(computeChildrenDiff([], ['a', 'b'])).toEqual({ added: ['a', 'b'], removed: [] })+ })++ it('all removed when next is empty', () => {+ expect(computeChildrenDiff(['a', 'b'], [])).toEqual({ added: [], removed: ['a', 'b'] })+ })++ it('detects added and removed together', () => {+ expect(computeChildrenDiff(['a', 'b'], ['b', 'c'])).toEqual({ added: ['c'], removed: ['a'] })+ })++ it('returns empty diffs when sets are equal regardless of order', () => {+ expect(computeChildrenDiff(['a', 'b'], ['b', 'a'])).toEqual({ added: [], removed: [] })+ })+})diff --git a/app/components/categories/utils.ts b/app/components/categories/utils.tsindex 16dfa56a..a645101c 100644--- a/app/components/categories/utils.ts+++ b/app/components/categories/utils.ts@@ -63,3 +63,12 @@ export function compareCategoryIds(idA: CategoryId, idB: CategoryId, items: Catereturn 0return compareCategoriesByParentAndName(catA, catB, items)}++export function computeChildrenDiff(prev: CategoryId[], next: CategoryId[]): { added: CategoryId[], removed: CategoryId[] } {+ const prevSet = new Set(prev)+ const nextSet = new Set(next)+ return {+ added: next.filter(id => !prevSet.has(id)),+ removed: prev.filter(id => !nextSet.has(id)),+ }+}diff --git a/app/composables/useStoreSync.ts b/app/composables/useStoreSync.tsindex d8c01cb3..b5c0544d 100644--- a/app/composables/useStoreSync.ts+++ b/app/composables/useStoreSync.ts@@ -126,6 +126,7 @@ export function handleMutationResult<T>(opts: {id: string | string[]items?: ShallowRef<Record<string, T> | null>mutation: Promise<unknown>+ onError?: (error: unknown) => void}): Promise<RemapInfo | void> {const ids = Array.isArray(opts.id) ? opts.id : [opts.id]@@ -163,6 +164,7 @@ export function handleMutationResult<T>(opts: {}).catch((e) => {logger.error(`${opts.action} failed: ${ids.length > 1 ? `${ids.length} items` : ids[0]}`, e)+ opts.onError?.(e)showErrorToast(opts.errorMessage)}).finally(() => {diff --git a/convex/_generated/api.d.ts b/convex/_generated/api.d.tsindex 7ec7eb87..b0fd038f 100644--- a/convex/_generated/api.d.ts+++ b/convex/_generated/api.d.ts@@ -71,21178 +71,5 @@ export declare const internal: FilterApi<>;export declare const components: {- betterAuth: {- adapter: {- create: FunctionReference<- "mutation",- "internal",- {- input:- | {- data: {- createdAt: number;- displayUsername?: null | string;- email: string;- emailVerified: boolean;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user";- }- | {- data: {- createdAt: number;- expiresAt: number;- ipAddress?: null | string;- token: string;- updatedAt: number;- userAgent?: null | string;- userId: string;- };- model: "session";- }- | {- data: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId: string;- createdAt: number;- idToken?: null | string;- password?: null | string;- providerId: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt: number;- userId: string;- };- model: "account";- }- | {- data: {- createdAt: number;- expiresAt: number;- identifier: string;- updatedAt: number;- value: string;- };- model: "verification";- }- | {- data: { backupCodes: string; secret: string; userId: string };- model: "twoFactor";- }- | {- data: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthApplication";- }- | {- data: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthAccessToken";- }- | {- data: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthConsent";- }- | {- data: {- createdAt: number;- expiresAt?: null | number;- privateKey: string;- publicKey: string;- };- model: "jwks";- }- | {- data: { count: number; key: string; lastRequest: number };- model: "rateLimit";- };- onCreateHandle?: string;- select?: Array<string>;- },- any- >;- deleteMany: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onDeleteHandle?: string;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- },- any- >;- deleteOne: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onDeleteHandle?: string;- },- any- >;- findMany: FunctionReference<- "query",- "internal",- {- join?: any;- limit?: number;- model:- | "user"- | "session"- | "account"- | "verification"- | "twoFactor"- | "oauthApplication"- | "oauthAccessToken"- | "oauthConsent"- | "jwks"- | "rateLimit";- offset?: number;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- select?: Array<string>;- sortBy?: { direction: "asc" | "desc"; field: string };- where?: Array<{- connector?: "AND" | "OR";- field: string;- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- },- any- >;- findOne: FunctionReference<- "query",- "internal",- {- join?: any;- model:- | "user"- | "session"- | "account"- | "verification"- | "twoFactor"- | "oauthApplication"- | "oauthAccessToken"- | "oauthConsent"- | "jwks"- | "rateLimit";- select?: Array<string>;- where?: Array<{- connector?: "AND" | "OR";- field: string;- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- },- any- >;- updateMany: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- update: {- createdAt?: number;- displayUsername?: null | string;- email?: string;- emailVerified?: boolean;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- update: {- createdAt?: number;- expiresAt?: number;- ipAddress?: null | string;- token?: string;- updatedAt?: number;- userAgent?: null | string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId?: string;- createdAt?: number;- idToken?: null | string;- password?: null | string;- providerId?: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt?: number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- update: {- createdAt?: number;- expiresAt?: number;- identifier?: string;- updatedAt?: number;- value?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- update: {- backupCodes?: string;- secret?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- update: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- update: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- update: {- createdAt?: number;- expiresAt?: null | number;- privateKey?: string;- publicKey?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- update: { count?: number; key?: string; lastRequest?: number };- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onUpdateHandle?: string;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- },- any- >;- updateOne: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- update: {- createdAt?: number;- displayUsername?: null | string;- email?: string;- emailVerified?: boolean;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- update: {- createdAt?: number;- expiresAt?: number;- ipAddress?: null | string;- token?: string;- updatedAt?: number;- userAgent?: null | string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId?: string;- createdAt?: number;- idToken?: null | string;- password?: null | string;- providerId?: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt?: number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- update: {- createdAt?: number;- expiresAt?: number;- identifier?: string;- updatedAt?: number;- value?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- update: {- backupCodes?: string;- secret?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- update: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- update: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- update: {- createdAt?: number;- expiresAt?: null | number;- privateKey?: string;- publicKey?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- update: { count?: number; key?: string; lastRequest?: number };- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onUpdateHandle?: string;- },- any- >;- };- adapterTest: {- runCustomTests: FunctionReference<"action", "internal", any, any>;- runTests: FunctionReference<"action", "internal", any, any>;- };- testProfiles: {- adapterAdditionalFields: {- create: FunctionReference<- "mutation",- "internal",- {- input:- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email: string;- emailVerified: boolean;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user";- }- | {- data: {- createdAt: number;- expiresAt: number;- ipAddress?: null | string;- token: string;- updatedAt: number;- userAgent?: null | string;- userId: string;- };- model: "session";- }- | {- data: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId: string;- createdAt: number;- idToken?: null | string;- password?: null | string;- providerId: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt: number;- userId: string;- };- model: "account";- }- | {- data: {- createdAt: number;- expiresAt: number;- identifier: string;- updatedAt: number;- value: string;- };- model: "verification";- }- | {- data: { backupCodes: string; secret: string; userId: string };- model: "twoFactor";- }- | {- data: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthApplication";- }- | {- data: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthAccessToken";- }- | {- data: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthConsent";- }- | {- data: {- createdAt: number;- expiresAt?: null | number;- privateKey: string;- publicKey: string;- };- model: "jwks";- }- | {- data: { count: number; key: string; lastRequest: number };- model: "rateLimit";- };- onCreateHandle?: string;- select?: Array<string>;- },- any- >;- deleteMany: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "customField"- | "numericField"- | "testField"- | "cbDefaultValueField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onDeleteHandle?: string;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- },- any- >;- deleteOne: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "customField"- | "numericField"- | "testField"- | "cbDefaultValueField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onDeleteHandle?: string;- },- any- >;- findMany: FunctionReference<- "query",- "internal",- {- join?: any;- limit?: number;- model:- | "user"- | "session"- | "account"- | "verification"- | "twoFactor"- | "oauthApplication"- | "oauthAccessToken"- | "oauthConsent"- | "jwks"- | "rateLimit";- offset?: number;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- select?: Array<string>;- sortBy?: { direction: "asc" | "desc"; field: string };- where?: Array<{- connector?: "AND" | "OR";- field: string;- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- },- any- >;- findOne: FunctionReference<- "query",- "internal",- {- join?: any;- model:- | "user"- | "session"- | "account"- | "verification"- | "twoFactor"- | "oauthApplication"- | "oauthAccessToken"- | "oauthConsent"- | "jwks"- | "rateLimit";- select?: Array<string>;- where?: Array<{- connector?: "AND" | "OR";- field: string;- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- },- any- >;- updateMany: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: string;- emailVerified?: boolean;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "customField"- | "numericField"- | "testField"- | "cbDefaultValueField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- update: {- createdAt?: number;- expiresAt?: number;- ipAddress?: null | string;- token?: string;- updatedAt?: number;- userAgent?: null | string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId?: string;- createdAt?: number;- idToken?: null | string;- password?: null | string;- providerId?: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt?: number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- update: {- createdAt?: number;- expiresAt?: number;- identifier?: string;- updatedAt?: number;- value?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- update: {- backupCodes?: string;- secret?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- update: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- update: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- update: {- createdAt?: number;- expiresAt?: null | number;- privateKey?: string;- publicKey?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- update: {- count?: number;- key?: string;- lastRequest?: number;- };- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onUpdateHandle?: string;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- },- any- >;- updateOne: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: string;- emailVerified?: boolean;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "customField"- | "numericField"- | "testField"- | "cbDefaultValueField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- update: {- createdAt?: number;- expiresAt?: number;- ipAddress?: null | string;- token?: string;- updatedAt?: number;- userAgent?: null | string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId?: string;- createdAt?: number;- idToken?: null | string;- password?: null | string;- providerId?: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt?: number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- update: {- createdAt?: number;- expiresAt?: number;- identifier?: string;- updatedAt?: number;- value?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- update: {- backupCodes?: string;- secret?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- update: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- update: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- update: {- createdAt?: number;- expiresAt?: null | number;- privateKey?: string;- publicKey?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- update: {- count?: number;- key?: string;- lastRequest?: number;- };- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onUpdateHandle?: string;- },- any- >;- };- adapterOrganizationJoins: {- create: FunctionReference<- "mutation",- "internal",- {- input:- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user";- }- | {- data: {- createdAt: number;- expiresAt: number;- ipAddress?: null | string;- token: string;- updatedAt: number;- userAgent?: null | string;- userId: string;- };- model: "session";- }- | {- data: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId: string;- createdAt: number;- idToken?: null | string;- password?: null | string;- providerId: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt: number;- userId: string;- };- model: "account";- }- | {- data: {- createdAt: number;- expiresAt: number;- identifier: string;- updatedAt: number;- value: string;- };- model: "verification";- }- | {- data: { backupCodes: string; secret: string; userId: string };- model: "twoFactor";- }- | {- data: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthApplication";- }- | {- data: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthAccessToken";- }- | {- data: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthConsent";- }- | {- data: {- createdAt: number;- expiresAt?: null | number;- privateKey: string;- publicKey: string;- };- model: "jwks";- }- | {- data: { count: number; key: string; lastRequest: number };- model: "rateLimit";- }- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user_custom";- }- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user_table";- }- | { data: { oneToOne: string }; model: "oneToOneTable" }- | {- data: {- oneToOne?: null | string;- one_to_one?: null | string;- };- model: "one_to_one_table";- }- | {- data: {- cbDefaultValueField?: null | string;- json?: any;- nullableReference?: null | string;- numberArray?: null | Array<number>;- stringArray?: null | Array<string>;- testField?: null | string;- };- model: "testModel";- }- | {- data: {- createdAt: number;- logo?: null | string;- metadata?: null | string;- name: string;- slug: string;- updatedAt?: null | number;- };- model: "organization";- }- | {- data: {- createdAt: number;- organizationId: string;- role: string;- updatedAt?: null | number;- userId: string;- };- model: "member";- }- | {- data: {- createdAt: number;- name: string;- organizationId: string;- updatedAt?: null | number;- };- model: "team";- }- | {- data: {- createdAt?: null | number;- teamId: string;- userId: string;- };- model: "teamMember";- }- | {- data: {- createdAt?: null | number;- email?: null | string;- expiresAt?: null | number;- inviterId?: null | string;- organizationId?: null | string;- role?: null | string;- status?: null | string;- teamId?: null | string;- updatedAt?: null | number;- };- model: "invitation";- };- onCreateHandle?: string;- select?: Array<string>;- },- any- >;- deleteMany: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onDeleteHandle?: string;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- },- any- >;- deleteOne: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onDeleteHandle?: string;- },- any- >;- findMany: FunctionReference<- "query",- "internal",- {- join?: any;- limit?: number;- model:- | "user"- | "session"- | "account"- | "verification"- | "twoFactor"- | "oauthApplication"- | "oauthAccessToken"- | "oauthConsent"- | "jwks"- | "rateLimit"- | "user_custom"- | "user_table"- | "oneToOneTable"- | "one_to_one_table"- | "testModel"- | "organization"- | "member"- | "team"- | "teamMember"- | "invitation";- offset?: number;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- select?: Array<string>;- sortBy?: { direction: "asc" | "desc"; field: string };- where?: Array<{- connector?: "AND" | "OR";- field: string;- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- },- any- >;- findOne: FunctionReference<- "query",- "internal",- {- join?: any;- model:- | "user"- | "session"- | "account"- | "verification"- | "twoFactor"- | "oauthApplication"- | "oauthAccessToken"- | "oauthConsent"- | "jwks"- | "rateLimit"- | "user_custom"- | "user_table"- | "oneToOneTable"- | "one_to_one_table"- | "testModel"- | "organization"- | "member"- | "team"- | "teamMember"- | "invitation";- select?: Array<string>;- where?: Array<{- connector?: "AND" | "OR";- field: string;- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- },- any- >;- updateMany: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- update: {- createdAt?: number;- expiresAt?: number;- ipAddress?: null | string;- token?: string;- updatedAt?: number;- userAgent?: null | string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId?: string;- createdAt?: number;- idToken?: null | string;- password?: null | string;- providerId?: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt?: number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- update: {- createdAt?: number;- expiresAt?: number;- identifier?: string;- updatedAt?: number;- value?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- update: {- backupCodes?: string;- secret?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- update: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- update: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- update: {- createdAt?: number;- expiresAt?: null | number;- privateKey?: string;- publicKey?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- update: {- count?: number;- key?: string;- lastRequest?: number;- };- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- update: { oneToOne?: string };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- update: {- oneToOne?: null | string;- one_to_one?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- update: {- cbDefaultValueField?: null | string;- json?: any;- nullableReference?: null | string;- numberArray?: null | Array<number>;- stringArray?: null | Array<string>;- testField?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- update: {- createdAt?: number;- logo?: null | string;- metadata?: null | string;- name?: string;- slug?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- update: {- createdAt?: number;- organizationId?: string;- role?: string;- updatedAt?: null | number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- update: {- createdAt?: number;- name?: string;- organizationId?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- update: {- createdAt?: null | number;- teamId?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- update: {- createdAt?: null | number;- email?: null | string;- expiresAt?: null | number;- inviterId?: null | string;- organizationId?: null | string;- role?: null | string;- status?: null | string;- teamId?: null | string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onUpdateHandle?: string;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- },- any- >;- updateOne: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- update: {- createdAt?: number;- expiresAt?: number;- ipAddress?: null | string;- token?: string;- updatedAt?: number;- userAgent?: null | string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId?: string;- createdAt?: number;- idToken?: null | string;- password?: null | string;- providerId?: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt?: number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- update: {- createdAt?: number;- expiresAt?: number;- identifier?: string;- updatedAt?: number;- value?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- update: {- backupCodes?: string;- secret?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- update: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- update: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- update: {- createdAt?: number;- expiresAt?: null | number;- privateKey?: string;- publicKey?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- update: {- count?: number;- key?: string;- lastRequest?: number;- };- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- update: { oneToOne?: string };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- update: {- oneToOne?: null | string;- one_to_one?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- update: {- cbDefaultValueField?: null | string;- json?: any;- nullableReference?: null | string;- numberArray?: null | Array<number>;- stringArray?: null | Array<string>;- testField?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- update: {- createdAt?: number;- logo?: null | string;- metadata?: null | string;- name?: string;- slug?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- update: {- createdAt?: number;- organizationId?: string;- role?: string;- updatedAt?: null | number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- update: {- createdAt?: number;- name?: string;- organizationId?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- update: {- createdAt?: null | number;- teamId?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- update: {- createdAt?: null | number;- email?: null | string;- expiresAt?: null | number;- inviterId?: null | string;- organizationId?: null | string;- role?: null | string;- status?: null | string;- teamId?: null | string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onUpdateHandle?: string;- },- any- >;- };- adapterPluginTable: {- create: FunctionReference<- "mutation",- "internal",- {- input:- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user";- }- | {- data: {- createdAt: number;- expiresAt: number;- ipAddress?: null | string;- token: string;- updatedAt: number;- userAgent?: null | string;- userId: string;- };- model: "session";- }- | {- data: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId: string;- createdAt: number;- idToken?: null | string;- password?: null | string;- providerId: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt: number;- userId: string;- };- model: "account";- }- | {- data: {- createdAt: number;- expiresAt: number;- identifier: string;- updatedAt: number;- value: string;- };- model: "verification";- }- | {- data: { backupCodes: string; secret: string; userId: string };- model: "twoFactor";- }- | {- data: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthApplication";- }- | {- data: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthAccessToken";- }- | {- data: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthConsent";- }- | {- data: {- createdAt: number;- expiresAt?: null | number;- privateKey: string;- publicKey: string;- };- model: "jwks";- }- | {- data: { count: number; key: string; lastRequest: number };- model: "rateLimit";- }- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user_custom";- }- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user_table";- }- | { data: { oneToOne: string }; model: "oneToOneTable" }- | {- data: {- oneToOne?: null | string;- one_to_one?: null | string;- };- model: "one_to_one_table";- }- | {- data: {- cbDefaultValueField?: null | string;- json?: any;- nullableReference?: null | string;- numberArray?: null | Array<number>;- stringArray?: null | Array<string>;- testField?: null | string;- };- model: "testModel";- }- | {- data: {- createdAt: number;- logo?: null | string;- metadata?: null | string;- name: string;- slug: string;- updatedAt?: null | number;- };- model: "organization";- }- | {- data: {- createdAt: number;- organizationId: string;- role: string;- updatedAt?: null | number;- userId: string;- };- model: "member";- }- | {- data: {- createdAt: number;- name: string;- organizationId: string;- updatedAt?: null | number;- };- model: "team";- }- | {- data: {- createdAt?: null | number;- teamId: string;- userId: string;- };- model: "teamMember";- }- | {- data: {- createdAt?: null | number;- email?: null | string;- expiresAt?: null | number;- inviterId?: null | string;- organizationId?: null | string;- role?: null | string;- status?: null | string;- teamId?: null | string;- updatedAt?: null | number;- };- model: "invitation";- };- onCreateHandle?: string;- select?: Array<string>;- },- any- >;- deleteMany: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onDeleteHandle?: string;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- },- any- >;- deleteOne: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onDeleteHandle?: string;- },- any- >;- findMany: FunctionReference<- "query",- "internal",- {- join?: any;- limit?: number;- model:- | "user"- | "session"- | "account"- | "verification"- | "twoFactor"- | "oauthApplication"- | "oauthAccessToken"- | "oauthConsent"- | "jwks"- | "rateLimit"- | "user_custom"- | "user_table"- | "oneToOneTable"- | "one_to_one_table"- | "testModel"- | "organization"- | "member"- | "team"- | "teamMember"- | "invitation";- offset?: number;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- select?: Array<string>;- sortBy?: { direction: "asc" | "desc"; field: string };- where?: Array<{- connector?: "AND" | "OR";- field: string;- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- },- any- >;- findOne: FunctionReference<- "query",- "internal",- {- join?: any;- model:- | "user"- | "session"- | "account"- | "verification"- | "twoFactor"- | "oauthApplication"- | "oauthAccessToken"- | "oauthConsent"- | "jwks"- | "rateLimit"- | "user_custom"- | "user_table"- | "oneToOneTable"- | "one_to_one_table"- | "testModel"- | "organization"- | "member"- | "team"- | "teamMember"- | "invitation";- select?: Array<string>;- where?: Array<{- connector?: "AND" | "OR";- field: string;- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- },- any- >;- updateMany: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- update: {- createdAt?: number;- expiresAt?: number;- ipAddress?: null | string;- token?: string;- updatedAt?: number;- userAgent?: null | string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId?: string;- createdAt?: number;- idToken?: null | string;- password?: null | string;- providerId?: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt?: number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- update: {- createdAt?: number;- expiresAt?: number;- identifier?: string;- updatedAt?: number;- value?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- update: {- backupCodes?: string;- secret?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- update: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- update: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- update: {- createdAt?: number;- expiresAt?: null | number;- privateKey?: string;- publicKey?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- update: {- count?: number;- key?: string;- lastRequest?: number;- };- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- update: { oneToOne?: string };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- update: {- oneToOne?: null | string;- one_to_one?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- update: {- cbDefaultValueField?: null | string;- json?: any;- nullableReference?: null | string;- numberArray?: null | Array<number>;- stringArray?: null | Array<string>;- testField?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- update: {- createdAt?: number;- logo?: null | string;- metadata?: null | string;- name?: string;- slug?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- update: {- createdAt?: number;- organizationId?: string;- role?: string;- updatedAt?: null | number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- update: {- createdAt?: number;- name?: string;- organizationId?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- update: {- createdAt?: null | number;- teamId?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- update: {- createdAt?: null | number;- email?: null | string;- expiresAt?: null | number;- inviterId?: null | string;- organizationId?: null | string;- role?: null | string;- status?: null | string;- teamId?: null | string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onUpdateHandle?: string;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- },- any- >;- updateOne: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- update: {- createdAt?: number;- expiresAt?: number;- ipAddress?: null | string;- token?: string;- updatedAt?: number;- userAgent?: null | string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId?: string;- createdAt?: number;- idToken?: null | string;- password?: null | string;- providerId?: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt?: number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- update: {- createdAt?: number;- expiresAt?: number;- identifier?: string;- updatedAt?: number;- value?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- update: {- backupCodes?: string;- secret?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- update: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- update: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- update: {- createdAt?: number;- expiresAt?: null | number;- privateKey?: string;- publicKey?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- update: {- count?: number;- key?: string;- lastRequest?: number;- };- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- update: { oneToOne?: string };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- update: {- oneToOne?: null | string;- one_to_one?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- update: {- cbDefaultValueField?: null | string;- json?: any;- nullableReference?: null | string;- numberArray?: null | Array<number>;- stringArray?: null | Array<string>;- testField?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- update: {- createdAt?: number;- logo?: null | string;- metadata?: null | string;- name?: string;- slug?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- update: {- createdAt?: number;- organizationId?: string;- role?: string;- updatedAt?: null | number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- update: {- createdAt?: number;- name?: string;- organizationId?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- update: {- createdAt?: null | number;- teamId?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- update: {- createdAt?: null | number;- email?: null | string;- expiresAt?: null | number;- inviterId?: null | string;- organizationId?: null | string;- role?: null | string;- status?: null | string;- teamId?: null | string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onUpdateHandle?: string;- },- any- >;- };- adapterRenameField: {- create: FunctionReference<- "mutation",- "internal",- {- input:- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user";- }- | {- data: {- createdAt: number;- expiresAt: number;- ipAddress?: null | string;- token: string;- updatedAt: number;- userAgent?: null | string;- userId: string;- };- model: "session";- }- | {- data: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId: string;- createdAt: number;- idToken?: null | string;- password?: null | string;- providerId: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt: number;- userId: string;- };- model: "account";- }- | {- data: {- createdAt: number;- expiresAt: number;- identifier: string;- updatedAt: number;- value: string;- };- model: "verification";- }- | {- data: { backupCodes: string; secret: string; userId: string };- model: "twoFactor";- }- | {- data: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthApplication";- }- | {- data: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthAccessToken";- }- | {- data: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthConsent";- }- | {- data: {- createdAt: number;- expiresAt?: null | number;- privateKey: string;- publicKey: string;- };- model: "jwks";- }- | {- data: { count: number; key: string; lastRequest: number };- model: "rateLimit";- }- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user_custom";- }- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user_table";- }- | { data: { oneToOne: string }; model: "oneToOneTable" }- | {- data: {- oneToOne?: null | string;- one_to_one?: null | string;- };- model: "one_to_one_table";- }- | {- data: {- cbDefaultValueField?: null | string;- json?: any;- nullableReference?: null | string;- numberArray?: null | Array<number>;- stringArray?: null | Array<string>;- testField?: null | string;- };- model: "testModel";- }- | {- data: {- createdAt: number;- logo?: null | string;- metadata?: null | string;- name: string;- slug: string;- updatedAt?: null | number;- };- model: "organization";- }- | {- data: {- createdAt: number;- organizationId: string;- role: string;- updatedAt?: null | number;- userId: string;- };- model: "member";- }- | {- data: {- createdAt: number;- name: string;- organizationId: string;- updatedAt?: null | number;- };- model: "team";- }- | {- data: {- createdAt?: null | number;- teamId: string;- userId: string;- };- model: "teamMember";- }- | {- data: {- createdAt?: null | number;- email?: null | string;- expiresAt?: null | number;- inviterId?: null | string;- organizationId?: null | string;- role?: null | string;- status?: null | string;- teamId?: null | string;- updatedAt?: null | number;- };- model: "invitation";- };- onCreateHandle?: string;- select?: Array<string>;- },- any- >;- deleteMany: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onDeleteHandle?: string;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- },- any- >;- deleteOne: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onDeleteHandle?: string;- },- any- >;- findMany: FunctionReference<- "query",- "internal",- {- join?: any;- limit?: number;- model:- | "user"- | "session"- | "account"- | "verification"- | "twoFactor"- | "oauthApplication"- | "oauthAccessToken"- | "oauthConsent"- | "jwks"- | "rateLimit"- | "user_custom"- | "user_table"- | "oneToOneTable"- | "one_to_one_table"- | "testModel"- | "organization"- | "member"- | "team"- | "teamMember"- | "invitation";- offset?: number;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- select?: Array<string>;- sortBy?: { direction: "asc" | "desc"; field: string };- where?: Array<{- connector?: "AND" | "OR";- field: string;- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- },- any- >;- findOne: FunctionReference<- "query",- "internal",- {- join?: any;- model:- | "user"- | "session"- | "account"- | "verification"- | "twoFactor"- | "oauthApplication"- | "oauthAccessToken"- | "oauthConsent"- | "jwks"- | "rateLimit"- | "user_custom"- | "user_table"- | "oneToOneTable"- | "one_to_one_table"- | "testModel"- | "organization"- | "member"- | "team"- | "teamMember"- | "invitation";- select?: Array<string>;- where?: Array<{- connector?: "AND" | "OR";- field: string;- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- },- any- >;- updateMany: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- update: {- createdAt?: number;- expiresAt?: number;- ipAddress?: null | string;- token?: string;- updatedAt?: number;- userAgent?: null | string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId?: string;- createdAt?: number;- idToken?: null | string;- password?: null | string;- providerId?: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt?: number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- update: {- createdAt?: number;- expiresAt?: number;- identifier?: string;- updatedAt?: number;- value?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- update: {- backupCodes?: string;- secret?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- update: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- update: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- update: {- createdAt?: number;- expiresAt?: null | number;- privateKey?: string;- publicKey?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- update: {- count?: number;- key?: string;- lastRequest?: number;- };- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- update: { oneToOne?: string };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- update: {- oneToOne?: null | string;- one_to_one?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- update: {- cbDefaultValueField?: null | string;- json?: any;- nullableReference?: null | string;- numberArray?: null | Array<number>;- stringArray?: null | Array<string>;- testField?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- update: {- createdAt?: number;- logo?: null | string;- metadata?: null | string;- name?: string;- slug?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- update: {- createdAt?: number;- organizationId?: string;- role?: string;- updatedAt?: null | number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- update: {- createdAt?: number;- name?: string;- organizationId?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- update: {- createdAt?: null | number;- teamId?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- update: {- createdAt?: null | number;- email?: null | string;- expiresAt?: null | number;- inviterId?: null | string;- organizationId?: null | string;- role?: null | string;- status?: null | string;- teamId?: null | string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onUpdateHandle?: string;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- },- any- >;- updateOne: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- update: {- createdAt?: number;- expiresAt?: number;- ipAddress?: null | string;- token?: string;- updatedAt?: number;- userAgent?: null | string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId?: string;- createdAt?: number;- idToken?: null | string;- password?: null | string;- providerId?: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt?: number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- update: {- createdAt?: number;- expiresAt?: number;- identifier?: string;- updatedAt?: number;- value?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- update: {- backupCodes?: string;- secret?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- update: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- update: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- update: {- createdAt?: number;- expiresAt?: null | number;- privateKey?: string;- publicKey?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- update: {- count?: number;- key?: string;- lastRequest?: number;- };- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- update: { oneToOne?: string };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- update: {- oneToOne?: null | string;- one_to_one?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- update: {- cbDefaultValueField?: null | string;- json?: any;- nullableReference?: null | string;- numberArray?: null | Array<number>;- stringArray?: null | Array<string>;- testField?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- update: {- createdAt?: number;- logo?: null | string;- metadata?: null | string;- name?: string;- slug?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- update: {- createdAt?: number;- organizationId?: string;- role?: string;- updatedAt?: null | number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- update: {- createdAt?: number;- name?: string;- organizationId?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- update: {- createdAt?: null | number;- teamId?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- update: {- createdAt?: null | number;- email?: null | string;- expiresAt?: null | number;- inviterId?: null | string;- organizationId?: null | string;- role?: null | string;- status?: null | string;- teamId?: null | string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onUpdateHandle?: string;- },- any- >;- };- adapterRenameUserCustom: {- create: FunctionReference<- "mutation",- "internal",- {- input:- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user";- }- | {- data: {- createdAt: number;- expiresAt: number;- ipAddress?: null | string;- token: string;- updatedAt: number;- userAgent?: null | string;- userId: string;- };- model: "session";- }- | {- data: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId: string;- createdAt: number;- idToken?: null | string;- password?: null | string;- providerId: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt: number;- userId: string;- };- model: "account";- }- | {- data: {- createdAt: number;- expiresAt: number;- identifier: string;- updatedAt: number;- value: string;- };- model: "verification";- }- | {- data: { backupCodes: string; secret: string; userId: string };- model: "twoFactor";- }- | {- data: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthApplication";- }- | {- data: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthAccessToken";- }- | {- data: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthConsent";- }- | {- data: {- createdAt: number;- expiresAt?: null | number;- privateKey: string;- publicKey: string;- };- model: "jwks";- }- | {- data: { count: number; key: string; lastRequest: number };- model: "rateLimit";- }- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user_custom";- }- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user_table";- }- | { data: { oneToOne: string }; model: "oneToOneTable" }- | {- data: {- oneToOne?: null | string;- one_to_one?: null | string;- };- model: "one_to_one_table";- }- | {- data: {- cbDefaultValueField?: null | string;- json?: any;- nullableReference?: null | string;- numberArray?: null | Array<number>;- stringArray?: null | Array<string>;- testField?: null | string;- };- model: "testModel";- }- | {- data: {- createdAt: number;- logo?: null | string;- metadata?: null | string;- name: string;- slug: string;- updatedAt?: null | number;- };- model: "organization";- }- | {- data: {- createdAt: number;- organizationId: string;- role: string;- updatedAt?: null | number;- userId: string;- };- model: "member";- }- | {- data: {- createdAt: number;- name: string;- organizationId: string;- updatedAt?: null | number;- };- model: "team";- }- | {- data: {- createdAt?: null | number;- teamId: string;- userId: string;- };- model: "teamMember";- }- | {- data: {- createdAt?: null | number;- email?: null | string;- expiresAt?: null | number;- inviterId?: null | string;- organizationId?: null | string;- role?: null | string;- status?: null | string;- teamId?: null | string;- updatedAt?: null | number;- };- model: "invitation";- };- onCreateHandle?: string;- select?: Array<string>;- },- any- >;- deleteMany: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onDeleteHandle?: string;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- },- any- >;- deleteOne: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onDeleteHandle?: string;- },- any- >;- findMany: FunctionReference<- "query",- "internal",- {- join?: any;- limit?: number;- model:- | "user"- | "session"- | "account"- | "verification"- | "twoFactor"- | "oauthApplication"- | "oauthAccessToken"- | "oauthConsent"- | "jwks"- | "rateLimit"- | "user_custom"- | "user_table"- | "oneToOneTable"- | "one_to_one_table"- | "testModel"- | "organization"- | "member"- | "team"- | "teamMember"- | "invitation";- offset?: number;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- select?: Array<string>;- sortBy?: { direction: "asc" | "desc"; field: string };- where?: Array<{- connector?: "AND" | "OR";- field: string;- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- },- any- >;- findOne: FunctionReference<- "query",- "internal",- {- join?: any;- model:- | "user"- | "session"- | "account"- | "verification"- | "twoFactor"- | "oauthApplication"- | "oauthAccessToken"- | "oauthConsent"- | "jwks"- | "rateLimit"- | "user_custom"- | "user_table"- | "oneToOneTable"- | "one_to_one_table"- | "testModel"- | "organization"- | "member"- | "team"- | "teamMember"- | "invitation";- select?: Array<string>;- where?: Array<{- connector?: "AND" | "OR";- field: string;- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- },- any- >;- updateMany: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- update: {- createdAt?: number;- expiresAt?: number;- ipAddress?: null | string;- token?: string;- updatedAt?: number;- userAgent?: null | string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId?: string;- createdAt?: number;- idToken?: null | string;- password?: null | string;- providerId?: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt?: number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- update: {- createdAt?: number;- expiresAt?: number;- identifier?: string;- updatedAt?: number;- value?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- update: {- backupCodes?: string;- secret?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- update: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- update: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- update: {- createdAt?: number;- expiresAt?: null | number;- privateKey?: string;- publicKey?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- update: {- count?: number;- key?: string;- lastRequest?: number;- };- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- update: { oneToOne?: string };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- update: {- oneToOne?: null | string;- one_to_one?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- update: {- cbDefaultValueField?: null | string;- json?: any;- nullableReference?: null | string;- numberArray?: null | Array<number>;- stringArray?: null | Array<string>;- testField?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- update: {- createdAt?: number;- logo?: null | string;- metadata?: null | string;- name?: string;- slug?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- update: {- createdAt?: number;- organizationId?: string;- role?: string;- updatedAt?: null | number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- update: {- createdAt?: number;- name?: string;- organizationId?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- update: {- createdAt?: null | number;- teamId?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- update: {- createdAt?: null | number;- email?: null | string;- expiresAt?: null | number;- inviterId?: null | string;- organizationId?: null | string;- role?: null | string;- status?: null | string;- teamId?: null | string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onUpdateHandle?: string;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- },- any- >;- updateOne: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- update: {- createdAt?: number;- expiresAt?: number;- ipAddress?: null | string;- token?: string;- updatedAt?: number;- userAgent?: null | string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId?: string;- createdAt?: number;- idToken?: null | string;- password?: null | string;- providerId?: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt?: number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- update: {- createdAt?: number;- expiresAt?: number;- identifier?: string;- updatedAt?: number;- value?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- update: {- backupCodes?: string;- secret?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- update: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- update: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- update: {- createdAt?: number;- expiresAt?: null | number;- privateKey?: string;- publicKey?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- update: {- count?: number;- key?: string;- lastRequest?: number;- };- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- update: { oneToOne?: string };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- update: {- oneToOne?: null | string;- one_to_one?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- update: {- cbDefaultValueField?: null | string;- json?: any;- nullableReference?: null | string;- numberArray?: null | Array<number>;- stringArray?: null | Array<string>;- testField?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- update: {- createdAt?: number;- logo?: null | string;- metadata?: null | string;- name?: string;- slug?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- update: {- createdAt?: number;- organizationId?: string;- role?: string;- updatedAt?: null | number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- update: {- createdAt?: number;- name?: string;- organizationId?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- update: {- createdAt?: null | number;- teamId?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- update: {- createdAt?: null | number;- email?: null | string;- expiresAt?: null | number;- inviterId?: null | string;- organizationId?: null | string;- role?: null | string;- status?: null | string;- teamId?: null | string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onUpdateHandle?: string;- },- any- >;- };- adapterRenameUserTable: {- create: FunctionReference<- "mutation",- "internal",- {- input:- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user";- }- | {- data: {- createdAt: number;- expiresAt: number;- ipAddress?: null | string;- token: string;- updatedAt: number;- userAgent?: null | string;- userId: string;- };- model: "session";- }- | {- data: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId: string;- createdAt: number;- idToken?: null | string;- password?: null | string;- providerId: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt: number;- userId: string;- };- model: "account";- }- | {- data: {- createdAt: number;- expiresAt: number;- identifier: string;- updatedAt: number;- value: string;- };- model: "verification";- }- | {- data: { backupCodes: string; secret: string; userId: string };- model: "twoFactor";- }- | {- data: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthApplication";- }- | {- data: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthAccessToken";- }- | {- data: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- model: "oauthConsent";- }- | {- data: {- createdAt: number;- expiresAt?: null | number;- privateKey: string;- publicKey: string;- };- model: "jwks";- }- | {- data: { count: number; key: string; lastRequest: number };- model: "rateLimit";- }- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user_custom";- }- | {- data: {- cbDefaultValueField?: null | string;- createdAt: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt: number;- userId?: null | string;- username?: null | string;- };- model: "user_table";- }- | { data: { oneToOne: string }; model: "oneToOneTable" }- | {- data: {- oneToOne?: null | string;- one_to_one?: null | string;- };- model: "one_to_one_table";- }- | {- data: {- cbDefaultValueField?: null | string;- json?: any;- nullableReference?: null | string;- numberArray?: null | Array<number>;- stringArray?: null | Array<string>;- testField?: null | string;- };- model: "testModel";- }- | {- data: {- createdAt: number;- logo?: null | string;- metadata?: null | string;- name: string;- slug: string;- updatedAt?: null | number;- };- model: "organization";- }- | {- data: {- createdAt: number;- organizationId: string;- role: string;- updatedAt?: null | number;- userId: string;- };- model: "member";- }- | {- data: {- createdAt: number;- name: string;- organizationId: string;- updatedAt?: null | number;- };- model: "team";- }- | {- data: {- createdAt?: null | number;- teamId: string;- userId: string;- };- model: "teamMember";- }- | {- data: {- createdAt?: null | number;- email?: null | string;- expiresAt?: null | number;- inviterId?: null | string;- organizationId?: null | string;- role?: null | string;- status?: null | string;- teamId?: null | string;- updatedAt?: null | number;- };- model: "invitation";- };- onCreateHandle?: string;- select?: Array<string>;- },- any- >;- deleteMany: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onDeleteHandle?: string;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- },- any- >;- deleteOne: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onDeleteHandle?: string;- },- any- >;- findMany: FunctionReference<- "query",- "internal",- {- join?: any;- limit?: number;- model:- | "user"- | "session"- | "account"- | "verification"- | "twoFactor"- | "oauthApplication"- | "oauthAccessToken"- | "oauthConsent"- | "jwks"- | "rateLimit"- | "user_custom"- | "user_table"- | "oneToOneTable"- | "one_to_one_table"- | "testModel"- | "organization"- | "member"- | "team"- | "teamMember"- | "invitation";- offset?: number;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- select?: Array<string>;- sortBy?: { direction: "asc" | "desc"; field: string };- where?: Array<{- connector?: "AND" | "OR";- field: string;- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- },- any- >;- findOne: FunctionReference<- "query",- "internal",- {- join?: any;- model:- | "user"- | "session"- | "account"- | "verification"- | "twoFactor"- | "oauthApplication"- | "oauthAccessToken"- | "oauthConsent"- | "jwks"- | "rateLimit"- | "user_custom"- | "user_table"- | "oneToOneTable"- | "one_to_one_table"- | "testModel"- | "organization"- | "member"- | "team"- | "teamMember"- | "invitation";- select?: Array<string>;- where?: Array<{- connector?: "AND" | "OR";- field: string;- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- },- any- >;- updateMany: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- update: {- createdAt?: number;- expiresAt?: number;- ipAddress?: null | string;- token?: string;- updatedAt?: number;- userAgent?: null | string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId?: string;- createdAt?: number;- idToken?: null | string;- password?: null | string;- providerId?: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt?: number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- update: {- createdAt?: number;- expiresAt?: number;- identifier?: string;- updatedAt?: number;- value?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- update: {- backupCodes?: string;- secret?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- update: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- update: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- update: {- createdAt?: number;- expiresAt?: null | number;- privateKey?: string;- publicKey?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- update: {- count?: number;- key?: string;- lastRequest?: number;- };- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- update: { oneToOne?: string };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- update: {- oneToOne?: null | string;- one_to_one?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- update: {- cbDefaultValueField?: null | string;- json?: any;- nullableReference?: null | string;- numberArray?: null | Array<number>;- stringArray?: null | Array<string>;- testField?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- update: {- createdAt?: number;- logo?: null | string;- metadata?: null | string;- name?: string;- slug?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- update: {- createdAt?: number;- organizationId?: string;- role?: string;- updatedAt?: null | number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- update: {- createdAt?: number;- name?: string;- organizationId?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- update: {- createdAt?: null | number;- teamId?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- update: {- createdAt?: null | number;- email?: null | string;- expiresAt?: null | number;- inviterId?: null | string;- organizationId?: null | string;- role?: null | string;- status?: null | string;- teamId?: null | string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onUpdateHandle?: string;- paginationOpts: {- cursor: string | null;- endCursor?: string | null;- id?: number;- maximumBytesRead?: number;- maximumRowsRead?: number;- numItems: number;- };- },- any- >;- updateOne: FunctionReference<- "mutation",- "internal",- {- input:- | {- model: "user";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "session";- update: {- createdAt?: number;- expiresAt?: number;- ipAddress?: null | string;- token?: string;- updatedAt?: number;- userAgent?: null | string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "expiresAt"- | "token"- | "createdAt"- | "updatedAt"- | "ipAddress"- | "userAgent"- | "userId"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "account";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- accountId?: string;- createdAt?: number;- idToken?: null | string;- password?: null | string;- providerId?: string;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scope?: null | string;- updatedAt?: number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accountId"- | "providerId"- | "userId"- | "accessToken"- | "refreshToken"- | "idToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "scope"- | "password"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "verification";- update: {- createdAt?: number;- expiresAt?: number;- identifier?: string;- updatedAt?: number;- value?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "identifier"- | "value"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "twoFactor";- update: {- backupCodes?: string;- secret?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "secret" | "backupCodes" | "userId" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthApplication";- update: {- clientId?: null | string;- clientSecret?: null | string;- createdAt?: null | number;- disabled?: null | boolean;- icon?: null | string;- metadata?: null | string;- name?: null | string;- redirectUrls?: null | string;- type?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "icon"- | "metadata"- | "clientId"- | "clientSecret"- | "redirectUrls"- | "type"- | "disabled"- | "userId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthAccessToken";- update: {- accessToken?: null | string;- accessTokenExpiresAt?: null | number;- clientId?: null | string;- createdAt?: null | number;- refreshToken?: null | string;- refreshTokenExpiresAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "accessToken"- | "refreshToken"- | "accessTokenExpiresAt"- | "refreshTokenExpiresAt"- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oauthConsent";- update: {- clientId?: null | string;- consentGiven?: null | boolean;- createdAt?: null | number;- scopes?: null | string;- updatedAt?: null | number;- userId?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "clientId"- | "userId"- | "scopes"- | "createdAt"- | "updatedAt"- | "consentGiven"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "jwks";- update: {- createdAt?: number;- expiresAt?: null | number;- privateKey?: string;- publicKey?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "publicKey"- | "privateKey"- | "createdAt"- | "expiresAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "rateLimit";- update: {- count?: number;- key?: string;- lastRequest?: number;- };- where?: Array<{- connector?: "AND" | "OR";- field: "key" | "count" | "lastRequest" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_custom";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "user_table";- update: {- cbDefaultValueField?: null | string;- createdAt?: number;- customField?: null | string;- dateField?: null | number;- displayUsername?: null | string;- email?: null | string;- emailVerified?: boolean;- email_address?: null | string;- image?: null | string;- isAnonymous?: null | boolean;- name?: string;- numericField?: null | number;- phoneNumber?: null | string;- phoneNumberVerified?: null | boolean;- testField?: null | string;- twoFactorEnabled?: null | boolean;- updatedAt?: number;- userId?: null | string;- username?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "email"- | "email_address"- | "emailVerified"- | "image"- | "createdAt"- | "updatedAt"- | "twoFactorEnabled"- | "isAnonymous"- | "username"- | "displayUsername"- | "phoneNumber"- | "phoneNumberVerified"- | "userId"- | "testField"- | "cbDefaultValueField"- | "customField"- | "numericField"- | "dateField"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "oneToOneTable";- update: { oneToOne?: string };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "one_to_one_table";- update: {- oneToOne?: null | string;- one_to_one?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "oneToOne" | "one_to_one" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "testModel";- update: {- cbDefaultValueField?: null | string;- json?: any;- nullableReference?: null | string;- numberArray?: null | Array<number>;- stringArray?: null | Array<string>;- testField?: null | string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "nullableReference"- | "testField"- | "cbDefaultValueField"- | "stringArray"- | "numberArray"- | "json"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "organization";- update: {- createdAt?: number;- logo?: null | string;- metadata?: null | string;- name?: string;- slug?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "slug"- | "logo"- | "metadata"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "member";- update: {- createdAt?: number;- organizationId?: string;- role?: string;- updatedAt?: null | number;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "organizationId"- | "userId"- | "role"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "team";- update: {- createdAt?: number;- name?: string;- organizationId?: string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "name"- | "organizationId"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "teamMember";- update: {- createdAt?: null | number;- teamId?: string;- userId?: string;- };- where?: Array<{- connector?: "AND" | "OR";- field: "teamId" | "userId" | "createdAt" | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- }- | {- model: "invitation";- update: {- createdAt?: null | number;- email?: null | string;- expiresAt?: null | number;- inviterId?: null | string;- organizationId?: null | string;- role?: null | string;- status?: null | string;- teamId?: null | string;- updatedAt?: null | number;- };- where?: Array<{- connector?: "AND" | "OR";- field:- | "email"- | "role"- | "status"- | "organizationId"- | "teamId"- | "inviterId"- | "expiresAt"- | "createdAt"- | "updatedAt"- | "_id";- operator?:- | "lt"- | "lte"- | "gt"- | "gte"- | "eq"- | "in"- | "not_in"- | "ne"- | "contains"- | "starts_with"- | "ends_with";- value:- | string- | number- | boolean- | Array<string>- | Array<number>- | null;- }>;- };- onUpdateHandle?: string;- },- any- >;- };- };- };+ betterAuth: import("@convex-dev/better-auth/_generated/component.js").ComponentApi<"betterAuth">;};diff --git a/convex/categories.ts b/convex/categories.tsindex 9bfcbee4..6898275d 100644--- a/convex/categories.ts+++ b/convex/categories.ts@@ -249,6 +249,100 @@ export const remove = action({},})+export const setChildren = mutation({+ args: {+ addIds: v.array(v.id('categories')),+ childrenColor: v.optional(v.string()),+ id: v.id('categories'),+ removeIds: v.array(v.id('categories')),+ },+ handler: async (ctx, { addIds, childrenColor, id, removeIds }) => {+ const user = await requireAuthUser(ctx)+ const parent = await getOwnEntity(ctx, id, user._id)+ if (parent.parentId !== 0)+ throw new Error('Only a root category can adopt children')++ // Dedupe and reject overlap+ const addSet = new Set(addIds)+ const removeSet = new Set(removeIds)+ if (addSet.size !== addIds.length || removeSet.size !== removeIds.length)+ throw new Error('Duplicate IDs in addIds or removeIds')+ for (const id of addSet) {+ if (removeSet.has(id))+ throw new Error('Same ID appears in both addIds and removeIds')+ }+ if (addSet.has(id))+ throw new Error('Category cannot be its own child')++ validateStringLength(childrenColor, 50, 'Color')++ // Validate each add: own, leaf (no own children)+ for (const addId of addSet) {+ await getOwnEntity(ctx, addId, user._id)+ const ownChild = await ctx.db+ .query('categories')+ .withIndex('by_user_parent', q => q.eq('userId', user._id).eq('parentId', addId))+ .first()+ if (ownChild)+ throw new Error('Cannot move a category that has its own children')+ }++ // Validate each remove currently belongs to this parent+ for (const removeId of removeSet) {+ const cat = await getOwnEntity(ctx, removeId, user._id)+ if (cat.parentId !== id)+ throw new Error('Child does not belong to this parent')+ }++ // Name uniqueness: existing kept + added+ const existingChildren = await ctx.db+ .query('categories')+ .withIndex('by_user_parent', q => q.eq('userId', user._id).eq('parentId', id))+ .collect()+ const finalNames = new Set<string>()+ for (const child of existingChildren) {+ if (removeSet.has(child._id) || addSet.has(child._id))+ continue+ if (finalNames.has(child.name))+ throw new Error('Duplicate child name under parent')+ finalNames.add(child.name)+ }+ for (const addId of addSet) {+ const cat = await ctx.db.get(addId)+ if (!cat)+ throw new Error('Not found')+ if (finalNames.has(cat.name))+ throw new Error(`Category with name "${cat.name}" already exists under parent`)+ finalNames.add(cat.name)+ }++ const now = Date.now()++ for (const addId of addSet) {+ const patch: { color?: string, parentId: typeof id, updatedAt: number } = {+ parentId: id,+ updatedAt: now,+ }+ if (childrenColor)+ patch.color = childrenColor+ await ctx.db.patch(addId, patch)+ }+ for (const removeId of removeSet)+ await ctx.db.patch(removeId, { parentId: 0, updatedAt: now })++ // Propagate color to kept children if requested+ if (childrenColor) {+ for (const child of existingChildren) {+ if (removeSet.has(child._id) || addSet.has(child._id))+ continue+ await ctx.db.patch(child._id, { color: childrenColor, updatedAt: now })+ }+ }++ return now+ },+})+export const updateWithChildren = mutation({args: {childIds: v.array(v.id('categories')),diff --git a/i18n/locales/en-US.js b/i18n/locales/en-US.jsindex 4e84da98..b3b2fb19 100644--- a/i18n/locales/en-US.js+++ b/i18n/locales/en-US.js@@ -66,6 +66,21 @@ export default {filter: 'Filter categories',form: {childColor: 'Apply color to all child categories',+ children: {+ confirmRemove: 'Remove {count} categories from this parent? They will become root categories.',+ currentlyIn: 'Currently in: {parent}',+ empty: 'No children',+ group: {+ current: 'Current children',+ freeRoot: 'Available root categories',+ fromOther: 'Move from another parent',+ },+ label: 'Child categories',+ noCandidates: 'No categories available',+ noMatches: 'No matches',+ searchPlaceholder: 'Search categories...',+ selected: '{count} selected',+ },delete: {alertWithTrns: 'This will also delete',errorChildren: 'You cannot delete a category with child categories. Delete the child categories first.',@@ -91,6 +106,7 @@ export default {no: 'Without parent',},recentCategory: 'Recent category',+ selectChildren: 'Child categories',selectColor: 'Color',selectIcon: 'Icon',selectParent: 'Parent category',diff --git a/i18n/locales/ru-RU.js b/i18n/locales/ru-RU.jsindex 6bf7d85a..ee3e0c55 100644--- a/i18n/locales/ru-RU.js+++ b/i18n/locales/ru-RU.js@@ -66,6 +66,21 @@ export default {filter: 'Фильтр по категориям',form: {childColor: 'Применить цвет ко всем дочерним категориям',+ children: {+ confirmRemove: 'Отсоединить выбранные категории ({count}) от родителя? Они станут корневыми.',+ currentlyIn: 'Сейчас в: {parent}',+ empty: 'Нет детей',+ group: {+ current: 'Текущие дети',+ freeRoot: 'Свободные корневые',+ fromOther: 'Переместить из другого родителя',+ },+ label: 'Дочерние категории',+ noCandidates: 'Нет доступных категорий',+ noMatches: 'Ничего не найдено',+ searchPlaceholder: 'Поиск категорий...',+ selected: 'Выбрано: {count}',+ },delete: {alertWithTrns: 'Также будут удалены',errorChildren: 'Вы не можете удалить категорию с дочерними категориям. Сначала удалите дочерние категории.',@@ -91,6 +106,7 @@ export default {no: 'Без родителя',},recentCategory: 'Показывать в недавно использованных',+ selectChildren: 'Дочерние категории',selectColor: 'Цвет',selectIcon: 'Иконка',selectParent: 'Родительская категория',