/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Organization` model and its related types. * * 🟢 You can import this file directly. */ import type * as runtime from "@prisma/client/runtime/client" import type * as $Enums from "../enums.ts" import type * as Prisma from "../internal/prismaNamespace.ts" /** * Model Organization * */ export type OrganizationModel = runtime.Types.Result.DefaultSelection export type AggregateOrganization = { _count: OrganizationCountAggregateOutputType | null _min: OrganizationMinAggregateOutputType | null _max: OrganizationMaxAggregateOutputType | null } export type OrganizationMinAggregateOutputType = { id: string | null name: string | null slug: string | null logo: string | null createdAt: Date | null metadata: string | null color: string | null } export type OrganizationMaxAggregateOutputType = { id: string | null name: string | null slug: string | null logo: string | null createdAt: Date | null metadata: string | null color: string | null } export type OrganizationCountAggregateOutputType = { id: number name: number slug: number logo: number createdAt: number metadata: number color: number _all: number } export type OrganizationMinAggregateInputType = { id?: true name?: true slug?: true logo?: true createdAt?: true metadata?: true color?: true } export type OrganizationMaxAggregateInputType = { id?: true name?: true slug?: true logo?: true createdAt?: true metadata?: true color?: true } export type OrganizationCountAggregateInputType = { id?: true name?: true slug?: true logo?: true createdAt?: true metadata?: true color?: true _all?: true } export type OrganizationAggregateArgs = { /** * Filter which Organization to aggregate. */ where?: Prisma.OrganizationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Organizations to fetch. */ orderBy?: Prisma.OrganizationOrderByWithRelationInput | Prisma.OrganizationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.OrganizationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Organizations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Organizations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Organizations **/ _count?: true | OrganizationCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: OrganizationMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: OrganizationMaxAggregateInputType } export type GetOrganizationAggregateType = { [P in keyof T & keyof AggregateOrganization]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type OrganizationGroupByArgs = { where?: Prisma.OrganizationWhereInput orderBy?: Prisma.OrganizationOrderByWithAggregationInput | Prisma.OrganizationOrderByWithAggregationInput[] by: Prisma.OrganizationScalarFieldEnum[] | Prisma.OrganizationScalarFieldEnum having?: Prisma.OrganizationScalarWhereWithAggregatesInput take?: number skip?: number _count?: OrganizationCountAggregateInputType | true _min?: OrganizationMinAggregateInputType _max?: OrganizationMaxAggregateInputType } export type OrganizationGroupByOutputType = { id: string name: string slug: string logo: string | null createdAt: Date metadata: string | null color: string | null _count: OrganizationCountAggregateOutputType | null _min: OrganizationMinAggregateOutputType | null _max: OrganizationMaxAggregateOutputType | null } type GetOrganizationGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof OrganizationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type OrganizationWhereInput = { AND?: Prisma.OrganizationWhereInput | Prisma.OrganizationWhereInput[] OR?: Prisma.OrganizationWhereInput[] NOT?: Prisma.OrganizationWhereInput | Prisma.OrganizationWhereInput[] id?: Prisma.StringFilter<"Organization"> | string name?: Prisma.StringFilter<"Organization"> | string slug?: Prisma.StringFilter<"Organization"> | string logo?: Prisma.StringNullableFilter<"Organization"> | string | null createdAt?: Prisma.DateTimeFilter<"Organization"> | Date | string metadata?: Prisma.StringNullableFilter<"Organization"> | string | null color?: Prisma.StringNullableFilter<"Organization"> | string | null members?: Prisma.MemberListRelationFilter invitations?: Prisma.InvitationListRelationFilter } export type OrganizationOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder slug?: Prisma.SortOrder logo?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder metadata?: Prisma.SortOrderInput | Prisma.SortOrder color?: Prisma.SortOrderInput | Prisma.SortOrder members?: Prisma.MemberOrderByRelationAggregateInput invitations?: Prisma.InvitationOrderByRelationAggregateInput } export type OrganizationWhereUniqueInput = Prisma.AtLeast<{ id?: string slug?: string AND?: Prisma.OrganizationWhereInput | Prisma.OrganizationWhereInput[] OR?: Prisma.OrganizationWhereInput[] NOT?: Prisma.OrganizationWhereInput | Prisma.OrganizationWhereInput[] name?: Prisma.StringFilter<"Organization"> | string logo?: Prisma.StringNullableFilter<"Organization"> | string | null createdAt?: Prisma.DateTimeFilter<"Organization"> | Date | string metadata?: Prisma.StringNullableFilter<"Organization"> | string | null color?: Prisma.StringNullableFilter<"Organization"> | string | null members?: Prisma.MemberListRelationFilter invitations?: Prisma.InvitationListRelationFilter }, "id" | "slug"> export type OrganizationOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder slug?: Prisma.SortOrder logo?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder metadata?: Prisma.SortOrderInput | Prisma.SortOrder color?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.OrganizationCountOrderByAggregateInput _max?: Prisma.OrganizationMaxOrderByAggregateInput _min?: Prisma.OrganizationMinOrderByAggregateInput } export type OrganizationScalarWhereWithAggregatesInput = { AND?: Prisma.OrganizationScalarWhereWithAggregatesInput | Prisma.OrganizationScalarWhereWithAggregatesInput[] OR?: Prisma.OrganizationScalarWhereWithAggregatesInput[] NOT?: Prisma.OrganizationScalarWhereWithAggregatesInput | Prisma.OrganizationScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Organization"> | string name?: Prisma.StringWithAggregatesFilter<"Organization"> | string slug?: Prisma.StringWithAggregatesFilter<"Organization"> | string logo?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null createdAt?: Prisma.DateTimeWithAggregatesFilter<"Organization"> | Date | string metadata?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null color?: Prisma.StringNullableWithAggregatesFilter<"Organization"> | string | null } export type OrganizationCreateInput = { id?: string name: string slug: string logo?: string | null createdAt: Date | string metadata?: string | null color?: string | null members?: Prisma.MemberCreateNestedManyWithoutOrganizationInput invitations?: Prisma.InvitationCreateNestedManyWithoutOrganizationInput } export type OrganizationUncheckedCreateInput = { id?: string name: string slug: string logo?: string | null createdAt: Date | string metadata?: string | null color?: string | null members?: Prisma.MemberUncheckedCreateNestedManyWithoutOrganizationInput invitations?: Prisma.InvitationUncheckedCreateNestedManyWithoutOrganizationInput } export type OrganizationUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null members?: Prisma.MemberUpdateManyWithoutOrganizationNestedInput invitations?: Prisma.InvitationUpdateManyWithoutOrganizationNestedInput } export type OrganizationUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null members?: Prisma.MemberUncheckedUpdateManyWithoutOrganizationNestedInput invitations?: Prisma.InvitationUncheckedUpdateManyWithoutOrganizationNestedInput } export type OrganizationCreateManyInput = { id?: string name: string slug: string logo?: string | null createdAt: Date | string metadata?: string | null color?: string | null } export type OrganizationUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type OrganizationUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type OrganizationCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder slug?: Prisma.SortOrder logo?: Prisma.SortOrder createdAt?: Prisma.SortOrder metadata?: Prisma.SortOrder color?: Prisma.SortOrder } export type OrganizationMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder slug?: Prisma.SortOrder logo?: Prisma.SortOrder createdAt?: Prisma.SortOrder metadata?: Prisma.SortOrder color?: Prisma.SortOrder } export type OrganizationMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder slug?: Prisma.SortOrder logo?: Prisma.SortOrder createdAt?: Prisma.SortOrder metadata?: Prisma.SortOrder color?: Prisma.SortOrder } export type OrganizationScalarRelationFilter = { is?: Prisma.OrganizationWhereInput isNot?: Prisma.OrganizationWhereInput } export type OrganizationCreateNestedOneWithoutMembersInput = { create?: Prisma.XOR connectOrCreate?: Prisma.OrganizationCreateOrConnectWithoutMembersInput connect?: Prisma.OrganizationWhereUniqueInput } export type OrganizationUpdateOneRequiredWithoutMembersNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.OrganizationCreateOrConnectWithoutMembersInput upsert?: Prisma.OrganizationUpsertWithoutMembersInput connect?: Prisma.OrganizationWhereUniqueInput update?: Prisma.XOR, Prisma.OrganizationUncheckedUpdateWithoutMembersInput> } export type OrganizationCreateNestedOneWithoutInvitationsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.OrganizationCreateOrConnectWithoutInvitationsInput connect?: Prisma.OrganizationWhereUniqueInput } export type OrganizationUpdateOneRequiredWithoutInvitationsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.OrganizationCreateOrConnectWithoutInvitationsInput upsert?: Prisma.OrganizationUpsertWithoutInvitationsInput connect?: Prisma.OrganizationWhereUniqueInput update?: Prisma.XOR, Prisma.OrganizationUncheckedUpdateWithoutInvitationsInput> } export type OrganizationCreateWithoutMembersInput = { id?: string name: string slug: string logo?: string | null createdAt: Date | string metadata?: string | null color?: string | null invitations?: Prisma.InvitationCreateNestedManyWithoutOrganizationInput } export type OrganizationUncheckedCreateWithoutMembersInput = { id?: string name: string slug: string logo?: string | null createdAt: Date | string metadata?: string | null color?: string | null invitations?: Prisma.InvitationUncheckedCreateNestedManyWithoutOrganizationInput } export type OrganizationCreateOrConnectWithoutMembersInput = { where: Prisma.OrganizationWhereUniqueInput create: Prisma.XOR } export type OrganizationUpsertWithoutMembersInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.OrganizationWhereInput } export type OrganizationUpdateToOneWithWhereWithoutMembersInput = { where?: Prisma.OrganizationWhereInput data: Prisma.XOR } export type OrganizationUpdateWithoutMembersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null invitations?: Prisma.InvitationUpdateManyWithoutOrganizationNestedInput } export type OrganizationUncheckedUpdateWithoutMembersInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null invitations?: Prisma.InvitationUncheckedUpdateManyWithoutOrganizationNestedInput } export type OrganizationCreateWithoutInvitationsInput = { id?: string name: string slug: string logo?: string | null createdAt: Date | string metadata?: string | null color?: string | null members?: Prisma.MemberCreateNestedManyWithoutOrganizationInput } export type OrganizationUncheckedCreateWithoutInvitationsInput = { id?: string name: string slug: string logo?: string | null createdAt: Date | string metadata?: string | null color?: string | null members?: Prisma.MemberUncheckedCreateNestedManyWithoutOrganizationInput } export type OrganizationCreateOrConnectWithoutInvitationsInput = { where: Prisma.OrganizationWhereUniqueInput create: Prisma.XOR } export type OrganizationUpsertWithoutInvitationsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.OrganizationWhereInput } export type OrganizationUpdateToOneWithWhereWithoutInvitationsInput = { where?: Prisma.OrganizationWhereInput data: Prisma.XOR } export type OrganizationUpdateWithoutInvitationsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null members?: Prisma.MemberUpdateManyWithoutOrganizationNestedInput } export type OrganizationUncheckedUpdateWithoutInvitationsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string slug?: Prisma.StringFieldUpdateOperationsInput | string logo?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string metadata?: Prisma.NullableStringFieldUpdateOperationsInput | string | null color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null members?: Prisma.MemberUncheckedUpdateManyWithoutOrganizationNestedInput } /** * Count Type OrganizationCountOutputType */ export type OrganizationCountOutputType = { members: number invitations: number } export type OrganizationCountOutputTypeSelect = { members?: boolean | OrganizationCountOutputTypeCountMembersArgs invitations?: boolean | OrganizationCountOutputTypeCountInvitationsArgs } /** * OrganizationCountOutputType without action */ export type OrganizationCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the OrganizationCountOutputType */ select?: Prisma.OrganizationCountOutputTypeSelect | null } /** * OrganizationCountOutputType without action */ export type OrganizationCountOutputTypeCountMembersArgs = { where?: Prisma.MemberWhereInput } /** * OrganizationCountOutputType without action */ export type OrganizationCountOutputTypeCountInvitationsArgs = { where?: Prisma.InvitationWhereInput } export type OrganizationSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean slug?: boolean logo?: boolean createdAt?: boolean metadata?: boolean color?: boolean members?: boolean | Prisma.Organization$membersArgs invitations?: boolean | Prisma.Organization$invitationsArgs _count?: boolean | Prisma.OrganizationCountOutputTypeDefaultArgs }, ExtArgs["result"]["organization"]> export type OrganizationSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean slug?: boolean logo?: boolean createdAt?: boolean metadata?: boolean color?: boolean }, ExtArgs["result"]["organization"]> export type OrganizationSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean slug?: boolean logo?: boolean createdAt?: boolean metadata?: boolean color?: boolean }, ExtArgs["result"]["organization"]> export type OrganizationSelectScalar = { id?: boolean name?: boolean slug?: boolean logo?: boolean createdAt?: boolean metadata?: boolean color?: boolean } export type OrganizationOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "slug" | "logo" | "createdAt" | "metadata" | "color", ExtArgs["result"]["organization"]> export type OrganizationInclude = { members?: boolean | Prisma.Organization$membersArgs invitations?: boolean | Prisma.Organization$invitationsArgs _count?: boolean | Prisma.OrganizationCountOutputTypeDefaultArgs } export type OrganizationIncludeCreateManyAndReturn = {} export type OrganizationIncludeUpdateManyAndReturn = {} export type $OrganizationPayload = { name: "Organization" objects: { members: Prisma.$MemberPayload[] invitations: Prisma.$InvitationPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string name: string slug: string logo: string | null createdAt: Date metadata: string | null color: string | null }, ExtArgs["result"]["organization"]> composites: {} } export type OrganizationGetPayload = runtime.Types.Result.GetResult export type OrganizationCountArgs = Omit & { select?: OrganizationCountAggregateInputType | true } export interface OrganizationDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Organization'], meta: { name: 'Organization' } } /** * Find zero or one Organization that matches the filter. * @param {OrganizationFindUniqueArgs} args - Arguments to find a Organization * @example * // Get one Organization * const organization = await prisma.organization.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__OrganizationClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Organization that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {OrganizationFindUniqueOrThrowArgs} args - Arguments to find a Organization * @example * // Get one Organization * const organization = await prisma.organization.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__OrganizationClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Organization that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OrganizationFindFirstArgs} args - Arguments to find a Organization * @example * // Get one Organization * const organization = await prisma.organization.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__OrganizationClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Organization that matches the filter or * throw `PrismaKnownClientError` with `P2025` code if no matches were found. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OrganizationFindFirstOrThrowArgs} args - Arguments to find a Organization * @example * // Get one Organization * const organization = await prisma.organization.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__OrganizationClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Organizations that matches the filter. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OrganizationFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Organizations * const organizations = await prisma.organization.findMany() * * // Get first 10 Organizations * const organizations = await prisma.organization.findMany({ take: 10 }) * * // Only select the `id` * const organizationWithIdOnly = await prisma.organization.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Organization. * @param {OrganizationCreateArgs} args - Arguments to create a Organization. * @example * // Create one Organization * const Organization = await prisma.organization.create({ * data: { * // ... data to create a Organization * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__OrganizationClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Organizations. * @param {OrganizationCreateManyArgs} args - Arguments to create many Organizations. * @example * // Create many Organizations * const organization = await prisma.organization.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Organizations and returns the data saved in the database. * @param {OrganizationCreateManyAndReturnArgs} args - Arguments to create many Organizations. * @example * // Create many Organizations * const organization = await prisma.organization.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Organizations and only return the `id` * const organizationWithIdOnly = await prisma.organization.createManyAndReturn({ * select: { id: true }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Organization. * @param {OrganizationDeleteArgs} args - Arguments to delete one Organization. * @example * // Delete one Organization * const Organization = await prisma.organization.delete({ * where: { * // ... filter to delete one Organization * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__OrganizationClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Organization. * @param {OrganizationUpdateArgs} args - Arguments to update one Organization. * @example * // Update one Organization * const organization = await prisma.organization.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__OrganizationClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Organizations. * @param {OrganizationDeleteManyArgs} args - Arguments to filter Organizations to delete. * @example * // Delete a few Organizations * const { count } = await prisma.organization.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Organizations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OrganizationUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Organizations * const organization = await prisma.organization.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Organizations and returns the data updated in the database. * @param {OrganizationUpdateManyAndReturnArgs} args - Arguments to update many Organizations. * @example * // Update many Organizations * const organization = await prisma.organization.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Organizations and only return the `id` * const organizationWithIdOnly = await prisma.organization.updateManyAndReturn({ * select: { id: true }, * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * */ updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Organization. * @param {OrganizationUpsertArgs} args - Arguments to update or create a Organization. * @example * // Update or create a Organization * const organization = await prisma.organization.upsert({ * create: { * // ... data to create a Organization * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Organization we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__OrganizationClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Organizations. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OrganizationCountArgs} args - Arguments to filter Organizations to count. * @example * // Count the number of Organizations * const count = await prisma.organization.count({ * where: { * // ... the filter for the Organizations we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Organization. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OrganizationAggregateArgs} args - Select which aggregations you would like to apply and on what fields. * @example * // Ordered by age ascending * // Where email contains prisma.io * // Limited to the 10 users * const aggregations = await prisma.user.aggregate({ * _avg: { * age: true, * }, * where: { * email: { * contains: "prisma.io", * }, * }, * orderBy: { * age: "asc", * }, * take: 10, * }) **/ aggregate(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Organization. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {OrganizationGroupByArgs} args - Group by arguments. * @example * // Group by city, order by createdAt, get count * const result = await prisma.user.groupBy({ * by: ['city', 'createdAt'], * orderBy: { * createdAt: true * }, * _count: { * _all: true * }, * }) * **/ groupBy< T extends OrganizationGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: OrganizationGroupByArgs['orderBy'] } : { orderBy?: OrganizationGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? { [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [ Error, 'Field ', P, ` in "having" needs to be provided in "by"`, ] }[HavingFields] : 'take' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys ? 'orderBy' extends Prisma.Keys ? ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : { [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` }[OrderFields] >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetOrganizationGroupByPayload : Prisma.PrismaPromise /** * Fields of the Organization model */ readonly fields: OrganizationFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Organization. * Why is this prefixed with `Prisma__`? * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ export interface Prisma__OrganizationClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" members = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> invitations = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback for only the rejection of the Promise. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of the callback. */ catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The * resolved value cannot be modified from the callback. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). * @returns A Promise for the completion of the callback. */ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise } /** * Fields of the Organization model */ export interface OrganizationFieldRefs { readonly id: Prisma.FieldRef<"Organization", 'String'> readonly name: Prisma.FieldRef<"Organization", 'String'> readonly slug: Prisma.FieldRef<"Organization", 'String'> readonly logo: Prisma.FieldRef<"Organization", 'String'> readonly createdAt: Prisma.FieldRef<"Organization", 'DateTime'> readonly metadata: Prisma.FieldRef<"Organization", 'String'> readonly color: Prisma.FieldRef<"Organization", 'String'> } // Custom InputTypes /** * Organization findUnique */ export type OrganizationFindUniqueArgs = { /** * Select specific fields to fetch from the Organization */ select?: Prisma.OrganizationSelect | null /** * Omit specific fields from the Organization */ omit?: Prisma.OrganizationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OrganizationInclude | null /** * Filter, which Organization to fetch. */ where: Prisma.OrganizationWhereUniqueInput } /** * Organization findUniqueOrThrow */ export type OrganizationFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Organization */ select?: Prisma.OrganizationSelect | null /** * Omit specific fields from the Organization */ omit?: Prisma.OrganizationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OrganizationInclude | null /** * Filter, which Organization to fetch. */ where: Prisma.OrganizationWhereUniqueInput } /** * Organization findFirst */ export type OrganizationFindFirstArgs = { /** * Select specific fields to fetch from the Organization */ select?: Prisma.OrganizationSelect | null /** * Omit specific fields from the Organization */ omit?: Prisma.OrganizationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OrganizationInclude | null /** * Filter, which Organization to fetch. */ where?: Prisma.OrganizationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Organizations to fetch. */ orderBy?: Prisma.OrganizationOrderByWithRelationInput | Prisma.OrganizationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Organizations. */ cursor?: Prisma.OrganizationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Organizations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Organizations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Organizations. */ distinct?: Prisma.OrganizationScalarFieldEnum | Prisma.OrganizationScalarFieldEnum[] } /** * Organization findFirstOrThrow */ export type OrganizationFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Organization */ select?: Prisma.OrganizationSelect | null /** * Omit specific fields from the Organization */ omit?: Prisma.OrganizationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OrganizationInclude | null /** * Filter, which Organization to fetch. */ where?: Prisma.OrganizationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Organizations to fetch. */ orderBy?: Prisma.OrganizationOrderByWithRelationInput | Prisma.OrganizationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Organizations. */ cursor?: Prisma.OrganizationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Organizations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Organizations. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Organizations. */ distinct?: Prisma.OrganizationScalarFieldEnum | Prisma.OrganizationScalarFieldEnum[] } /** * Organization findMany */ export type OrganizationFindManyArgs = { /** * Select specific fields to fetch from the Organization */ select?: Prisma.OrganizationSelect | null /** * Omit specific fields from the Organization */ omit?: Prisma.OrganizationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OrganizationInclude | null /** * Filter, which Organizations to fetch. */ where?: Prisma.OrganizationWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Organizations to fetch. */ orderBy?: Prisma.OrganizationOrderByWithRelationInput | Prisma.OrganizationOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Organizations. */ cursor?: Prisma.OrganizationWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Organizations from the position of the cursor. */ take?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Skip the first `n` Organizations. */ skip?: number distinct?: Prisma.OrganizationScalarFieldEnum | Prisma.OrganizationScalarFieldEnum[] } /** * Organization create */ export type OrganizationCreateArgs = { /** * Select specific fields to fetch from the Organization */ select?: Prisma.OrganizationSelect | null /** * Omit specific fields from the Organization */ omit?: Prisma.OrganizationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OrganizationInclude | null /** * The data needed to create a Organization. */ data: Prisma.XOR } /** * Organization createMany */ export type OrganizationCreateManyArgs = { /** * The data used to create many Organizations. */ data: Prisma.OrganizationCreateManyInput | Prisma.OrganizationCreateManyInput[] skipDuplicates?: boolean } /** * Organization createManyAndReturn */ export type OrganizationCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Organization */ select?: Prisma.OrganizationSelectCreateManyAndReturn | null /** * Omit specific fields from the Organization */ omit?: Prisma.OrganizationOmit | null /** * The data used to create many Organizations. */ data: Prisma.OrganizationCreateManyInput | Prisma.OrganizationCreateManyInput[] skipDuplicates?: boolean } /** * Organization update */ export type OrganizationUpdateArgs = { /** * Select specific fields to fetch from the Organization */ select?: Prisma.OrganizationSelect | null /** * Omit specific fields from the Organization */ omit?: Prisma.OrganizationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OrganizationInclude | null /** * The data needed to update a Organization. */ data: Prisma.XOR /** * Choose, which Organization to update. */ where: Prisma.OrganizationWhereUniqueInput } /** * Organization updateMany */ export type OrganizationUpdateManyArgs = { /** * The data used to update Organizations. */ data: Prisma.XOR /** * Filter which Organizations to update */ where?: Prisma.OrganizationWhereInput /** * Limit how many Organizations to update. */ limit?: number } /** * Organization updateManyAndReturn */ export type OrganizationUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Organization */ select?: Prisma.OrganizationSelectUpdateManyAndReturn | null /** * Omit specific fields from the Organization */ omit?: Prisma.OrganizationOmit | null /** * The data used to update Organizations. */ data: Prisma.XOR /** * Filter which Organizations to update */ where?: Prisma.OrganizationWhereInput /** * Limit how many Organizations to update. */ limit?: number } /** * Organization upsert */ export type OrganizationUpsertArgs = { /** * Select specific fields to fetch from the Organization */ select?: Prisma.OrganizationSelect | null /** * Omit specific fields from the Organization */ omit?: Prisma.OrganizationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OrganizationInclude | null /** * The filter to search for the Organization to update in case it exists. */ where: Prisma.OrganizationWhereUniqueInput /** * In case the Organization found by the `where` argument doesn't exist, create a new Organization with this data. */ create: Prisma.XOR /** * In case the Organization was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Organization delete */ export type OrganizationDeleteArgs = { /** * Select specific fields to fetch from the Organization */ select?: Prisma.OrganizationSelect | null /** * Omit specific fields from the Organization */ omit?: Prisma.OrganizationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OrganizationInclude | null /** * Filter which Organization to delete. */ where: Prisma.OrganizationWhereUniqueInput } /** * Organization deleteMany */ export type OrganizationDeleteManyArgs = { /** * Filter which Organizations to delete */ where?: Prisma.OrganizationWhereInput /** * Limit how many Organizations to delete. */ limit?: number } /** * Organization.members */ export type Organization$membersArgs = { /** * Select specific fields to fetch from the Member */ select?: Prisma.MemberSelect | null /** * Omit specific fields from the Member */ omit?: Prisma.MemberOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.MemberInclude | null where?: Prisma.MemberWhereInput orderBy?: Prisma.MemberOrderByWithRelationInput | Prisma.MemberOrderByWithRelationInput[] cursor?: Prisma.MemberWhereUniqueInput take?: number skip?: number distinct?: Prisma.MemberScalarFieldEnum | Prisma.MemberScalarFieldEnum[] } /** * Organization.invitations */ export type Organization$invitationsArgs = { /** * Select specific fields to fetch from the Invitation */ select?: Prisma.InvitationSelect | null /** * Omit specific fields from the Invitation */ omit?: Prisma.InvitationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.InvitationInclude | null where?: Prisma.InvitationWhereInput orderBy?: Prisma.InvitationOrderByWithRelationInput | Prisma.InvitationOrderByWithRelationInput[] cursor?: Prisma.InvitationWhereUniqueInput take?: number skip?: number distinct?: Prisma.InvitationScalarFieldEnum | Prisma.InvitationScalarFieldEnum[] } /** * Organization without action */ export type OrganizationDefaultArgs = { /** * Select specific fields to fetch from the Organization */ select?: Prisma.OrganizationSelect | null /** * Omit specific fields from the Organization */ omit?: Prisma.OrganizationOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.OrganizationInclude | null }