update admin user business
This commit is contained in:
@@ -20,46 +20,82 @@ export type PartnerModel = runtime.Types.Result.DefaultSelection<Prisma.$Partner
|
||||
|
||||
export type AggregatePartner = {
|
||||
_count: PartnerCountAggregateOutputType | null
|
||||
_avg: PartnerAvgAggregateOutputType | null
|
||||
_sum: PartnerSumAggregateOutputType | null
|
||||
_min: PartnerMinAggregateOutputType | null
|
||||
_max: PartnerMaxAggregateOutputType | null
|
||||
}
|
||||
|
||||
export type PartnerAvgAggregateOutputType = {
|
||||
license_quota: number | null
|
||||
}
|
||||
|
||||
export type PartnerSumAggregateOutputType = {
|
||||
license_quota: number | null
|
||||
}
|
||||
|
||||
export type PartnerMinAggregateOutputType = {
|
||||
id: string | null
|
||||
name: string | null
|
||||
code: string | null
|
||||
license_quota: number | null
|
||||
created_at: Date | null
|
||||
updated_at: Date | null
|
||||
}
|
||||
|
||||
export type PartnerMaxAggregateOutputType = {
|
||||
id: string | null
|
||||
name: string | null
|
||||
code: string | null
|
||||
license_quota: number | null
|
||||
created_at: Date | null
|
||||
updated_at: Date | null
|
||||
}
|
||||
|
||||
export type PartnerCountAggregateOutputType = {
|
||||
id: number
|
||||
name: number
|
||||
code: number
|
||||
license_quota: number
|
||||
created_at: number
|
||||
updated_at: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
|
||||
export type PartnerAvgAggregateInputType = {
|
||||
license_quota?: true
|
||||
}
|
||||
|
||||
export type PartnerSumAggregateInputType = {
|
||||
license_quota?: true
|
||||
}
|
||||
|
||||
export type PartnerMinAggregateInputType = {
|
||||
id?: true
|
||||
name?: true
|
||||
code?: true
|
||||
license_quota?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
}
|
||||
|
||||
export type PartnerMaxAggregateInputType = {
|
||||
id?: true
|
||||
name?: true
|
||||
code?: true
|
||||
license_quota?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
}
|
||||
|
||||
export type PartnerCountAggregateInputType = {
|
||||
id?: true
|
||||
name?: true
|
||||
code?: true
|
||||
license_quota?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -98,6 +134,18 @@ export type PartnerAggregateArgs<ExtArgs extends runtime.Types.Extensions.Intern
|
||||
* Count returned Partners
|
||||
**/
|
||||
_count?: true | PartnerCountAggregateInputType
|
||||
/**
|
||||
* {@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
|
||||
/**
|
||||
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||||
*
|
||||
@@ -131,6 +179,8 @@ export type PartnerGroupByArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
take?: number
|
||||
skip?: number
|
||||
_count?: PartnerCountAggregateInputType | true
|
||||
_avg?: PartnerAvgAggregateInputType
|
||||
_sum?: PartnerSumAggregateInputType
|
||||
_min?: PartnerMinAggregateInputType
|
||||
_max?: PartnerMaxAggregateInputType
|
||||
}
|
||||
@@ -139,7 +189,12 @@ export type PartnerGroupByOutputType = {
|
||||
id: string
|
||||
name: string
|
||||
code: string | null
|
||||
license_quota: number | null
|
||||
created_at: Date
|
||||
updated_at: Date
|
||||
_count: PartnerCountAggregateOutputType | null
|
||||
_avg: PartnerAvgAggregateOutputType | null
|
||||
_sum: PartnerSumAggregateOutputType | null
|
||||
_min: PartnerMinAggregateOutputType | null
|
||||
_max: PartnerMaxAggregateOutputType | null
|
||||
}
|
||||
@@ -166,6 +221,9 @@ export type PartnerWhereInput = {
|
||||
id?: Prisma.StringFilter<"Partner"> | string
|
||||
name?: Prisma.StringFilter<"Partner"> | string
|
||||
code?: Prisma.StringNullableFilter<"Partner"> | string | null
|
||||
license_quota?: Prisma.IntNullableFilter<"Partner"> | number | null
|
||||
created_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||
updated_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||
licenses?: Prisma.LicenseListRelationFilter
|
||||
account?: Prisma.AccountListRelationFilter
|
||||
}
|
||||
@@ -174,6 +232,9 @@ export type PartnerOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
license_quota?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
licenses?: Prisma.LicenseOrderByRelationAggregateInput
|
||||
account?: Prisma.AccountOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.PartnerOrderByRelevanceInput
|
||||
@@ -186,6 +247,9 @@ export type PartnerWhereUniqueInput = Prisma.AtLeast<{
|
||||
NOT?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
|
||||
name?: Prisma.StringFilter<"Partner"> | string
|
||||
code?: Prisma.StringNullableFilter<"Partner"> | string | null
|
||||
license_quota?: Prisma.IntNullableFilter<"Partner"> | number | null
|
||||
created_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||
updated_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||
licenses?: Prisma.LicenseListRelationFilter
|
||||
account?: Prisma.AccountListRelationFilter
|
||||
}, "id">
|
||||
@@ -194,9 +258,14 @@ export type PartnerOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
license_quota?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
_count?: Prisma.PartnerCountOrderByAggregateInput
|
||||
_avg?: Prisma.PartnerAvgOrderByAggregateInput
|
||||
_max?: Prisma.PartnerMaxOrderByAggregateInput
|
||||
_min?: Prisma.PartnerMinOrderByAggregateInput
|
||||
_sum?: Prisma.PartnerSumOrderByAggregateInput
|
||||
}
|
||||
|
||||
export type PartnerScalarWhereWithAggregatesInput = {
|
||||
@@ -206,12 +275,18 @@ export type PartnerScalarWhereWithAggregatesInput = {
|
||||
id?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
||||
name?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
||||
code?: Prisma.StringNullableWithAggregatesFilter<"Partner"> | string | null
|
||||
license_quota?: Prisma.IntNullableWithAggregatesFilter<"Partner"> | number | null
|
||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"Partner"> | Date | string
|
||||
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Partner"> | Date | string
|
||||
}
|
||||
|
||||
export type PartnerCreateInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code?: string | null
|
||||
license_quota?: number | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
licenses?: Prisma.LicenseCreateNestedManyWithoutPartnerInput
|
||||
account?: Prisma.AccountCreateNestedManyWithoutPartnerInput
|
||||
}
|
||||
@@ -220,6 +295,9 @@ export type PartnerUncheckedCreateInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code?: string | null
|
||||
license_quota?: number | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPartnerInput
|
||||
account?: Prisma.AccountUncheckedCreateNestedManyWithoutPartnerInput
|
||||
}
|
||||
@@ -228,6 +306,9 @@ export type PartnerUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
licenses?: Prisma.LicenseUpdateManyWithoutPartnerNestedInput
|
||||
account?: Prisma.AccountUpdateManyWithoutPartnerNestedInput
|
||||
}
|
||||
@@ -236,6 +317,9 @@ export type PartnerUncheckedUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPartnerNestedInput
|
||||
account?: Prisma.AccountUncheckedUpdateManyWithoutPartnerNestedInput
|
||||
}
|
||||
@@ -244,18 +328,27 @@ export type PartnerCreateManyInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code?: string | null
|
||||
license_quota?: number | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
}
|
||||
|
||||
export type PartnerUpdateManyMutationInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type PartnerUncheckedUpdateManyInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type PartnerScalarRelationFilter = {
|
||||
@@ -273,18 +366,35 @@ export type PartnerCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
license_quota?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type PartnerAvgOrderByAggregateInput = {
|
||||
license_quota?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type PartnerMaxOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
license_quota?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type PartnerMinOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
license_quota?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type PartnerSumOrderByAggregateInput = {
|
||||
license_quota?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type PartnerNullableScalarRelationFilter = {
|
||||
@@ -306,6 +416,14 @@ export type PartnerUpdateOneRequiredWithoutLicensesNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutLicensesInput, Prisma.PartnerUpdateWithoutLicensesInput>, Prisma.PartnerUncheckedUpdateWithoutLicensesInput>
|
||||
}
|
||||
|
||||
export type NullableIntFieldUpdateOperationsInput = {
|
||||
set?: number | null
|
||||
increment?: number
|
||||
decrement?: number
|
||||
multiply?: number
|
||||
divide?: number
|
||||
}
|
||||
|
||||
export type PartnerCreateNestedOneWithoutAccountInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutAccountInput, Prisma.PartnerUncheckedCreateWithoutAccountInput>
|
||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutAccountInput
|
||||
@@ -326,6 +444,9 @@ export type PartnerCreateWithoutLicensesInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code?: string | null
|
||||
license_quota?: number | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account?: Prisma.AccountCreateNestedManyWithoutPartnerInput
|
||||
}
|
||||
|
||||
@@ -333,6 +454,9 @@ export type PartnerUncheckedCreateWithoutLicensesInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code?: string | null
|
||||
license_quota?: number | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account?: Prisma.AccountUncheckedCreateNestedManyWithoutPartnerInput
|
||||
}
|
||||
|
||||
@@ -356,6 +480,9 @@ export type PartnerUpdateWithoutLicensesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
account?: Prisma.AccountUpdateManyWithoutPartnerNestedInput
|
||||
}
|
||||
|
||||
@@ -363,6 +490,9 @@ export type PartnerUncheckedUpdateWithoutLicensesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
account?: Prisma.AccountUncheckedUpdateManyWithoutPartnerNestedInput
|
||||
}
|
||||
|
||||
@@ -370,6 +500,9 @@ export type PartnerCreateWithoutAccountInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code?: string | null
|
||||
license_quota?: number | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
licenses?: Prisma.LicenseCreateNestedManyWithoutPartnerInput
|
||||
}
|
||||
|
||||
@@ -377,6 +510,9 @@ export type PartnerUncheckedCreateWithoutAccountInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code?: string | null
|
||||
license_quota?: number | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPartnerInput
|
||||
}
|
||||
|
||||
@@ -400,6 +536,9 @@ export type PartnerUpdateWithoutAccountInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
licenses?: Prisma.LicenseUpdateManyWithoutPartnerNestedInput
|
||||
}
|
||||
|
||||
@@ -407,6 +546,9 @@ export type PartnerUncheckedUpdateWithoutAccountInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPartnerNestedInput
|
||||
}
|
||||
|
||||
@@ -454,6 +596,9 @@ export type PartnerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
id?: boolean
|
||||
name?: boolean
|
||||
code?: boolean
|
||||
license_quota?: boolean
|
||||
created_at?: boolean
|
||||
updated_at?: boolean
|
||||
licenses?: boolean | Prisma.Partner$licensesArgs<ExtArgs>
|
||||
account?: boolean | Prisma.Partner$accountArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.PartnerCountOutputTypeDefaultArgs<ExtArgs>
|
||||
@@ -465,9 +610,12 @@ export type PartnerSelectScalar = {
|
||||
id?: boolean
|
||||
name?: boolean
|
||||
code?: boolean
|
||||
license_quota?: boolean
|
||||
created_at?: boolean
|
||||
updated_at?: boolean
|
||||
}
|
||||
|
||||
export type PartnerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "code", ExtArgs["result"]["partner"]>
|
||||
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"]>
|
||||
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>
|
||||
@@ -484,6 +632,9 @@ export type $PartnerPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
||||
id: string
|
||||
name: string
|
||||
code: string | null
|
||||
license_quota: number | null
|
||||
created_at: Date
|
||||
updated_at: Date
|
||||
}, ExtArgs["result"]["partner"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -858,6 +1009,9 @@ export interface PartnerFieldRefs {
|
||||
readonly id: Prisma.FieldRef<"Partner", 'String'>
|
||||
readonly name: Prisma.FieldRef<"Partner", 'String'>
|
||||
readonly code: Prisma.FieldRef<"Partner", 'String'>
|
||||
readonly license_quota: Prisma.FieldRef<"Partner", 'Int'>
|
||||
readonly created_at: Prisma.FieldRef<"Partner", 'DateTime'>
|
||||
readonly updated_at: Prisma.FieldRef<"Partner", 'DateTime'>
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user