2025-12-04 21:05:57 +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 `Customer` 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 Customer
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerModel = runtime.Types.Result.DefaultSelection<Prisma.$CustomerPayload>
|
|
|
|
|
|
|
|
|
|
export type AggregateCustomer = {
|
|
|
|
|
_count: CustomerCountAggregateOutputType | null
|
|
|
|
|
_min: CustomerMinAggregateOutputType | null
|
|
|
|
|
_max: CustomerMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerMinAggregateOutputType = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id: string | null
|
|
|
|
|
first_name: string | null
|
|
|
|
|
last_name: string | null
|
2025-12-04 21:05:57 +03:30
|
|
|
email: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number: string | null
|
2025-12-04 21:05:57 +03:30
|
|
|
address: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active: boolean | null
|
|
|
|
|
account_id: string | null
|
|
|
|
|
complex_id: string | null
|
|
|
|
|
created_at: Date | null
|
|
|
|
|
updated_at: Date | null
|
|
|
|
|
deleted_at: Date | null
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerMaxAggregateOutputType = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id: string | null
|
|
|
|
|
first_name: string | null
|
|
|
|
|
last_name: string | null
|
2025-12-04 21:05:57 +03:30
|
|
|
email: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number: string | null
|
2025-12-04 21:05:57 +03:30
|
|
|
address: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active: boolean | null
|
|
|
|
|
account_id: string | null
|
|
|
|
|
complex_id: string | null
|
|
|
|
|
created_at: Date | null
|
|
|
|
|
updated_at: Date | null
|
|
|
|
|
deleted_at: Date | null
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerCountAggregateOutputType = {
|
|
|
|
|
id: number
|
2026-02-12 20:31:04 +03:30
|
|
|
first_name: number
|
|
|
|
|
last_name: number
|
2025-12-04 21:05:57 +03:30
|
|
|
email: number
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number: number
|
2025-12-04 21:05:57 +03:30
|
|
|
address: number
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active: number
|
|
|
|
|
account_id: number
|
|
|
|
|
complex_id: number
|
|
|
|
|
created_at: number
|
|
|
|
|
updated_at: number
|
|
|
|
|
deleted_at: number
|
2025-12-04 21:05:57 +03:30
|
|
|
_all: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type CustomerMinAggregateInputType = {
|
|
|
|
|
id?: true
|
2026-02-12 20:31:04 +03:30
|
|
|
first_name?: true
|
|
|
|
|
last_name?: true
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: true
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: true
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: true
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: true
|
|
|
|
|
account_id?: true
|
|
|
|
|
complex_id?: true
|
|
|
|
|
created_at?: true
|
|
|
|
|
updated_at?: true
|
|
|
|
|
deleted_at?: true
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerMaxAggregateInputType = {
|
|
|
|
|
id?: true
|
2026-02-12 20:31:04 +03:30
|
|
|
first_name?: true
|
|
|
|
|
last_name?: true
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: true
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: true
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: true
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: true
|
|
|
|
|
account_id?: true
|
|
|
|
|
complex_id?: true
|
|
|
|
|
created_at?: true
|
|
|
|
|
updated_at?: true
|
|
|
|
|
deleted_at?: true
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerCountAggregateInputType = {
|
|
|
|
|
id?: true
|
2026-02-12 20:31:04 +03:30
|
|
|
first_name?: true
|
|
|
|
|
last_name?: true
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: true
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: true
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: true
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: true
|
|
|
|
|
account_id?: true
|
|
|
|
|
complex_id?: true
|
|
|
|
|
created_at?: true
|
|
|
|
|
updated_at?: true
|
|
|
|
|
deleted_at?: true
|
2025-12-04 21:05:57 +03:30
|
|
|
_all?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Filter which Customer to aggregate.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.CustomerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of Customers to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.CustomerOrderByWithRelationInput | Prisma.CustomerOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the start position
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.CustomerWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` Customers 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` Customers.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Count returned Customers
|
|
|
|
|
**/
|
|
|
|
|
_count?: true | CustomerCountAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to find the minimum value
|
|
|
|
|
**/
|
|
|
|
|
_min?: CustomerMinAggregateInputType
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
|
|
|
*
|
|
|
|
|
* Select which fields to find the maximum value
|
|
|
|
|
**/
|
|
|
|
|
_max?: CustomerMaxAggregateInputType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type GetCustomerAggregateType<T extends CustomerAggregateArgs> = {
|
|
|
|
|
[P in keyof T & keyof AggregateCustomer]: P extends '_count' | 'count'
|
|
|
|
|
? T[P] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregateCustomer[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], AggregateCustomer[P]>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type CustomerGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
where?: Prisma.CustomerWhereInput
|
|
|
|
|
orderBy?: Prisma.CustomerOrderByWithAggregationInput | Prisma.CustomerOrderByWithAggregationInput[]
|
|
|
|
|
by: Prisma.CustomerScalarFieldEnum[] | Prisma.CustomerScalarFieldEnum
|
|
|
|
|
having?: Prisma.CustomerScalarWhereWithAggregatesInput
|
|
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
|
|
|
|
_count?: CustomerCountAggregateInputType | true
|
|
|
|
|
_min?: CustomerMinAggregateInputType
|
|
|
|
|
_max?: CustomerMaxAggregateInputType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerGroupByOutputType = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id: string
|
|
|
|
|
first_name: string
|
|
|
|
|
last_name: string
|
2025-12-04 21:05:57 +03:30
|
|
|
email: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number: string
|
2025-12-04 21:05:57 +03:30
|
|
|
address: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active: boolean
|
|
|
|
|
account_id: string
|
|
|
|
|
complex_id: string
|
|
|
|
|
created_at: Date
|
|
|
|
|
updated_at: Date
|
|
|
|
|
deleted_at: Date | null
|
2025-12-04 21:05:57 +03:30
|
|
|
_count: CustomerCountAggregateOutputType | null
|
|
|
|
|
_min: CustomerMinAggregateOutputType | null
|
|
|
|
|
_max: CustomerMaxAggregateOutputType | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetCustomerGroupByPayload<T extends CustomerGroupByArgs> = Prisma.PrismaPromise<
|
|
|
|
|
Array<
|
|
|
|
|
Prisma.PickEnumerable<CustomerGroupByOutputType, T['by']> &
|
|
|
|
|
{
|
|
|
|
|
[P in ((keyof T) & (keyof CustomerGroupByOutputType))]: P extends '_count'
|
|
|
|
|
? T[P] extends boolean
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T[P], CustomerGroupByOutputType[P]>
|
|
|
|
|
: Prisma.GetScalarType<T[P], CustomerGroupByOutputType[P]>
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type CustomerWhereInput = {
|
|
|
|
|
AND?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
|
|
|
|
|
OR?: Prisma.CustomerWhereInput[]
|
|
|
|
|
NOT?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringFilter<"Customer"> | string
|
|
|
|
|
first_name?: Prisma.StringFilter<"Customer"> | string
|
|
|
|
|
last_name?: Prisma.StringFilter<"Customer"> | string
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: Prisma.StringNullableFilter<"Customer"> | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: Prisma.StringFilter<"Customer"> | string
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: Prisma.StringNullableFilter<"Customer"> | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: Prisma.BoolFilter<"Customer"> | boolean
|
|
|
|
|
account_id?: Prisma.StringFilter<"Customer"> | string
|
|
|
|
|
complex_id?: Prisma.StringFilter<"Customer"> | string
|
|
|
|
|
created_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
|
|
|
|
deleted_at?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
|
|
|
|
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerOrderByWithRelationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
first_name?: Prisma.SortOrder
|
|
|
|
|
last_name?: Prisma.SortOrder
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: Prisma.SortOrder
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: Prisma.SortOrder
|
|
|
|
|
account_id?: Prisma.SortOrder
|
|
|
|
|
complex_id?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
|
|
|
|
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
|
|
|
sales_invoices?: Prisma.SalesInvoiceOrderByRelationAggregateInput
|
2025-12-04 21:05:57 +03:30
|
|
|
_relevance?: Prisma.CustomerOrderByRelevanceInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerWhereUniqueInput = Prisma.AtLeast<{
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: string
|
|
|
|
|
mobile_number?: string
|
2025-12-04 21:05:57 +03:30
|
|
|
AND?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
|
|
|
|
|
OR?: Prisma.CustomerWhereInput[]
|
|
|
|
|
NOT?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
|
2026-02-12 20:31:04 +03:30
|
|
|
first_name?: Prisma.StringFilter<"Customer"> | string
|
|
|
|
|
last_name?: Prisma.StringFilter<"Customer"> | string
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: Prisma.StringNullableFilter<"Customer"> | string | null
|
|
|
|
|
address?: Prisma.StringNullableFilter<"Customer"> | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: Prisma.BoolFilter<"Customer"> | boolean
|
|
|
|
|
account_id?: Prisma.StringFilter<"Customer"> | string
|
|
|
|
|
complex_id?: Prisma.StringFilter<"Customer"> | string
|
|
|
|
|
created_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFilter<"Customer"> | Date | string
|
|
|
|
|
deleted_at?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
|
|
|
|
sales_invoices?: Prisma.SalesInvoiceListRelationFilter
|
|
|
|
|
}, "id" | "mobile_number">
|
2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
export type CustomerOrderByWithAggregationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
first_name?: Prisma.SortOrder
|
|
|
|
|
last_name?: Prisma.SortOrder
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: Prisma.SortOrder
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: Prisma.SortOrderInput | Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: Prisma.SortOrder
|
|
|
|
|
account_id?: Prisma.SortOrder
|
|
|
|
|
complex_id?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
|
|
|
|
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
|
2025-12-04 21:05:57 +03:30
|
|
|
_count?: Prisma.CustomerCountOrderByAggregateInput
|
|
|
|
|
_max?: Prisma.CustomerMaxOrderByAggregateInput
|
|
|
|
|
_min?: Prisma.CustomerMinOrderByAggregateInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerScalarWhereWithAggregatesInput = {
|
|
|
|
|
AND?: Prisma.CustomerScalarWhereWithAggregatesInput | Prisma.CustomerScalarWhereWithAggregatesInput[]
|
|
|
|
|
OR?: Prisma.CustomerScalarWhereWithAggregatesInput[]
|
|
|
|
|
NOT?: Prisma.CustomerScalarWhereWithAggregatesInput | Prisma.CustomerScalarWhereWithAggregatesInput[]
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
|
|
|
|
first_name?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
|
|
|
|
last_name?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: Prisma.BoolWithAggregatesFilter<"Customer"> | boolean
|
|
|
|
|
account_id?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
|
|
|
|
complex_id?: Prisma.StringWithAggregatesFilter<"Customer"> | string
|
|
|
|
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string
|
|
|
|
|
deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Customer"> | Date | string | null
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerCreateInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: string
|
|
|
|
|
first_name: string
|
|
|
|
|
last_name: string
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number: string
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: boolean
|
|
|
|
|
account_id: string
|
|
|
|
|
complex_id: string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
deleted_at?: Date | string | null
|
|
|
|
|
sales_invoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerUncheckedCreateInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: string
|
|
|
|
|
first_name: string
|
|
|
|
|
last_name: string
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number: string
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: boolean
|
|
|
|
|
account_id: string
|
|
|
|
|
complex_id: string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
deleted_at?: Date | string | null
|
|
|
|
|
sales_invoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerUpdateInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
|
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
|
|
|
sales_invoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerUncheckedUpdateInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
|
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
|
|
|
sales_invoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerCreateManyInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: string
|
|
|
|
|
first_name: string
|
|
|
|
|
last_name: string
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number: string
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: boolean
|
|
|
|
|
account_id: string
|
|
|
|
|
complex_id: string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
deleted_at?: Date | string | null
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerUpdateManyMutationInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
|
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerUncheckedUpdateManyInput = {
|
2026-02-12 20:31:04 +03:30
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
|
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerOrderByRelevanceInput = {
|
|
|
|
|
fields: Prisma.CustomerOrderByRelevanceFieldEnum | Prisma.CustomerOrderByRelevanceFieldEnum[]
|
|
|
|
|
sort: Prisma.SortOrder
|
|
|
|
|
search: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerCountOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
first_name?: Prisma.SortOrder
|
|
|
|
|
last_name?: Prisma.SortOrder
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: Prisma.SortOrder
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: Prisma.SortOrder
|
|
|
|
|
account_id?: Prisma.SortOrder
|
|
|
|
|
complex_id?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
|
|
|
|
deleted_at?: Prisma.SortOrder
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerMaxOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
first_name?: Prisma.SortOrder
|
|
|
|
|
last_name?: Prisma.SortOrder
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: Prisma.SortOrder
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: Prisma.SortOrder
|
|
|
|
|
account_id?: Prisma.SortOrder
|
|
|
|
|
complex_id?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
|
|
|
|
deleted_at?: Prisma.SortOrder
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerMinOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
first_name?: Prisma.SortOrder
|
|
|
|
|
last_name?: Prisma.SortOrder
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: Prisma.SortOrder
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: Prisma.SortOrder
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: Prisma.SortOrder
|
|
|
|
|
account_id?: Prisma.SortOrder
|
|
|
|
|
complex_id?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
updated_at?: Prisma.SortOrder
|
|
|
|
|
deleted_at?: Prisma.SortOrder
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type CustomerNullableScalarRelationFilter = {
|
|
|
|
|
is?: Prisma.CustomerWhereInput | null
|
|
|
|
|
isNot?: Prisma.CustomerWhereInput | null
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type StringFieldUpdateOperationsInput = {
|
|
|
|
|
set?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type NullableStringFieldUpdateOperationsInput = {
|
|
|
|
|
set?: string | null
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-04 13:49:07 +03:30
|
|
|
export type BoolFieldUpdateOperationsInput = {
|
|
|
|
|
set?: boolean
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type DateTimeFieldUpdateOperationsInput = {
|
|
|
|
|
set?: Date | string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type NullableDateTimeFieldUpdateOperationsInput = {
|
|
|
|
|
set?: Date | string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerCreateNestedOneWithoutSales_invoicesInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.CustomerCreateWithoutSales_invoicesInput, Prisma.CustomerUncheckedCreateWithoutSales_invoicesInput>
|
|
|
|
|
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutSales_invoicesInput
|
2025-12-09 13:59:07 +03:30
|
|
|
connect?: Prisma.CustomerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type CustomerUpdateOneWithoutSales_invoicesNestedInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.CustomerCreateWithoutSales_invoicesInput, Prisma.CustomerUncheckedCreateWithoutSales_invoicesInput>
|
|
|
|
|
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutSales_invoicesInput
|
|
|
|
|
upsert?: Prisma.CustomerUpsertWithoutSales_invoicesInput
|
2025-12-09 13:59:07 +03:30
|
|
|
disconnect?: Prisma.CustomerWhereInput | boolean
|
|
|
|
|
delete?: Prisma.CustomerWhereInput | boolean
|
|
|
|
|
connect?: Prisma.CustomerWhereUniqueInput
|
2026-02-12 20:31:04 +03:30
|
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutSales_invoicesInput, Prisma.CustomerUpdateWithoutSales_invoicesInput>, Prisma.CustomerUncheckedUpdateWithoutSales_invoicesInput>
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type CustomerCreateWithoutSales_invoicesInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
first_name: string
|
|
|
|
|
last_name: string
|
2025-12-09 13:59:07 +03:30
|
|
|
email?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number: string
|
2025-12-09 13:59:07 +03:30
|
|
|
address?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: boolean
|
|
|
|
|
account_id: string
|
|
|
|
|
complex_id: string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
deleted_at?: Date | string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerUncheckedCreateWithoutSales_invoicesInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
first_name: string
|
|
|
|
|
last_name: string
|
2025-12-09 13:59:07 +03:30
|
|
|
email?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number: string
|
2025-12-09 13:59:07 +03:30
|
|
|
address?: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: boolean
|
|
|
|
|
account_id: string
|
|
|
|
|
complex_id: string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
updated_at?: Date | string
|
|
|
|
|
deleted_at?: Date | string | null
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type CustomerCreateOrConnectWithoutSales_invoicesInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
where: Prisma.CustomerWhereUniqueInput
|
2026-02-12 20:31:04 +03:30
|
|
|
create: Prisma.XOR<Prisma.CustomerCreateWithoutSales_invoicesInput, Prisma.CustomerUncheckedCreateWithoutSales_invoicesInput>
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type CustomerUpsertWithoutSales_invoicesInput = {
|
|
|
|
|
update: Prisma.XOR<Prisma.CustomerUpdateWithoutSales_invoicesInput, Prisma.CustomerUncheckedUpdateWithoutSales_invoicesInput>
|
|
|
|
|
create: Prisma.XOR<Prisma.CustomerCreateWithoutSales_invoicesInput, Prisma.CustomerUncheckedCreateWithoutSales_invoicesInput>
|
2025-12-09 13:59:07 +03:30
|
|
|
where?: Prisma.CustomerWhereInput
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type CustomerUpdateToOneWithWhereWithoutSales_invoicesInput = {
|
2025-12-09 13:59:07 +03:30
|
|
|
where?: Prisma.CustomerWhereInput
|
2026-02-12 20:31:04 +03:30
|
|
|
data: Prisma.XOR<Prisma.CustomerUpdateWithoutSales_invoicesInput, Prisma.CustomerUncheckedUpdateWithoutSales_invoicesInput>
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type CustomerUpdateWithoutSales_invoicesInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
2025-12-09 13:59:07 +03:30
|
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
2025-12-09 13:59:07 +03:30
|
|
|
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
|
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerUncheckedUpdateWithoutSales_invoicesInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
first_name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
last_name?: Prisma.StringFieldUpdateOperationsInput | string
|
2025-12-09 13:59:07 +03:30
|
|
|
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
|
2025-12-09 13:59:07 +03:30
|
|
|
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
|
|
|
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Count Type CustomerCountOutputType
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
export type CustomerCountOutputType = {
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoices: number
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoices?: boolean | CustomerCountOutputTypeCountSales_invoicesArgs
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* CustomerCountOutputType without action
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the CustomerCountOutputType
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerCountOutputTypeSelect<ExtArgs> | null
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-23 20:35:44 +03:30
|
|
|
/**
|
|
|
|
|
* CustomerCountOutputType without action
|
|
|
|
|
*/
|
2026-02-12 20:31:04 +03:30
|
|
|
export type CustomerCountOutputTypeCountSales_invoicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2025-12-30 21:04:01 +03:30
|
|
|
where?: Prisma.SalesInvoiceWhereInput
|
2025-12-23 20:35:44 +03:30
|
|
|
}
|
|
|
|
|
|
2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
export type CustomerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
|
|
|
id?: boolean
|
2026-02-12 20:31:04 +03:30
|
|
|
first_name?: boolean
|
|
|
|
|
last_name?: boolean
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: boolean
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: boolean
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: boolean
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: boolean
|
|
|
|
|
account_id?: boolean
|
|
|
|
|
complex_id?: boolean
|
|
|
|
|
created_at?: boolean
|
|
|
|
|
updated_at?: boolean
|
|
|
|
|
deleted_at?: boolean
|
|
|
|
|
sales_invoices?: boolean | Prisma.Customer$sales_invoicesArgs<ExtArgs>
|
2025-12-09 13:59:07 +03:30
|
|
|
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
2025-12-04 21:05:57 +03:30
|
|
|
}, ExtArgs["result"]["customer"]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type CustomerSelectScalar = {
|
|
|
|
|
id?: boolean
|
2026-02-12 20:31:04 +03:30
|
|
|
first_name?: boolean
|
|
|
|
|
last_name?: boolean
|
2025-12-04 21:05:57 +03:30
|
|
|
email?: boolean
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number?: boolean
|
2025-12-04 21:05:57 +03:30
|
|
|
address?: boolean
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active?: boolean
|
|
|
|
|
account_id?: boolean
|
|
|
|
|
complex_id?: boolean
|
|
|
|
|
created_at?: boolean
|
|
|
|
|
updated_at?: boolean
|
|
|
|
|
deleted_at?: boolean
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
2026-02-12 20:31:04 +03:30
|
|
|
export type CustomerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "first_name" | "last_name" | "email" | "mobile_number" | "address" | "is_active" | "account_id" | "complex_id" | "created_at" | "updated_at" | "deleted_at", ExtArgs["result"]["customer"]>
|
2025-12-09 13:59:07 +03:30
|
|
|
export type CustomerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoices?: boolean | Prisma.Customer$sales_invoicesArgs<ExtArgs>
|
2025-12-09 13:59:07 +03:30
|
|
|
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
|
|
|
|
}
|
2025-12-04 21:05:57 +03:30
|
|
|
|
|
|
|
|
export type $CustomerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
name: "Customer"
|
2025-12-09 13:59:07 +03:30
|
|
|
objects: {
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoices: Prisma.$SalesInvoicePayload<ExtArgs>[]
|
2025-12-09 13:59:07 +03:30
|
|
|
}
|
2025-12-04 21:05:57 +03:30
|
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
2026-02-12 20:31:04 +03:30
|
|
|
id: string
|
|
|
|
|
first_name: string
|
|
|
|
|
last_name: string
|
2025-12-04 21:05:57 +03:30
|
|
|
email: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
mobile_number: string
|
2025-12-04 21:05:57 +03:30
|
|
|
address: string | null
|
2026-02-12 20:31:04 +03:30
|
|
|
is_active: boolean
|
|
|
|
|
account_id: string
|
|
|
|
|
complex_id: string
|
|
|
|
|
created_at: Date
|
|
|
|
|
updated_at: Date
|
|
|
|
|
deleted_at: Date | null
|
2025-12-04 21:05:57 +03:30
|
|
|
}, ExtArgs["result"]["customer"]>
|
|
|
|
|
composites: {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CustomerGetPayload<S extends boolean | null | undefined | CustomerDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CustomerPayload, S>
|
|
|
|
|
|
|
|
|
|
export type CustomerCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
|
|
|
Omit<CustomerFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
|
|
|
select?: CustomerCountAggregateInputType | true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface CustomerDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
|
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Customer'], meta: { name: 'Customer' } }
|
|
|
|
|
/**
|
|
|
|
|
* Find zero or one Customer that matches the filter.
|
|
|
|
|
* @param {CustomerFindUniqueArgs} args - Arguments to find a Customer
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one Customer
|
|
|
|
|
* const customer = await prisma.customer.findUnique({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findUnique<T extends CustomerFindUniqueArgs>(args: Prisma.SelectSubset<T, CustomerFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find one Customer that matches the filter or throw an error with `error.code='P2025'`
|
|
|
|
|
* if no matches were found.
|
|
|
|
|
* @param {CustomerFindUniqueOrThrowArgs} args - Arguments to find a Customer
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one Customer
|
|
|
|
|
* const customer = await prisma.customer.findUniqueOrThrow({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findUniqueOrThrow<T extends CustomerFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CustomerFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find the first Customer 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 {CustomerFindFirstArgs} args - Arguments to find a Customer
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one Customer
|
|
|
|
|
* const customer = await prisma.customer.findFirst({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findFirst<T extends CustomerFindFirstArgs>(args?: Prisma.SelectSubset<T, CustomerFindFirstArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find the first Customer 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 {CustomerFindFirstOrThrowArgs} args - Arguments to find a Customer
|
|
|
|
|
* @example
|
|
|
|
|
* // Get one Customer
|
|
|
|
|
* const customer = await prisma.customer.findFirstOrThrow({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
findFirstOrThrow<T extends CustomerFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CustomerFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Find zero or more Customers 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 {CustomerFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
|
|
|
* @example
|
|
|
|
|
* // Get all Customers
|
|
|
|
|
* const customers = await prisma.customer.findMany()
|
|
|
|
|
*
|
|
|
|
|
* // Get first 10 Customers
|
|
|
|
|
* const customers = await prisma.customer.findMany({ take: 10 })
|
|
|
|
|
*
|
|
|
|
|
* // Only select the `id`
|
|
|
|
|
* const customerWithIdOnly = await prisma.customer.findMany({ select: { id: true } })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
findMany<T extends CustomerFindManyArgs>(args?: Prisma.SelectSubset<T, CustomerFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a Customer.
|
|
|
|
|
* @param {CustomerCreateArgs} args - Arguments to create a Customer.
|
|
|
|
|
* @example
|
|
|
|
|
* // Create one Customer
|
|
|
|
|
* const Customer = await prisma.customer.create({
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... data to create a Customer
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
create<T extends CustomerCreateArgs>(args: Prisma.SelectSubset<T, CustomerCreateArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create many Customers.
|
|
|
|
|
* @param {CustomerCreateManyArgs} args - Arguments to create many Customers.
|
|
|
|
|
* @example
|
|
|
|
|
* // Create many Customers
|
|
|
|
|
* const customer = await prisma.customer.createMany({
|
|
|
|
|
* data: [
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* ]
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
createMany<T extends CustomerCreateManyArgs>(args?: Prisma.SelectSubset<T, CustomerCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delete a Customer.
|
|
|
|
|
* @param {CustomerDeleteArgs} args - Arguments to delete one Customer.
|
|
|
|
|
* @example
|
|
|
|
|
* // Delete one Customer
|
|
|
|
|
* const Customer = await prisma.customer.delete({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... filter to delete one Customer
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
delete<T extends CustomerDeleteArgs>(args: Prisma.SelectSubset<T, CustomerDeleteArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update one Customer.
|
|
|
|
|
* @param {CustomerUpdateArgs} args - Arguments to update one Customer.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update one Customer
|
|
|
|
|
* const customer = await prisma.customer.update({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* },
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
update<T extends CustomerUpdateArgs>(args: Prisma.SelectSubset<T, CustomerUpdateArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Delete zero or more Customers.
|
|
|
|
|
* @param {CustomerDeleteManyArgs} args - Arguments to filter Customers to delete.
|
|
|
|
|
* @example
|
|
|
|
|
* // Delete a few Customers
|
|
|
|
|
* const { count } = await prisma.customer.deleteMany({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
deleteMany<T extends CustomerDeleteManyArgs>(args?: Prisma.SelectSubset<T, CustomerDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Update zero or more Customers.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {CustomerUpdateManyArgs} args - Arguments to update one or more rows.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update many Customers
|
|
|
|
|
* const customer = await prisma.customer.updateMany({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... provide filter here
|
|
|
|
|
* },
|
|
|
|
|
* data: {
|
|
|
|
|
* // ... provide data here
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
updateMany<T extends CustomerUpdateManyArgs>(args: Prisma.SelectSubset<T, CustomerUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create or update one Customer.
|
|
|
|
|
* @param {CustomerUpsertArgs} args - Arguments to update or create a Customer.
|
|
|
|
|
* @example
|
|
|
|
|
* // Update or create a Customer
|
|
|
|
|
* const customer = await prisma.customer.upsert({
|
|
|
|
|
* create: {
|
|
|
|
|
* // ... data to create a Customer
|
|
|
|
|
* },
|
|
|
|
|
* update: {
|
|
|
|
|
* // ... in case it already exists, update
|
|
|
|
|
* },
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... the filter for the Customer we want to update
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
*/
|
|
|
|
|
upsert<T extends CustomerUpsertArgs>(args: Prisma.SelectSubset<T, CustomerUpsertArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Count the number of Customers.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {CustomerCountArgs} args - Arguments to filter Customers to count.
|
|
|
|
|
* @example
|
|
|
|
|
* // Count the number of Customers
|
|
|
|
|
* const count = await prisma.customer.count({
|
|
|
|
|
* where: {
|
|
|
|
|
* // ... the filter for the Customers we want to count
|
|
|
|
|
* }
|
|
|
|
|
* })
|
|
|
|
|
**/
|
|
|
|
|
count<T extends CustomerCountArgs>(
|
|
|
|
|
args?: Prisma.Subset<T, CustomerCountArgs>,
|
|
|
|
|
): Prisma.PrismaPromise<
|
|
|
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
|
|
|
? T['select'] extends true
|
|
|
|
|
? number
|
|
|
|
|
: Prisma.GetScalarType<T['select'], CustomerCountAggregateOutputType>
|
|
|
|
|
: number
|
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Allows you to perform aggregations operations on a Customer.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {CustomerAggregateArgs} 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 CustomerAggregateArgs>(args: Prisma.Subset<T, CustomerAggregateArgs>): Prisma.PrismaPromise<GetCustomerAggregateType<T>>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Group by Customer.
|
|
|
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
|
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
|
|
|
* @param {CustomerGroupByArgs} 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 CustomerGroupByArgs,
|
|
|
|
|
HasSelectOrTake extends Prisma.Or<
|
|
|
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
|
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
|
|
|
>,
|
|
|
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
|
|
|
? { orderBy: CustomerGroupByArgs['orderBy'] }
|
|
|
|
|
: { orderBy?: CustomerGroupByArgs['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, CustomerGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCustomerGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
|
|
|
/**
|
|
|
|
|
* Fields of the Customer model
|
|
|
|
|
*/
|
|
|
|
|
readonly fields: CustomerFieldRefs;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The delegate class that acts as a "Promise-like" for Customer.
|
|
|
|
|
* 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__CustomerClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
|
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
2026-02-12 20:31:04 +03:30
|
|
|
sales_invoices<T extends Prisma.Customer$sales_invoicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$sales_invoicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
2025-12-04 21:05:57 +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 Customer model
|
|
|
|
|
*/
|
|
|
|
|
export interface CustomerFieldRefs {
|
2026-02-12 20:31:04 +03:30
|
|
|
readonly id: Prisma.FieldRef<"Customer", 'String'>
|
|
|
|
|
readonly first_name: Prisma.FieldRef<"Customer", 'String'>
|
|
|
|
|
readonly last_name: Prisma.FieldRef<"Customer", 'String'>
|
2025-12-04 21:05:57 +03:30
|
|
|
readonly email: Prisma.FieldRef<"Customer", 'String'>
|
2026-02-12 20:31:04 +03:30
|
|
|
readonly mobile_number: Prisma.FieldRef<"Customer", 'String'>
|
2025-12-04 21:05:57 +03:30
|
|
|
readonly address: Prisma.FieldRef<"Customer", 'String'>
|
2026-02-12 20:31:04 +03:30
|
|
|
readonly is_active: Prisma.FieldRef<"Customer", 'Boolean'>
|
|
|
|
|
readonly account_id: Prisma.FieldRef<"Customer", 'String'>
|
|
|
|
|
readonly complex_id: Prisma.FieldRef<"Customer", 'String'>
|
|
|
|
|
readonly created_at: Prisma.FieldRef<"Customer", 'DateTime'>
|
|
|
|
|
readonly updated_at: Prisma.FieldRef<"Customer", 'DateTime'>
|
|
|
|
|
readonly deleted_at: Prisma.FieldRef<"Customer", 'DateTime'>
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Custom InputTypes
|
|
|
|
|
/**
|
|
|
|
|
* Customer findUnique
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Customer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Customer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerInclude<ExtArgs> | null
|
2025-12-04 21:05:57 +03:30
|
|
|
/**
|
|
|
|
|
* Filter, which Customer to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.CustomerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Customer findUniqueOrThrow
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Customer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Customer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerInclude<ExtArgs> | null
|
2025-12-04 21:05:57 +03:30
|
|
|
/**
|
|
|
|
|
* Filter, which Customer to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.CustomerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Customer findFirst
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Customer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Customer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerInclude<ExtArgs> | null
|
2025-12-04 21:05:57 +03:30
|
|
|
/**
|
|
|
|
|
* Filter, which Customer to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.CustomerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of Customers to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.CustomerOrderByWithRelationInput | Prisma.CustomerOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for searching for Customers.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.CustomerWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` Customers 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` Customers.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of Customers.
|
|
|
|
|
*/
|
|
|
|
|
distinct?: Prisma.CustomerScalarFieldEnum | Prisma.CustomerScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Customer findFirstOrThrow
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Customer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Customer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerInclude<ExtArgs> | null
|
2025-12-04 21:05:57 +03:30
|
|
|
/**
|
|
|
|
|
* Filter, which Customer to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.CustomerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of Customers to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.CustomerOrderByWithRelationInput | Prisma.CustomerOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for searching for Customers.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.CustomerWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` Customers 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` Customers.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
|
|
|
*
|
|
|
|
|
* Filter by unique combinations of Customers.
|
|
|
|
|
*/
|
|
|
|
|
distinct?: Prisma.CustomerScalarFieldEnum | Prisma.CustomerScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Customer findMany
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Customer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Customer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerInclude<ExtArgs> | null
|
2025-12-04 21:05:57 +03:30
|
|
|
/**
|
|
|
|
|
* Filter, which Customers to fetch.
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.CustomerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
|
|
|
*
|
|
|
|
|
* Determine the order of Customers to fetch.
|
|
|
|
|
*/
|
|
|
|
|
orderBy?: Prisma.CustomerOrderByWithRelationInput | Prisma.CustomerOrderByWithRelationInput[]
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
|
|
|
*
|
|
|
|
|
* Sets the position for listing Customers.
|
|
|
|
|
*/
|
|
|
|
|
cursor?: Prisma.CustomerWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
|
|
|
*
|
|
|
|
|
* Take `±n` Customers 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` Customers.
|
|
|
|
|
*/
|
|
|
|
|
skip?: number
|
|
|
|
|
distinct?: Prisma.CustomerScalarFieldEnum | Prisma.CustomerScalarFieldEnum[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Customer create
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Customer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Customer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerInclude<ExtArgs> | null
|
2025-12-04 21:05:57 +03:30
|
|
|
/**
|
|
|
|
|
* The data needed to create a Customer.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.CustomerCreateInput, Prisma.CustomerUncheckedCreateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Customer createMany
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to create many Customers.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.CustomerCreateManyInput | Prisma.CustomerCreateManyInput[]
|
|
|
|
|
skipDuplicates?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Customer update
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Customer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Customer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerInclude<ExtArgs> | null
|
2025-12-04 21:05:57 +03:30
|
|
|
/**
|
|
|
|
|
* The data needed to update a Customer.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.CustomerUpdateInput, Prisma.CustomerUncheckedUpdateInput>
|
|
|
|
|
/**
|
|
|
|
|
* Choose, which Customer to update.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.CustomerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Customer updateMany
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* The data used to update Customers.
|
|
|
|
|
*/
|
|
|
|
|
data: Prisma.XOR<Prisma.CustomerUpdateManyMutationInput, Prisma.CustomerUncheckedUpdateManyInput>
|
|
|
|
|
/**
|
|
|
|
|
* Filter which Customers to update
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.CustomerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many Customers to update.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Customer upsert
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Customer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Customer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerInclude<ExtArgs> | null
|
2025-12-04 21:05:57 +03:30
|
|
|
/**
|
|
|
|
|
* The filter to search for the Customer to update in case it exists.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.CustomerWhereUniqueInput
|
|
|
|
|
/**
|
|
|
|
|
* In case the Customer found by the `where` argument doesn't exist, create a new Customer with this data.
|
|
|
|
|
*/
|
|
|
|
|
create: Prisma.XOR<Prisma.CustomerCreateInput, Prisma.CustomerUncheckedCreateInput>
|
|
|
|
|
/**
|
|
|
|
|
* In case the Customer was found with the provided `where` argument, update it with this data.
|
|
|
|
|
*/
|
|
|
|
|
update: Prisma.XOR<Prisma.CustomerUpdateInput, Prisma.CustomerUncheckedUpdateInput>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Customer delete
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Customer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Customer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerInclude<ExtArgs> | null
|
2025-12-04 21:05:57 +03:30
|
|
|
/**
|
|
|
|
|
* Filter which Customer to delete.
|
|
|
|
|
*/
|
|
|
|
|
where: Prisma.CustomerWhereUniqueInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Customer deleteMany
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Filter which Customers to delete
|
|
|
|
|
*/
|
|
|
|
|
where?: Prisma.CustomerWhereInput
|
|
|
|
|
/**
|
|
|
|
|
* Limit how many Customers to delete.
|
|
|
|
|
*/
|
|
|
|
|
limit?: number
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-23 20:35:44 +03:30
|
|
|
/**
|
2026-02-12 20:31:04 +03:30
|
|
|
* Customer.sales_invoices
|
2025-12-23 20:35:44 +03:30
|
|
|
*/
|
2026-02-12 20:31:04 +03:30
|
|
|
export type Customer$sales_invoicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
2025-12-23 20:35:44 +03:30
|
|
|
/**
|
2025-12-30 21:04:01 +03:30
|
|
|
* Select specific fields to fetch from the SalesInvoice
|
2025-12-23 20:35:44 +03:30
|
|
|
*/
|
2025-12-30 21:04:01 +03:30
|
|
|
select?: Prisma.SalesInvoiceSelect<ExtArgs> | null
|
2025-12-23 20:35:44 +03:30
|
|
|
/**
|
2025-12-30 21:04:01 +03:30
|
|
|
* Omit specific fields from the SalesInvoice
|
2025-12-23 20:35:44 +03:30
|
|
|
*/
|
2025-12-30 21:04:01 +03:30
|
|
|
omit?: Prisma.SalesInvoiceOmit<ExtArgs> | null
|
2025-12-23 20:35:44 +03:30
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
2025-12-30 21:04:01 +03:30
|
|
|
include?: Prisma.SalesInvoiceInclude<ExtArgs> | null
|
|
|
|
|
where?: Prisma.SalesInvoiceWhereInput
|
|
|
|
|
orderBy?: Prisma.SalesInvoiceOrderByWithRelationInput | Prisma.SalesInvoiceOrderByWithRelationInput[]
|
|
|
|
|
cursor?: Prisma.SalesInvoiceWhereUniqueInput
|
2025-12-23 20:35:44 +03:30
|
|
|
take?: number
|
|
|
|
|
skip?: number
|
2025-12-30 21:04:01 +03:30
|
|
|
distinct?: Prisma.SalesInvoiceScalarFieldEnum | Prisma.SalesInvoiceScalarFieldEnum[]
|
2025-12-23 20:35:44 +03:30
|
|
|
}
|
|
|
|
|
|
2025-12-04 21:05:57 +03:30
|
|
|
/**
|
|
|
|
|
* Customer without action
|
|
|
|
|
*/
|
|
|
|
|
export type CustomerDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
/**
|
|
|
|
|
* Select specific fields to fetch from the Customer
|
|
|
|
|
*/
|
|
|
|
|
select?: Prisma.CustomerSelect<ExtArgs> | null
|
|
|
|
|
/**
|
|
|
|
|
* Omit specific fields from the Customer
|
|
|
|
|
*/
|
|
|
|
|
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
2025-12-09 13:59:07 +03:30
|
|
|
/**
|
|
|
|
|
* Choose, which related nodes to fetch as well
|
|
|
|
|
*/
|
|
|
|
|
include?: Prisma.CustomerInclude<ExtArgs> | null
|
2025-12-04 21:05:57 +03:30
|
|
|
}
|