2026-03-16 00:33:40 +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 `ConsumerAccount` 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 ConsumerAccount
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccountModel = runtime.Types.Result.DefaultSelection<Prisma.$ConsumerAccountPayload>
|
|
|
|
|
|
|
|
|
|
export type AggregateConsumerAccount = {
|
|
|
|
|
_count: ConsumerAccountCountAggregateOutputType | null
|
|
|
|
|
_min: ConsumerAccountMinAggregateOutputType | null
|
|
|
|
|
_max: ConsumerAccountMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountMinAggregateOutputType = {
|
|
|
|
|
id: string | null
|
|
|
|
|
role: $Enums.ConsumerRole | null
|
|
|
|
|
created_at: Date | null
|
|
|
|
|
updated_at: Date | null
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id: string | null
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id: string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountMaxAggregateOutputType = {
|
|
|
|
|
id: string | null
|
|
|
|
|
role: $Enums.ConsumerRole | null
|
|
|
|
|
created_at: Date | null
|
|
|
|
|
updated_at: Date | null
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id: string | null
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id: string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountCountAggregateOutputType = {
|
|
|
|
|
id: number
|
|
|
|
|
role: number
|
|
|
|
|
created_at: number
|
|
|
|
|
updated_at: number
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id: number
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id: number
|
|
|
|
|
_all: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountMinAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
role?: true
|
|
|
|
|
created_at?: true
|
|
|
|
|
updated_at?: true
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: true
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountMaxAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
role?: true
|
|
|
|
|
created_at?: true
|
|
|
|
|
updated_at?: true
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: true
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountCountAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
role?: true
|
|
|
|
|
created_at?: true
|
|
|
|
|
updated_at?: true
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: true
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: true
|
|
|
|
|
_all?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Filter which ConsumerAccount to aggregate.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of ConsumerAccounts to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.ConsumerAccountOrderByWithRelationInput | Prisma.ConsumerAccountOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the start position
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` ConsumerAccounts 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` ConsumerAccounts.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Count returned ConsumerAccounts
|
|
|
|
|
**/
|
|
|
|
|
_count?: true | ConsumerAccountCountAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to find the minimum value
|
|
|
|
|
**/
|
|
|
|
|
_min?: ConsumerAccountMinAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to find the maximum value
|
|
|
|
|
**/
|
|
|
|
|
_max?: ConsumerAccountMaxAggregateInputType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GetConsumerAccountAggregateType<T extends ConsumerAccountAggregateArgs> = {
|
|
|
|
|
[P in keyof T & keyof AggregateConsumerAccount]: P extends '_count' | 'count'
|
|
|
|
|
? T[P] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregateConsumerAccount[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregateConsumerAccount[P]>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
orderBy?: Prisma.ConsumerAccountOrderByWithAggregationInput | Prisma.ConsumerAccountOrderByWithAggregationInput[]
|
|
|
|
|
by: Prisma.ConsumerAccountScalarFieldEnum[] | Prisma.ConsumerAccountScalarFieldEnum
|
|
|
|
|
having?: Prisma.ConsumerAccountScalarWhereWithAggregatesInput
|
|
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
|
|
|
|
_count?: ConsumerAccountCountAggregateInputType | true
|
|
|
|
|
_min?: ConsumerAccountMinAggregateInputType
|
|
|
|
|
_max?: ConsumerAccountMaxAggregateInputType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountGroupByOutputType = {
|
|
|
|
|
id: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at: Date
|
|
|
|
|
updated_at: Date
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id: string
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id: string
|
|
|
|
|
_count: ConsumerAccountCountAggregateOutputType | null
|
|
|
|
|
_min: ConsumerAccountMinAggregateOutputType | null
|
|
|
|
|
_max: ConsumerAccountMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-22 21:55:40 +03:30
|
|
|
export type GetConsumerAccountGroupByPayload<T extends ConsumerAccountGroupByArgs> = Prisma.PrismaPromise<
|
2026-03-16 00:33:40 +03:30
|
|
|
Array<
|
|
|
|
|
Prisma.PickEnumerable<ConsumerAccountGroupByOutputType, T['by']> &
|
|
|
|
|
{
|
|
|
|
|
[P in ((keyof T) & (keyof ConsumerAccountGroupByOutputType))]: P extends '_count'
|
|
|
|
|
? T[P] extends boolean
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], ConsumerAccountGroupByOutputType[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], ConsumerAccountGroupByOutputType[P]>
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountWhereInput = {
|
|
|
|
|
AND?: Prisma.ConsumerAccountWhereInput | Prisma.ConsumerAccountWhereInput[]
|
|
|
|
|
OR?: Prisma.ConsumerAccountWhereInput[]
|
|
|
|
|
NOT?: Prisma.ConsumerAccountWhereInput | Prisma.ConsumerAccountWhereInput[]
|
|
|
|
|
id?: Prisma.StringFilter<"ConsumerAccount"> | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFilter<"ConsumerAccount"> | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFilter<"ConsumerAccount"> | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFilter<"ConsumerAccount"> | Date | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: Prisma.StringFilter<"ConsumerAccount"> | string
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: Prisma.StringFilter<"ConsumerAccount"> | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer?: Prisma.XOR<Prisma.ConsumerScalarRelationFilter, Prisma.ConsumerWhereInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
account?: Prisma.XOR<Prisma.AccountScalarRelationFilter, Prisma.AccountWhereInput>
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.XOR<Prisma.PosNullableScalarRelationFilter, Prisma.PosWhereInput> | null
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.XOR<Prisma.PermissionConsumerNullableScalarRelationFilter, Prisma.PermissionConsumerWhereInput> | null
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.XOR<Prisma.LicenseAccountAllocationNullableScalarRelationFilter, Prisma.LicenseAccountAllocationWhereInput> | null
|
2026-04-11 14:47:05 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountOrderByWithRelationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
role?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: Prisma.SortOrder
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: Prisma.SortOrder
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer?: Prisma.ConsumerOrderByWithRelationInput
|
2026-03-16 00:33:40 +03:30
|
|
|
account?: Prisma.AccountOrderByWithRelationInput
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosOrderByWithRelationInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerOrderByWithRelationInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationOrderByWithRelationInput
|
2026-04-11 14:47:05 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceOrderByRelationAggregateInput
|
2026-03-16 00:33:40 +03:30
|
|
|
_relevance?: Prisma.ConsumerAccountOrderByRelevanceInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountWhereUniqueInput = Prisma.AtLeast<{
|
|
|
|
|
id?: string
|
|
|
|
|
account_id?: string
|
|
|
|
|
AND?: Prisma.ConsumerAccountWhereInput | Prisma.ConsumerAccountWhereInput[]
|
|
|
|
|
OR?: Prisma.ConsumerAccountWhereInput[]
|
|
|
|
|
NOT?: Prisma.ConsumerAccountWhereInput | Prisma.ConsumerAccountWhereInput[]
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFilter<"ConsumerAccount"> | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFilter<"ConsumerAccount"> | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFilter<"ConsumerAccount"> | Date | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: Prisma.StringFilter<"ConsumerAccount"> | string
|
|
|
|
|
consumer?: Prisma.XOR<Prisma.ConsumerScalarRelationFilter, Prisma.ConsumerWhereInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
account?: Prisma.XOR<Prisma.AccountScalarRelationFilter, Prisma.AccountWhereInput>
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.XOR<Prisma.PosNullableScalarRelationFilter, Prisma.PosWhereInput> | null
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.XOR<Prisma.PermissionConsumerNullableScalarRelationFilter, Prisma.PermissionConsumerWhereInput> | null
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.XOR<Prisma.LicenseAccountAllocationNullableScalarRelationFilter, Prisma.LicenseAccountAllocationWhereInput> | null
|
2026-04-11 14:47:05 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
2026-03-16 00:33:40 +03:30
|
|
|
}, "id" | "account_id">
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountOrderByWithAggregationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
role?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: Prisma.SortOrder
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: Prisma.SortOrder
|
|
|
|
|
_count?: Prisma.ConsumerAccountCountOrderByAggregateInput
|
|
|
|
|
_max?: Prisma.ConsumerAccountMaxOrderByAggregateInput
|
|
|
|
|
_min?: Prisma.ConsumerAccountMinOrderByAggregateInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountScalarWhereWithAggregatesInput = {
|
|
|
|
|
AND?: Prisma.ConsumerAccountScalarWhereWithAggregatesInput | Prisma.ConsumerAccountScalarWhereWithAggregatesInput[]
|
|
|
|
|
OR?: Prisma.ConsumerAccountScalarWhereWithAggregatesInput[]
|
|
|
|
|
NOT?: Prisma.ConsumerAccountScalarWhereWithAggregatesInput | Prisma.ConsumerAccountScalarWhereWithAggregatesInput[]
|
|
|
|
|
id?: Prisma.StringWithAggregatesFilter<"ConsumerAccount"> | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleWithAggregatesFilter<"ConsumerAccount"> | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"ConsumerAccount"> | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeWithAggregatesFilter<"ConsumerAccount"> | Date | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: Prisma.StringWithAggregatesFilter<"ConsumerAccount"> | string
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: Prisma.StringWithAggregatesFilter<"ConsumerAccount"> | string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountCreateInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-04-27 10:45:39 +03:30
|
|
|
consumer: Prisma.ConsumerCreateNestedOneWithoutAccountsInput
|
2026-03-16 00:33:40 +03:30
|
|
|
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosCreateNestedOneWithoutAccountInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUncheckedCreateInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id: string
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id: string
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosUncheckedCreateNestedOneWithoutAccountInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUpdateInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-04-27 10:45:39 +03:30
|
|
|
consumer?: Prisma.ConsumerUpdateOneRequiredWithoutAccountsNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
account?: Prisma.AccountUpdateOneRequiredWithoutConsumer_accountNestedInput
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosUpdateOneWithoutAccountNestedInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutAccountNestedInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutConsumer_accountNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUncheckedUpdateInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosUncheckedUpdateOneWithoutAccountNestedInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountCreateManyInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id: string
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUpdateManyMutationInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUncheckedUpdateManyInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountNullableScalarRelationFilter = {
|
|
|
|
|
is?: Prisma.ConsumerAccountWhereInput | null
|
|
|
|
|
isNot?: Prisma.ConsumerAccountWhereInput | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountOrderByRelevanceInput = {
|
|
|
|
|
fields: Prisma.ConsumerAccountOrderByRelevanceFieldEnum | Prisma.ConsumerAccountOrderByRelevanceFieldEnum[]
|
|
|
|
|
sort: Prisma.SortOrder
|
|
|
|
|
search: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountCountOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
role?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: Prisma.SortOrder
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountMaxOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
role?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: Prisma.SortOrder
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountMinOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
role?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: Prisma.SortOrder
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountListRelationFilter = {
|
|
|
|
|
every?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
some?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
none?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountOrderByRelationAggregateInput = {
|
|
|
|
|
_count?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-16 00:33:40 +03:30
|
|
|
export type ConsumerAccountScalarRelationFilter = {
|
|
|
|
|
is?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
isNot?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountCreateNestedOneWithoutAccountInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccountInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccountInput>
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutAccountInput
|
|
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUncheckedCreateNestedOneWithoutAccountInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccountInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccountInput>
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutAccountInput
|
|
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUpdateOneWithoutAccountNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccountInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccountInput>
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutAccountInput
|
|
|
|
|
upsert?: Prisma.ConsumerAccountUpsertWithoutAccountInput
|
|
|
|
|
disconnect?: Prisma.ConsumerAccountWhereInput | boolean
|
|
|
|
|
delete?: Prisma.ConsumerAccountWhereInput | boolean
|
|
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutAccountInput, Prisma.ConsumerAccountUpdateWithoutAccountInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutAccountInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUncheckedUpdateOneWithoutAccountNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccountInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccountInput>
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutAccountInput
|
|
|
|
|
upsert?: Prisma.ConsumerAccountUpsertWithoutAccountInput
|
|
|
|
|
disconnect?: Prisma.ConsumerAccountWhereInput | boolean
|
|
|
|
|
delete?: Prisma.ConsumerAccountWhereInput | boolean
|
|
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutAccountInput, Prisma.ConsumerAccountUpdateWithoutAccountInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutAccountInput>
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type EnumConsumerRoleFieldUpdateOperationsInput = {
|
|
|
|
|
set?: $Enums.ConsumerRole
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountCreateNestedManyWithoutConsumerInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedCreateWithoutConsumerInput> | Prisma.ConsumerAccountCreateWithoutConsumerInput[] | Prisma.ConsumerAccountUncheckedCreateWithoutConsumerInput[]
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutConsumerInput | Prisma.ConsumerAccountCreateOrConnectWithoutConsumerInput[]
|
|
|
|
|
createMany?: Prisma.ConsumerAccountCreateManyConsumerInputEnvelope
|
2026-03-16 00:33:40 +03:30
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput | Prisma.ConsumerAccountWhereUniqueInput[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUncheckedCreateNestedManyWithoutConsumerInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedCreateWithoutConsumerInput> | Prisma.ConsumerAccountCreateWithoutConsumerInput[] | Prisma.ConsumerAccountUncheckedCreateWithoutConsumerInput[]
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutConsumerInput | Prisma.ConsumerAccountCreateOrConnectWithoutConsumerInput[]
|
|
|
|
|
createMany?: Prisma.ConsumerAccountCreateManyConsumerInputEnvelope
|
2026-03-16 00:33:40 +03:30
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput | Prisma.ConsumerAccountWhereUniqueInput[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUpdateManyWithoutConsumerNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedCreateWithoutConsumerInput> | Prisma.ConsumerAccountCreateWithoutConsumerInput[] | Prisma.ConsumerAccountUncheckedCreateWithoutConsumerInput[]
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutConsumerInput | Prisma.ConsumerAccountCreateOrConnectWithoutConsumerInput[]
|
|
|
|
|
upsert?: Prisma.ConsumerAccountUpsertWithWhereUniqueWithoutConsumerInput | Prisma.ConsumerAccountUpsertWithWhereUniqueWithoutConsumerInput[]
|
|
|
|
|
createMany?: Prisma.ConsumerAccountCreateManyConsumerInputEnvelope
|
2026-03-16 00:33:40 +03:30
|
|
|
set?: Prisma.ConsumerAccountWhereUniqueInput | Prisma.ConsumerAccountWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.ConsumerAccountWhereUniqueInput | Prisma.ConsumerAccountWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.ConsumerAccountWhereUniqueInput | Prisma.ConsumerAccountWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput | Prisma.ConsumerAccountWhereUniqueInput[]
|
2026-04-11 14:47:05 +03:30
|
|
|
update?: Prisma.ConsumerAccountUpdateWithWhereUniqueWithoutConsumerInput | Prisma.ConsumerAccountUpdateWithWhereUniqueWithoutConsumerInput[]
|
|
|
|
|
updateMany?: Prisma.ConsumerAccountUpdateManyWithWhereWithoutConsumerInput | Prisma.ConsumerAccountUpdateManyWithWhereWithoutConsumerInput[]
|
2026-03-16 00:33:40 +03:30
|
|
|
deleteMany?: Prisma.ConsumerAccountScalarWhereInput | Prisma.ConsumerAccountScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUncheckedUpdateManyWithoutConsumerNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedCreateWithoutConsumerInput> | Prisma.ConsumerAccountCreateWithoutConsumerInput[] | Prisma.ConsumerAccountUncheckedCreateWithoutConsumerInput[]
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutConsumerInput | Prisma.ConsumerAccountCreateOrConnectWithoutConsumerInput[]
|
|
|
|
|
upsert?: Prisma.ConsumerAccountUpsertWithWhereUniqueWithoutConsumerInput | Prisma.ConsumerAccountUpsertWithWhereUniqueWithoutConsumerInput[]
|
|
|
|
|
createMany?: Prisma.ConsumerAccountCreateManyConsumerInputEnvelope
|
2026-03-16 00:33:40 +03:30
|
|
|
set?: Prisma.ConsumerAccountWhereUniqueInput | Prisma.ConsumerAccountWhereUniqueInput[]
|
|
|
|
|
disconnect?: Prisma.ConsumerAccountWhereUniqueInput | Prisma.ConsumerAccountWhereUniqueInput[]
|
|
|
|
|
delete?: Prisma.ConsumerAccountWhereUniqueInput | Prisma.ConsumerAccountWhereUniqueInput[]
|
|
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput | Prisma.ConsumerAccountWhereUniqueInput[]
|
2026-04-11 14:47:05 +03:30
|
|
|
update?: Prisma.ConsumerAccountUpdateWithWhereUniqueWithoutConsumerInput | Prisma.ConsumerAccountUpdateWithWhereUniqueWithoutConsumerInput[]
|
|
|
|
|
updateMany?: Prisma.ConsumerAccountUpdateManyWithWhereWithoutConsumerInput | Prisma.ConsumerAccountUpdateManyWithWhereWithoutConsumerInput[]
|
2026-03-16 00:33:40 +03:30
|
|
|
deleteMany?: Prisma.ConsumerAccountScalarWhereInput | Prisma.ConsumerAccountScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-24 04:27:28 +03:30
|
|
|
export type ConsumerAccountCreateNestedOneWithoutPosInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPosInput, Prisma.ConsumerAccountUncheckedCreateWithoutPosInput>
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutPosInput
|
|
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-25 15:16:59 +03:30
|
|
|
export type ConsumerAccountUpdateOneRequiredWithoutPosNestedInput = {
|
2026-04-24 04:27:28 +03:30
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPosInput, Prisma.ConsumerAccountUncheckedCreateWithoutPosInput>
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutPosInput
|
|
|
|
|
upsert?: Prisma.ConsumerAccountUpsertWithoutPosInput
|
|
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutPosInput, Prisma.ConsumerAccountUpdateWithoutPosInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutPosInput>
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-24 23:02:05 +03:30
|
|
|
export type ConsumerAccountCreateNestedOneWithoutAccount_allocationInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccount_allocationInput>
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutAccount_allocationInput
|
|
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUpdateOneWithoutAccount_allocationNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccount_allocationInput>
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutAccount_allocationInput
|
|
|
|
|
upsert?: Prisma.ConsumerAccountUpsertWithoutAccount_allocationInput
|
|
|
|
|
disconnect?: Prisma.ConsumerAccountWhereInput | boolean
|
|
|
|
|
delete?: Prisma.ConsumerAccountWhereInput | boolean
|
|
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutAccount_allocationInput, Prisma.ConsumerAccountUpdateWithoutAccount_allocationInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutAccount_allocationInput>
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountCreateNestedOneWithoutPermissionInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPermissionInput, Prisma.ConsumerAccountUncheckedCreateWithoutPermissionInput>
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutPermissionInput
|
2026-03-16 00:33:40 +03:30
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUpdateOneRequiredWithoutPermissionNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPermissionInput, Prisma.ConsumerAccountUncheckedCreateWithoutPermissionInput>
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutPermissionInput
|
|
|
|
|
upsert?: Prisma.ConsumerAccountUpsertWithoutPermissionInput
|
2026-03-16 00:33:40 +03:30
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
2026-04-11 14:47:05 +03:30
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutPermissionInput, Prisma.ConsumerAccountUpdateWithoutPermissionInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutPermissionInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountCreateNestedOneWithoutSales_invoicesInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutSales_invoicesInput, Prisma.ConsumerAccountUncheckedCreateWithoutSales_invoicesInput>
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutSales_invoicesInput
|
2026-03-29 18:06:41 +03:30
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUpdateOneRequiredWithoutSales_invoicesNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutSales_invoicesInput, Prisma.ConsumerAccountUncheckedCreateWithoutSales_invoicesInput>
|
|
|
|
|
connectOrCreate?: Prisma.ConsumerAccountCreateOrConnectWithoutSales_invoicesInput
|
|
|
|
|
upsert?: Prisma.ConsumerAccountUpsertWithoutSales_invoicesInput
|
2026-03-29 18:06:41 +03:30
|
|
|
connect?: Prisma.ConsumerAccountWhereUniqueInput
|
2026-04-11 14:47:05 +03:30
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.ConsumerAccountUpdateToOneWithWhereWithoutSales_invoicesInput, Prisma.ConsumerAccountUpdateWithoutSales_invoicesInput>, Prisma.ConsumerAccountUncheckedUpdateWithoutSales_invoicesInput>
|
2026-03-29 18:06:41 +03:30
|
|
|
}
|
|
|
|
|
|
2026-03-16 00:33:40 +03:30
|
|
|
export type ConsumerAccountCreateWithoutAccountInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-04-27 10:45:39 +03:30
|
|
|
consumer: Prisma.ConsumerCreateNestedOneWithoutAccountsInput
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosCreateNestedOneWithoutAccountInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUncheckedCreateWithoutAccountInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id: string
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosUncheckedCreateNestedOneWithoutAccountInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountCreateOrConnectWithoutAccountInput = {
|
|
|
|
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccountInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccountInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUpsertWithoutAccountInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutAccountInput, Prisma.ConsumerAccountUncheckedUpdateWithoutAccountInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccountInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccountInput>
|
|
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUpdateToOneWithWhereWithoutAccountInput = {
|
|
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
data: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutAccountInput, Prisma.ConsumerAccountUncheckedUpdateWithoutAccountInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUpdateWithoutAccountInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-04-27 10:45:39 +03:30
|
|
|
consumer?: Prisma.ConsumerUpdateOneRequiredWithoutAccountsNestedInput
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosUpdateOneWithoutAccountNestedInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutAccountNestedInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutConsumer_accountNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUncheckedUpdateWithoutAccountInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosUncheckedUpdateOneWithoutAccountNestedInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountCreateWithoutConsumerInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosCreateNestedOneWithoutAccountInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUncheckedCreateWithoutConsumerInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
account_id: string
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosUncheckedCreateNestedOneWithoutAccountInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountCreateOrConnectWithoutConsumerInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
2026-04-11 14:47:05 +03:30
|
|
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedCreateWithoutConsumerInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountCreateManyConsumerInputEnvelope = {
|
|
|
|
|
data: Prisma.ConsumerAccountCreateManyConsumerInput | Prisma.ConsumerAccountCreateManyConsumerInput[]
|
2026-03-16 00:33:40 +03:30
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUpsertWithWhereUniqueWithoutConsumerInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
2026-04-11 14:47:05 +03:30
|
|
|
update: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedUpdateWithoutConsumerInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedCreateWithoutConsumerInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUpdateWithWhereUniqueWithoutConsumerInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
2026-04-11 14:47:05 +03:30
|
|
|
data: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutConsumerInput, Prisma.ConsumerAccountUncheckedUpdateWithoutConsumerInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUpdateManyWithWhereWithoutConsumerInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.ConsumerAccountScalarWhereInput
|
2026-04-11 14:47:05 +03:30
|
|
|
data: Prisma.XOR<Prisma.ConsumerAccountUpdateManyMutationInput, Prisma.ConsumerAccountUncheckedUpdateManyWithoutConsumerInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountScalarWhereInput = {
|
|
|
|
|
AND?: Prisma.ConsumerAccountScalarWhereInput | Prisma.ConsumerAccountScalarWhereInput[]
|
|
|
|
|
OR?: Prisma.ConsumerAccountScalarWhereInput[]
|
|
|
|
|
NOT?: Prisma.ConsumerAccountScalarWhereInput | Prisma.ConsumerAccountScalarWhereInput[]
|
|
|
|
|
id?: Prisma.StringFilter<"ConsumerAccount"> | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFilter<"ConsumerAccount"> | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFilter<"ConsumerAccount"> | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFilter<"ConsumerAccount"> | Date | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: Prisma.StringFilter<"ConsumerAccount"> | string
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: Prisma.StringFilter<"ConsumerAccount"> | string
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-24 04:27:28 +03:30
|
|
|
export type ConsumerAccountCreateWithoutPosInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-04-27 10:45:39 +03:30
|
|
|
consumer: Prisma.ConsumerCreateNestedOneWithoutAccountsInput
|
2026-04-24 04:27:28 +03:30
|
|
|
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
|
|
|
|
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
2026-04-24 04:27:28 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUncheckedCreateWithoutPosInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
consumer_id: string
|
|
|
|
|
account_id: string
|
|
|
|
|
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
2026-04-24 04:27:28 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountCreateOrConnectWithoutPosInput = {
|
|
|
|
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPosInput, Prisma.ConsumerAccountUncheckedCreateWithoutPosInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUpsertWithoutPosInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutPosInput, Prisma.ConsumerAccountUncheckedUpdateWithoutPosInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPosInput, Prisma.ConsumerAccountUncheckedCreateWithoutPosInput>
|
|
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUpdateToOneWithWhereWithoutPosInput = {
|
|
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
data: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutPosInput, Prisma.ConsumerAccountUncheckedUpdateWithoutPosInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUpdateWithoutPosInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-04-27 10:45:39 +03:30
|
|
|
consumer?: Prisma.ConsumerUpdateOneRequiredWithoutAccountsNestedInput
|
2026-04-24 04:27:28 +03:30
|
|
|
account?: Prisma.AccountUpdateOneRequiredWithoutConsumer_accountNestedInput
|
|
|
|
|
permission?: Prisma.PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutAccountNestedInput
|
2026-04-24 04:27:28 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutConsumer_accountNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUncheckedUpdateWithoutPosInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
permission?: Prisma.PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput
|
|
|
|
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountCreateWithoutAccount_allocationInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-04-27 10:45:39 +03:30
|
|
|
consumer: Prisma.ConsumerCreateNestedOneWithoutAccountsInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
|
|
|
|
pos?: Prisma.PosCreateNestedOneWithoutAccountInput
|
|
|
|
|
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
|
|
|
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUncheckedCreateWithoutAccount_allocationInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
consumer_id: string
|
|
|
|
|
account_id: string
|
|
|
|
|
pos?: Prisma.PosUncheckedCreateNestedOneWithoutAccountInput
|
|
|
|
|
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
|
|
|
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountCreateOrConnectWithoutAccount_allocationInput = {
|
|
|
|
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccount_allocationInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUpsertWithoutAccount_allocationInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedUpdateWithoutAccount_allocationInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedCreateWithoutAccount_allocationInput>
|
|
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUpdateToOneWithWhereWithoutAccount_allocationInput = {
|
|
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
data: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutAccount_allocationInput, Prisma.ConsumerAccountUncheckedUpdateWithoutAccount_allocationInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUpdateWithoutAccount_allocationInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-04-27 10:45:39 +03:30
|
|
|
consumer?: Prisma.ConsumerUpdateOneRequiredWithoutAccountsNestedInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account?: Prisma.AccountUpdateOneRequiredWithoutConsumer_accountNestedInput
|
|
|
|
|
pos?: Prisma.PosUpdateOneWithoutAccountNestedInput
|
|
|
|
|
permission?: Prisma.PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput
|
|
|
|
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutConsumer_accountNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountUncheckedUpdateWithoutAccount_allocationInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
pos?: Prisma.PosUncheckedUpdateOneWithoutAccountNestedInput
|
|
|
|
|
permission?: Prisma.PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput
|
2026-04-24 04:27:28 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountCreateWithoutPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-04-27 10:45:39 +03:30
|
|
|
consumer: Prisma.ConsumerCreateNestedOneWithoutAccountsInput
|
2026-03-16 00:33:40 +03:30
|
|
|
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosCreateNestedOneWithoutAccountInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutConsumer_accountInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUncheckedCreateWithoutPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id: string
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id: string
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosUncheckedCreateNestedOneWithoutAccountInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutConsumer_accountInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountCreateOrConnectWithoutPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
2026-04-11 14:47:05 +03:30
|
|
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPermissionInput, Prisma.ConsumerAccountUncheckedCreateWithoutPermissionInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUpsertWithoutPermissionInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutPermissionInput, Prisma.ConsumerAccountUncheckedUpdateWithoutPermissionInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutPermissionInput, Prisma.ConsumerAccountUncheckedCreateWithoutPermissionInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUpdateToOneWithWhereWithoutPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
2026-04-11 14:47:05 +03:30
|
|
|
data: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutPermissionInput, Prisma.ConsumerAccountUncheckedUpdateWithoutPermissionInput>
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUpdateWithoutPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-04-27 10:45:39 +03:30
|
|
|
consumer?: Prisma.ConsumerUpdateOneRequiredWithoutAccountsNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
account?: Prisma.AccountUpdateOneRequiredWithoutConsumer_accountNestedInput
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosUpdateOneWithoutAccountNestedInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutAccountNestedInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutConsumer_accountNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUncheckedUpdateWithoutPermissionInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosUncheckedUpdateOneWithoutAccountNestedInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
2026-03-29 18:06:41 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountCreateWithoutSales_invoicesInput = {
|
2026-03-29 18:06:41 +03:30
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-04-27 10:45:39 +03:30
|
|
|
consumer: Prisma.ConsumerCreateNestedOneWithoutAccountsInput
|
2026-03-29 18:06:41 +03:30
|
|
|
account: Prisma.AccountCreateNestedOneWithoutConsumer_accountInput
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosCreateNestedOneWithoutAccountInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerCreateNestedOneWithoutConsumer_accountInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationCreateNestedOneWithoutAccountInput
|
2026-03-29 18:06:41 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUncheckedCreateWithoutSales_invoicesInput = {
|
2026-03-29 18:06:41 +03:30
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id: string
|
2026-03-29 18:06:41 +03:30
|
|
|
account_id: string
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosUncheckedCreateNestedOneWithoutAccountInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerUncheckedCreateNestedOneWithoutConsumer_accountInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUncheckedCreateNestedOneWithoutAccountInput
|
2026-03-29 18:06:41 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountCreateOrConnectWithoutSales_invoicesInput = {
|
2026-03-29 18:06:41 +03:30
|
|
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
2026-04-11 14:47:05 +03:30
|
|
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutSales_invoicesInput, Prisma.ConsumerAccountUncheckedCreateWithoutSales_invoicesInput>
|
2026-03-29 18:06:41 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUpsertWithoutSales_invoicesInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutSales_invoicesInput, Prisma.ConsumerAccountUncheckedUpdateWithoutSales_invoicesInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateWithoutSales_invoicesInput, Prisma.ConsumerAccountUncheckedCreateWithoutSales_invoicesInput>
|
2026-03-29 18:06:41 +03:30
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUpdateToOneWithWhereWithoutSales_invoicesInput = {
|
2026-03-29 18:06:41 +03:30
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
2026-04-11 14:47:05 +03:30
|
|
|
data: Prisma.XOR<Prisma.ConsumerAccountUpdateWithoutSales_invoicesInput, Prisma.ConsumerAccountUncheckedUpdateWithoutSales_invoicesInput>
|
2026-03-29 18:06:41 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUpdateWithoutSales_invoicesInput = {
|
2026-03-29 18:06:41 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-04-27 10:45:39 +03:30
|
|
|
consumer?: Prisma.ConsumerUpdateOneRequiredWithoutAccountsNestedInput
|
2026-03-29 18:06:41 +03:30
|
|
|
account?: Prisma.AccountUpdateOneRequiredWithoutConsumer_accountNestedInput
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosUpdateOneWithoutAccountNestedInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutAccountNestedInput
|
2026-03-29 18:06:41 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUncheckedUpdateWithoutSales_invoicesInput = {
|
2026-03-29 18:06:41 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-03-29 18:06:41 +03:30
|
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosUncheckedUpdateOneWithoutAccountNestedInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountCreateManyConsumerInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
account_id: string
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUpdateWithoutConsumerInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
account?: Prisma.AccountUpdateOneRequiredWithoutConsumer_accountNestedInput
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosUpdateOneWithoutAccountNestedInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerUpdateOneWithoutConsumer_accountNestedInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUpdateOneWithoutAccountNestedInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutConsumer_accountNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUncheckedUpdateWithoutConsumerInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: Prisma.PosUncheckedUpdateOneWithoutAccountNestedInput
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: Prisma.PermissionConsumerUncheckedUpdateOneWithoutConsumer_accountNestedInput
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: Prisma.LicenseAccountAllocationUncheckedUpdateOneWithoutAccountNestedInput
|
2026-04-13 13:21:50 +03:30
|
|
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutConsumer_accountNestedInput
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountUncheckedUpdateManyWithoutConsumerInput = {
|
2026-03-16 00:33:40 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
role?: Prisma.EnumConsumerRoleFieldUpdateOperationsInput | $Enums.ConsumerRole
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Count Type ConsumerAccountCountOutputType
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountCountOutputType = {
|
2026-04-11 14:47:05 +03:30
|
|
|
sales_invoices: number
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-04-11 14:47:05 +03:30
|
|
|
sales_invoices?: boolean | ConsumerAccountCountOutputTypeCountSales_invoicesArgs
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ConsumerAccountCountOutputType without action
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccountCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the ConsumerAccountCountOutputType
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.ConsumerAccountCountOutputTypeSelect<ExtArgs> | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ConsumerAccountCountOutputType without action
|
|
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountCountOutputTypeCountSales_invoicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-03-29 18:06:41 +03:30
|
|
|
where?: Prisma.SalesInvoiceWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-16 00:33:40 +03:30
|
|
|
|
|
|
|
|
export type ConsumerAccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
|
|
|
id?: boolean
|
|
|
|
|
role?: boolean
|
|
|
|
|
created_at?: boolean
|
|
|
|
|
updated_at?: boolean
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: boolean
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: boolean
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer?: boolean | Prisma.ConsumerDefaultArgs<ExtArgs>
|
2026-03-16 00:33:40 +03:30
|
|
|
account?: boolean | Prisma.AccountDefaultArgs<ExtArgs>
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: boolean | Prisma.ConsumerAccount$posArgs<ExtArgs>
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: boolean | Prisma.ConsumerAccount$permissionArgs<ExtArgs>
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: boolean | Prisma.ConsumerAccount$account_allocationArgs<ExtArgs>
|
2026-04-11 14:47:05 +03:30
|
|
|
sales_invoices?: boolean | Prisma.ConsumerAccount$sales_invoicesArgs<ExtArgs>
|
2026-03-16 00:33:40 +03:30
|
|
|
_count?: boolean | Prisma.ConsumerAccountCountOutputTypeDefaultArgs<ExtArgs>
|
|
|
|
|
}, ExtArgs["result"]["consumerAccount"]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountSelectScalar = {
|
|
|
|
|
id?: boolean
|
|
|
|
|
role?: boolean
|
|
|
|
|
created_at?: boolean
|
|
|
|
|
updated_at?: boolean
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id?: boolean
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccountOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "role" | "created_at" | "updated_at" | "consumer_id" | "account_id", ExtArgs["result"]["consumerAccount"]>
|
2026-03-16 00:33:40 +03:30
|
|
|
export type ConsumerAccountInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer?: boolean | Prisma.ConsumerDefaultArgs<ExtArgs>
|
2026-03-16 00:33:40 +03:30
|
|
|
account?: boolean | Prisma.AccountDefaultArgs<ExtArgs>
|
2026-04-24 04:27:28 +03:30
|
|
|
pos?: boolean | Prisma.ConsumerAccount$posArgs<ExtArgs>
|
2026-04-11 14:47:05 +03:30
|
|
|
permission?: boolean | Prisma.ConsumerAccount$permissionArgs<ExtArgs>
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation?: boolean | Prisma.ConsumerAccount$account_allocationArgs<ExtArgs>
|
2026-04-11 14:47:05 +03:30
|
|
|
sales_invoices?: boolean | Prisma.ConsumerAccount$sales_invoicesArgs<ExtArgs>
|
2026-03-16 00:33:40 +03:30
|
|
|
_count?: boolean | Prisma.ConsumerAccountCountOutputTypeDefaultArgs<ExtArgs>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type $ConsumerAccountPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
name: "ConsumerAccount"
|
|
|
|
|
objects: {
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer: Prisma.$ConsumerPayload<ExtArgs>
|
2026-03-16 00:33:40 +03:30
|
|
|
account: Prisma.$AccountPayload<ExtArgs>
|
2026-04-24 04:27:28 +03:30
|
|
|
pos: Prisma.$PosPayload<ExtArgs> | null
|
2026-04-11 14:47:05 +03:30
|
|
|
permission: Prisma.$PermissionConsumerPayload<ExtArgs> | null
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation: Prisma.$LicenseAccountAllocationPayload<ExtArgs> | null
|
2026-04-11 14:47:05 +03:30
|
|
|
sales_invoices: Prisma.$SalesInvoicePayload<ExtArgs>[]
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|
|
|
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
|
|
|
id: string
|
|
|
|
|
role: $Enums.ConsumerRole
|
|
|
|
|
created_at: Date
|
|
|
|
|
updated_at: Date
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer_id: string
|
2026-03-16 00:33:40 +03:30
|
|
|
account_id: string
|
|
|
|
|
}, ExtArgs["result"]["consumerAccount"]>
|
|
|
|
|
composites: {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountGetPayload<S extends boolean | null | undefined | ConsumerAccountDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload, S>
|
|
|
|
|
|
|
|
|
|
export type ConsumerAccountCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
|
|
|
Omit<ConsumerAccountFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
|
|
|
select?: ConsumerAccountCountAggregateInputType | true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ConsumerAccountDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
|
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ConsumerAccount'], meta: { name: 'ConsumerAccount' } }
|
|
|
|
|
/**
|
|
|
|
|
* Find zero or one ConsumerAccount that matches the filter.
|
|
|
|
|
* @param {ConsumerAccountFindUniqueArgs} args - Arguments to find a ConsumerAccount
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one ConsumerAccount
|
|
|
|
|
* const consumerAccount = await prisma.consumerAccount.findUnique({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findUnique<T extends ConsumerAccountFindUniqueArgs>(args: Prisma.SelectSubset<T, ConsumerAccountFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ConsumerAccountClient<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find one ConsumerAccount that matches the filter or throw an error with `error.code='P2025'`
|
|
|
|
|
* if no matches were found.
|
|
|
|
|
* @param {ConsumerAccountFindUniqueOrThrowArgs} args - Arguments to find a ConsumerAccount
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one ConsumerAccount
|
|
|
|
|
* const consumerAccount = await prisma.consumerAccount.findUniqueOrThrow({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findUniqueOrThrow<T extends ConsumerAccountFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ConsumerAccountFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ConsumerAccountClient<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find the first ConsumerAccount 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 {ConsumerAccountFindFirstArgs} args - Arguments to find a ConsumerAccount
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one ConsumerAccount
|
|
|
|
|
* const consumerAccount = await prisma.consumerAccount.findFirst({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findFirst<T extends ConsumerAccountFindFirstArgs>(args?: Prisma.SelectSubset<T, ConsumerAccountFindFirstArgs<ExtArgs>>): Prisma.Prisma__ConsumerAccountClient<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find the first ConsumerAccount 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 {ConsumerAccountFindFirstOrThrowArgs} args - Arguments to find a ConsumerAccount
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one ConsumerAccount
|
|
|
|
|
* const consumerAccount = await prisma.consumerAccount.findFirstOrThrow({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findFirstOrThrow<T extends ConsumerAccountFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ConsumerAccountFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ConsumerAccountClient<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find zero or more ConsumerAccounts 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 {ConsumerAccountFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
|
|
|
* @example
|
|
|
|
|
* // Get all ConsumerAccounts
|
|
|
|
|
* const consumerAccounts = await prisma.consumerAccount.findMany()
|
|
|
|
|
*
|
|
|
|
|
* // Get first 10 ConsumerAccounts
|
|
|
|
|
* const consumerAccounts = await prisma.consumerAccount.findMany({ take: 10 })
|
|
|
|
|
*
|
|
|
|
|
* // Only select the `id`
|
|
|
|
|
* const consumerAccountWithIdOnly = await prisma.consumerAccount.findMany({ select: { id: true } })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
findMany<T extends ConsumerAccountFindManyArgs>(args?: Prisma.SelectSubset<T, ConsumerAccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a ConsumerAccount.
|
|
|
|
|
* @param {ConsumerAccountCreateArgs} args - Arguments to create a ConsumerAccount.
|
|
|
|
|
* @example
|
|
|
|
|
* // Create one ConsumerAccount
|
|
|
|
|
* const ConsumerAccount = await prisma.consumerAccount.create({
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... data to create a ConsumerAccount
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
create<T extends ConsumerAccountCreateArgs>(args: Prisma.SelectSubset<T, ConsumerAccountCreateArgs<ExtArgs>>): Prisma.Prisma__ConsumerAccountClient<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create many ConsumerAccounts.
|
|
|
|
|
* @param {ConsumerAccountCreateManyArgs} args - Arguments to create many ConsumerAccounts.
|
|
|
|
|
* @example
|
|
|
|
|
* // Create many ConsumerAccounts
|
|
|
|
|
* const consumerAccount = await prisma.consumerAccount.createMany({
|
|
|
|
|
* data: [
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* ]
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
createMany<T extends ConsumerAccountCreateManyArgs>(args?: Prisma.SelectSubset<T, ConsumerAccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delete a ConsumerAccount.
|
|
|
|
|
* @param {ConsumerAccountDeleteArgs} args - Arguments to delete one ConsumerAccount.
|
|
|
|
|
* @example
|
|
|
|
|
* // Delete one ConsumerAccount
|
|
|
|
|
* const ConsumerAccount = await prisma.consumerAccount.delete({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... filter to delete one ConsumerAccount
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
delete<T extends ConsumerAccountDeleteArgs>(args: Prisma.SelectSubset<T, ConsumerAccountDeleteArgs<ExtArgs>>): Prisma.Prisma__ConsumerAccountClient<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update one ConsumerAccount.
|
|
|
|
|
* @param {ConsumerAccountUpdateArgs} args - Arguments to update one ConsumerAccount.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update one ConsumerAccount
|
|
|
|
|
* const consumerAccount = await prisma.consumerAccount.update({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* },
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
update<T extends ConsumerAccountUpdateArgs>(args: Prisma.SelectSubset<T, ConsumerAccountUpdateArgs<ExtArgs>>): Prisma.Prisma__ConsumerAccountClient<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delete zero or more ConsumerAccounts.
|
|
|
|
|
* @param {ConsumerAccountDeleteManyArgs} args - Arguments to filter ConsumerAccounts to delete.
|
|
|
|
|
* @example
|
|
|
|
|
* // Delete a few ConsumerAccounts
|
|
|
|
|
* const { count } = await prisma.consumerAccount.deleteMany({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
deleteMany<T extends ConsumerAccountDeleteManyArgs>(args?: Prisma.SelectSubset<T, ConsumerAccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update zero or more ConsumerAccounts.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {ConsumerAccountUpdateManyArgs} args - Arguments to update one or more rows.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update many ConsumerAccounts
|
|
|
|
|
* const consumerAccount = await prisma.consumerAccount.updateMany({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* },
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
updateMany<T extends ConsumerAccountUpdateManyArgs>(args: Prisma.SelectSubset<T, ConsumerAccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create or update one ConsumerAccount.
|
|
|
|
|
* @param {ConsumerAccountUpsertArgs} args - Arguments to update or create a ConsumerAccount.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update or create a ConsumerAccount
|
|
|
|
|
* const consumerAccount = await prisma.consumerAccount.upsert({
|
|
|
|
|
* create: {
|
|
|
|
|
* // ... data to create a ConsumerAccount
|
|
|
|
|
* },
|
|
|
|
|
* update: {
|
|
|
|
|
* // ... in case it already exists, update
|
|
|
|
|
* },
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... the filter for the ConsumerAccount we want to update
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
upsert<T extends ConsumerAccountUpsertArgs>(args: Prisma.SelectSubset<T, ConsumerAccountUpsertArgs<ExtArgs>>): Prisma.Prisma__ConsumerAccountClient<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Count the number of ConsumerAccounts.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {ConsumerAccountCountArgs} args - Arguments to filter ConsumerAccounts to count.
|
|
|
|
|
* @example
|
|
|
|
|
* // Count the number of ConsumerAccounts
|
|
|
|
|
* const count = await prisma.consumerAccount.count({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... the filter for the ConsumerAccounts we want to count
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
**/
|
|
|
|
|
count<T extends ConsumerAccountCountArgs>(
|
|
|
|
|
args?: Prisma.Subset<T, ConsumerAccountCountArgs>,
|
|
|
|
|
): Prisma.PrismaPromise<
|
|
|
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
|
|
|
? T['select'] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T['select'], ConsumerAccountCountAggregateOutputType>
|
|
|
|
|
: number
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Allows you to perform aggregations operations on a ConsumerAccount.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {ConsumerAccountAggregateArgs} 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 ConsumerAccountAggregateArgs>(args: Prisma.Subset<T, ConsumerAccountAggregateArgs>): Prisma.PrismaPromise<GetConsumerAccountAggregateType<T>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Group by ConsumerAccount.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {ConsumerAccountGroupByArgs} 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 ConsumerAccountGroupByArgs,
|
|
|
|
|
HasSelectOrTake extends Prisma.Or<
|
|
|
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
|
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
|
|
|
>,
|
|
|
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
|
|
|
? { orderBy: ConsumerAccountGroupByArgs['orderBy'] }
|
|
|
|
|
: { orderBy?: ConsumerAccountGroupByArgs['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, ConsumerAccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetConsumerAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
|
|
|
/**
|
|
|
|
|
* Fields of the ConsumerAccount model
|
|
|
|
|
*/
|
|
|
|
|
readonly fields: ConsumerAccountFieldRefs;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The delegate class that acts as a "Promise-like" for ConsumerAccount.
|
|
|
|
|
* 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__ConsumerAccountClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
|
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
2026-04-11 14:47:05 +03:30
|
|
|
consumer<T extends Prisma.ConsumerDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsumerDefaultArgs<ExtArgs>>): Prisma.Prisma__ConsumerClient<runtime.Types.Result.GetResult<Prisma.$ConsumerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
2026-03-16 00:33:40 +03:30
|
|
|
account<T extends Prisma.AccountDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AccountDefaultArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
2026-04-24 04:27:28 +03:30
|
|
|
pos<T extends Prisma.ConsumerAccount$posArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsumerAccount$posArgs<ExtArgs>>): Prisma.Prisma__PosClient<runtime.Types.Result.GetResult<Prisma.$PosPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
2026-04-11 14:47:05 +03:30
|
|
|
permission<T extends Prisma.ConsumerAccount$permissionArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsumerAccount$permissionArgs<ExtArgs>>): Prisma.Prisma__PermissionConsumerClient<runtime.Types.Result.GetResult<Prisma.$PermissionConsumerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
2026-04-24 23:02:05 +03:30
|
|
|
account_allocation<T extends Prisma.ConsumerAccount$account_allocationArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsumerAccount$account_allocationArgs<ExtArgs>>): Prisma.Prisma__LicenseAccountAllocationClient<runtime.Types.Result.GetResult<Prisma.$LicenseAccountAllocationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
2026-04-11 14:47:05 +03:30
|
|
|
sales_invoices<T extends Prisma.ConsumerAccount$sales_invoicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsumerAccount$sales_invoicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
2026-03-16 00:33:40 +03:30
|
|
|
/**
|
|
|
|
|
* 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 ConsumerAccount model
|
|
|
|
|
*/
|
|
|
|
|
export interface ConsumerAccountFieldRefs {
|
|
|
|
|
readonly id: Prisma.FieldRef<"ConsumerAccount", 'String'>
|
|
|
|
|
readonly role: Prisma.FieldRef<"ConsumerAccount", 'ConsumerRole'>
|
|
|
|
|
readonly created_at: Prisma.FieldRef<"ConsumerAccount", 'DateTime'>
|
|
|
|
|
readonly updated_at: Prisma.FieldRef<"ConsumerAccount", 'DateTime'>
|
2026-04-11 14:47:05 +03:30
|
|
|
readonly consumer_id: Prisma.FieldRef<"ConsumerAccount", 'String'>
|
2026-03-16 00:33:40 +03:30
|
|
|
readonly account_id: Prisma.FieldRef<"ConsumerAccount", 'String'>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Custom InputTypes
|
|
|
|
|
/**
|
|
|
|
|
* ConsumerAccount findUnique
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccountFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.ConsumerAccountSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.ConsumerAccountOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.ConsumerAccountInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which ConsumerAccount to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ConsumerAccount findUniqueOrThrow
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccountFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.ConsumerAccountSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.ConsumerAccountOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.ConsumerAccountInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which ConsumerAccount to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ConsumerAccount findFirst
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccountFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.ConsumerAccountSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.ConsumerAccountOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.ConsumerAccountInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which ConsumerAccount to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of ConsumerAccounts to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.ConsumerAccountOrderByWithRelationInput | Prisma.ConsumerAccountOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for searching for ConsumerAccounts.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` ConsumerAccounts 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` ConsumerAccounts.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of ConsumerAccounts.
|
|
|
|
|
*/
|
|
|
|
|
distinct?: Prisma.ConsumerAccountScalarFieldEnum | Prisma.ConsumerAccountScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ConsumerAccount findFirstOrThrow
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccountFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.ConsumerAccountSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.ConsumerAccountOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.ConsumerAccountInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which ConsumerAccount to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of ConsumerAccounts to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.ConsumerAccountOrderByWithRelationInput | Prisma.ConsumerAccountOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for searching for ConsumerAccounts.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` ConsumerAccounts 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` ConsumerAccounts.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of ConsumerAccounts.
|
|
|
|
|
*/
|
|
|
|
|
distinct?: Prisma.ConsumerAccountScalarFieldEnum | Prisma.ConsumerAccountScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ConsumerAccount findMany
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccountFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.ConsumerAccountSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.ConsumerAccountOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.ConsumerAccountInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter, which ConsumerAccounts to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of ConsumerAccounts to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.ConsumerAccountOrderByWithRelationInput | Prisma.ConsumerAccountOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for listing ConsumerAccounts.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` ConsumerAccounts 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` ConsumerAccounts.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
2026-04-22 21:55:40 +03:30
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of ConsumerAccounts.
|
|
|
|
|
*/
|
2026-03-16 00:33:40 +03:30
|
|
|
distinct?: Prisma.ConsumerAccountScalarFieldEnum | Prisma.ConsumerAccountScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ConsumerAccount create
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccountCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.ConsumerAccountSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.ConsumerAccountOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.ConsumerAccountInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The data needed to create a ConsumerAccount.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.ConsumerAccountCreateInput, Prisma.ConsumerAccountUncheckedCreateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ConsumerAccount createMany
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccountCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to create many ConsumerAccounts.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.ConsumerAccountCreateManyInput | Prisma.ConsumerAccountCreateManyInput[]
|
|
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ConsumerAccount update
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccountUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.ConsumerAccountSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.ConsumerAccountOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.ConsumerAccountInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The data needed to update a ConsumerAccount.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.ConsumerAccountUpdateInput, Prisma.ConsumerAccountUncheckedUpdateInput>
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which ConsumerAccount to update.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ConsumerAccount updateMany
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccountUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to update ConsumerAccounts.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.ConsumerAccountUpdateManyMutationInput, Prisma.ConsumerAccountUncheckedUpdateManyInput>
|
|
|
|
|
/**
|
|
|
|
|
* Filter which ConsumerAccounts to update
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many ConsumerAccounts to update.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ConsumerAccount upsert
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccountUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.ConsumerAccountSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.ConsumerAccountOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.ConsumerAccountInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* The filter to search for the ConsumerAccount to update in case it exists.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* In case the ConsumerAccount found by the `where` argument doesn't exist, create a new ConsumerAccount with this data.
|
|
|
|
|
*/
|
|
|
|
|
create: Prisma.XOR<Prisma.ConsumerAccountCreateInput, Prisma.ConsumerAccountUncheckedCreateInput>
|
|
|
|
|
/**
|
|
|
|
|
* In case the ConsumerAccount was found with the provided `where` argument, update it with this data.
|
|
|
|
|
*/
|
|
|
|
|
update: Prisma.XOR<Prisma.ConsumerAccountUpdateInput, Prisma.ConsumerAccountUncheckedUpdateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ConsumerAccount delete
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccountDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.ConsumerAccountSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.ConsumerAccountOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.ConsumerAccountInclude<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Filter which ConsumerAccount to delete.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.ConsumerAccountWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ConsumerAccount deleteMany
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccountDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Filter which ConsumerAccounts to delete
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.ConsumerAccountWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many ConsumerAccounts to delete.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-24 04:27:28 +03:30
|
|
|
/**
|
|
|
|
|
* ConsumerAccount.pos
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccount$posArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Pos
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PosSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Pos
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PosOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PosInclude<ExtArgs> | null
|
|
|
|
|
where?: Prisma.PosWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-16 00:33:40 +03:30
|
|
|
/**
|
2026-04-11 14:47:05 +03:30
|
|
|
* ConsumerAccount.permission
|
2026-03-16 00:33:40 +03:30
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccount$permissionArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-03-16 00:33:40 +03:30
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.PermissionConsumerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the PermissionConsumer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.PermissionConsumerOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.PermissionConsumerInclude<ExtArgs> | null
|
|
|
|
|
where?: Prisma.PermissionConsumerWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-24 23:02:05 +03:30
|
|
|
/**
|
|
|
|
|
* ConsumerAccount.account_allocation
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccount$account_allocationArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the LicenseAccountAllocation
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.LicenseAccountAllocationSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the LicenseAccountAllocation
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.LicenseAccountAllocationOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.LicenseAccountAllocationInclude<ExtArgs> | null
|
|
|
|
|
where?: Prisma.LicenseAccountAllocationWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-29 18:06:41 +03:30
|
|
|
/**
|
2026-04-11 14:47:05 +03:30
|
|
|
* ConsumerAccount.sales_invoices
|
2026-03-29 18:06:41 +03:30
|
|
|
*/
|
2026-04-11 14:47:05 +03:30
|
|
|
export type ConsumerAccount$sales_invoicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-03-29 18:06:41 +03:30
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the SalesInvoice
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.SalesInvoiceSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the SalesInvoice
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.SalesInvoiceOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.SalesInvoiceInclude<ExtArgs> | null
|
|
|
|
|
where?: Prisma.SalesInvoiceWhereInput
|
|
|
|
|
orderBy?: Prisma.SalesInvoiceOrderByWithRelationInput | Prisma.SalesInvoiceOrderByWithRelationInput[]
|
|
|
|
|
cursor?: Prisma.SalesInvoiceWhereUniqueInput
|
|
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
|
|
|
|
distinct?: Prisma.SalesInvoiceScalarFieldEnum | Prisma.SalesInvoiceScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-03-16 00:33:40 +03:30
|
|
|
/**
|
|
|
|
|
* ConsumerAccount without action
|
|
|
|
|
*/
|
|
|
|
|
export type ConsumerAccountDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.ConsumerAccountSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the ConsumerAccount
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.ConsumerAccountOmit<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.ConsumerAccountInclude<ExtArgs> | null
|
|
|
|
|
}
|