2026-03-07 11:25:11 +03:30
|
|
|
|
|
|
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
|
|
|
/* eslint-disable */
|
|
|
|
|
// biome-ignore-all lint: generated file
|
|
|
|
|
// @ts-nocheck
|
|
|
|
|
/*
|
|
|
|
|
* This file exports the `Partner` 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.js"
|
|
|
|
|
import type * as Prisma from "../internal/prismaNamespace.js"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Model Partner
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerModel = runtime.Types.Result.DefaultSelection<Prisma.$PartnerPayload>
|
|
|
|
|
|
|
|
|
|
export type AggregatePartner = {
|
|
|
|
|
_count: PartnerCountAggregateOutputType | null
|
2026-03-14 16:26:44 +03:30
|
|
|
_avg: PartnerAvgAggregateOutputType | null
|
|
|
|
|
_sum: PartnerSumAggregateOutputType | null
|
2026-03-07 11:25:11 +03:30
|
|
|
_min: PartnerMinAggregateOutputType | null
|
|
|
|
|
_max: PartnerMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-14 16:26:44 +03:30
|
|
|
export type PartnerAvgAggregateOutputType = {
|
|
|
|
|
license_quota: number | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerSumAggregateOutputType = {
|
|
|
|
|
license_quota: number | null
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
export type PartnerMinAggregateOutputType = {
|
|
|
|
|
id: string | null
|
|
|
|
|
name: string | null
|
|
|
|
|
code: string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota: number | null
|
|
|
|
|
created_at: Date | null
|
|
|
|
|
updated_at: Date | null
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerMaxAggregateOutputType = {
|
|
|
|
|
id: string | null
|
|
|
|
|
name: string | null
|
|
|
|
|
code: string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota: number | null
|
|
|
|
|
created_at: Date | null
|
|
|
|
|
updated_at: Date | null
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerCountAggregateOutputType = {
|
|
|
|
|
id: number
|
|
|
|
|
name: number
|
|
|
|
|
code: number
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota: number
|
|
|
|
|
created_at: number
|
|
|
|
|
updated_at: number
|
2026-03-07 11:25:11 +03:30
|
|
|
_all: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2026-03-14 16:26:44 +03:30
|
|
|
export type PartnerAvgAggregateInputType = {
|
|
|
|
|
license_quota?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerSumAggregateInputType = {
|
|
|
|
|
license_quota?: true
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
export type PartnerMinAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
name?: true
|
|
|
|
|
code?: true
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: true
|
|
|
|
|
created_at?: true
|
|
|
|
|
updated_at?: true
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerMaxAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
name?: true
|
|
|
|
|
code?: true
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: true
|
|
|
|
|
created_at?: true
|
|
|
|
|
updated_at?: true
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerCountAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
name?: true
|
|
|
|
|
code?: true
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: true
|
|
|
|
|
created_at?: true
|
|
|
|
|
updated_at?: true
|
2026-03-07 11:25:11 +03:30
|
|
|
_all?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Filter which Partner to aggregate.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PartnerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of Partners to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.PartnerOrderByWithRelationInput | Prisma.PartnerOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the start position
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` Partners 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` Partners.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Count returned Partners
|
|
|
|
|
**/
|
|
|
|
|
_count?: true | PartnerCountAggregateInputType
|
2026-03-14 16:26:44 +03:30
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to average
|
|
|
|
|
**/
|
|
|
|
|
_avg?: PartnerAvgAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to sum
|
|
|
|
|
**/
|
|
|
|
|
_sum?: PartnerSumAggregateInputType
|
2026-03-07 11:25:11 +03:30
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to find the minimum value
|
|
|
|
|
**/
|
|
|
|
|
_min?: PartnerMinAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to find the maximum value
|
|
|
|
|
**/
|
|
|
|
|
_max?: PartnerMaxAggregateInputType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GetPartnerAggregateType<T extends PartnerAggregateArgs> = {
|
|
|
|
|
[P in keyof T & keyof AggregatePartner]: P extends '_count' | 'count'
|
|
|
|
|
? T[P] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregatePartner[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregatePartner[P]>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PartnerGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
where?: Prisma.PartnerWhereInput
|
|
|
|
|
orderBy?: Prisma.PartnerOrderByWithAggregationInput | Prisma.PartnerOrderByWithAggregationInput[]
|
|
|
|
|
by: Prisma.PartnerScalarFieldEnum[] | Prisma.PartnerScalarFieldEnum
|
|
|
|
|
having?: Prisma.PartnerScalarWhereWithAggregatesInput
|
|
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
|
|
|
|
_count?: PartnerCountAggregateInputType | true
|
2026-03-14 16:26:44 +03:30
|
|
|
_avg?: PartnerAvgAggregateInputType
|
|
|
|
|
_sum?: PartnerSumAggregateInputType
|
2026-03-07 11:25:11 +03:30
|
|
|
_min?: PartnerMinAggregateInputType
|
|
|
|
|
_max?: PartnerMaxAggregateInputType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerGroupByOutputType = {
|
|
|
|
|
id: string
|
|
|
|
|
name: string
|
|
|
|
|
code: string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota: number | null
|
|
|
|
|
created_at: Date
|
|
|
|
|
updated_at: Date
|
2026-03-07 11:25:11 +03:30
|
|
|
_count: PartnerCountAggregateOutputType | null
|
2026-03-14 16:26:44 +03:30
|
|
|
_avg: PartnerAvgAggregateOutputType | null
|
|
|
|
|
_sum: PartnerSumAggregateOutputType | null
|
2026-03-07 11:25:11 +03:30
|
|
|
_min: PartnerMinAggregateOutputType | null
|
|
|
|
|
_max: PartnerMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetPartnerGroupByPayload<T extends PartnerGroupByArgs> = Prisma.PrismaPromise<
|
|
|
|
|
Array<
|
|
|
|
|
Prisma.PickEnumerable<PartnerGroupByOutputType, T['by']> &
|
|
|
|
|
{
|
|
|
|
|
[P in ((keyof T) & (keyof PartnerGroupByOutputType))]: P extends '_count'
|
|
|
|
|
? T[P] extends boolean
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], PartnerGroupByOutputType[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], PartnerGroupByOutputType[P]>
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PartnerWhereInput = {
|
|
|
|
|
AND?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
|
|
|
|
|
OR?: Prisma.PartnerWhereInput[]
|
|
|
|
|
NOT?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
|
|
|
|
|
id?: Prisma.StringFilter<"Partner"> | string
|
|
|
|
|
name?: Prisma.StringFilter<"Partner"> | string
|
|
|
|
|
code?: Prisma.StringNullableFilter<"Partner"> | string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.IntNullableFilter<"Partner"> | number | null
|
|
|
|
|
created_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
licenses?: Prisma.LicenseListRelationFilter
|
|
|
|
|
account?: Prisma.AccountListRelationFilter
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerOrderByWithRelationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
name?: Prisma.SortOrder
|
|
|
|
|
code?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
licenses?: Prisma.LicenseOrderByRelationAggregateInput
|
|
|
|
|
account?: Prisma.AccountOrderByRelationAggregateInput
|
|
|
|
|
_relevance?: Prisma.PartnerOrderByRelevanceInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerWhereUniqueInput = Prisma.AtLeast<{
|
|
|
|
|
id?: string
|
|
|
|
|
AND?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
|
|
|
|
|
OR?: Prisma.PartnerWhereInput[]
|
|
|
|
|
NOT?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
|
|
|
|
|
name?: Prisma.StringFilter<"Partner"> | string
|
|
|
|
|
code?: Prisma.StringNullableFilter<"Partner"> | string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.IntNullableFilter<"Partner"> | number | null
|
|
|
|
|
created_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
licenses?: Prisma.LicenseListRelationFilter
|
|
|
|
|
account?: Prisma.AccountListRelationFilter
|
|
|
|
|
}, "id">
|
|
|
|
|
|
|
|
|
|
export type PartnerOrderByWithAggregationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
name?: Prisma.SortOrder
|
|
|
|
|
code?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
_count?: Prisma.PartnerCountOrderByAggregateInput
|
2026-03-14 16:26:44 +03:30
|
|
|
_avg?: Prisma.PartnerAvgOrderByAggregateInput
|
2026-03-07 11:25:11 +03:30
|
|
|
_max?: Prisma.PartnerMaxOrderByAggregateInput
|
|
|
|
|
_min?: Prisma.PartnerMinOrderByAggregateInput
|
2026-03-14 16:26:44 +03:30
|
|
|
_sum?: Prisma.PartnerSumOrderByAggregateInput
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerScalarWhereWithAggregatesInput = {
|
|
|
|
|
AND?: Prisma.PartnerScalarWhereWithAggregatesInput | Prisma.PartnerScalarWhereWithAggregatesInput[]
|
|
|
|
|
OR?: Prisma.PartnerScalarWhereWithAggregatesInput[]
|
|
|
|
|
NOT?: Prisma.PartnerScalarWhereWithAggregatesInput | Prisma.PartnerScalarWhereWithAggregatesInput[]
|
|
|
|
|
id?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
|
|
|
|
name?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
|
|
|
|
code?: Prisma.StringNullableWithAggregatesFilter<"Partner"> | string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.IntNullableWithAggregatesFilter<"Partner"> | number | null
|
|
|
|
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"Partner"> | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Partner"> | Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerCreateInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
name: string
|
|
|
|
|
code?: string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: number | null
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
licenses?: Prisma.LicenseCreateNestedManyWithoutPartnerInput
|
|
|
|
|
account?: Prisma.AccountCreateNestedManyWithoutPartnerInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUncheckedCreateInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
name: string
|
|
|
|
|
code?: string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: number | null
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPartnerInput
|
|
|
|
|
account?: Prisma.AccountUncheckedCreateNestedManyWithoutPartnerInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUpdateInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
licenses?: Prisma.LicenseUpdateManyWithoutPartnerNestedInput
|
|
|
|
|
account?: Prisma.AccountUpdateManyWithoutPartnerNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUncheckedUpdateInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPartnerNestedInput
|
|
|
|
|
account?: Prisma.AccountUncheckedUpdateManyWithoutPartnerNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerCreateManyInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
name: string
|
|
|
|
|
code?: string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: number | null
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUpdateManyMutationInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUncheckedUpdateManyInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerScalarRelationFilter = {
|
|
|
|
|
is?: Prisma.PartnerWhereInput
|
|
|
|
|
isNot?: Prisma.PartnerWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerOrderByRelevanceInput = {
|
|
|
|
|
fields: Prisma.PartnerOrderByRelevanceFieldEnum | Prisma.PartnerOrderByRelevanceFieldEnum[]
|
|
|
|
|
sort: Prisma.SortOrder
|
|
|
|
|
search: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerCountOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
name?: Prisma.SortOrder
|
|
|
|
|
code?: Prisma.SortOrder
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerAvgOrderByAggregateInput = {
|
|
|
|
|
license_quota?: Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerMaxOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
name?: Prisma.SortOrder
|
|
|
|
|
code?: Prisma.SortOrder
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerMinOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
name?: Prisma.SortOrder
|
|
|
|
|
code?: Prisma.SortOrder
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerSumOrderByAggregateInput = {
|
|
|
|
|
license_quota?: Prisma.SortOrder
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerNullableScalarRelationFilter = {
|
|
|
|
|
is?: Prisma.PartnerWhereInput | null
|
|
|
|
|
isNot?: Prisma.PartnerWhereInput | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerCreateNestedOneWithoutLicensesInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PartnerCreateWithoutLicensesInput, Prisma.PartnerUncheckedCreateWithoutLicensesInput>
|
|
|
|
|
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutLicensesInput
|
|
|
|
|
connect?: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUpdateOneRequiredWithoutLicensesNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PartnerCreateWithoutLicensesInput, Prisma.PartnerUncheckedCreateWithoutLicensesInput>
|
|
|
|
|
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutLicensesInput
|
|
|
|
|
upsert?: Prisma.PartnerUpsertWithoutLicensesInput
|
|
|
|
|
connect?: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutLicensesInput, Prisma.PartnerUpdateWithoutLicensesInput>, Prisma.PartnerUncheckedUpdateWithoutLicensesInput>
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-14 16:26:44 +03:30
|
|
|
export type NullableIntFieldUpdateOperationsInput = {
|
|
|
|
|
set?: number | null
|
|
|
|
|
increment?: number
|
|
|
|
|
decrement?: number
|
|
|
|
|
multiply?: number
|
|
|
|
|
divide?: number
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-07 11:25:11 +03:30
|
|
|
export type PartnerCreateNestedOneWithoutAccountInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PartnerCreateWithoutAccountInput, Prisma.PartnerUncheckedCreateWithoutAccountInput>
|
|
|
|
|
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutAccountInput
|
|
|
|
|
connect?: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUpdateOneWithoutAccountNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.PartnerCreateWithoutAccountInput, Prisma.PartnerUncheckedCreateWithoutAccountInput>
|
|
|
|
|
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutAccountInput
|
|
|
|
|
upsert?: Prisma.PartnerUpsertWithoutAccountInput
|
|
|
|
|
disconnect?: Prisma.PartnerWhereInput | boolean
|
|
|
|
|
delete?: Prisma.PartnerWhereInput | boolean
|
|
|
|
|
connect?: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutAccountInput, Prisma.PartnerUpdateWithoutAccountInput>, Prisma.PartnerUncheckedUpdateWithoutAccountInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerCreateWithoutLicensesInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
name: string
|
|
|
|
|
code?: string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: number | null
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
account?: Prisma.AccountCreateNestedManyWithoutPartnerInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUncheckedCreateWithoutLicensesInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
name: string
|
|
|
|
|
code?: string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: number | null
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
account?: Prisma.AccountUncheckedCreateNestedManyWithoutPartnerInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerCreateOrConnectWithoutLicensesInput = {
|
|
|
|
|
where: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
create: Prisma.XOR<Prisma.PartnerCreateWithoutLicensesInput, Prisma.PartnerUncheckedCreateWithoutLicensesInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUpsertWithoutLicensesInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.PartnerUpdateWithoutLicensesInput, Prisma.PartnerUncheckedUpdateWithoutLicensesInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.PartnerCreateWithoutLicensesInput, Prisma.PartnerUncheckedCreateWithoutLicensesInput>
|
|
|
|
|
where?: Prisma.PartnerWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUpdateToOneWithWhereWithoutLicensesInput = {
|
|
|
|
|
where?: Prisma.PartnerWhereInput
|
|
|
|
|
data: Prisma.XOR<Prisma.PartnerUpdateWithoutLicensesInput, Prisma.PartnerUncheckedUpdateWithoutLicensesInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUpdateWithoutLicensesInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
account?: Prisma.AccountUpdateManyWithoutPartnerNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUncheckedUpdateWithoutLicensesInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
account?: Prisma.AccountUncheckedUpdateManyWithoutPartnerNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerCreateWithoutAccountInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
name: string
|
|
|
|
|
code?: string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: number | null
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
licenses?: Prisma.LicenseCreateNestedManyWithoutPartnerInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUncheckedCreateWithoutAccountInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
name: string
|
|
|
|
|
code?: string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: number | null
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPartnerInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerCreateOrConnectWithoutAccountInput = {
|
|
|
|
|
where: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
create: Prisma.XOR<Prisma.PartnerCreateWithoutAccountInput, Prisma.PartnerUncheckedCreateWithoutAccountInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUpsertWithoutAccountInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.PartnerUpdateWithoutAccountInput, Prisma.PartnerUncheckedUpdateWithoutAccountInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.PartnerCreateWithoutAccountInput, Prisma.PartnerUncheckedCreateWithoutAccountInput>
|
|
|
|
|
where?: Prisma.PartnerWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUpdateToOneWithWhereWithoutAccountInput = {
|
|
|
|
|
where?: Prisma.PartnerWhereInput
|
|
|
|
|
data: Prisma.XOR<Prisma.PartnerUpdateWithoutAccountInput, Prisma.PartnerUncheckedUpdateWithoutAccountInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUpdateWithoutAccountInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
licenses?: Prisma.LicenseUpdateManyWithoutPartnerNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerUncheckedUpdateWithoutAccountInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-03-07 11:25:11 +03:30
|
|
|
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPartnerNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Count Type PartnerCountOutputType
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export type PartnerCountOutputType = {
|
|
|
|
|
licenses: number
|
|
|
|
|
account: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
licenses?: boolean | PartnerCountOutputTypeCountLicensesArgs
|
|
|
|
|
account?: boolean | PartnerCountOutputTypeCountAccountArgs
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PartnerCountOutputType without action
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PartnerCountOutputType
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PartnerCountOutputTypeSelect<ExtArgs> | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PartnerCountOutputType without action
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerCountOutputTypeCountLicensesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
where?: Prisma.LicenseWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PartnerCountOutputType without action
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerCountOutputTypeCountAccountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
where?: Prisma.AccountWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PartnerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
|
|
|
id?: boolean
|
|
|
|
|
name?: boolean
|
|
|
|
|
code?: boolean
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: boolean
|
|
|
|
|
created_at?: boolean
|
|
|
|
|
updated_at?: boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
licenses?: boolean | Prisma.Partner$licensesArgs<ExtArgs>
|
|
|
|
|
account?: boolean | Prisma.Partner$accountArgs<ExtArgs>
|
|
|
|
|
_count?: boolean | Prisma.PartnerCountOutputTypeDefaultArgs<ExtArgs>
|
|
|
|
|
}, ExtArgs["result"]["partner"]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type PartnerSelectScalar = {
|
|
|
|
|
id?: boolean
|
|
|
|
|
name?: boolean
|
|
|
|
|
code?: boolean
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota?: boolean
|
|
|
|
|
created_at?: boolean
|
|
|
|
|
updated_at?: boolean
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
2026-03-14 16:26:44 +03:30
|
|
|
export type PartnerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "code" | "license_quota" | "created_at" | "updated_at", ExtArgs["result"]["partner"]>
|
2026-03-07 11:25:11 +03:30
|
|
|
export type PartnerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
licenses?: boolean | Prisma.Partner$licensesArgs<ExtArgs>
|
|
|
|
|
account?: boolean | Prisma.Partner$accountArgs<ExtArgs>
|
|
|
|
|
_count?: boolean | Prisma.PartnerCountOutputTypeDefaultArgs<ExtArgs>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type $PartnerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
name: "Partner"
|
|
|
|
|
objects: {
|
|
|
|
|
licenses: Prisma.$LicensePayload<ExtArgs>[]
|
|
|
|
|
account: Prisma.$AccountPayload<ExtArgs>[]
|
|
|
|
|
}
|
|
|
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
|
|
|
id: string
|
|
|
|
|
name: string
|
|
|
|
|
code: string | null
|
2026-03-14 16:26:44 +03:30
|
|
|
license_quota: number | null
|
|
|
|
|
created_at: Date
|
|
|
|
|
updated_at: Date
|
2026-03-07 11:25:11 +03:30
|
|
|
}, ExtArgs["result"]["partner"]>
|
|
|
|
|
composites: {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PartnerGetPayload<S extends boolean | null | undefined | PartnerDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PartnerPayload, S>
|
|
|
|
|
|
|
|
|
|
export type PartnerCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
|
|
|
Omit<PartnerFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
|
|
|
select?: PartnerCountAggregateInputType | true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface PartnerDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
|
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Partner'], meta: { name: 'Partner' } }
|
|
|
|
|
/**
|
|
|
|
|
* Find zero or one Partner that matches the filter.
|
|
|
|
|
* @param {PartnerFindUniqueArgs} args - Arguments to find a Partner
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one Partner
|
|
|
|
|
* const partner = await prisma.partner.findUnique({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findUnique<T extends PartnerFindUniqueArgs>(args: Prisma.SelectSubset<T, PartnerFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find one Partner that matches the filter or throw an error with `error.code='P2025'`
|
|
|
|
|
* if no matches were found.
|
|
|
|
|
* @param {PartnerFindUniqueOrThrowArgs} args - Arguments to find a Partner
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one Partner
|
|
|
|
|
* const partner = await prisma.partner.findUniqueOrThrow({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findUniqueOrThrow<T extends PartnerFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PartnerFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find the first Partner 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 {PartnerFindFirstArgs} args - Arguments to find a Partner
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one Partner
|
|
|
|
|
* const partner = await prisma.partner.findFirst({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findFirst<T extends PartnerFindFirstArgs>(args?: Prisma.SelectSubset<T, PartnerFindFirstArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find the first Partner 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 {PartnerFindFirstOrThrowArgs} args - Arguments to find a Partner
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one Partner
|
|
|
|
|
* const partner = await prisma.partner.findFirstOrThrow({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findFirstOrThrow<T extends PartnerFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PartnerFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find zero or more Partners 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 {PartnerFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
|
|
|
* @example
|
|
|
|
|
* // Get all Partners
|
|
|
|
|
* const partners = await prisma.partner.findMany()
|
|
|
|
|
*
|
|
|
|
|
* // Get first 10 Partners
|
|
|
|
|
* const partners = await prisma.partner.findMany({ take: 10 })
|
|
|
|
|
*
|
|
|
|
|
* // Only select the `id`
|
|
|
|
|
* const partnerWithIdOnly = await prisma.partner.findMany({ select: { id: true } })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
findMany<T extends PartnerFindManyArgs>(args?: Prisma.SelectSubset<T, PartnerFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a Partner.
|
|
|
|
|
* @param {PartnerCreateArgs} args - Arguments to create a Partner.
|
|
|
|
|
* @example
|
|
|
|
|
* // Create one Partner
|
|
|
|
|
* const Partner = await prisma.partner.create({
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... data to create a Partner
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
create<T extends PartnerCreateArgs>(args: Prisma.SelectSubset<T, PartnerCreateArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create many Partners.
|
|
|
|
|
* @param {PartnerCreateManyArgs} args - Arguments to create many Partners.
|
|
|
|
|
* @example
|
|
|
|
|
* // Create many Partners
|
|
|
|
|
* const partner = await prisma.partner.createMany({
|
|
|
|
|
* data: [
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* ]
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
createMany<T extends PartnerCreateManyArgs>(args?: Prisma.SelectSubset<T, PartnerCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delete a Partner.
|
|
|
|
|
* @param {PartnerDeleteArgs} args - Arguments to delete one Partner.
|
|
|
|
|
* @example
|
|
|
|
|
* // Delete one Partner
|
|
|
|
|
* const Partner = await prisma.partner.delete({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... filter to delete one Partner
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
delete<T extends PartnerDeleteArgs>(args: Prisma.SelectSubset<T, PartnerDeleteArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update one Partner.
|
|
|
|
|
* @param {PartnerUpdateArgs} args - Arguments to update one Partner.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update one Partner
|
|
|
|
|
* const partner = await prisma.partner.update({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* },
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
update<T extends PartnerUpdateArgs>(args: Prisma.SelectSubset<T, PartnerUpdateArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delete zero or more Partners.
|
|
|
|
|
* @param {PartnerDeleteManyArgs} args - Arguments to filter Partners to delete.
|
|
|
|
|
* @example
|
|
|
|
|
* // Delete a few Partners
|
|
|
|
|
* const { count } = await prisma.partner.deleteMany({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
deleteMany<T extends PartnerDeleteManyArgs>(args?: Prisma.SelectSubset<T, PartnerDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update zero or more Partners.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {PartnerUpdateManyArgs} args - Arguments to update one or more rows.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update many Partners
|
|
|
|
|
* const partner = await prisma.partner.updateMany({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* },
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
updateMany<T extends PartnerUpdateManyArgs>(args: Prisma.SelectSubset<T, PartnerUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create or update one Partner.
|
|
|
|
|
* @param {PartnerUpsertArgs} args - Arguments to update or create a Partner.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update or create a Partner
|
|
|
|
|
* const partner = await prisma.partner.upsert({
|
|
|
|
|
* create: {
|
|
|
|
|
* // ... data to create a Partner
|
|
|
|
|
* },
|
|
|
|
|
* update: {
|
|
|
|
|
* // ... in case it already exists, update
|
|
|
|
|
* },
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... the filter for the Partner we want to update
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
upsert<T extends PartnerUpsertArgs>(args: Prisma.SelectSubset<T, PartnerUpsertArgs<ExtArgs>>): Prisma.Prisma__PartnerClient<runtime.Types.Result.GetResult<Prisma.$PartnerPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Count the number of Partners.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {PartnerCountArgs} args - Arguments to filter Partners to count.
|
|
|
|
|
* @example
|
|
|
|
|
* // Count the number of Partners
|
|
|
|
|
* const count = await prisma.partner.count({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... the filter for the Partners we want to count
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
**/
|
|
|
|
|
count<T extends PartnerCountArgs>(
|
|
|
|
|
args?: Prisma.Subset<T, PartnerCountArgs>,
|
|
|
|
|
): Prisma.PrismaPromise<
|
|
|
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
|
|
|
? T['select'] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T['select'], PartnerCountAggregateOutputType>
|
|
|
|
|
: number
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Allows you to perform aggregations operations on a Partner.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {PartnerAggregateArgs} 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<T extends PartnerAggregateArgs>(args: Prisma.Subset<T, PartnerAggregateArgs>): Prisma.PrismaPromise<GetPartnerAggregateType<T>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Group by Partner.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {PartnerGroupByArgs} 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 PartnerGroupByArgs,
|
|
|
|
|
HasSelectOrTake extends Prisma.Or<
|
|
|
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
|
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
|
|
|
>,
|
|
|
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
|
|
|
? { orderBy: PartnerGroupByArgs['orderBy'] }
|
|
|
|
|
: { orderBy?: PartnerGroupByArgs['orderBy'] },
|
|
|
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
|
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
|
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
|
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
|
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
|
|
|
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<T>
|
|
|
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
|
|
|
? 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<T>
|
|
|
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
|
|
|
? 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<T, PartnerGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPartnerGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
|
|
|
/**
|
|
|
|
|
* Fields of the Partner model
|
|
|
|
|
*/
|
|
|
|
|
readonly fields: PartnerFieldRefs;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The delegate class that acts as a "Promise-like" for Partner.
|
|
|
|
|
* 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__PartnerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
|
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
|
|
|
licenses<T extends Prisma.Partner$licensesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Partner$licensesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LicensePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
|
|
|
account<T extends Prisma.Partner$accountArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Partner$accountArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
|
|
|
/**
|
|
|
|
|
* 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<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
|
|
|
/**
|
|
|
|
|
* 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<T>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Fields of the Partner model
|
|
|
|
|
*/
|
|
|
|
|
export interface PartnerFieldRefs {
|
|
|
|
|
readonly id: Prisma.FieldRef<"Partner", 'String'>
|
|
|
|
|
readonly name: Prisma.FieldRef<"Partner", 'String'>
|
|
|
|
|
readonly code: Prisma.FieldRef<"Partner", 'String'>
|
2026-03-14 16:26:44 +03:30
|
|
|
readonly license_quota: Prisma.FieldRef<"Partner", 'Int'>
|
|
|
|
|
readonly created_at: Prisma.FieldRef<"Partner", 'DateTime'>
|
|
|
|
|
readonly updated_at: Prisma.FieldRef<"Partner", 'DateTime'>
|
2026-03-07 11:25:11 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Custom InputTypes
|
|
|
|
|
/**
|
|
|
|
|
* Partner findUnique
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Partner
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PartnerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Partner
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PartnerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PartnerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which Partner to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Partner findUniqueOrThrow
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Partner
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PartnerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Partner
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PartnerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PartnerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which Partner to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Partner findFirst
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Partner
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PartnerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Partner
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PartnerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PartnerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which Partner to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PartnerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of Partners to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.PartnerOrderByWithRelationInput | Prisma.PartnerOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for searching for Partners.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` Partners 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` Partners.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of Partners.
|
|
|
|
|
*/
|
|
|
|
|
distinct?: Prisma.PartnerScalarFieldEnum | Prisma.PartnerScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Partner findFirstOrThrow
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Partner
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PartnerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Partner
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PartnerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PartnerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which Partner to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PartnerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of Partners to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.PartnerOrderByWithRelationInput | Prisma.PartnerOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for searching for Partners.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` Partners 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` Partners.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of Partners.
|
|
|
|
|
*/
|
|
|
|
|
distinct?: Prisma.PartnerScalarFieldEnum | Prisma.PartnerScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Partner findMany
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Partner
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PartnerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Partner
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PartnerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PartnerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which Partners to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PartnerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of Partners to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.PartnerOrderByWithRelationInput | Prisma.PartnerOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for listing Partners.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` Partners 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` Partners.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
distinct?: Prisma.PartnerScalarFieldEnum | Prisma.PartnerScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Partner create
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Partner
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PartnerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Partner
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PartnerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PartnerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The data needed to create a Partner.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.PartnerCreateInput, Prisma.PartnerUncheckedCreateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Partner createMany
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to create many Partners.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.PartnerCreateManyInput | Prisma.PartnerCreateManyInput[]
|
|
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Partner update
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Partner
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PartnerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Partner
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PartnerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PartnerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The data needed to update a Partner.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.PartnerUpdateInput, Prisma.PartnerUncheckedUpdateInput>
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which Partner to update.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Partner updateMany
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to update Partners.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.PartnerUpdateManyMutationInput, Prisma.PartnerUncheckedUpdateManyInput>
|
|
|
|
|
/**
|
|
|
|
|
* Filter which Partners to update
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PartnerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many Partners to update.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Partner upsert
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Partner
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PartnerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Partner
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PartnerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PartnerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The filter to search for the Partner to update in case it exists.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* In case the Partner found by the `where` argument doesn't exist, create a new Partner with this data.
|
|
|
|
|
*/
|
|
|
|
|
create: Prisma.XOR<Prisma.PartnerCreateInput, Prisma.PartnerUncheckedCreateInput>
|
|
|
|
|
/**
|
|
|
|
|
* In case the Partner was found with the provided `where` argument, update it with this data.
|
|
|
|
|
*/
|
|
|
|
|
update: Prisma.XOR<Prisma.PartnerUpdateInput, Prisma.PartnerUncheckedUpdateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Partner delete
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Partner
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PartnerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Partner
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PartnerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PartnerInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter which Partner to delete.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.PartnerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Partner deleteMany
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Filter which Partners to delete
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.PartnerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many Partners to delete.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Partner.licenses
|
|
|
|
|
*/
|
|
|
|
|
export type Partner$licensesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the License
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.LicenseSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the License
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.LicenseOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.LicenseInclude<ExtArgs> | null
|
|
|
|
|
where?: Prisma.LicenseWhereInput
|
|
|
|
|
orderBy?: Prisma.LicenseOrderByWithRelationInput | Prisma.LicenseOrderByWithRelationInput[]
|
|
|
|
|
cursor?: Prisma.LicenseWhereUniqueInput
|
|
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
|
|
|
|
distinct?: Prisma.LicenseScalarFieldEnum | Prisma.LicenseScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Partner.account
|
|
|
|
|
*/
|
|
|
|
|
export type Partner$accountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Account
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.AccountSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Account
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.AccountOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.AccountInclude<ExtArgs> | null
|
|
|
|
|
where?: Prisma.AccountWhereInput
|
|
|
|
|
orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
|
|
|
|
|
cursor?: Prisma.AccountWhereUniqueInput
|
|
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
|
|
|
|
distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Partner without action
|
|
|
|
|
*/
|
|
|
|
|
export type PartnerDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Partner
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PartnerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Partner
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PartnerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PartnerInclude<ExtArgs> | null
|
|
|
|
|
}
|