update license structures and setup file storage services
This commit is contained in:
@@ -20,25 +20,14 @@ 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
|
||||
status: $Enums.PartnerStatus | null
|
||||
created_at: Date | null
|
||||
updated_at: Date | null
|
||||
@@ -48,7 +37,6 @@ export type PartnerMaxAggregateOutputType = {
|
||||
id: string | null
|
||||
name: string | null
|
||||
code: string | null
|
||||
license_quota: number | null
|
||||
status: $Enums.PartnerStatus | null
|
||||
created_at: Date | null
|
||||
updated_at: Date | null
|
||||
@@ -58,7 +46,6 @@ export type PartnerCountAggregateOutputType = {
|
||||
id: number
|
||||
name: number
|
||||
code: number
|
||||
license_quota: number
|
||||
status: number
|
||||
created_at: number
|
||||
updated_at: number
|
||||
@@ -66,19 +53,10 @@ export type PartnerCountAggregateOutputType = {
|
||||
}
|
||||
|
||||
|
||||
export type PartnerAvgAggregateInputType = {
|
||||
license_quota?: true
|
||||
}
|
||||
|
||||
export type PartnerSumAggregateInputType = {
|
||||
license_quota?: true
|
||||
}
|
||||
|
||||
export type PartnerMinAggregateInputType = {
|
||||
id?: true
|
||||
name?: true
|
||||
code?: true
|
||||
license_quota?: true
|
||||
status?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
@@ -88,7 +66,6 @@ export type PartnerMaxAggregateInputType = {
|
||||
id?: true
|
||||
name?: true
|
||||
code?: true
|
||||
license_quota?: true
|
||||
status?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
@@ -98,7 +75,6 @@ export type PartnerCountAggregateInputType = {
|
||||
id?: true
|
||||
name?: true
|
||||
code?: true
|
||||
license_quota?: true
|
||||
status?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
@@ -140,18 +116,6 @@ 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}
|
||||
*
|
||||
@@ -185,8 +149,6 @@ export type PartnerGroupByArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
take?: number
|
||||
skip?: number
|
||||
_count?: PartnerCountAggregateInputType | true
|
||||
_avg?: PartnerAvgAggregateInputType
|
||||
_sum?: PartnerSumAggregateInputType
|
||||
_min?: PartnerMinAggregateInputType
|
||||
_max?: PartnerMaxAggregateInputType
|
||||
}
|
||||
@@ -195,13 +157,10 @@ export type PartnerGroupByOutputType = {
|
||||
id: string
|
||||
name: string
|
||||
code: string
|
||||
license_quota: number | null
|
||||
status: $Enums.PartnerStatus
|
||||
created_at: Date
|
||||
updated_at: Date
|
||||
_count: PartnerCountAggregateOutputType | null
|
||||
_avg: PartnerAvgAggregateOutputType | null
|
||||
_sum: PartnerSumAggregateOutputType | null
|
||||
_min: PartnerMinAggregateOutputType | null
|
||||
_max: PartnerMaxAggregateOutputType | null
|
||||
}
|
||||
@@ -228,24 +187,22 @@ export type PartnerWhereInput = {
|
||||
id?: Prisma.StringFilter<"Partner"> | string
|
||||
name?: Prisma.StringFilter<"Partner"> | string
|
||||
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
|
||||
partner_accounts?: Prisma.PartnerAccountListRelationFilter
|
||||
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsListRelationFilter
|
||||
}
|
||||
|
||||
export type PartnerOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: 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
|
||||
partner_accounts?: Prisma.PartnerAccountOrderByRelationAggregateInput
|
||||
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.PartnerOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -256,27 +213,23 @@ export type PartnerWhereUniqueInput = Prisma.AtLeast<{
|
||||
OR?: Prisma.PartnerWhereInput[]
|
||||
NOT?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
|
||||
name?: 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
|
||||
partner_accounts?: Prisma.PartnerAccountListRelationFilter
|
||||
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsListRelationFilter
|
||||
}, "id" | "code">
|
||||
|
||||
export type PartnerOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: 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
|
||||
_avg?: Prisma.PartnerAvgOrderByAggregateInput
|
||||
_max?: Prisma.PartnerMaxOrderByAggregateInput
|
||||
_min?: Prisma.PartnerMinOrderByAggregateInput
|
||||
_sum?: Prisma.PartnerSumOrderByAggregateInput
|
||||
}
|
||||
|
||||
export type PartnerScalarWhereWithAggregatesInput = {
|
||||
@@ -286,7 +239,6 @@ export type PartnerScalarWhereWithAggregatesInput = {
|
||||
id?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
||||
name?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
||||
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
|
||||
@@ -296,55 +248,50 @@ export type PartnerCreateInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code: string
|
||||
license_quota?: number | null
|
||||
status?: $Enums.PartnerStatus
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
licenses?: Prisma.LicenseCreateNestedManyWithoutPartnerInput
|
||||
partner_accounts?: Prisma.PartnerAccountCreateNestedManyWithoutPartnerInput
|
||||
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsCreateNestedManyWithoutPartnerInput
|
||||
}
|
||||
|
||||
export type PartnerUncheckedCreateInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code: string
|
||||
license_quota?: number | null
|
||||
status?: $Enums.PartnerStatus
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPartnerInput
|
||||
partner_accounts?: Prisma.PartnerAccountUncheckedCreateNestedManyWithoutPartnerInput
|
||||
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUncheckedCreateNestedManyWithoutPartnerInput
|
||||
}
|
||||
|
||||
export type PartnerUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
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
|
||||
partner_accounts?: Prisma.PartnerAccountUpdateManyWithoutPartnerNestedInput
|
||||
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUpdateManyWithoutPartnerNestedInput
|
||||
}
|
||||
|
||||
export type PartnerUncheckedUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
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
|
||||
partner_accounts?: Prisma.PartnerAccountUncheckedUpdateManyWithoutPartnerNestedInput
|
||||
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUncheckedUpdateManyWithoutPartnerNestedInput
|
||||
}
|
||||
|
||||
export type PartnerCreateManyInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code: string
|
||||
license_quota?: number | null
|
||||
status?: $Enums.PartnerStatus
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -354,7 +301,6 @@ export type PartnerUpdateManyMutationInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
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
|
||||
@@ -364,17 +310,11 @@ export type PartnerUncheckedUpdateManyInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
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
|
||||
}
|
||||
|
||||
export type PartnerNullableScalarRelationFilter = {
|
||||
is?: Prisma.PartnerWhereInput | null
|
||||
isNot?: Prisma.PartnerWhereInput | null
|
||||
}
|
||||
|
||||
export type PartnerScalarRelationFilter = {
|
||||
is?: Prisma.PartnerWhereInput
|
||||
isNot?: Prisma.PartnerWhereInput
|
||||
@@ -390,21 +330,15 @@ export type PartnerCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
license_quota?: Prisma.SortOrder
|
||||
status?: 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
|
||||
status?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
@@ -414,30 +348,23 @@ export type PartnerMinOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
license_quota?: Prisma.SortOrder
|
||||
status?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type PartnerSumOrderByAggregateInput = {
|
||||
license_quota?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type PartnerCreateNestedOneWithoutLicensesInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutLicensesInput, Prisma.PartnerUncheckedCreateWithoutLicensesInput>
|
||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutLicensesInput
|
||||
export type PartnerCreateNestedOneWithoutChargedLicenseTransactionsInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedCreateWithoutChargedLicenseTransactionsInput>
|
||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutChargedLicenseTransactionsInput
|
||||
connect?: Prisma.PartnerWhereUniqueInput
|
||||
}
|
||||
|
||||
export type PartnerUpdateOneWithoutLicensesNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutLicensesInput, Prisma.PartnerUncheckedCreateWithoutLicensesInput>
|
||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutLicensesInput
|
||||
upsert?: Prisma.PartnerUpsertWithoutLicensesInput
|
||||
disconnect?: Prisma.PartnerWhereInput | boolean
|
||||
delete?: Prisma.PartnerWhereInput | boolean
|
||||
export type PartnerUpdateOneRequiredWithoutChargedLicenseTransactionsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedCreateWithoutChargedLicenseTransactionsInput>
|
||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutChargedLicenseTransactionsInput
|
||||
upsert?: Prisma.PartnerUpsertWithoutChargedLicenseTransactionsInput
|
||||
connect?: Prisma.PartnerWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutLicensesInput, Prisma.PartnerUpdateWithoutLicensesInput>, Prisma.PartnerUncheckedUpdateWithoutLicensesInput>
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutChargedLicenseTransactionsInput, Prisma.PartnerUpdateWithoutChargedLicenseTransactionsInput>, Prisma.PartnerUncheckedUpdateWithoutChargedLicenseTransactionsInput>
|
||||
}
|
||||
|
||||
export type PartnerCreateNestedOneWithoutPartner_accountsInput = {
|
||||
@@ -454,72 +381,60 @@ export type PartnerUpdateOneRequiredWithoutPartner_accountsNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.PartnerUpdateToOneWithWhereWithoutPartner_accountsInput, Prisma.PartnerUpdateWithoutPartner_accountsInput>, Prisma.PartnerUncheckedUpdateWithoutPartner_accountsInput>
|
||||
}
|
||||
|
||||
export type NullableIntFieldUpdateOperationsInput = {
|
||||
set?: number | null
|
||||
increment?: number
|
||||
decrement?: number
|
||||
multiply?: number
|
||||
divide?: number
|
||||
}
|
||||
|
||||
export type EnumPartnerStatusFieldUpdateOperationsInput = {
|
||||
set?: $Enums.PartnerStatus
|
||||
}
|
||||
|
||||
export type PartnerCreateWithoutLicensesInput = {
|
||||
export type PartnerCreateWithoutChargedLicenseTransactionsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code: string
|
||||
license_quota?: number | null
|
||||
status?: $Enums.PartnerStatus
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
partner_accounts?: Prisma.PartnerAccountCreateNestedManyWithoutPartnerInput
|
||||
}
|
||||
|
||||
export type PartnerUncheckedCreateWithoutLicensesInput = {
|
||||
export type PartnerUncheckedCreateWithoutChargedLicenseTransactionsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code: string
|
||||
license_quota?: number | null
|
||||
status?: $Enums.PartnerStatus
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
partner_accounts?: Prisma.PartnerAccountUncheckedCreateNestedManyWithoutPartnerInput
|
||||
}
|
||||
|
||||
export type PartnerCreateOrConnectWithoutLicensesInput = {
|
||||
export type PartnerCreateOrConnectWithoutChargedLicenseTransactionsInput = {
|
||||
where: Prisma.PartnerWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.PartnerCreateWithoutLicensesInput, Prisma.PartnerUncheckedCreateWithoutLicensesInput>
|
||||
create: Prisma.XOR<Prisma.PartnerCreateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedCreateWithoutChargedLicenseTransactionsInput>
|
||||
}
|
||||
|
||||
export type PartnerUpsertWithoutLicensesInput = {
|
||||
update: Prisma.XOR<Prisma.PartnerUpdateWithoutLicensesInput, Prisma.PartnerUncheckedUpdateWithoutLicensesInput>
|
||||
create: Prisma.XOR<Prisma.PartnerCreateWithoutLicensesInput, Prisma.PartnerUncheckedCreateWithoutLicensesInput>
|
||||
export type PartnerUpsertWithoutChargedLicenseTransactionsInput = {
|
||||
update: Prisma.XOR<Prisma.PartnerUpdateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedUpdateWithoutChargedLicenseTransactionsInput>
|
||||
create: Prisma.XOR<Prisma.PartnerCreateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedCreateWithoutChargedLicenseTransactionsInput>
|
||||
where?: Prisma.PartnerWhereInput
|
||||
}
|
||||
|
||||
export type PartnerUpdateToOneWithWhereWithoutLicensesInput = {
|
||||
export type PartnerUpdateToOneWithWhereWithoutChargedLicenseTransactionsInput = {
|
||||
where?: Prisma.PartnerWhereInput
|
||||
data: Prisma.XOR<Prisma.PartnerUpdateWithoutLicensesInput, Prisma.PartnerUncheckedUpdateWithoutLicensesInput>
|
||||
data: Prisma.XOR<Prisma.PartnerUpdateWithoutChargedLicenseTransactionsInput, Prisma.PartnerUncheckedUpdateWithoutChargedLicenseTransactionsInput>
|
||||
}
|
||||
|
||||
export type PartnerUpdateWithoutLicensesInput = {
|
||||
export type PartnerUpdateWithoutChargedLicenseTransactionsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
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
|
||||
partner_accounts?: Prisma.PartnerAccountUpdateManyWithoutPartnerNestedInput
|
||||
}
|
||||
|
||||
export type PartnerUncheckedUpdateWithoutLicensesInput = {
|
||||
export type PartnerUncheckedUpdateWithoutChargedLicenseTransactionsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
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
|
||||
@@ -530,22 +445,20 @@ export type PartnerCreateWithoutPartner_accountsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code: string
|
||||
license_quota?: number | null
|
||||
status?: $Enums.PartnerStatus
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
licenses?: Prisma.LicenseCreateNestedManyWithoutPartnerInput
|
||||
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsCreateNestedManyWithoutPartnerInput
|
||||
}
|
||||
|
||||
export type PartnerUncheckedCreateWithoutPartner_accountsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
code: string
|
||||
license_quota?: number | null
|
||||
status?: $Enums.PartnerStatus
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
licenses?: Prisma.LicenseUncheckedCreateNestedManyWithoutPartnerInput
|
||||
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUncheckedCreateNestedManyWithoutPartnerInput
|
||||
}
|
||||
|
||||
export type PartnerCreateOrConnectWithoutPartner_accountsInput = {
|
||||
@@ -568,22 +481,20 @@ export type PartnerUpdateWithoutPartner_accountsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
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
|
||||
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUpdateManyWithoutPartnerNestedInput
|
||||
}
|
||||
|
||||
export type PartnerUncheckedUpdateWithoutPartner_accountsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
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
|
||||
chargedLicenseTransactions?: Prisma.ChargedLicenseTransactionsUncheckedUpdateManyWithoutPartnerNestedInput
|
||||
}
|
||||
|
||||
|
||||
@@ -592,13 +503,13 @@ export type PartnerUncheckedUpdateWithoutPartner_accountsInput = {
|
||||
*/
|
||||
|
||||
export type PartnerCountOutputType = {
|
||||
licenses: number
|
||||
partner_accounts: number
|
||||
chargedLicenseTransactions: number
|
||||
}
|
||||
|
||||
export type PartnerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
licenses?: boolean | PartnerCountOutputTypeCountLicensesArgs
|
||||
partner_accounts?: boolean | PartnerCountOutputTypeCountPartner_accountsArgs
|
||||
chargedLicenseTransactions?: boolean | PartnerCountOutputTypeCountChargedLicenseTransactionsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -614,15 +525,15 @@ export type PartnerCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Exte
|
||||
/**
|
||||
* PartnerCountOutputType without action
|
||||
*/
|
||||
export type PartnerCountOutputTypeCountLicensesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.LicenseWhereInput
|
||||
export type PartnerCountOutputTypeCountPartner_accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.PartnerAccountWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* PartnerCountOutputType without action
|
||||
*/
|
||||
export type PartnerCountOutputTypeCountPartner_accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.PartnerAccountWhereInput
|
||||
export type PartnerCountOutputTypeCountChargedLicenseTransactionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.ChargedLicenseTransactionsWhereInput
|
||||
}
|
||||
|
||||
|
||||
@@ -630,12 +541,11 @@ export type PartnerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
id?: boolean
|
||||
name?: boolean
|
||||
code?: boolean
|
||||
license_quota?: boolean
|
||||
status?: boolean
|
||||
created_at?: boolean
|
||||
updated_at?: boolean
|
||||
licenses?: boolean | Prisma.Partner$licensesArgs<ExtArgs>
|
||||
partner_accounts?: boolean | Prisma.Partner$partner_accountsArgs<ExtArgs>
|
||||
chargedLicenseTransactions?: boolean | Prisma.Partner$chargedLicenseTransactionsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.PartnerCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["partner"]>
|
||||
|
||||
@@ -645,30 +555,28 @@ export type PartnerSelectScalar = {
|
||||
id?: boolean
|
||||
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" | "status" | "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" | "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>
|
||||
partner_accounts?: boolean | Prisma.Partner$partner_accountsArgs<ExtArgs>
|
||||
chargedLicenseTransactions?: boolean | Prisma.Partner$chargedLicenseTransactionsArgs<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>[]
|
||||
partner_accounts: Prisma.$PartnerAccountPayload<ExtArgs>[]
|
||||
chargedLicenseTransactions: Prisma.$ChargedLicenseTransactionsPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
name: string
|
||||
code: string
|
||||
license_quota: number | null
|
||||
status: $Enums.PartnerStatus
|
||||
created_at: Date
|
||||
updated_at: Date
|
||||
@@ -1012,8 +920,8 @@ 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>
|
||||
partner_accounts<T extends Prisma.Partner$partner_accountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Partner$partner_accountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PartnerAccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
chargedLicenseTransactions<T extends Prisma.Partner$chargedLicenseTransactionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Partner$chargedLicenseTransactionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChargedLicenseTransactionsPayload<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.
|
||||
@@ -1046,7 +954,6 @@ 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 status: Prisma.FieldRef<"Partner", 'PartnerStatus'>
|
||||
readonly created_at: Prisma.FieldRef<"Partner", 'DateTime'>
|
||||
readonly updated_at: Prisma.FieldRef<"Partner", 'DateTime'>
|
||||
@@ -1392,30 +1299,6 @@ export type PartnerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
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.partner_accounts
|
||||
*/
|
||||
@@ -1440,6 +1323,30 @@ export type Partner$partner_accountsArgs<ExtArgs extends runtime.Types.Extension
|
||||
distinct?: Prisma.PartnerAccountScalarFieldEnum | Prisma.PartnerAccountScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Partner.chargedLicenseTransactions
|
||||
*/
|
||||
export type Partner$chargedLicenseTransactionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the ChargedLicenseTransactions
|
||||
*/
|
||||
select?: Prisma.ChargedLicenseTransactionsSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the ChargedLicenseTransactions
|
||||
*/
|
||||
omit?: Prisma.ChargedLicenseTransactionsOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ChargedLicenseTransactionsInclude<ExtArgs> | null
|
||||
where?: Prisma.ChargedLicenseTransactionsWhereInput
|
||||
orderBy?: Prisma.ChargedLicenseTransactionsOrderByWithRelationInput | Prisma.ChargedLicenseTransactionsOrderByWithRelationInput[]
|
||||
cursor?: Prisma.ChargedLicenseTransactionsWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.ChargedLicenseTransactionsScalarFieldEnum | Prisma.ChargedLicenseTransactionsScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Partner without action
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user