refactor user accounts structure
This commit is contained in:
@@ -39,6 +39,7 @@ export type PartnerMinAggregateOutputType = {
|
||||
name: string | null
|
||||
code: string | null
|
||||
license_quota: number | null
|
||||
status: $Enums.PartnerStatus | null
|
||||
created_at: Date | null
|
||||
updated_at: Date | null
|
||||
}
|
||||
@@ -48,6 +49,7 @@ export type PartnerMaxAggregateOutputType = {
|
||||
name: string | null
|
||||
code: string | null
|
||||
license_quota: number | null
|
||||
status: $Enums.PartnerStatus | null
|
||||
created_at: Date | null
|
||||
updated_at: Date | null
|
||||
}
|
||||
@@ -57,6 +59,7 @@ export type PartnerCountAggregateOutputType = {
|
||||
name: number
|
||||
code: number
|
||||
license_quota: number
|
||||
status: number
|
||||
created_at: number
|
||||
updated_at: number
|
||||
_all: number
|
||||
@@ -76,6 +79,7 @@ export type PartnerMinAggregateInputType = {
|
||||
name?: true
|
||||
code?: true
|
||||
license_quota?: true
|
||||
status?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
}
|
||||
@@ -85,6 +89,7 @@ export type PartnerMaxAggregateInputType = {
|
||||
name?: true
|
||||
code?: true
|
||||
license_quota?: true
|
||||
status?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
}
|
||||
@@ -94,6 +99,7 @@ export type PartnerCountAggregateInputType = {
|
||||
name?: true
|
||||
code?: true
|
||||
license_quota?: true
|
||||
status?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
_all?: true
|
||||
@@ -188,8 +194,9 @@ export type PartnerGroupByArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
export type PartnerGroupByOutputType = {
|
||||
id: string
|
||||
name: string
|
||||
code: string | null
|
||||
code: string
|
||||
license_quota: number | null
|
||||
status: $Enums.PartnerStatus
|
||||
created_at: Date
|
||||
updated_at: Date
|
||||
_count: PartnerCountAggregateOutputType | null
|
||||
@@ -220,45 +227,49 @@ export type PartnerWhereInput = {
|
||||
NOT?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
|
||||
id?: Prisma.StringFilter<"Partner"> | string
|
||||
name?: Prisma.StringFilter<"Partner"> | string
|
||||
code?: Prisma.StringNullableFilter<"Partner"> | string | null
|
||||
code?: Prisma.StringFilter<"Partner"> | string
|
||||
license_quota?: Prisma.IntNullableFilter<"Partner"> | number | null
|
||||
status?: Prisma.EnumPartnerStatusFilter<"Partner"> | $Enums.PartnerStatus
|
||||
created_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||
updated_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||
licenses?: Prisma.LicenseListRelationFilter
|
||||
account?: Prisma.AccountListRelationFilter
|
||||
accounts?: Prisma.PartnerAccountListRelationFilter
|
||||
}
|
||||
|
||||
export type PartnerOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
license_quota?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
status?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
licenses?: Prisma.LicenseOrderByRelationAggregateInput
|
||||
account?: Prisma.AccountOrderByRelationAggregateInput
|
||||
accounts?: Prisma.PartnerAccountOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.PartnerOrderByRelevanceInput
|
||||
}
|
||||
|
||||
export type PartnerWhereUniqueInput = Prisma.AtLeast<{
|
||||
id?: string
|
||||
code?: 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
|
||||
license_quota?: Prisma.IntNullableFilter<"Partner"> | number | null
|
||||
status?: Prisma.EnumPartnerStatusFilter<"Partner"> | $Enums.PartnerStatus
|
||||
created_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||
updated_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||
licenses?: Prisma.LicenseListRelationFilter
|
||||
account?: Prisma.AccountListRelationFilter
|
||||
}, "id">
|
||||
accounts?: Prisma.PartnerAccountListRelationFilter
|
||||
}, "id" | "code">
|
||||
|
||||
export type PartnerOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
license_quota?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
status?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
_count?: Prisma.PartnerCountOrderByAggregateInput
|
||||
@@ -274,8 +285,9 @@ export type PartnerScalarWhereWithAggregatesInput = {
|
||||
NOT?: Prisma.PartnerScalarWhereWithAggregatesInput | Prisma.PartnerScalarWhereWithAggregatesInput[]
|
||||
id?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
||||
name?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
||||
code?: Prisma.StringNullableWithAggregatesFilter<"Partner"> | string | null
|
||||
code?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
||||
license_quota?: Prisma.IntNullableWithAggregatesFilter<"Partner"> | number | null
|
||||
status?: Prisma.EnumPartnerStatusWithAggregatesFilter<"Partner"> | $Enums.PartnerStatus
|
||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"Partner"> | Date | string
|
||||
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Partner"> | Date | string
|
||||
}
|
||||
@@ -283,52 +295,57 @@ export type PartnerScalarWhereWithAggregatesInput = {
|
||||
export type PartnerCreateInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code?: string | null
|
||||
code: string
|
||||
license_quota?: number | null
|
||||
status?: $Enums.PartnerStatus
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
licenses?: Prisma.LicenseCreateNestedManyWithoutPartnerInput
|
||||
account?: Prisma.AccountCreateNestedManyWithoutPartnerInput
|
||||
accounts?: Prisma.PartnerAccountCreateNestedManyWithoutUserInput
|
||||
}
|
||||
|
||||
export type PartnerUncheckedCreateInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code?: string | null
|
||||
code: string
|
||||
license_quota?: number | null
|
||||
status?: $Enums.PartnerStatus
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPartnerInput
|
||||
account?: Prisma.AccountUncheckedCreateNestedManyWithoutPartnerInput
|
||||
accounts?: Prisma.PartnerAccountUncheckedCreateNestedManyWithoutUserInput
|
||||
}
|
||||
|
||||
export type PartnerUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
licenses?: Prisma.LicenseUpdateManyWithoutPartnerNestedInput
|
||||
account?: Prisma.AccountUpdateManyWithoutPartnerNestedInput
|
||||
accounts?: Prisma.PartnerAccountUpdateManyWithoutUserNestedInput
|
||||
}
|
||||
|
||||
export type PartnerUncheckedUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPartnerNestedInput
|
||||
account?: Prisma.AccountUncheckedUpdateManyWithoutPartnerNestedInput
|
||||
accounts?: Prisma.PartnerAccountUncheckedUpdateManyWithoutUserNestedInput
|
||||
}
|
||||
|
||||
export type PartnerCreateManyInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code?: string | null
|
||||
code: string
|
||||
license_quota?: number | null
|
||||
status?: $Enums.PartnerStatus
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
}
|
||||
@@ -336,8 +353,9 @@ export type PartnerCreateManyInput = {
|
||||
export type PartnerUpdateManyMutationInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
@@ -345,8 +363,9 @@ export type PartnerUpdateManyMutationInput = {
|
||||
export type PartnerUncheckedUpdateManyInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
@@ -367,6 +386,7 @@ export type PartnerCountOrderByAggregateInput = {
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
license_quota?: Prisma.SortOrder
|
||||
status?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
}
|
||||
@@ -380,6 +400,7 @@ export type PartnerMaxOrderByAggregateInput = {
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
license_quota?: Prisma.SortOrder
|
||||
status?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
}
|
||||
@@ -389,6 +410,7 @@ export type PartnerMinOrderByAggregateInput = {
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
license_quota?: Prisma.SortOrder
|
||||
status?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
}
|
||||
@@ -397,11 +419,6 @@ export type PartnerSumOrderByAggregateInput = {
|
||||
license_quota?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type PartnerNullableScalarRelationFilter = {
|
||||
is?: Prisma.PartnerWhereInput | null
|
||||
isNot?: Prisma.PartnerWhereInput | null
|
||||
}
|
||||
|
||||
export type PartnerCreateNestedOneWithoutLicensesInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutLicensesInput, Prisma.PartnerUncheckedCreateWithoutLicensesInput>
|
||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutLicensesInput
|
||||
@@ -424,40 +441,44 @@ export type NullableIntFieldUpdateOperationsInput = {
|
||||
divide?: number
|
||||
}
|
||||
|
||||
export type PartnerCreateNestedOneWithoutAccountInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutAccountInput, Prisma.PartnerUncheckedCreateWithoutAccountInput>
|
||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutAccountInput
|
||||
export type EnumPartnerStatusFieldUpdateOperationsInput = {
|
||||
set?: $Enums.PartnerStatus
|
||||
}
|
||||
|
||||
export type PartnerCreateNestedOneWithoutAccountsInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutAccountsInput, Prisma.PartnerUncheckedCreateWithoutAccountsInput>
|
||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutAccountsInput
|
||||
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
|
||||
export type PartnerUpdateOneRequiredWithoutAccountsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutAccountsInput, Prisma.PartnerUncheckedCreateWithoutAccountsInput>
|
||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutAccountsInput
|
||||
upsert?: Prisma.PartnerUpsertWithoutAccountsInput
|
||||
connect?: Prisma.PartnerWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutAccountInput, Prisma.PartnerUpdateWithoutAccountInput>, Prisma.PartnerUncheckedUpdateWithoutAccountInput>
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutAccountsInput, Prisma.PartnerUpdateWithoutAccountsInput>, Prisma.PartnerUncheckedUpdateWithoutAccountsInput>
|
||||
}
|
||||
|
||||
export type PartnerCreateWithoutLicensesInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code?: string | null
|
||||
code: string
|
||||
license_quota?: number | null
|
||||
status?: $Enums.PartnerStatus
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account?: Prisma.AccountCreateNestedManyWithoutPartnerInput
|
||||
accounts?: Prisma.PartnerAccountCreateNestedManyWithoutUserInput
|
||||
}
|
||||
|
||||
export type PartnerUncheckedCreateWithoutLicensesInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code?: string | null
|
||||
code: string
|
||||
license_quota?: number | null
|
||||
status?: $Enums.PartnerStatus
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account?: Prisma.AccountUncheckedCreateNestedManyWithoutPartnerInput
|
||||
accounts?: Prisma.PartnerAccountUncheckedCreateNestedManyWithoutUserInput
|
||||
}
|
||||
|
||||
export type PartnerCreateOrConnectWithoutLicensesInput = {
|
||||
@@ -479,74 +500,80 @@ export type PartnerUpdateToOneWithWhereWithoutLicensesInput = {
|
||||
export type PartnerUpdateWithoutLicensesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
account?: Prisma.AccountUpdateManyWithoutPartnerNestedInput
|
||||
accounts?: Prisma.PartnerAccountUpdateManyWithoutUserNestedInput
|
||||
}
|
||||
|
||||
export type PartnerUncheckedUpdateWithoutLicensesInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
account?: Prisma.AccountUncheckedUpdateManyWithoutPartnerNestedInput
|
||||
accounts?: Prisma.PartnerAccountUncheckedUpdateManyWithoutUserNestedInput
|
||||
}
|
||||
|
||||
export type PartnerCreateWithoutAccountInput = {
|
||||
export type PartnerCreateWithoutAccountsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code?: string | null
|
||||
code: string
|
||||
license_quota?: number | null
|
||||
status?: $Enums.PartnerStatus
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
licenses?: Prisma.LicenseCreateNestedManyWithoutPartnerInput
|
||||
}
|
||||
|
||||
export type PartnerUncheckedCreateWithoutAccountInput = {
|
||||
export type PartnerUncheckedCreateWithoutAccountsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code?: string | null
|
||||
code: string
|
||||
license_quota?: number | null
|
||||
status?: $Enums.PartnerStatus
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPartnerInput
|
||||
}
|
||||
|
||||
export type PartnerCreateOrConnectWithoutAccountInput = {
|
||||
export type PartnerCreateOrConnectWithoutAccountsInput = {
|
||||
where: Prisma.PartnerWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PartnerCreateWithoutAccountInput, Prisma.PartnerUncheckedCreateWithoutAccountInput>
|
||||
create: Prisma.XOR<Prisma.PartnerCreateWithoutAccountsInput, Prisma.PartnerUncheckedCreateWithoutAccountsInput>
|
||||
}
|
||||
|
||||
export type PartnerUpsertWithoutAccountInput = {
|
||||
update: Prisma.XOR<Prisma.PartnerUpdateWithoutAccountInput, Prisma.PartnerUncheckedUpdateWithoutAccountInput>
|
||||
create: Prisma.XOR<Prisma.PartnerCreateWithoutAccountInput, Prisma.PartnerUncheckedCreateWithoutAccountInput>
|
||||
export type PartnerUpsertWithoutAccountsInput = {
|
||||
update: Prisma.XOR<Prisma.PartnerUpdateWithoutAccountsInput, Prisma.PartnerUncheckedUpdateWithoutAccountsInput>
|
||||
create: Prisma.XOR<Prisma.PartnerCreateWithoutAccountsInput, Prisma.PartnerUncheckedCreateWithoutAccountsInput>
|
||||
where?: Prisma.PartnerWhereInput
|
||||
}
|
||||
|
||||
export type PartnerUpdateToOneWithWhereWithoutAccountInput = {
|
||||
export type PartnerUpdateToOneWithWhereWithoutAccountsInput = {
|
||||
where?: Prisma.PartnerWhereInput
|
||||
data: Prisma.XOR<Prisma.PartnerUpdateWithoutAccountInput, Prisma.PartnerUncheckedUpdateWithoutAccountInput>
|
||||
data: Prisma.XOR<Prisma.PartnerUpdateWithoutAccountsInput, Prisma.PartnerUncheckedUpdateWithoutAccountsInput>
|
||||
}
|
||||
|
||||
export type PartnerUpdateWithoutAccountInput = {
|
||||
export type PartnerUpdateWithoutAccountsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
licenses?: Prisma.LicenseUpdateManyWithoutPartnerNestedInput
|
||||
}
|
||||
|
||||
export type PartnerUncheckedUpdateWithoutAccountInput = {
|
||||
export type PartnerUncheckedUpdateWithoutAccountsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
license_quota?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
licenses?: Prisma.LicenseUncheckedUpdateManyWithoutPartnerNestedInput
|
||||
@@ -559,12 +586,12 @@ export type PartnerUncheckedUpdateWithoutAccountInput = {
|
||||
|
||||
export type PartnerCountOutputType = {
|
||||
licenses: number
|
||||
account: number
|
||||
accounts: number
|
||||
}
|
||||
|
||||
export type PartnerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
licenses?: boolean | PartnerCountOutputTypeCountLicensesArgs
|
||||
account?: boolean | PartnerCountOutputTypeCountAccountArgs
|
||||
accounts?: boolean | PartnerCountOutputTypeCountAccountsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -587,8 +614,8 @@ export type PartnerCountOutputTypeCountLicensesArgs<ExtArgs extends runtime.Type
|
||||
/**
|
||||
* PartnerCountOutputType without action
|
||||
*/
|
||||
export type PartnerCountOutputTypeCountAccountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.AccountWhereInput
|
||||
export type PartnerCountOutputTypeCountAccountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.PartnerAccountWhereInput
|
||||
}
|
||||
|
||||
|
||||
@@ -597,10 +624,11 @@ export type PartnerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
name?: boolean
|
||||
code?: boolean
|
||||
license_quota?: boolean
|
||||
status?: boolean
|
||||
created_at?: boolean
|
||||
updated_at?: boolean
|
||||
licenses?: boolean | Prisma.Partner$licensesArgs<ExtArgs>
|
||||
account?: boolean | Prisma.Partner$accountArgs<ExtArgs>
|
||||
accounts?: boolean | Prisma.Partner$accountsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.PartnerCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["partner"]>
|
||||
|
||||
@@ -611,14 +639,15 @@ export type PartnerSelectScalar = {
|
||||
name?: boolean
|
||||
code?: boolean
|
||||
license_quota?: boolean
|
||||
status?: 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" | "license_quota" | "created_at" | "updated_at", 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" | "status" | "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>
|
||||
accounts?: boolean | Prisma.Partner$accountsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.PartnerCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
@@ -626,13 +655,14 @@ export type $PartnerPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
||||
name: "Partner"
|
||||
objects: {
|
||||
licenses: Prisma.$LicensePayload<ExtArgs>[]
|
||||
account: Prisma.$AccountPayload<ExtArgs>[]
|
||||
accounts: Prisma.$PartnerAccountPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
name: string
|
||||
code: string | null
|
||||
code: string
|
||||
license_quota: number | null
|
||||
status: $Enums.PartnerStatus
|
||||
created_at: Date
|
||||
updated_at: Date
|
||||
}, ExtArgs["result"]["partner"]>
|
||||
@@ -976,7 +1006,7 @@ readonly fields: PartnerFieldRefs;
|
||||
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>
|
||||
accounts<T extends Prisma.Partner$accountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Partner$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PartnerAccountPayload<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.
|
||||
@@ -1010,6 +1040,7 @@ export interface PartnerFieldRefs {
|
||||
readonly name: Prisma.FieldRef<"Partner", 'String'>
|
||||
readonly code: Prisma.FieldRef<"Partner", 'String'>
|
||||
readonly license_quota: Prisma.FieldRef<"Partner", 'Int'>
|
||||
readonly status: Prisma.FieldRef<"Partner", 'PartnerStatus'>
|
||||
readonly created_at: Prisma.FieldRef<"Partner", 'DateTime'>
|
||||
readonly updated_at: Prisma.FieldRef<"Partner", 'DateTime'>
|
||||
}
|
||||
@@ -1379,27 +1410,27 @@ export type Partner$licensesArgs<ExtArgs extends runtime.Types.Extensions.Intern
|
||||
}
|
||||
|
||||
/**
|
||||
* Partner.account
|
||||
* Partner.accounts
|
||||
*/
|
||||
export type Partner$accountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
export type Partner$accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Account
|
||||
* Select specific fields to fetch from the PartnerAccount
|
||||
*/
|
||||
select?: Prisma.AccountSelect<ExtArgs> | null
|
||||
select?: Prisma.PartnerAccountSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Account
|
||||
* Omit specific fields from the PartnerAccount
|
||||
*/
|
||||
omit?: Prisma.AccountOmit<ExtArgs> | null
|
||||
omit?: Prisma.PartnerAccountOmit<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
|
||||
include?: Prisma.PartnerAccountInclude<ExtArgs> | null
|
||||
where?: Prisma.PartnerAccountWhereInput
|
||||
orderBy?: Prisma.PartnerAccountOrderByWithRelationInput | Prisma.PartnerAccountOrderByWithRelationInput[]
|
||||
cursor?: Prisma.PartnerAccountWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
|
||||
distinct?: Prisma.PartnerAccountScalarFieldEnum | Prisma.PartnerAccountScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user