feat: add config module with controller and service

- Implemented ConfigController for handling config-related requests.
- Created ConfigService for business logic related to configurations.
- Added CreateConfigDto for validating configuration data.

feat: add good categories module with controller and service

- Implemented GoodCategoriesController for managing good categories.
- Created GoodCategoriesService for business logic related to good categories.
- Added CreateGoodCategoryDto for validating good category data.

feat: add goods module with controller and service

- Implemented GoodsController for managing goods.
- Created GoodsService for business logic related to goods.
- Added CreateGoodDto for validating good data.

feat: add profile module with controller and service

- Implemented ProfileController for managing user profiles.
- Created ProfileService for business logic related to profiles.
- Added CreateProfileDto for profile data structure.

feat: add sales invoice payments module with controller and service

- Implemented SalesInvoicePaymentsController for managing invoice payments.
- Created SalesInvoicePaymentsService for business logic related to payments.
- Added CreateSalesInvoicePaymentDto for validating payment data.

feat: add service categories module with controller and service

- Implemented ServiceCategoriesController for managing service categories.
- Created ServiceCategoriesService for business logic related to service categories.
- Added CreateServiceCategoryDto for validating service category data.

feat: add services module with controller and service

- Implemented ServicesController for managing services.
- Created ServicesService for business logic related to services.
- Added CreateServiceDto for validating service data.

feat: add trigger logs module with controller and service

- Implemented TriggerLogsController for managing trigger logs.
- Created TriggerLogsService for business logic related to trigger logs.
- Added CreateTriggerLogDto for validating trigger log data.

feat: add uploaders module for handling file uploads

- Implemented UploadersController for managing file uploads.
- Created ImageUploaderService for image upload logic.
- Created UploaderService for file handling and storage.
This commit is contained in:
2026-02-12 20:31:04 +03:30
parent de14d531e1
commit a073af76fe
116 changed files with 6108 additions and 3977 deletions
+342 -305
View File
@@ -20,106 +20,100 @@ export type CustomerModel = runtime.Types.Result.DefaultSelection<Prisma.$Custom
export type AggregateCustomer = {
_count: CustomerCountAggregateOutputType | null
_avg: CustomerAvgAggregateOutputType | null
_sum: CustomerSumAggregateOutputType | null
_min: CustomerMinAggregateOutputType | null
_max: CustomerMaxAggregateOutputType | null
}
export type CustomerAvgAggregateOutputType = {
id: number | null
}
export type CustomerSumAggregateOutputType = {
id: number | null
}
export type CustomerMinAggregateOutputType = {
id: number | null
firstName: string | null
lastName: string | null
id: string | null
first_name: string | null
last_name: string | null
email: string | null
mobileNumber: string | null
mobile_number: string | null
address: string | null
isActive: boolean | null
createdAt: Date | null
updatedAt: Date | null
deletedAt: Date | null
is_active: boolean | null
account_id: string | null
complex_id: string | null
created_at: Date | null
updated_at: Date | null
deleted_at: Date | null
}
export type CustomerMaxAggregateOutputType = {
id: number | null
firstName: string | null
lastName: string | null
id: string | null
first_name: string | null
last_name: string | null
email: string | null
mobileNumber: string | null
mobile_number: string | null
address: string | null
isActive: boolean | null
createdAt: Date | null
updatedAt: Date | null
deletedAt: Date | null
is_active: boolean | null
account_id: string | null
complex_id: string | null
created_at: Date | null
updated_at: Date | null
deleted_at: Date | null
}
export type CustomerCountAggregateOutputType = {
id: number
firstName: number
lastName: number
first_name: number
last_name: number
email: number
mobileNumber: number
mobile_number: number
address: number
isActive: number
createdAt: number
updatedAt: number
deletedAt: number
is_active: number
account_id: number
complex_id: number
created_at: number
updated_at: number
deleted_at: number
_all: number
}
export type CustomerAvgAggregateInputType = {
id?: true
}
export type CustomerSumAggregateInputType = {
id?: true
}
export type CustomerMinAggregateInputType = {
id?: true
firstName?: true
lastName?: true
first_name?: true
last_name?: true
email?: true
mobileNumber?: true
mobile_number?: true
address?: true
isActive?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
is_active?: true
account_id?: true
complex_id?: true
created_at?: true
updated_at?: true
deleted_at?: true
}
export type CustomerMaxAggregateInputType = {
id?: true
firstName?: true
lastName?: true
first_name?: true
last_name?: true
email?: true
mobileNumber?: true
mobile_number?: true
address?: true
isActive?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
is_active?: true
account_id?: true
complex_id?: true
created_at?: true
updated_at?: true
deleted_at?: true
}
export type CustomerCountAggregateInputType = {
id?: true
firstName?: true
lastName?: true
first_name?: true
last_name?: true
email?: true
mobileNumber?: true
mobile_number?: true
address?: true
isActive?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
is_active?: true
account_id?: true
complex_id?: true
created_at?: true
updated_at?: true
deleted_at?: true
_all?: true
}
@@ -158,18 +152,6 @@ export type CustomerAggregateArgs<ExtArgs extends runtime.Types.Extensions.Inter
* Count returned Customers
**/
_count?: true | CustomerCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: CustomerAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: CustomerSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
@@ -203,26 +185,24 @@ export type CustomerGroupByArgs<ExtArgs extends runtime.Types.Extensions.Interna
take?: number
skip?: number
_count?: CustomerCountAggregateInputType | true
_avg?: CustomerAvgAggregateInputType
_sum?: CustomerSumAggregateInputType
_min?: CustomerMinAggregateInputType
_max?: CustomerMaxAggregateInputType
}
export type CustomerGroupByOutputType = {
id: number
firstName: string
lastName: string
id: string
first_name: string
last_name: string
email: string | null
mobileNumber: string
mobile_number: string
address: string | null
isActive: boolean
createdAt: Date
updatedAt: Date
deletedAt: Date | null
is_active: boolean
account_id: string
complex_id: string
created_at: Date
updated_at: Date
deleted_at: Date | null
_count: CustomerCountAggregateOutputType | null
_avg: CustomerAvgAggregateOutputType | null
_sum: CustomerSumAggregateOutputType | null
_min: CustomerMinAggregateOutputType | null
_max: CustomerMaxAggregateOutputType | null
}
@@ -246,175 +226,200 @@ export type CustomerWhereInput = {
AND?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
OR?: Prisma.CustomerWhereInput[]
NOT?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
id?: Prisma.IntFilter<"Customer"> | number
firstName?: Prisma.StringFilter<"Customer"> | string
lastName?: Prisma.StringFilter<"Customer"> | string
id?: Prisma.StringFilter<"Customer"> | string
first_name?: Prisma.StringFilter<"Customer"> | string
last_name?: Prisma.StringFilter<"Customer"> | string
email?: Prisma.StringNullableFilter<"Customer"> | string | null
mobileNumber?: Prisma.StringFilter<"Customer"> | string
mobile_number?: Prisma.StringFilter<"Customer"> | string
address?: Prisma.StringNullableFilter<"Customer"> | string | null
isActive?: Prisma.BoolFilter<"Customer"> | boolean
createdAt?: Prisma.DateTimeFilter<"Customer"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Customer"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
salesInvoices?: Prisma.SalesInvoiceListRelationFilter
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
}
export type CustomerOrderByWithRelationInput = {
id?: Prisma.SortOrder
firstName?: Prisma.SortOrder
lastName?: Prisma.SortOrder
first_name?: Prisma.SortOrder
last_name?: Prisma.SortOrder
email?: Prisma.SortOrderInput | Prisma.SortOrder
mobileNumber?: Prisma.SortOrder
mobile_number?: Prisma.SortOrder
address?: Prisma.SortOrderInput | Prisma.SortOrder
isActive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
salesInvoices?: Prisma.SalesInvoiceOrderByRelationAggregateInput
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
_relevance?: Prisma.CustomerOrderByRelevanceInput
}
export type CustomerWhereUniqueInput = Prisma.AtLeast<{
id?: number
mobileNumber?: string
id?: string
mobile_number?: string
AND?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
OR?: Prisma.CustomerWhereInput[]
NOT?: Prisma.CustomerWhereInput | Prisma.CustomerWhereInput[]
firstName?: Prisma.StringFilter<"Customer"> | string
lastName?: Prisma.StringFilter<"Customer"> | string
first_name?: Prisma.StringFilter<"Customer"> | string
last_name?: Prisma.StringFilter<"Customer"> | string
email?: Prisma.StringNullableFilter<"Customer"> | string | null
address?: Prisma.StringNullableFilter<"Customer"> | string | null
isActive?: Prisma.BoolFilter<"Customer"> | boolean
createdAt?: Prisma.DateTimeFilter<"Customer"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Customer"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
salesInvoices?: Prisma.SalesInvoiceListRelationFilter
}, "id" | "mobileNumber">
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">
export type CustomerOrderByWithAggregationInput = {
id?: Prisma.SortOrder
firstName?: Prisma.SortOrder
lastName?: Prisma.SortOrder
first_name?: Prisma.SortOrder
last_name?: Prisma.SortOrder
email?: Prisma.SortOrderInput | Prisma.SortOrder
mobileNumber?: Prisma.SortOrder
mobile_number?: Prisma.SortOrder
address?: Prisma.SortOrderInput | Prisma.SortOrder
isActive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
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
_count?: Prisma.CustomerCountOrderByAggregateInput
_avg?: Prisma.CustomerAvgOrderByAggregateInput
_max?: Prisma.CustomerMaxOrderByAggregateInput
_min?: Prisma.CustomerMinOrderByAggregateInput
_sum?: Prisma.CustomerSumOrderByAggregateInput
}
export type CustomerScalarWhereWithAggregatesInput = {
AND?: Prisma.CustomerScalarWhereWithAggregatesInput | Prisma.CustomerScalarWhereWithAggregatesInput[]
OR?: Prisma.CustomerScalarWhereWithAggregatesInput[]
NOT?: Prisma.CustomerScalarWhereWithAggregatesInput | Prisma.CustomerScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"Customer"> | number
firstName?: Prisma.StringWithAggregatesFilter<"Customer"> | string
lastName?: Prisma.StringWithAggregatesFilter<"Customer"> | string
id?: Prisma.StringWithAggregatesFilter<"Customer"> | string
first_name?: Prisma.StringWithAggregatesFilter<"Customer"> | string
last_name?: Prisma.StringWithAggregatesFilter<"Customer"> | string
email?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null
mobileNumber?: Prisma.StringWithAggregatesFilter<"Customer"> | string
mobile_number?: Prisma.StringWithAggregatesFilter<"Customer"> | string
address?: Prisma.StringNullableWithAggregatesFilter<"Customer"> | string | null
isActive?: Prisma.BoolWithAggregatesFilter<"Customer"> | boolean
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Customer"> | Date | string
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Customer"> | Date | string | null
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
}
export type CustomerCreateInput = {
firstName: string
lastName: string
id?: string
first_name: string
last_name: string
email?: string | null
mobileNumber: string
mobile_number: string
address?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
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
}
export type CustomerUncheckedCreateInput = {
id?: number
firstName: string
lastName: string
id?: string
first_name: string
last_name: string
email?: string | null
mobileNumber: string
mobile_number: string
address?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
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
}
export type CustomerUpdateInput = {
firstName?: Prisma.StringFieldUpdateOperationsInput | string
lastName?: Prisma.StringFieldUpdateOperationsInput | string
id?: Prisma.StringFieldUpdateOperationsInput | string
first_name?: Prisma.StringFieldUpdateOperationsInput | string
last_name?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
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
}
export type CustomerUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
firstName?: Prisma.StringFieldUpdateOperationsInput | string
lastName?: Prisma.StringFieldUpdateOperationsInput | string
id?: Prisma.StringFieldUpdateOperationsInput | string
first_name?: Prisma.StringFieldUpdateOperationsInput | string
last_name?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
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
}
export type CustomerCreateManyInput = {
id?: number
firstName: string
lastName: string
id?: string
first_name: string
last_name: string
email?: string | null
mobileNumber: string
mobile_number: string
address?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
is_active?: boolean
account_id: string
complex_id: string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
}
export type CustomerUpdateManyMutationInput = {
firstName?: Prisma.StringFieldUpdateOperationsInput | string
lastName?: Prisma.StringFieldUpdateOperationsInput | string
id?: Prisma.StringFieldUpdateOperationsInput | string
first_name?: Prisma.StringFieldUpdateOperationsInput | string
last_name?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
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 CustomerUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
firstName?: Prisma.StringFieldUpdateOperationsInput | string
lastName?: Prisma.StringFieldUpdateOperationsInput | string
id?: Prisma.StringFieldUpdateOperationsInput | string
first_name?: Prisma.StringFieldUpdateOperationsInput | string
last_name?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
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 CustomerOrderByRelevanceInput = {
@@ -425,49 +430,47 @@ export type CustomerOrderByRelevanceInput = {
export type CustomerCountOrderByAggregateInput = {
id?: Prisma.SortOrder
firstName?: Prisma.SortOrder
lastName?: Prisma.SortOrder
first_name?: Prisma.SortOrder
last_name?: Prisma.SortOrder
email?: Prisma.SortOrder
mobileNumber?: Prisma.SortOrder
mobile_number?: Prisma.SortOrder
address?: Prisma.SortOrder
isActive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
}
export type CustomerAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
is_active?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrder
}
export type CustomerMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
firstName?: Prisma.SortOrder
lastName?: Prisma.SortOrder
first_name?: Prisma.SortOrder
last_name?: Prisma.SortOrder
email?: Prisma.SortOrder
mobileNumber?: Prisma.SortOrder
mobile_number?: Prisma.SortOrder
address?: Prisma.SortOrder
isActive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
is_active?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrder
}
export type CustomerMinOrderByAggregateInput = {
id?: Prisma.SortOrder
firstName?: Prisma.SortOrder
lastName?: Prisma.SortOrder
first_name?: Prisma.SortOrder
last_name?: Prisma.SortOrder
email?: Prisma.SortOrder
mobileNumber?: Prisma.SortOrder
mobile_number?: Prisma.SortOrder
address?: Prisma.SortOrder
isActive?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
}
export type CustomerSumOrderByAggregateInput = {
id?: Prisma.SortOrder
is_active?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrder
}
export type CustomerNullableScalarRelationFilter = {
@@ -475,90 +478,116 @@ export type CustomerNullableScalarRelationFilter = {
isNot?: Prisma.CustomerWhereInput | null
}
export type StringFieldUpdateOperationsInput = {
set?: string
}
export type NullableStringFieldUpdateOperationsInput = {
set?: string | null
}
export type BoolFieldUpdateOperationsInput = {
set?: boolean
}
export type CustomerCreateNestedOneWithoutSalesInvoicesInput = {
create?: Prisma.XOR<Prisma.CustomerCreateWithoutSalesInvoicesInput, Prisma.CustomerUncheckedCreateWithoutSalesInvoicesInput>
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutSalesInvoicesInput
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
connect?: Prisma.CustomerWhereUniqueInput
}
export type CustomerUpdateOneWithoutSalesInvoicesNestedInput = {
create?: Prisma.XOR<Prisma.CustomerCreateWithoutSalesInvoicesInput, Prisma.CustomerUncheckedCreateWithoutSalesInvoicesInput>
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutSalesInvoicesInput
upsert?: Prisma.CustomerUpsertWithoutSalesInvoicesInput
export type CustomerUpdateOneWithoutSales_invoicesNestedInput = {
create?: Prisma.XOR<Prisma.CustomerCreateWithoutSales_invoicesInput, Prisma.CustomerUncheckedCreateWithoutSales_invoicesInput>
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutSales_invoicesInput
upsert?: Prisma.CustomerUpsertWithoutSales_invoicesInput
disconnect?: Prisma.CustomerWhereInput | boolean
delete?: Prisma.CustomerWhereInput | boolean
connect?: Prisma.CustomerWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutSalesInvoicesInput, Prisma.CustomerUpdateWithoutSalesInvoicesInput>, Prisma.CustomerUncheckedUpdateWithoutSalesInvoicesInput>
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutSales_invoicesInput, Prisma.CustomerUpdateWithoutSales_invoicesInput>, Prisma.CustomerUncheckedUpdateWithoutSales_invoicesInput>
}
export type CustomerCreateWithoutSalesInvoicesInput = {
firstName: string
lastName: string
export type CustomerCreateWithoutSales_invoicesInput = {
id?: string
first_name: string
last_name: string
email?: string | null
mobileNumber: string
mobile_number: string
address?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
is_active?: boolean
account_id: string
complex_id: string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
}
export type CustomerUncheckedCreateWithoutSalesInvoicesInput = {
id?: number
firstName: string
lastName: string
export type CustomerUncheckedCreateWithoutSales_invoicesInput = {
id?: string
first_name: string
last_name: string
email?: string | null
mobileNumber: string
mobile_number: string
address?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
is_active?: boolean
account_id: string
complex_id: string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
}
export type CustomerCreateOrConnectWithoutSalesInvoicesInput = {
export type CustomerCreateOrConnectWithoutSales_invoicesInput = {
where: Prisma.CustomerWhereUniqueInput
create: Prisma.XOR<Prisma.CustomerCreateWithoutSalesInvoicesInput, Prisma.CustomerUncheckedCreateWithoutSalesInvoicesInput>
create: Prisma.XOR<Prisma.CustomerCreateWithoutSales_invoicesInput, Prisma.CustomerUncheckedCreateWithoutSales_invoicesInput>
}
export type CustomerUpsertWithoutSalesInvoicesInput = {
update: Prisma.XOR<Prisma.CustomerUpdateWithoutSalesInvoicesInput, Prisma.CustomerUncheckedUpdateWithoutSalesInvoicesInput>
create: Prisma.XOR<Prisma.CustomerCreateWithoutSalesInvoicesInput, Prisma.CustomerUncheckedCreateWithoutSalesInvoicesInput>
export type CustomerUpsertWithoutSales_invoicesInput = {
update: Prisma.XOR<Prisma.CustomerUpdateWithoutSales_invoicesInput, Prisma.CustomerUncheckedUpdateWithoutSales_invoicesInput>
create: Prisma.XOR<Prisma.CustomerCreateWithoutSales_invoicesInput, Prisma.CustomerUncheckedCreateWithoutSales_invoicesInput>
where?: Prisma.CustomerWhereInput
}
export type CustomerUpdateToOneWithWhereWithoutSalesInvoicesInput = {
export type CustomerUpdateToOneWithWhereWithoutSales_invoicesInput = {
where?: Prisma.CustomerWhereInput
data: Prisma.XOR<Prisma.CustomerUpdateWithoutSalesInvoicesInput, Prisma.CustomerUncheckedUpdateWithoutSalesInvoicesInput>
data: Prisma.XOR<Prisma.CustomerUpdateWithoutSales_invoicesInput, Prisma.CustomerUncheckedUpdateWithoutSales_invoicesInput>
}
export type CustomerUpdateWithoutSalesInvoicesInput = {
firstName?: Prisma.StringFieldUpdateOperationsInput | string
lastName?: Prisma.StringFieldUpdateOperationsInput | string
export type CustomerUpdateWithoutSales_invoicesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
first_name?: Prisma.StringFieldUpdateOperationsInput | string
last_name?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
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 CustomerUncheckedUpdateWithoutSalesInvoicesInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
firstName?: Prisma.StringFieldUpdateOperationsInput | string
lastName?: Prisma.StringFieldUpdateOperationsInput | string
export type CustomerUncheckedUpdateWithoutSales_invoicesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
first_name?: Prisma.StringFieldUpdateOperationsInput | string
last_name?: Prisma.StringFieldUpdateOperationsInput | string
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
mobile_number?: Prisma.StringFieldUpdateOperationsInput | string
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
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
}
@@ -567,11 +596,11 @@ export type CustomerUncheckedUpdateWithoutSalesInvoicesInput = {
*/
export type CustomerCountOutputType = {
salesInvoices: number
sales_invoices: number
}
export type CustomerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
salesInvoices?: boolean | CustomerCountOutputTypeCountSalesInvoicesArgs
sales_invoices?: boolean | CustomerCountOutputTypeCountSales_invoicesArgs
}
/**
@@ -587,23 +616,25 @@ export type CustomerCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Ext
/**
* CustomerCountOutputType without action
*/
export type CustomerCountOutputTypeCountSalesInvoicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
export type CustomerCountOutputTypeCountSales_invoicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.SalesInvoiceWhereInput
}
export type CustomerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
firstName?: boolean
lastName?: boolean
first_name?: boolean
last_name?: boolean
email?: boolean
mobileNumber?: boolean
mobile_number?: boolean
address?: boolean
isActive?: boolean
createdAt?: boolean
updatedAt?: boolean
deletedAt?: boolean
salesInvoices?: boolean | Prisma.Customer$salesInvoicesArgs<ExtArgs>
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>
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["customer"]>
@@ -611,39 +642,43 @@ export type CustomerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
export type CustomerSelectScalar = {
id?: boolean
firstName?: boolean
lastName?: boolean
first_name?: boolean
last_name?: boolean
email?: boolean
mobileNumber?: boolean
mobile_number?: boolean
address?: boolean
isActive?: boolean
createdAt?: boolean
updatedAt?: boolean
deletedAt?: boolean
is_active?: boolean
account_id?: boolean
complex_id?: boolean
created_at?: boolean
updated_at?: boolean
deleted_at?: boolean
}
export type CustomerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "firstName" | "lastName" | "email" | "mobileNumber" | "address" | "isActive" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["customer"]>
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"]>
export type CustomerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
salesInvoices?: boolean | Prisma.Customer$salesInvoicesArgs<ExtArgs>
sales_invoices?: boolean | Prisma.Customer$sales_invoicesArgs<ExtArgs>
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
}
export type $CustomerPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Customer"
objects: {
salesInvoices: Prisma.$SalesInvoicePayload<ExtArgs>[]
sales_invoices: Prisma.$SalesInvoicePayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
firstName: string
lastName: string
id: string
first_name: string
last_name: string
email: string | null
mobileNumber: string
mobile_number: string
address: string | null
isActive: boolean
createdAt: Date
updatedAt: Date
deletedAt: Date | null
is_active: boolean
account_id: string
complex_id: string
created_at: Date
updated_at: Date
deleted_at: Date | null
}, ExtArgs["result"]["customer"]>
composites: {}
}
@@ -984,7 +1019,7 @@ readonly fields: CustomerFieldRefs;
*/
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"
salesInvoices<T extends Prisma.Customer$salesInvoicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$salesInvoicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
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>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
@@ -1014,16 +1049,18 @@ export interface Prisma__CustomerClient<T, Null = never, ExtArgs extends runtime
* Fields of the Customer model
*/
export interface CustomerFieldRefs {
readonly id: Prisma.FieldRef<"Customer", 'Int'>
readonly firstName: Prisma.FieldRef<"Customer", 'String'>
readonly lastName: Prisma.FieldRef<"Customer", 'String'>
readonly id: Prisma.FieldRef<"Customer", 'String'>
readonly first_name: Prisma.FieldRef<"Customer", 'String'>
readonly last_name: Prisma.FieldRef<"Customer", 'String'>
readonly email: Prisma.FieldRef<"Customer", 'String'>
readonly mobileNumber: Prisma.FieldRef<"Customer", 'String'>
readonly mobile_number: Prisma.FieldRef<"Customer", 'String'>
readonly address: Prisma.FieldRef<"Customer", 'String'>
readonly isActive: Prisma.FieldRef<"Customer", 'Boolean'>
readonly createdAt: Prisma.FieldRef<"Customer", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"Customer", 'DateTime'>
readonly deletedAt: Prisma.FieldRef<"Customer", 'DateTime'>
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'>
}
@@ -1367,9 +1404,9 @@ export type CustomerDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Inte
}
/**
* Customer.salesInvoices
* Customer.sales_invoices
*/
export type Customer$salesInvoicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
export type Customer$sales_invoicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SalesInvoice
*/
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+200 -179
View File
@@ -20,88 +20,82 @@ export type GoodCategoryModel = runtime.Types.Result.DefaultSelection<Prisma.$Go
export type AggregateGoodCategory = {
_count: GoodCategoryCountAggregateOutputType | null
_avg: GoodCategoryAvgAggregateOutputType | null
_sum: GoodCategorySumAggregateOutputType | null
_min: GoodCategoryMinAggregateOutputType | null
_max: GoodCategoryMaxAggregateOutputType | null
}
export type GoodCategoryAvgAggregateOutputType = {
id: number | null
}
export type GoodCategorySumAggregateOutputType = {
id: number | null
}
export type GoodCategoryMinAggregateOutputType = {
id: number | null
id: string | null
name: string | null
description: string | null
imageUrl: string | null
createdAt: Date | null
updatedAt: Date | null
deletedAt: Date | null
image_url: string | null
account_id: string | null
complex_id: string | null
created_at: Date | null
updated_at: Date | null
deleted_at: Date | null
}
export type GoodCategoryMaxAggregateOutputType = {
id: number | null
id: string | null
name: string | null
description: string | null
imageUrl: string | null
createdAt: Date | null
updatedAt: Date | null
deletedAt: Date | null
image_url: string | null
account_id: string | null
complex_id: string | null
created_at: Date | null
updated_at: Date | null
deleted_at: Date | null
}
export type GoodCategoryCountAggregateOutputType = {
id: number
name: number
description: number
imageUrl: number
createdAt: number
updatedAt: number
deletedAt: number
image_url: number
account_id: number
complex_id: number
created_at: number
updated_at: number
deleted_at: number
_all: number
}
export type GoodCategoryAvgAggregateInputType = {
id?: true
}
export type GoodCategorySumAggregateInputType = {
id?: true
}
export type GoodCategoryMinAggregateInputType = {
id?: true
name?: true
description?: true
imageUrl?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
image_url?: true
account_id?: true
complex_id?: true
created_at?: true
updated_at?: true
deleted_at?: true
}
export type GoodCategoryMaxAggregateInputType = {
id?: true
name?: true
description?: true
imageUrl?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
image_url?: true
account_id?: true
complex_id?: true
created_at?: true
updated_at?: true
deleted_at?: true
}
export type GoodCategoryCountAggregateInputType = {
id?: true
name?: true
description?: true
imageUrl?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
image_url?: true
account_id?: true
complex_id?: true
created_at?: true
updated_at?: true
deleted_at?: true
_all?: true
}
@@ -140,18 +134,6 @@ export type GoodCategoryAggregateArgs<ExtArgs extends runtime.Types.Extensions.I
* Count returned GoodCategories
**/
_count?: true | GoodCategoryCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: GoodCategoryAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: GoodCategorySumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
@@ -185,23 +167,21 @@ export type GoodCategoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.Int
take?: number
skip?: number
_count?: GoodCategoryCountAggregateInputType | true
_avg?: GoodCategoryAvgAggregateInputType
_sum?: GoodCategorySumAggregateInputType
_min?: GoodCategoryMinAggregateInputType
_max?: GoodCategoryMaxAggregateInputType
}
export type GoodCategoryGroupByOutputType = {
id: number
id: string
name: string
description: string | null
imageUrl: string | null
createdAt: Date
updatedAt: Date
deletedAt: Date | null
image_url: string | null
account_id: string
complex_id: string
created_at: Date
updated_at: Date
deleted_at: Date | null
_count: GoodCategoryCountAggregateOutputType | null
_avg: GoodCategoryAvgAggregateOutputType | null
_sum: GoodCategorySumAggregateOutputType | null
_min: GoodCategoryMinAggregateOutputType | null
_max: GoodCategoryMaxAggregateOutputType | null
}
@@ -225,13 +205,15 @@ export type GoodCategoryWhereInput = {
AND?: Prisma.GoodCategoryWhereInput | Prisma.GoodCategoryWhereInput[]
OR?: Prisma.GoodCategoryWhereInput[]
NOT?: Prisma.GoodCategoryWhereInput | Prisma.GoodCategoryWhereInput[]
id?: Prisma.IntFilter<"GoodCategory"> | number
id?: Prisma.StringFilter<"GoodCategory"> | string
name?: Prisma.StringFilter<"GoodCategory"> | string
description?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
imageUrl?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
createdAt?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"GoodCategory"> | Date | string | null
image_url?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
account_id?: Prisma.StringFilter<"GoodCategory"> | string
complex_id?: Prisma.StringFilter<"GoodCategory"> | string
created_at?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
updated_at?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
deleted_at?: Prisma.DateTimeNullableFilter<"GoodCategory"> | Date | string | null
goods?: Prisma.GoodListRelationFilter
}
@@ -239,25 +221,29 @@ export type GoodCategoryOrderByWithRelationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
imageUrl?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
image_url?: Prisma.SortOrderInput | Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
goods?: Prisma.GoodOrderByRelationAggregateInput
_relevance?: Prisma.GoodCategoryOrderByRelevanceInput
}
export type GoodCategoryWhereUniqueInput = Prisma.AtLeast<{
id?: number
id?: string
AND?: Prisma.GoodCategoryWhereInput | Prisma.GoodCategoryWhereInput[]
OR?: Prisma.GoodCategoryWhereInput[]
NOT?: Prisma.GoodCategoryWhereInput | Prisma.GoodCategoryWhereInput[]
name?: Prisma.StringFilter<"GoodCategory"> | string
description?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
imageUrl?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
createdAt?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"GoodCategory"> | Date | string | null
image_url?: Prisma.StringNullableFilter<"GoodCategory"> | string | null
account_id?: Prisma.StringFilter<"GoodCategory"> | string
complex_id?: Prisma.StringFilter<"GoodCategory"> | string
created_at?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
updated_at?: Prisma.DateTimeFilter<"GoodCategory"> | Date | string
deleted_at?: Prisma.DateTimeNullableFilter<"GoodCategory"> | Date | string | null
goods?: Prisma.GoodListRelationFilter
}, "id">
@@ -265,99 +251,118 @@ export type GoodCategoryOrderByWithAggregationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
imageUrl?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
image_url?: Prisma.SortOrderInput | Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.GoodCategoryCountOrderByAggregateInput
_avg?: Prisma.GoodCategoryAvgOrderByAggregateInput
_max?: Prisma.GoodCategoryMaxOrderByAggregateInput
_min?: Prisma.GoodCategoryMinOrderByAggregateInput
_sum?: Prisma.GoodCategorySumOrderByAggregateInput
}
export type GoodCategoryScalarWhereWithAggregatesInput = {
AND?: Prisma.GoodCategoryScalarWhereWithAggregatesInput | Prisma.GoodCategoryScalarWhereWithAggregatesInput[]
OR?: Prisma.GoodCategoryScalarWhereWithAggregatesInput[]
NOT?: Prisma.GoodCategoryScalarWhereWithAggregatesInput | Prisma.GoodCategoryScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"GoodCategory"> | number
id?: Prisma.StringWithAggregatesFilter<"GoodCategory"> | string
name?: Prisma.StringWithAggregatesFilter<"GoodCategory"> | string
description?: Prisma.StringNullableWithAggregatesFilter<"GoodCategory"> | string | null
imageUrl?: Prisma.StringNullableWithAggregatesFilter<"GoodCategory"> | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"GoodCategory"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"GoodCategory"> | Date | string
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"GoodCategory"> | Date | string | null
image_url?: Prisma.StringNullableWithAggregatesFilter<"GoodCategory"> | string | null
account_id?: Prisma.StringWithAggregatesFilter<"GoodCategory"> | string
complex_id?: Prisma.StringWithAggregatesFilter<"GoodCategory"> | string
created_at?: Prisma.DateTimeWithAggregatesFilter<"GoodCategory"> | Date | string
updated_at?: Prisma.DateTimeWithAggregatesFilter<"GoodCategory"> | Date | string
deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"GoodCategory"> | Date | string | null
}
export type GoodCategoryCreateInput = {
id?: string
name: string
description?: string | null
imageUrl?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
image_url?: string | null
account_id: string
complex_id: string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
goods?: Prisma.GoodCreateNestedManyWithoutCategoryInput
}
export type GoodCategoryUncheckedCreateInput = {
id?: number
id?: string
name: string
description?: string | null
imageUrl?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
image_url?: string | null
account_id: string
complex_id: string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
goods?: Prisma.GoodUncheckedCreateNestedManyWithoutCategoryInput
}
export type GoodCategoryUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
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
goods?: Prisma.GoodUpdateManyWithoutCategoryNestedInput
}
export type GoodCategoryUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
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
goods?: Prisma.GoodUncheckedUpdateManyWithoutCategoryNestedInput
}
export type GoodCategoryCreateManyInput = {
id?: number
id?: string
name: string
description?: string | null
imageUrl?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
image_url?: string | null
account_id: string
complex_id: string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
}
export type GoodCategoryUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
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 GoodCategoryUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
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 GoodCategoryNullableScalarRelationFilter = {
@@ -375,38 +380,36 @@ export type GoodCategoryCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
imageUrl?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
}
export type GoodCategoryAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
image_url?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrder
}
export type GoodCategoryMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
imageUrl?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
image_url?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrder
}
export type GoodCategoryMinOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
imageUrl?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
}
export type GoodCategorySumOrderByAggregateInput = {
id?: Prisma.SortOrder
image_url?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrder
}
export type GoodCategoryCreateNestedOneWithoutGoodsInput = {
@@ -426,22 +429,27 @@ export type GoodCategoryUpdateOneWithoutGoodsNestedInput = {
}
export type GoodCategoryCreateWithoutGoodsInput = {
id?: string
name: string
description?: string | null
imageUrl?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
image_url?: string | null
account_id: string
complex_id: string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
}
export type GoodCategoryUncheckedCreateWithoutGoodsInput = {
id?: number
id?: string
name: string
description?: string | null
imageUrl?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
image_url?: string | null
account_id: string
complex_id: string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
}
export type GoodCategoryCreateOrConnectWithoutGoodsInput = {
@@ -461,22 +469,27 @@ export type GoodCategoryUpdateToOneWithWhereWithoutGoodsInput = {
}
export type GoodCategoryUpdateWithoutGoodsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
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 GoodCategoryUncheckedUpdateWithoutGoodsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
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
}
@@ -514,10 +527,12 @@ export type GoodCategorySelect<ExtArgs extends runtime.Types.Extensions.Internal
id?: boolean
name?: boolean
description?: boolean
imageUrl?: boolean
createdAt?: boolean
updatedAt?: boolean
deletedAt?: boolean
image_url?: boolean
account_id?: boolean
complex_id?: boolean
created_at?: boolean
updated_at?: boolean
deleted_at?: boolean
goods?: boolean | Prisma.GoodCategory$goodsArgs<ExtArgs>
_count?: boolean | Prisma.GoodCategoryCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["goodCategory"]>
@@ -528,13 +543,15 @@ export type GoodCategorySelectScalar = {
id?: boolean
name?: boolean
description?: boolean
imageUrl?: boolean
createdAt?: boolean
updatedAt?: boolean
deletedAt?: boolean
image_url?: boolean
account_id?: boolean
complex_id?: boolean
created_at?: boolean
updated_at?: boolean
deleted_at?: boolean
}
export type GoodCategoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "imageUrl" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["goodCategory"]>
export type GoodCategoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "image_url" | "account_id" | "complex_id" | "created_at" | "updated_at" | "deleted_at", ExtArgs["result"]["goodCategory"]>
export type GoodCategoryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
goods?: boolean | Prisma.GoodCategory$goodsArgs<ExtArgs>
_count?: boolean | Prisma.GoodCategoryCountOutputTypeDefaultArgs<ExtArgs>
@@ -546,13 +563,15 @@ export type $GoodCategoryPayload<ExtArgs extends runtime.Types.Extensions.Intern
goods: Prisma.$GoodPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
id: string
name: string
description: string | null
imageUrl: string | null
createdAt: Date
updatedAt: Date
deletedAt: Date | null
image_url: string | null
account_id: string
complex_id: string
created_at: Date
updated_at: Date
deleted_at: Date | null
}, ExtArgs["result"]["goodCategory"]>
composites: {}
}
@@ -923,13 +942,15 @@ export interface Prisma__GoodCategoryClient<T, Null = never, ExtArgs extends run
* Fields of the GoodCategory model
*/
export interface GoodCategoryFieldRefs {
readonly id: Prisma.FieldRef<"GoodCategory", 'Int'>
readonly id: Prisma.FieldRef<"GoodCategory", 'String'>
readonly name: Prisma.FieldRef<"GoodCategory", 'String'>
readonly description: Prisma.FieldRef<"GoodCategory", 'String'>
readonly imageUrl: Prisma.FieldRef<"GoodCategory", 'String'>
readonly createdAt: Prisma.FieldRef<"GoodCategory", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"GoodCategory", 'DateTime'>
readonly deletedAt: Prisma.FieldRef<"GoodCategory", 'DateTime'>
readonly image_url: Prisma.FieldRef<"GoodCategory", 'String'>
readonly account_id: Prisma.FieldRef<"GoodCategory", 'String'>
readonly complex_id: Prisma.FieldRef<"GoodCategory", 'String'>
readonly created_at: Prisma.FieldRef<"GoodCategory", 'DateTime'>
readonly updated_at: Prisma.FieldRef<"GoodCategory", 'DateTime'>
readonly deleted_at: Prisma.FieldRef<"GoodCategory", 'DateTime'>
}
+319 -240
View File
@@ -27,89 +27,93 @@ export type AggregateSalesInvoice = {
}
export type SalesInvoiceAvgAggregateOutputType = {
id: number | null
totalAmount: runtime.Decimal | null
customerId: number | null
total_amount: runtime.Decimal | null
}
export type SalesInvoiceSumAggregateOutputType = {
id: number | null
totalAmount: runtime.Decimal | null
customerId: number | null
total_amount: runtime.Decimal | null
}
export type SalesInvoiceMinAggregateOutputType = {
id: number | null
id: string | null
code: string | null
totalAmount: runtime.Decimal | null
total_amount: runtime.Decimal | null
description: string | null
createdAt: Date | null
updatedAt: Date | null
customerId: number | null
created_at: Date | null
updated_at: Date | null
customer_id: string | null
account_id: string | null
complex_id: string | null
}
export type SalesInvoiceMaxAggregateOutputType = {
id: number | null
id: string | null
code: string | null
totalAmount: runtime.Decimal | null
total_amount: runtime.Decimal | null
description: string | null
createdAt: Date | null
updatedAt: Date | null
customerId: number | null
created_at: Date | null
updated_at: Date | null
customer_id: string | null
account_id: string | null
complex_id: string | null
}
export type SalesInvoiceCountAggregateOutputType = {
id: number
code: number
totalAmount: number
total_amount: number
description: number
createdAt: number
updatedAt: number
customerId: number
created_at: number
updated_at: number
customer_id: number
account_id: number
complex_id: number
_all: number
}
export type SalesInvoiceAvgAggregateInputType = {
id?: true
totalAmount?: true
customerId?: true
total_amount?: true
}
export type SalesInvoiceSumAggregateInputType = {
id?: true
totalAmount?: true
customerId?: true
total_amount?: true
}
export type SalesInvoiceMinAggregateInputType = {
id?: true
code?: true
totalAmount?: true
total_amount?: true
description?: true
createdAt?: true
updatedAt?: true
customerId?: true
created_at?: true
updated_at?: true
customer_id?: true
account_id?: true
complex_id?: true
}
export type SalesInvoiceMaxAggregateInputType = {
id?: true
code?: true
totalAmount?: true
total_amount?: true
description?: true
createdAt?: true
updatedAt?: true
customerId?: true
created_at?: true
updated_at?: true
customer_id?: true
account_id?: true
complex_id?: true
}
export type SalesInvoiceCountAggregateInputType = {
id?: true
code?: true
totalAmount?: true
total_amount?: true
description?: true
createdAt?: true
updatedAt?: true
customerId?: true
created_at?: true
updated_at?: true
customer_id?: true
account_id?: true
complex_id?: true
_all?: true
}
@@ -200,13 +204,15 @@ export type SalesInvoiceGroupByArgs<ExtArgs extends runtime.Types.Extensions.Int
}
export type SalesInvoiceGroupByOutputType = {
id: number
id: string
code: string
totalAmount: runtime.Decimal
total_amount: runtime.Decimal
description: string | null
createdAt: Date
updatedAt: Date
customerId: number | null
created_at: Date
updated_at: Date
customer_id: string | null
account_id: string
complex_id: string
_count: SalesInvoiceCountAggregateOutputType | null
_avg: SalesInvoiceAvgAggregateOutputType | null
_sum: SalesInvoiceSumAggregateOutputType | null
@@ -233,56 +239,64 @@ export type SalesInvoiceWhereInput = {
AND?: Prisma.SalesInvoiceWhereInput | Prisma.SalesInvoiceWhereInput[]
OR?: Prisma.SalesInvoiceWhereInput[]
NOT?: Prisma.SalesInvoiceWhereInput | Prisma.SalesInvoiceWhereInput[]
id?: Prisma.IntFilter<"SalesInvoice"> | number
id?: Prisma.StringFilter<"SalesInvoice"> | string
code?: Prisma.StringFilter<"SalesInvoice"> | string
totalAmount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
createdAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
customerId?: Prisma.IntNullableFilter<"SalesInvoice"> | number | null
created_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
account_id?: Prisma.StringFilter<"SalesInvoice"> | string
complex_id?: Prisma.StringFilter<"SalesInvoice"> | string
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
items?: Prisma.SalesInvoiceItemListRelationFilter
salesInvoicePayments?: Prisma.SalesInvoicePaymentListRelationFilter
sales_invoice_payments?: Prisma.SalesInvoicePaymentListRelationFilter
}
export type SalesInvoiceOrderByWithRelationInput = {
id?: Prisma.SortOrder
code?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
total_amount?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
customerId?: Prisma.SortOrderInput | Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
customer_id?: Prisma.SortOrderInput | Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
customer?: Prisma.CustomerOrderByWithRelationInput
items?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentOrderByRelationAggregateInput
sales_invoice_payments?: Prisma.SalesInvoicePaymentOrderByRelationAggregateInput
_relevance?: Prisma.SalesInvoiceOrderByRelevanceInput
}
export type SalesInvoiceWhereUniqueInput = Prisma.AtLeast<{
id?: number
id?: string
code?: string
AND?: Prisma.SalesInvoiceWhereInput | Prisma.SalesInvoiceWhereInput[]
OR?: Prisma.SalesInvoiceWhereInput[]
NOT?: Prisma.SalesInvoiceWhereInput | Prisma.SalesInvoiceWhereInput[]
totalAmount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
createdAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
customerId?: Prisma.IntNullableFilter<"SalesInvoice"> | number | null
created_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
account_id?: Prisma.StringFilter<"SalesInvoice"> | string
complex_id?: Prisma.StringFilter<"SalesInvoice"> | string
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
items?: Prisma.SalesInvoiceItemListRelationFilter
salesInvoicePayments?: Prisma.SalesInvoicePaymentListRelationFilter
sales_invoice_payments?: Prisma.SalesInvoicePaymentListRelationFilter
}, "id" | "code">
export type SalesInvoiceOrderByWithAggregationInput = {
id?: Prisma.SortOrder
code?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
total_amount?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
customerId?: Prisma.SortOrderInput | Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
customer_id?: Prisma.SortOrderInput | Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
_count?: Prisma.SalesInvoiceCountOrderByAggregateInput
_avg?: Prisma.SalesInvoiceAvgOrderByAggregateInput
_max?: Prisma.SalesInvoiceMaxOrderByAggregateInput
@@ -294,87 +308,106 @@ export type SalesInvoiceScalarWhereWithAggregatesInput = {
AND?: Prisma.SalesInvoiceScalarWhereWithAggregatesInput | Prisma.SalesInvoiceScalarWhereWithAggregatesInput[]
OR?: Prisma.SalesInvoiceScalarWhereWithAggregatesInput[]
NOT?: Prisma.SalesInvoiceScalarWhereWithAggregatesInput | Prisma.SalesInvoiceScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"SalesInvoice"> | number
id?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string
code?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string
totalAmount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoice"> | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoice"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoice"> | Date | string
customerId?: Prisma.IntNullableWithAggregatesFilter<"SalesInvoice"> | number | null
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoice"> | Date | string
updated_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoice"> | Date | string
customer_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoice"> | string | null
account_id?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string
complex_id?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string
}
export type SalesInvoiceCreateInput = {
id?: string
code: string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
customer?: Prisma.CustomerCreateNestedOneWithoutSalesInvoicesInput
created_at?: Date | string
updated_at?: Date | string
account_id: string
complex_id: string
customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
sales_invoice_payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceUncheckedCreateInput = {
id?: number
id?: string
code: string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
customerId?: number | null
created_at?: Date | string
updated_at?: Date | string
customer_id?: string | null
account_id: string
complex_id: string
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customer?: Prisma.CustomerUpdateOneWithoutSalesInvoicesNestedInput
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
customer?: Prisma.CustomerUpdateOneWithoutSales_invoicesNestedInput
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
sales_invoice_payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceCreateManyInput = {
id?: number
id?: string
code: string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
customerId?: number | null
created_at?: Date | string
updated_at?: Date | string
customer_id?: string | null
account_id: string
complex_id: string
}
export type SalesInvoiceUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type SalesInvoiceUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type SalesInvoiceListRelationFilter = {
@@ -396,43 +429,45 @@ export type SalesInvoiceOrderByRelevanceInput = {
export type SalesInvoiceCountOrderByAggregateInput = {
id?: Prisma.SortOrder
code?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
total_amount?: Prisma.SortOrder
description?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
customerId?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
customer_id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
}
export type SalesInvoiceAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
customerId?: Prisma.SortOrder
total_amount?: Prisma.SortOrder
}
export type SalesInvoiceMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
code?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
total_amount?: Prisma.SortOrder
description?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
customerId?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
customer_id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
}
export type SalesInvoiceMinOrderByAggregateInput = {
id?: Prisma.SortOrder
code?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
total_amount?: Prisma.SortOrder
description?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
customerId?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
customer_id?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
}
export type SalesInvoiceSumOrderByAggregateInput = {
id?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
customerId?: Prisma.SortOrder
total_amount?: Prisma.SortOrder
}
export type SalesInvoiceScalarRelationFilter = {
@@ -496,39 +531,44 @@ export type SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput = {
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoiceUpdateToOneWithWhereWithoutItemsInput, Prisma.SalesInvoiceUpdateWithoutItemsInput>, Prisma.SalesInvoiceUncheckedUpdateWithoutItemsInput>
}
export type SalesInvoiceCreateNestedOneWithoutSalesInvoicePaymentsInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSalesInvoicePaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSalesInvoicePaymentsInput>
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutSalesInvoicePaymentsInput
export type SalesInvoiceCreateNestedOneWithoutSales_invoice_paymentsInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput>
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutSales_invoice_paymentsInput
connect?: Prisma.SalesInvoiceWhereUniqueInput
}
export type SalesInvoiceUpdateOneRequiredWithoutSalesInvoicePaymentsNestedInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSalesInvoicePaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSalesInvoicePaymentsInput>
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutSalesInvoicePaymentsInput
upsert?: Prisma.SalesInvoiceUpsertWithoutSalesInvoicePaymentsInput
export type SalesInvoiceUpdateOneRequiredWithoutSales_invoice_paymentsNestedInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput>
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutSales_invoice_paymentsInput
upsert?: Prisma.SalesInvoiceUpsertWithoutSales_invoice_paymentsInput
connect?: Prisma.SalesInvoiceWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoiceUpdateToOneWithWhereWithoutSalesInvoicePaymentsInput, Prisma.SalesInvoiceUpdateWithoutSalesInvoicePaymentsInput>, Prisma.SalesInvoiceUncheckedUpdateWithoutSalesInvoicePaymentsInput>
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoiceUpdateToOneWithWhereWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUpdateWithoutSales_invoice_paymentsInput>, Prisma.SalesInvoiceUncheckedUpdateWithoutSales_invoice_paymentsInput>
}
export type SalesInvoiceCreateWithoutCustomerInput = {
id?: string
code: string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
created_at?: Date | string
updated_at?: Date | string
account_id: string
complex_id: string
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
sales_invoice_payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceUncheckedCreateWithoutCustomerInput = {
id?: number
id?: string
code: string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
created_at?: Date | string
updated_at?: Date | string
account_id: string
complex_id: string
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceCreateOrConnectWithoutCustomerInput = {
@@ -561,34 +601,41 @@ export type SalesInvoiceScalarWhereInput = {
AND?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
OR?: Prisma.SalesInvoiceScalarWhereInput[]
NOT?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
id?: Prisma.IntFilter<"SalesInvoice"> | number
id?: Prisma.StringFilter<"SalesInvoice"> | string
code?: Prisma.StringFilter<"SalesInvoice"> | string
totalAmount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
createdAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
customerId?: Prisma.IntNullableFilter<"SalesInvoice"> | number | null
created_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
account_id?: Prisma.StringFilter<"SalesInvoice"> | string
complex_id?: Prisma.StringFilter<"SalesInvoice"> | string
}
export type SalesInvoiceCreateWithoutItemsInput = {
id?: string
code: string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
customer?: Prisma.CustomerCreateNestedOneWithoutSalesInvoicesInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
created_at?: Date | string
updated_at?: Date | string
account_id: string
complex_id: string
customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput
sales_invoice_payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceUncheckedCreateWithoutItemsInput = {
id?: number
id?: string
code: string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
customerId?: number | null
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
created_at?: Date | string
updated_at?: Date | string
customer_id?: string | null
account_id: string
complex_id: string
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceCreateOrConnectWithoutItemsInput = {
@@ -608,121 +655,145 @@ export type SalesInvoiceUpdateToOneWithWhereWithoutItemsInput = {
}
export type SalesInvoiceUpdateWithoutItemsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customer?: Prisma.CustomerUpdateOneWithoutSalesInvoicesNestedInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
customer?: Prisma.CustomerUpdateOneWithoutSales_invoicesNestedInput
sales_invoice_payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceUncheckedUpdateWithoutItemsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceCreateWithoutSalesInvoicePaymentsInput = {
export type SalesInvoiceCreateWithoutSales_invoice_paymentsInput = {
id?: string
code: string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
customer?: Prisma.CustomerCreateNestedOneWithoutSalesInvoicesInput
created_at?: Date | string
updated_at?: Date | string
account_id: string
complex_id: string
customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceUncheckedCreateWithoutSalesInvoicePaymentsInput = {
id?: number
export type SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput = {
id?: string
code: string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
customerId?: number | null
created_at?: Date | string
updated_at?: Date | string
customer_id?: string | null
account_id: string
complex_id: string
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceCreateOrConnectWithoutSalesInvoicePaymentsInput = {
export type SalesInvoiceCreateOrConnectWithoutSales_invoice_paymentsInput = {
where: Prisma.SalesInvoiceWhereUniqueInput
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSalesInvoicePaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSalesInvoicePaymentsInput>
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput>
}
export type SalesInvoiceUpsertWithoutSalesInvoicePaymentsInput = {
update: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutSalesInvoicePaymentsInput, Prisma.SalesInvoiceUncheckedUpdateWithoutSalesInvoicePaymentsInput>
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSalesInvoicePaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSalesInvoicePaymentsInput>
export type SalesInvoiceUpsertWithoutSales_invoice_paymentsInput = {
update: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedUpdateWithoutSales_invoice_paymentsInput>
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput>
where?: Prisma.SalesInvoiceWhereInput
}
export type SalesInvoiceUpdateToOneWithWhereWithoutSalesInvoicePaymentsInput = {
export type SalesInvoiceUpdateToOneWithWhereWithoutSales_invoice_paymentsInput = {
where?: Prisma.SalesInvoiceWhereInput
data: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutSalesInvoicePaymentsInput, Prisma.SalesInvoiceUncheckedUpdateWithoutSalesInvoicePaymentsInput>
data: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedUpdateWithoutSales_invoice_paymentsInput>
}
export type SalesInvoiceUpdateWithoutSalesInvoicePaymentsInput = {
export type SalesInvoiceUpdateWithoutSales_invoice_paymentsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customer?: Prisma.CustomerUpdateOneWithoutSalesInvoicesNestedInput
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
customer?: Prisma.CustomerUpdateOneWithoutSales_invoicesNestedInput
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceUncheckedUpdateWithoutSalesInvoicePaymentsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
export type SalesInvoiceUncheckedUpdateWithoutSales_invoice_paymentsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceCreateManyCustomerInput = {
id?: number
id?: string
code: string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
created_at?: Date | string
updated_at?: Date | string
account_id: string
complex_id: string
}
export type SalesInvoiceUpdateWithoutCustomerInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
sales_invoice_payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceUncheckedUpdateWithoutCustomerInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceUncheckedUpdateManyWithoutCustomerInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
code?: Prisma.StringFieldUpdateOperationsInput | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
}
@@ -732,12 +803,12 @@ export type SalesInvoiceUncheckedUpdateManyWithoutCustomerInput = {
export type SalesInvoiceCountOutputType = {
items: number
salesInvoicePayments: number
sales_invoice_payments: number
}
export type SalesInvoiceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
items?: boolean | SalesInvoiceCountOutputTypeCountItemsArgs
salesInvoicePayments?: boolean | SalesInvoiceCountOutputTypeCountSalesInvoicePaymentsArgs
sales_invoice_payments?: boolean | SalesInvoiceCountOutputTypeCountSales_invoice_paymentsArgs
}
/**
@@ -760,7 +831,7 @@ export type SalesInvoiceCountOutputTypeCountItemsArgs<ExtArgs extends runtime.Ty
/**
* SalesInvoiceCountOutputType without action
*/
export type SalesInvoiceCountOutputTypeCountSalesInvoicePaymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
export type SalesInvoiceCountOutputTypeCountSales_invoice_paymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.SalesInvoicePaymentWhereInput
}
@@ -768,14 +839,16 @@ export type SalesInvoiceCountOutputTypeCountSalesInvoicePaymentsArgs<ExtArgs ext
export type SalesInvoiceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
code?: boolean
totalAmount?: boolean
total_amount?: boolean
description?: boolean
createdAt?: boolean
updatedAt?: boolean
customerId?: boolean
created_at?: boolean
updated_at?: boolean
customer_id?: boolean
account_id?: boolean
complex_id?: boolean
customer?: boolean | Prisma.SalesInvoice$customerArgs<ExtArgs>
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
salesInvoicePayments?: boolean | Prisma.SalesInvoice$salesInvoicePaymentsArgs<ExtArgs>
sales_invoice_payments?: boolean | Prisma.SalesInvoice$sales_invoice_paymentsArgs<ExtArgs>
_count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["salesInvoice"]>
@@ -784,18 +857,20 @@ export type SalesInvoiceSelect<ExtArgs extends runtime.Types.Extensions.Internal
export type SalesInvoiceSelectScalar = {
id?: boolean
code?: boolean
totalAmount?: boolean
total_amount?: boolean
description?: boolean
createdAt?: boolean
updatedAt?: boolean
customerId?: boolean
created_at?: boolean
updated_at?: boolean
customer_id?: boolean
account_id?: boolean
complex_id?: boolean
}
export type SalesInvoiceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "totalAmount" | "description" | "createdAt" | "updatedAt" | "customerId", ExtArgs["result"]["salesInvoice"]>
export type SalesInvoiceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "total_amount" | "description" | "created_at" | "updated_at" | "customer_id" | "account_id" | "complex_id", ExtArgs["result"]["salesInvoice"]>
export type SalesInvoiceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
customer?: boolean | Prisma.SalesInvoice$customerArgs<ExtArgs>
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
salesInvoicePayments?: boolean | Prisma.SalesInvoice$salesInvoicePaymentsArgs<ExtArgs>
sales_invoice_payments?: boolean | Prisma.SalesInvoice$sales_invoice_paymentsArgs<ExtArgs>
_count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs<ExtArgs>
}
@@ -804,16 +879,18 @@ export type $SalesInvoicePayload<ExtArgs extends runtime.Types.Extensions.Intern
objects: {
customer: Prisma.$CustomerPayload<ExtArgs> | null
items: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
salesInvoicePayments: Prisma.$SalesInvoicePaymentPayload<ExtArgs>[]
sales_invoice_payments: Prisma.$SalesInvoicePaymentPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
id: string
code: string
totalAmount: runtime.Decimal
total_amount: runtime.Decimal
description: string | null
createdAt: Date
updatedAt: Date
customerId: number | null
created_at: Date
updated_at: Date
customer_id: string | null
account_id: string
complex_id: string
}, ExtArgs["result"]["salesInvoice"]>
composites: {}
}
@@ -1156,7 +1233,7 @@ export interface Prisma__SalesInvoiceClient<T, Null = never, ExtArgs extends run
readonly [Symbol.toStringTag]: "PrismaPromise"
customer<T extends Prisma.SalesInvoice$customerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$customerArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
items<T extends Prisma.SalesInvoice$itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
salesInvoicePayments<T extends Prisma.SalesInvoice$salesInvoicePaymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$salesInvoicePaymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
sales_invoice_payments<T extends Prisma.SalesInvoice$sales_invoice_paymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$sales_invoice_paymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
@@ -1186,13 +1263,15 @@ export interface Prisma__SalesInvoiceClient<T, Null = never, ExtArgs extends run
* Fields of the SalesInvoice model
*/
export interface SalesInvoiceFieldRefs {
readonly id: Prisma.FieldRef<"SalesInvoice", 'Int'>
readonly id: Prisma.FieldRef<"SalesInvoice", 'String'>
readonly code: Prisma.FieldRef<"SalesInvoice", 'String'>
readonly totalAmount: Prisma.FieldRef<"SalesInvoice", 'Decimal'>
readonly total_amount: Prisma.FieldRef<"SalesInvoice", 'Decimal'>
readonly description: Prisma.FieldRef<"SalesInvoice", 'String'>
readonly createdAt: Prisma.FieldRef<"SalesInvoice", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"SalesInvoice", 'DateTime'>
readonly customerId: Prisma.FieldRef<"SalesInvoice", 'Int'>
readonly created_at: Prisma.FieldRef<"SalesInvoice", 'DateTime'>
readonly updated_at: Prisma.FieldRef<"SalesInvoice", 'DateTime'>
readonly customer_id: Prisma.FieldRef<"SalesInvoice", 'String'>
readonly account_id: Prisma.FieldRef<"SalesInvoice", 'String'>
readonly complex_id: Prisma.FieldRef<"SalesInvoice", 'String'>
}
@@ -1579,9 +1658,9 @@ export type SalesInvoice$itemsArgs<ExtArgs extends runtime.Types.Extensions.Inte
}
/**
* SalesInvoice.salesInvoicePayments
* SalesInvoice.sales_invoice_payments
*/
export type SalesInvoice$salesInvoicePaymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
export type SalesInvoice$sales_invoice_paymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SalesInvoicePayment
*/
+297 -305
View File
@@ -27,111 +27,95 @@ export type AggregateSalesInvoiceItem = {
}
export type SalesInvoiceItemAvgAggregateOutputType = {
id: number | null
count: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalAmount: runtime.Decimal | null
invoiceId: number | null
goodId: number | null
serviceId: number | null
unit_price: runtime.Decimal | null
total_amount: runtime.Decimal | null
}
export type SalesInvoiceItemSumAggregateOutputType = {
id: number | null
count: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalAmount: runtime.Decimal | null
invoiceId: number | null
goodId: number | null
serviceId: number | null
unit_price: runtime.Decimal | null
total_amount: runtime.Decimal | null
}
export type SalesInvoiceItemMinAggregateOutputType = {
id: number | null
id: string | null
count: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalAmount: runtime.Decimal | null
createdAt: Date | null
invoiceId: number | null
goodId: number | null
serviceId: number | null
unit_price: runtime.Decimal | null
total_amount: runtime.Decimal | null
created_at: Date | null
invoice_id: string | null
good_id: string | null
service_id: string | null
}
export type SalesInvoiceItemMaxAggregateOutputType = {
id: number | null
id: string | null
count: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalAmount: runtime.Decimal | null
createdAt: Date | null
invoiceId: number | null
goodId: number | null
serviceId: number | null
unit_price: runtime.Decimal | null
total_amount: runtime.Decimal | null
created_at: Date | null
invoice_id: string | null
good_id: string | null
service_id: string | null
}
export type SalesInvoiceItemCountAggregateOutputType = {
id: number
count: number
unitPrice: number
totalAmount: number
createdAt: number
invoiceId: number
goodId: number
serviceId: number
unit_price: number
total_amount: number
created_at: number
invoice_id: number
good_id: number
service_id: number
_all: number
}
export type SalesInvoiceItemAvgAggregateInputType = {
id?: true
count?: true
unitPrice?: true
totalAmount?: true
invoiceId?: true
goodId?: true
serviceId?: true
unit_price?: true
total_amount?: true
}
export type SalesInvoiceItemSumAggregateInputType = {
id?: true
count?: true
unitPrice?: true
totalAmount?: true
invoiceId?: true
goodId?: true
serviceId?: true
unit_price?: true
total_amount?: true
}
export type SalesInvoiceItemMinAggregateInputType = {
id?: true
count?: true
unitPrice?: true
totalAmount?: true
createdAt?: true
invoiceId?: true
goodId?: true
serviceId?: true
unit_price?: true
total_amount?: true
created_at?: true
invoice_id?: true
good_id?: true
service_id?: true
}
export type SalesInvoiceItemMaxAggregateInputType = {
id?: true
count?: true
unitPrice?: true
totalAmount?: true
createdAt?: true
invoiceId?: true
goodId?: true
serviceId?: true
unit_price?: true
total_amount?: true
created_at?: true
invoice_id?: true
good_id?: true
service_id?: true
}
export type SalesInvoiceItemCountAggregateInputType = {
id?: true
count?: true
unitPrice?: true
totalAmount?: true
createdAt?: true
invoiceId?: true
goodId?: true
serviceId?: true
unit_price?: true
total_amount?: true
created_at?: true
invoice_id?: true
good_id?: true
service_id?: true
_all?: true
}
@@ -222,14 +206,14 @@ export type SalesInvoiceItemGroupByArgs<ExtArgs extends runtime.Types.Extensions
}
export type SalesInvoiceItemGroupByOutputType = {
id: number
id: string
count: runtime.Decimal
unitPrice: runtime.Decimal
totalAmount: runtime.Decimal
createdAt: Date
invoiceId: number
goodId: number
serviceId: number
unit_price: runtime.Decimal
total_amount: runtime.Decimal
created_at: Date
invoice_id: string
good_id: string
service_id: string
_count: SalesInvoiceItemCountAggregateOutputType | null
_avg: SalesInvoiceItemAvgAggregateOutputType | null
_sum: SalesInvoiceItemSumAggregateOutputType | null
@@ -256,14 +240,14 @@ export type SalesInvoiceItemWhereInput = {
AND?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[]
OR?: Prisma.SalesInvoiceItemWhereInput[]
NOT?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[]
id?: Prisma.IntFilter<"SalesInvoiceItem"> | number
id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
goodId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
serviceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
unit_price?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
good_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
service_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
good?: Prisma.XOR<Prisma.GoodNullableScalarRelationFilter, Prisma.GoodWhereInput> | null
service?: Prisma.XOR<Prisma.ServiceNullableScalarRelationFilter, Prisma.ServiceWhereInput> | null
@@ -272,29 +256,30 @@ export type SalesInvoiceItemWhereInput = {
export type SalesInvoiceItemOrderByWithRelationInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
goodId?: Prisma.SortOrder
serviceId?: Prisma.SortOrder
unit_price?: Prisma.SortOrder
total_amount?: Prisma.SortOrder
created_at?: Prisma.SortOrder
invoice_id?: Prisma.SortOrder
good_id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
invoice?: Prisma.SalesInvoiceOrderByWithRelationInput
good?: Prisma.GoodOrderByWithRelationInput
service?: Prisma.ServiceOrderByWithRelationInput
_relevance?: Prisma.SalesInvoiceItemOrderByRelevanceInput
}
export type SalesInvoiceItemWhereUniqueInput = Prisma.AtLeast<{
id?: number
id?: string
AND?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[]
OR?: Prisma.SalesInvoiceItemWhereInput[]
NOT?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[]
count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
goodId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
serviceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
unit_price?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
good_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
service_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
good?: Prisma.XOR<Prisma.GoodNullableScalarRelationFilter, Prisma.GoodWhereInput> | null
service?: Prisma.XOR<Prisma.ServiceNullableScalarRelationFilter, Prisma.ServiceWhereInput> | null
@@ -303,12 +288,12 @@ export type SalesInvoiceItemWhereUniqueInput = Prisma.AtLeast<{
export type SalesInvoiceItemOrderByWithAggregationInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
goodId?: Prisma.SortOrder
serviceId?: Prisma.SortOrder
unit_price?: Prisma.SortOrder
total_amount?: Prisma.SortOrder
created_at?: Prisma.SortOrder
invoice_id?: Prisma.SortOrder
good_id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
_count?: Prisma.SalesInvoiceItemCountOrderByAggregateInput
_avg?: Prisma.SalesInvoiceItemAvgOrderByAggregateInput
_max?: Prisma.SalesInvoiceItemMaxOrderByAggregateInput
@@ -320,85 +305,88 @@ export type SalesInvoiceItemScalarWhereWithAggregatesInput = {
AND?: Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput | Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput[]
OR?: Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput[]
NOT?: Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput | Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number
id?: Prisma.StringWithAggregatesFilter<"SalesInvoiceItem"> | string
count?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoiceItem"> | Date | string
invoiceId?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number
goodId?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number
serviceId?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number
unit_price?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoiceItem"> | Date | string
invoice_id?: Prisma.StringWithAggregatesFilter<"SalesInvoiceItem"> | string
good_id?: Prisma.StringWithAggregatesFilter<"SalesInvoiceItem"> | string
service_id?: Prisma.StringWithAggregatesFilter<"SalesInvoiceItem"> | string
}
export type SalesInvoiceItemCreateInput = {
id?: string
count: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
good?: Prisma.GoodCreateNestedOneWithoutSalesInvoiceItemsInput
service?: Prisma.ServiceCreateNestedOneWithoutSalesInvoiceItemsInput
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
}
export type SalesInvoiceItemUncheckedCreateInput = {
id?: number
id?: string
count: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
invoiceId: number
goodId: number
serviceId: number
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
invoice_id: string
good_id: string
service_id: string
}
export type SalesInvoiceItemUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
good?: Prisma.GoodUpdateOneWithoutSalesInvoiceItemsNestedInput
service?: Prisma.ServiceUpdateOneWithoutSalesInvoiceItemsNestedInput
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
}
export type SalesInvoiceItemUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
goodId?: Prisma.IntFieldUpdateOperationsInput | number
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
good_id?: Prisma.StringFieldUpdateOperationsInput | string
service_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type SalesInvoiceItemCreateManyInput = {
id?: number
id?: string
count: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
invoiceId: number
goodId: number
serviceId: number
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
invoice_id: string
good_id: string
service_id: string
}
export type SalesInvoiceItemUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SalesInvoiceItemUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
goodId?: Prisma.IntFieldUpdateOperationsInput | number
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
good_id?: Prisma.StringFieldUpdateOperationsInput | string
service_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type SalesInvoiceItemListRelationFilter = {
@@ -411,57 +399,55 @@ export type SalesInvoiceItemOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type SalesInvoiceItemOrderByRelevanceInput = {
fields: Prisma.SalesInvoiceItemOrderByRelevanceFieldEnum | Prisma.SalesInvoiceItemOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type SalesInvoiceItemCountOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
goodId?: Prisma.SortOrder
serviceId?: Prisma.SortOrder
unit_price?: Prisma.SortOrder
total_amount?: Prisma.SortOrder
created_at?: Prisma.SortOrder
invoice_id?: Prisma.SortOrder
good_id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
}
export type SalesInvoiceItemAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
goodId?: Prisma.SortOrder
serviceId?: Prisma.SortOrder
unit_price?: Prisma.SortOrder
total_amount?: Prisma.SortOrder
}
export type SalesInvoiceItemMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
goodId?: Prisma.SortOrder
serviceId?: Prisma.SortOrder
unit_price?: Prisma.SortOrder
total_amount?: Prisma.SortOrder
created_at?: Prisma.SortOrder
invoice_id?: Prisma.SortOrder
good_id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
}
export type SalesInvoiceItemMinOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
goodId?: Prisma.SortOrder
serviceId?: Prisma.SortOrder
unit_price?: Prisma.SortOrder
total_amount?: Prisma.SortOrder
created_at?: Prisma.SortOrder
invoice_id?: Prisma.SortOrder
good_id?: Prisma.SortOrder
service_id?: Prisma.SortOrder
}
export type SalesInvoiceItemSumOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
goodId?: Prisma.SortOrder
serviceId?: Prisma.SortOrder
unit_price?: Prisma.SortOrder
total_amount?: Prisma.SortOrder
}
export type SalesInvoiceItemCreateNestedManyWithoutGoodInput = {
@@ -591,22 +577,23 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutServiceNestedInput = {
}
export type SalesInvoiceItemCreateWithoutGoodInput = {
id?: string
count: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
service?: Prisma.ServiceCreateNestedOneWithoutSalesInvoiceItemsInput
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
}
export type SalesInvoiceItemUncheckedCreateWithoutGoodInput = {
id?: number
id?: string
count: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
invoiceId: number
serviceId: number
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
invoice_id: string
service_id: string
}
export type SalesInvoiceItemCreateOrConnectWithoutGoodInput = {
@@ -639,33 +626,34 @@ export type SalesInvoiceItemScalarWhereInput = {
AND?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
OR?: Prisma.SalesInvoiceItemScalarWhereInput[]
NOT?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
id?: Prisma.IntFilter<"SalesInvoiceItem"> | number
id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
goodId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
serviceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
unit_price?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
good_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
service_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
}
export type SalesInvoiceItemCreateWithoutInvoiceInput = {
id?: string
count: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
good?: Prisma.GoodCreateNestedOneWithoutSalesInvoiceItemsInput
service?: Prisma.ServiceCreateNestedOneWithoutSalesInvoiceItemsInput
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
}
export type SalesInvoiceItemUncheckedCreateWithoutInvoiceInput = {
id?: number
id?: string
count: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
goodId: number
serviceId: number
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
good_id: string
service_id: string
}
export type SalesInvoiceItemCreateOrConnectWithoutInvoiceInput = {
@@ -695,22 +683,23 @@ export type SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput = {
}
export type SalesInvoiceItemCreateWithoutServiceInput = {
id?: string
count: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
good?: Prisma.GoodCreateNestedOneWithoutSalesInvoiceItemsInput
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
}
export type SalesInvoiceItemUncheckedCreateWithoutServiceInput = {
id?: number
id?: string
count: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
invoiceId: number
goodId: number
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
invoice_id: string
good_id: string
}
export type SalesInvoiceItemCreateOrConnectWithoutServiceInput = {
@@ -740,120 +729,123 @@ export type SalesInvoiceItemUpdateManyWithWhereWithoutServiceInput = {
}
export type SalesInvoiceItemCreateManyGoodInput = {
id?: number
id?: string
count: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
invoiceId: number
serviceId: number
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
invoice_id: string
service_id: string
}
export type SalesInvoiceItemUpdateWithoutGoodInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
service?: Prisma.ServiceUpdateOneWithoutSalesInvoiceItemsNestedInput
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
}
export type SalesInvoiceItemUncheckedUpdateWithoutGoodInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
service_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type SalesInvoiceItemUncheckedUpdateManyWithoutGoodInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
service_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type SalesInvoiceItemCreateManyInvoiceInput = {
id?: number
id?: string
count: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
goodId: number
serviceId: number
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
good_id: string
service_id: string
}
export type SalesInvoiceItemUpdateWithoutInvoiceInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
good?: Prisma.GoodUpdateOneWithoutSalesInvoiceItemsNestedInput
service?: Prisma.ServiceUpdateOneWithoutSalesInvoiceItemsNestedInput
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
}
export type SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
goodId?: Prisma.IntFieldUpdateOperationsInput | number
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
good_id?: Prisma.StringFieldUpdateOperationsInput | string
service_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
goodId?: Prisma.IntFieldUpdateOperationsInput | number
serviceId?: Prisma.IntFieldUpdateOperationsInput | number
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
good_id?: Prisma.StringFieldUpdateOperationsInput | string
service_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type SalesInvoiceItemCreateManyServiceInput = {
id?: number
id?: string
count: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
invoiceId: number
goodId: number
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
invoice_id: string
good_id: string
}
export type SalesInvoiceItemUpdateWithoutServiceInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
good?: Prisma.GoodUpdateOneWithoutSalesInvoiceItemsNestedInput
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
}
export type SalesInvoiceItemUncheckedUpdateWithoutServiceInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
goodId?: Prisma.IntFieldUpdateOperationsInput | number
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
good_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type SalesInvoiceItemUncheckedUpdateManyWithoutServiceInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
goodId?: Prisma.IntFieldUpdateOperationsInput | number
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
good_id?: Prisma.StringFieldUpdateOperationsInput | string
}
@@ -861,12 +853,12 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutServiceInput = {
export type SalesInvoiceItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
count?: boolean
unitPrice?: boolean
totalAmount?: boolean
createdAt?: boolean
invoiceId?: boolean
goodId?: boolean
serviceId?: boolean
unit_price?: boolean
total_amount?: boolean
created_at?: boolean
invoice_id?: boolean
good_id?: boolean
service_id?: boolean
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
service?: boolean | Prisma.SalesInvoiceItem$serviceArgs<ExtArgs>
@@ -877,15 +869,15 @@ export type SalesInvoiceItemSelect<ExtArgs extends runtime.Types.Extensions.Inte
export type SalesInvoiceItemSelectScalar = {
id?: boolean
count?: boolean
unitPrice?: boolean
totalAmount?: boolean
createdAt?: boolean
invoiceId?: boolean
goodId?: boolean
serviceId?: boolean
unit_price?: boolean
total_amount?: boolean
created_at?: boolean
invoice_id?: boolean
good_id?: boolean
service_id?: boolean
}
export type SalesInvoiceItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "count" | "unitPrice" | "totalAmount" | "createdAt" | "invoiceId" | "goodId" | "serviceId", ExtArgs["result"]["salesInvoiceItem"]>
export type SalesInvoiceItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "count" | "unit_price" | "total_amount" | "created_at" | "invoice_id" | "good_id" | "service_id", ExtArgs["result"]["salesInvoiceItem"]>
export type SalesInvoiceItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
@@ -900,14 +892,14 @@ export type $SalesInvoiceItemPayload<ExtArgs extends runtime.Types.Extensions.In
service: Prisma.$ServicePayload<ExtArgs> | null
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
id: string
count: runtime.Decimal
unitPrice: runtime.Decimal
totalAmount: runtime.Decimal
createdAt: Date
invoiceId: number
goodId: number
serviceId: number
unit_price: runtime.Decimal
total_amount: runtime.Decimal
created_at: Date
invoice_id: string
good_id: string
service_id: string
}, ExtArgs["result"]["salesInvoiceItem"]>
composites: {}
}
@@ -1280,14 +1272,14 @@ export interface Prisma__SalesInvoiceItemClient<T, Null = never, ExtArgs extends
* Fields of the SalesInvoiceItem model
*/
export interface SalesInvoiceItemFieldRefs {
readonly id: Prisma.FieldRef<"SalesInvoiceItem", 'Int'>
readonly id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
readonly count: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
readonly unitPrice: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
readonly totalAmount: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
readonly createdAt: Prisma.FieldRef<"SalesInvoiceItem", 'DateTime'>
readonly invoiceId: Prisma.FieldRef<"SalesInvoiceItem", 'Int'>
readonly goodId: Prisma.FieldRef<"SalesInvoiceItem", 'Int'>
readonly serviceId: Prisma.FieldRef<"SalesInvoiceItem", 'Int'>
readonly unit_price: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
readonly total_amount: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
readonly created_at: Prisma.FieldRef<"SalesInvoiceItem", 'DateTime'>
readonly invoice_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
readonly good_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
readonly service_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
}
+155 -155
View File
@@ -27,83 +27,75 @@ export type AggregateSalesInvoicePayment = {
}
export type SalesInvoicePaymentAvgAggregateOutputType = {
id: number | null
invoiceId: number | null
amount: runtime.Decimal | null
}
export type SalesInvoicePaymentSumAggregateOutputType = {
id: number | null
invoiceId: number | null
amount: runtime.Decimal | null
}
export type SalesInvoicePaymentMinAggregateOutputType = {
id: number | null
invoiceId: number | null
id: string | null
invoice_id: string | null
amount: runtime.Decimal | null
paymentMethod: $Enums.PaymentMethodType | null
paidAt: Date | null
createdAt: Date | null
payment_method: $Enums.PaymentMethodType | null
paid_at: Date | null
created_at: Date | null
}
export type SalesInvoicePaymentMaxAggregateOutputType = {
id: number | null
invoiceId: number | null
id: string | null
invoice_id: string | null
amount: runtime.Decimal | null
paymentMethod: $Enums.PaymentMethodType | null
paidAt: Date | null
createdAt: Date | null
payment_method: $Enums.PaymentMethodType | null
paid_at: Date | null
created_at: Date | null
}
export type SalesInvoicePaymentCountAggregateOutputType = {
id: number
invoiceId: number
invoice_id: number
amount: number
paymentMethod: number
paidAt: number
createdAt: number
payment_method: number
paid_at: number
created_at: number
_all: number
}
export type SalesInvoicePaymentAvgAggregateInputType = {
id?: true
invoiceId?: true
amount?: true
}
export type SalesInvoicePaymentSumAggregateInputType = {
id?: true
invoiceId?: true
amount?: true
}
export type SalesInvoicePaymentMinAggregateInputType = {
id?: true
invoiceId?: true
invoice_id?: true
amount?: true
paymentMethod?: true
paidAt?: true
createdAt?: true
payment_method?: true
paid_at?: true
created_at?: true
}
export type SalesInvoicePaymentMaxAggregateInputType = {
id?: true
invoiceId?: true
invoice_id?: true
amount?: true
paymentMethod?: true
paidAt?: true
createdAt?: true
payment_method?: true
paid_at?: true
created_at?: true
}
export type SalesInvoicePaymentCountAggregateInputType = {
id?: true
invoiceId?: true
invoice_id?: true
amount?: true
paymentMethod?: true
paidAt?: true
createdAt?: true
payment_method?: true
paid_at?: true
created_at?: true
_all?: true
}
@@ -194,12 +186,12 @@ export type SalesInvoicePaymentGroupByArgs<ExtArgs extends runtime.Types.Extensi
}
export type SalesInvoicePaymentGroupByOutputType = {
id: number
invoiceId: number
id: string
invoice_id: string
amount: runtime.Decimal
paymentMethod: $Enums.PaymentMethodType
paidAt: Date
createdAt: Date
payment_method: $Enums.PaymentMethodType
paid_at: Date
created_at: Date
_count: SalesInvoicePaymentCountAggregateOutputType | null
_avg: SalesInvoicePaymentAvgAggregateOutputType | null
_sum: SalesInvoicePaymentSumAggregateOutputType | null
@@ -226,45 +218,46 @@ export type SalesInvoicePaymentWhereInput = {
AND?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
OR?: Prisma.SalesInvoicePaymentWhereInput[]
NOT?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
id?: Prisma.IntFilter<"SalesInvoicePayment"> | number
invoiceId?: Prisma.IntFilter<"SalesInvoicePayment"> | number
id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
amount?: Prisma.DecimalFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
paidAt?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
createdAt?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
payment_method?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
paid_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
created_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
}
export type SalesInvoicePaymentOrderByWithRelationInput = {
id?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
invoice_id?: Prisma.SortOrder
amount?: Prisma.SortOrder
paymentMethod?: Prisma.SortOrder
paidAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
payment_method?: Prisma.SortOrder
paid_at?: Prisma.SortOrder
created_at?: Prisma.SortOrder
invoice?: Prisma.SalesInvoiceOrderByWithRelationInput
_relevance?: Prisma.SalesInvoicePaymentOrderByRelevanceInput
}
export type SalesInvoicePaymentWhereUniqueInput = Prisma.AtLeast<{
id?: number
id?: string
AND?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
OR?: Prisma.SalesInvoicePaymentWhereInput[]
NOT?: Prisma.SalesInvoicePaymentWhereInput | Prisma.SalesInvoicePaymentWhereInput[]
invoiceId?: Prisma.IntFilter<"SalesInvoicePayment"> | number
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
amount?: Prisma.DecimalFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
paidAt?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
createdAt?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
payment_method?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
paid_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
created_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
}, "id">
export type SalesInvoicePaymentOrderByWithAggregationInput = {
id?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
invoice_id?: Prisma.SortOrder
amount?: Prisma.SortOrder
paymentMethod?: Prisma.SortOrder
paidAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
payment_method?: Prisma.SortOrder
paid_at?: Prisma.SortOrder
created_at?: Prisma.SortOrder
_count?: Prisma.SalesInvoicePaymentCountOrderByAggregateInput
_avg?: Prisma.SalesInvoicePaymentAvgOrderByAggregateInput
_max?: Prisma.SalesInvoicePaymentMaxOrderByAggregateInput
@@ -276,71 +269,74 @@ export type SalesInvoicePaymentScalarWhereWithAggregatesInput = {
AND?: Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput | Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput[]
OR?: Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput[]
NOT?: Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput | Prisma.SalesInvoicePaymentScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"SalesInvoicePayment"> | number
invoiceId?: Prisma.IntWithAggregatesFilter<"SalesInvoicePayment"> | number
id?: Prisma.StringWithAggregatesFilter<"SalesInvoicePayment"> | string
invoice_id?: Prisma.StringWithAggregatesFilter<"SalesInvoicePayment"> | string
amount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod?: Prisma.EnumPaymentMethodTypeWithAggregatesFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
paidAt?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoicePayment"> | Date | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoicePayment"> | Date | string
payment_method?: Prisma.EnumPaymentMethodTypeWithAggregatesFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
paid_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoicePayment"> | Date | string
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoicePayment"> | Date | string
}
export type SalesInvoicePaymentCreateInput = {
id?: string
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod: $Enums.PaymentMethodType
paidAt: Date | string
createdAt?: Date | string
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutSalesInvoicePaymentsInput
payment_method: $Enums.PaymentMethodType
paid_at: Date | string
created_at?: Date | string
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutSales_invoice_paymentsInput
}
export type SalesInvoicePaymentUncheckedCreateInput = {
id?: number
invoiceId: number
id?: string
invoice_id: string
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod: $Enums.PaymentMethodType
paidAt: Date | string
createdAt?: Date | string
payment_method: $Enums.PaymentMethodType
paid_at: Date | string
created_at?: Date | string
}
export type SalesInvoicePaymentUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
paidAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutSalesInvoicePaymentsNestedInput
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutSales_invoice_paymentsNestedInput
}
export type SalesInvoicePaymentUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
paidAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SalesInvoicePaymentCreateManyInput = {
id?: number
invoiceId: number
id?: string
invoice_id: string
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod: $Enums.PaymentMethodType
paidAt: Date | string
createdAt?: Date | string
payment_method: $Enums.PaymentMethodType
paid_at: Date | string
created_at?: Date | string
}
export type SalesInvoicePaymentUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
paidAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SalesInvoicePaymentUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
paidAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SalesInvoicePaymentListRelationFilter = {
@@ -353,42 +349,44 @@ export type SalesInvoicePaymentOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type SalesInvoicePaymentOrderByRelevanceInput = {
fields: Prisma.SalesInvoicePaymentOrderByRelevanceFieldEnum | Prisma.SalesInvoicePaymentOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type SalesInvoicePaymentCountOrderByAggregateInput = {
id?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
invoice_id?: Prisma.SortOrder
amount?: Prisma.SortOrder
paymentMethod?: Prisma.SortOrder
paidAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
payment_method?: Prisma.SortOrder
paid_at?: Prisma.SortOrder
created_at?: Prisma.SortOrder
}
export type SalesInvoicePaymentAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
amount?: Prisma.SortOrder
}
export type SalesInvoicePaymentMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
invoice_id?: Prisma.SortOrder
amount?: Prisma.SortOrder
paymentMethod?: Prisma.SortOrder
paidAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
payment_method?: Prisma.SortOrder
paid_at?: Prisma.SortOrder
created_at?: Prisma.SortOrder
}
export type SalesInvoicePaymentMinOrderByAggregateInput = {
id?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
invoice_id?: Prisma.SortOrder
amount?: Prisma.SortOrder
paymentMethod?: Prisma.SortOrder
paidAt?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
payment_method?: Prisma.SortOrder
paid_at?: Prisma.SortOrder
created_at?: Prisma.SortOrder
}
export type SalesInvoicePaymentSumOrderByAggregateInput = {
id?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
amount?: Prisma.SortOrder
}
@@ -439,18 +437,19 @@ export type EnumPaymentMethodTypeFieldUpdateOperationsInput = {
}
export type SalesInvoicePaymentCreateWithoutInvoiceInput = {
id?: string
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod: $Enums.PaymentMethodType
paidAt: Date | string
createdAt?: Date | string
payment_method: $Enums.PaymentMethodType
paid_at: Date | string
created_at?: Date | string
}
export type SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput = {
id?: number
id?: string
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod: $Enums.PaymentMethodType
paidAt: Date | string
createdAt?: Date | string
payment_method: $Enums.PaymentMethodType
paid_at: Date | string
created_at?: Date | string
}
export type SalesInvoicePaymentCreateOrConnectWithoutInvoiceInput = {
@@ -483,54 +482,55 @@ export type SalesInvoicePaymentScalarWhereInput = {
AND?: Prisma.SalesInvoicePaymentScalarWhereInput | Prisma.SalesInvoicePaymentScalarWhereInput[]
OR?: Prisma.SalesInvoicePaymentScalarWhereInput[]
NOT?: Prisma.SalesInvoicePaymentScalarWhereInput | Prisma.SalesInvoicePaymentScalarWhereInput[]
id?: Prisma.IntFilter<"SalesInvoicePayment"> | number
invoiceId?: Prisma.IntFilter<"SalesInvoicePayment"> | number
id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
amount?: Prisma.DecimalFilter<"SalesInvoicePayment"> | runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
paidAt?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
createdAt?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
payment_method?: Prisma.EnumPaymentMethodTypeFilter<"SalesInvoicePayment"> | $Enums.PaymentMethodType
paid_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
created_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
}
export type SalesInvoicePaymentCreateManyInvoiceInput = {
id?: number
id?: string
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod: $Enums.PaymentMethodType
paidAt: Date | string
createdAt?: Date | string
payment_method: $Enums.PaymentMethodType
paid_at: Date | string
created_at?: Date | string
}
export type SalesInvoicePaymentUpdateWithoutInvoiceInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
paidAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SalesInvoicePaymentUncheckedUpdateWithoutInvoiceInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
paidAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
paymentMethod?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
paidAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SalesInvoicePaymentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
invoiceId?: boolean
invoice_id?: boolean
amount?: boolean
paymentMethod?: boolean
paidAt?: boolean
createdAt?: boolean
payment_method?: boolean
paid_at?: boolean
created_at?: boolean
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
}, ExtArgs["result"]["salesInvoicePayment"]>
@@ -538,14 +538,14 @@ export type SalesInvoicePaymentSelect<ExtArgs extends runtime.Types.Extensions.I
export type SalesInvoicePaymentSelectScalar = {
id?: boolean
invoiceId?: boolean
invoice_id?: boolean
amount?: boolean
paymentMethod?: boolean
paidAt?: boolean
createdAt?: boolean
payment_method?: boolean
paid_at?: boolean
created_at?: boolean
}
export type SalesInvoicePaymentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "invoiceId" | "amount" | "paymentMethod" | "paidAt" | "createdAt", ExtArgs["result"]["salesInvoicePayment"]>
export type SalesInvoicePaymentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "invoice_id" | "amount" | "payment_method" | "paid_at" | "created_at", ExtArgs["result"]["salesInvoicePayment"]>
export type SalesInvoicePaymentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
}
@@ -556,12 +556,12 @@ export type $SalesInvoicePaymentPayload<ExtArgs extends runtime.Types.Extensions
invoice: Prisma.$SalesInvoicePayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
invoiceId: number
id: string
invoice_id: string
amount: runtime.Decimal
paymentMethod: $Enums.PaymentMethodType
paidAt: Date
createdAt: Date
payment_method: $Enums.PaymentMethodType
paid_at: Date
created_at: Date
}, ExtArgs["result"]["salesInvoicePayment"]>
composites: {}
}
@@ -932,12 +932,12 @@ export interface Prisma__SalesInvoicePaymentClient<T, Null = never, ExtArgs exte
* Fields of the SalesInvoicePayment model
*/
export interface SalesInvoicePaymentFieldRefs {
readonly id: Prisma.FieldRef<"SalesInvoicePayment", 'Int'>
readonly invoiceId: Prisma.FieldRef<"SalesInvoicePayment", 'Int'>
readonly id: Prisma.FieldRef<"SalesInvoicePayment", 'String'>
readonly invoice_id: Prisma.FieldRef<"SalesInvoicePayment", 'String'>
readonly amount: Prisma.FieldRef<"SalesInvoicePayment", 'Decimal'>
readonly paymentMethod: Prisma.FieldRef<"SalesInvoicePayment", 'PaymentMethodType'>
readonly paidAt: Prisma.FieldRef<"SalesInvoicePayment", 'DateTime'>
readonly createdAt: Prisma.FieldRef<"SalesInvoicePayment", 'DateTime'>
readonly payment_method: Prisma.FieldRef<"SalesInvoicePayment", 'PaymentMethodType'>
readonly paid_at: Prisma.FieldRef<"SalesInvoicePayment", 'DateTime'>
readonly created_at: Prisma.FieldRef<"SalesInvoicePayment", 'DateTime'>
}
+358 -252
View File
@@ -27,41 +27,43 @@ export type AggregateService = {
}
export type ServiceAvgAggregateOutputType = {
id: number | null
categoryId: number | null
baseSalePrice: runtime.Decimal | null
base_sale_price: runtime.Decimal | null
}
export type ServiceSumAggregateOutputType = {
id: number | null
categoryId: number | null
baseSalePrice: runtime.Decimal | null
base_sale_price: runtime.Decimal | null
}
export type ServiceMinAggregateOutputType = {
id: number | null
id: string | null
name: string | null
description: string | null
sku: string | null
local_sku: string | null
barcode: string | null
createdAt: Date | null
updatedAt: Date | null
deletedAt: Date | null
categoryId: number | null
baseSalePrice: runtime.Decimal | null
created_at: Date | null
updated_at: Date | null
deleted_at: Date | null
category_id: string | null
base_sale_price: runtime.Decimal | null
account_id: string | null
complex_id: string | null
}
export type ServiceMaxAggregateOutputType = {
id: number | null
id: string | null
name: string | null
description: string | null
sku: string | null
local_sku: string | null
barcode: string | null
createdAt: Date | null
updatedAt: Date | null
deletedAt: Date | null
categoryId: number | null
baseSalePrice: runtime.Decimal | null
created_at: Date | null
updated_at: Date | null
deleted_at: Date | null
category_id: string | null
base_sale_price: runtime.Decimal | null
account_id: string | null
complex_id: string | null
}
export type ServiceCountAggregateOutputType = {
@@ -69,26 +71,25 @@ export type ServiceCountAggregateOutputType = {
name: number
description: number
sku: number
local_sku: number
barcode: number
createdAt: number
updatedAt: number
deletedAt: number
categoryId: number
baseSalePrice: number
created_at: number
updated_at: number
deleted_at: number
category_id: number
base_sale_price: number
account_id: number
complex_id: number
_all: number
}
export type ServiceAvgAggregateInputType = {
id?: true
categoryId?: true
baseSalePrice?: true
base_sale_price?: true
}
export type ServiceSumAggregateInputType = {
id?: true
categoryId?: true
baseSalePrice?: true
base_sale_price?: true
}
export type ServiceMinAggregateInputType = {
@@ -96,12 +97,15 @@ export type ServiceMinAggregateInputType = {
name?: true
description?: true
sku?: true
local_sku?: true
barcode?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
categoryId?: true
baseSalePrice?: true
created_at?: true
updated_at?: true
deleted_at?: true
category_id?: true
base_sale_price?: true
account_id?: true
complex_id?: true
}
export type ServiceMaxAggregateInputType = {
@@ -109,12 +113,15 @@ export type ServiceMaxAggregateInputType = {
name?: true
description?: true
sku?: true
local_sku?: true
barcode?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
categoryId?: true
baseSalePrice?: true
created_at?: true
updated_at?: true
deleted_at?: true
category_id?: true
base_sale_price?: true
account_id?: true
complex_id?: true
}
export type ServiceCountAggregateInputType = {
@@ -122,12 +129,15 @@ export type ServiceCountAggregateInputType = {
name?: true
description?: true
sku?: true
local_sku?: true
barcode?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
categoryId?: true
baseSalePrice?: true
created_at?: true
updated_at?: true
deleted_at?: true
category_id?: true
base_sale_price?: true
account_id?: true
complex_id?: true
_all?: true
}
@@ -218,16 +228,19 @@ export type ServiceGroupByArgs<ExtArgs extends runtime.Types.Extensions.Internal
}
export type ServiceGroupByOutputType = {
id: number
id: string
name: string
description: string | null
sku: string
local_sku: string | null
barcode: string | null
createdAt: Date
updatedAt: Date
deletedAt: Date | null
categoryId: number | null
baseSalePrice: runtime.Decimal
created_at: Date
updated_at: Date
deleted_at: Date | null
category_id: string | null
base_sale_price: runtime.Decimal
account_id: string
complex_id: string
_count: ServiceCountAggregateOutputType | null
_avg: ServiceAvgAggregateOutputType | null
_sum: ServiceSumAggregateOutputType | null
@@ -254,18 +267,21 @@ export type ServiceWhereInput = {
AND?: Prisma.ServiceWhereInput | Prisma.ServiceWhereInput[]
OR?: Prisma.ServiceWhereInput[]
NOT?: Prisma.ServiceWhereInput | Prisma.ServiceWhereInput[]
id?: Prisma.IntFilter<"Service"> | number
id?: Prisma.StringFilter<"Service"> | string
name?: Prisma.StringFilter<"Service"> | string
description?: Prisma.StringNullableFilter<"Service"> | string | null
sku?: Prisma.StringFilter<"Service"> | string
local_sku?: Prisma.StringNullableFilter<"Service"> | string | null
barcode?: Prisma.StringNullableFilter<"Service"> | string | null
createdAt?: Prisma.DateTimeFilter<"Service"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Service"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"Service"> | Date | string | null
categoryId?: Prisma.IntNullableFilter<"Service"> | number | null
baseSalePrice?: Prisma.DecimalFilter<"Service"> | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFilter<"Service"> | Date | string
updated_at?: Prisma.DateTimeFilter<"Service"> | Date | string
deleted_at?: Prisma.DateTimeNullableFilter<"Service"> | Date | string | null
category_id?: Prisma.StringNullableFilter<"Service"> | string | null
base_sale_price?: Prisma.DecimalFilter<"Service"> | runtime.Decimal | runtime.DecimalJsLike | number | string
account_id?: Prisma.StringFilter<"Service"> | string
complex_id?: Prisma.StringFilter<"Service"> | string
category?: Prisma.XOR<Prisma.ServiceCategoryNullableScalarRelationFilter, Prisma.ServiceCategoryWhereInput> | null
salesInvoiceItems?: Prisma.SalesInvoiceItemListRelationFilter
sales_invoice_items?: Prisma.SalesInvoiceItemListRelationFilter
}
export type ServiceOrderByWithRelationInput = {
@@ -273,46 +289,55 @@ export type ServiceOrderByWithRelationInput = {
name?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
sku?: Prisma.SortOrder
local_sku?: Prisma.SortOrderInput | Prisma.SortOrder
barcode?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
categoryId?: Prisma.SortOrderInput | Prisma.SortOrder
baseSalePrice?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
category_id?: Prisma.SortOrderInput | Prisma.SortOrder
base_sale_price?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
category?: Prisma.ServiceCategoryOrderByWithRelationInput
salesInvoiceItems?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
sales_invoice_items?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
_relevance?: Prisma.ServiceOrderByRelevanceInput
}
export type ServiceWhereUniqueInput = Prisma.AtLeast<{
id?: number
id?: string
sku?: string
local_sku?: string
barcode?: string
AND?: Prisma.ServiceWhereInput | Prisma.ServiceWhereInput[]
OR?: Prisma.ServiceWhereInput[]
NOT?: Prisma.ServiceWhereInput | Prisma.ServiceWhereInput[]
name?: Prisma.StringFilter<"Service"> | string
description?: Prisma.StringNullableFilter<"Service"> | string | null
createdAt?: Prisma.DateTimeFilter<"Service"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Service"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"Service"> | Date | string | null
categoryId?: Prisma.IntNullableFilter<"Service"> | number | null
baseSalePrice?: Prisma.DecimalFilter<"Service"> | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFilter<"Service"> | Date | string
updated_at?: Prisma.DateTimeFilter<"Service"> | Date | string
deleted_at?: Prisma.DateTimeNullableFilter<"Service"> | Date | string | null
category_id?: Prisma.StringNullableFilter<"Service"> | string | null
base_sale_price?: Prisma.DecimalFilter<"Service"> | runtime.Decimal | runtime.DecimalJsLike | number | string
account_id?: Prisma.StringFilter<"Service"> | string
complex_id?: Prisma.StringFilter<"Service"> | string
category?: Prisma.XOR<Prisma.ServiceCategoryNullableScalarRelationFilter, Prisma.ServiceCategoryWhereInput> | null
salesInvoiceItems?: Prisma.SalesInvoiceItemListRelationFilter
}, "id" | "sku" | "barcode">
sales_invoice_items?: Prisma.SalesInvoiceItemListRelationFilter
}, "id" | "sku" | "local_sku" | "barcode">
export type ServiceOrderByWithAggregationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
sku?: Prisma.SortOrder
local_sku?: Prisma.SortOrderInput | Prisma.SortOrder
barcode?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
categoryId?: Prisma.SortOrderInput | Prisma.SortOrder
baseSalePrice?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
category_id?: Prisma.SortOrderInput | Prisma.SortOrder
base_sale_price?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
_count?: Prisma.ServiceCountOrderByAggregateInput
_avg?: Prisma.ServiceAvgOrderByAggregateInput
_max?: Prisma.ServiceMaxOrderByAggregateInput
@@ -324,107 +349,134 @@ export type ServiceScalarWhereWithAggregatesInput = {
AND?: Prisma.ServiceScalarWhereWithAggregatesInput | Prisma.ServiceScalarWhereWithAggregatesInput[]
OR?: Prisma.ServiceScalarWhereWithAggregatesInput[]
NOT?: Prisma.ServiceScalarWhereWithAggregatesInput | Prisma.ServiceScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"Service"> | number
id?: Prisma.StringWithAggregatesFilter<"Service"> | string
name?: Prisma.StringWithAggregatesFilter<"Service"> | string
description?: Prisma.StringNullableWithAggregatesFilter<"Service"> | string | null
sku?: Prisma.StringWithAggregatesFilter<"Service"> | string
local_sku?: Prisma.StringNullableWithAggregatesFilter<"Service"> | string | null
barcode?: Prisma.StringNullableWithAggregatesFilter<"Service"> | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Service"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Service"> | Date | string
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Service"> | Date | string | null
categoryId?: Prisma.IntNullableWithAggregatesFilter<"Service"> | number | null
baseSalePrice?: Prisma.DecimalWithAggregatesFilter<"Service"> | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeWithAggregatesFilter<"Service"> | Date | string
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Service"> | Date | string
deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"Service"> | Date | string | null
category_id?: Prisma.StringNullableWithAggregatesFilter<"Service"> | string | null
base_sale_price?: Prisma.DecimalWithAggregatesFilter<"Service"> | runtime.Decimal | runtime.DecimalJsLike | number | string
account_id?: Prisma.StringWithAggregatesFilter<"Service"> | string
complex_id?: Prisma.StringWithAggregatesFilter<"Service"> | string
}
export type ServiceCreateInput = {
id?: string
name: string
description?: string | null
sku: string
local_sku?: string | null
barcode?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
baseSalePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
account_id: string
complex_id: string
category?: Prisma.ServiceCategoryCreateNestedOneWithoutServicesInput
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutServiceInput
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutServiceInput
}
export type ServiceUncheckedCreateInput = {
id?: number
id?: string
name: string
description?: string | null
sku: string
local_sku?: string | null
barcode?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
categoryId?: number | null
baseSalePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutServiceInput
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
category_id?: string | null
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
account_id: string
complex_id: string
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutServiceInput
}
export type ServiceUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sku?: Prisma.StringFieldUpdateOperationsInput | string
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
baseSalePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
base_sale_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
category?: Prisma.ServiceCategoryUpdateOneWithoutServicesNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutServiceNestedInput
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutServiceNestedInput
}
export type ServiceUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sku?: Prisma.StringFieldUpdateOperationsInput | string
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
categoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
baseSalePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutServiceNestedInput
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
base_sale_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutServiceNestedInput
}
export type ServiceCreateManyInput = {
id?: number
id?: string
name: string
description?: string | null
sku: string
local_sku?: string | null
barcode?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
categoryId?: number | null
baseSalePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
category_id?: string | null
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
account_id: string
complex_id: string
}
export type ServiceUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sku?: Prisma.StringFieldUpdateOperationsInput | string
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
baseSalePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
base_sale_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type ServiceUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sku?: Prisma.StringFieldUpdateOperationsInput | string
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
categoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
baseSalePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
base_sale_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type ServiceNullableScalarRelationFilter = {
@@ -443,18 +495,19 @@ export type ServiceCountOrderByAggregateInput = {
name?: Prisma.SortOrder
description?: Prisma.SortOrder
sku?: Prisma.SortOrder
local_sku?: Prisma.SortOrder
barcode?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
categoryId?: Prisma.SortOrder
baseSalePrice?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrder
category_id?: Prisma.SortOrder
base_sale_price?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
}
export type ServiceAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
categoryId?: Prisma.SortOrder
baseSalePrice?: Prisma.SortOrder
base_sale_price?: Prisma.SortOrder
}
export type ServiceMaxOrderByAggregateInput = {
@@ -462,12 +515,15 @@ export type ServiceMaxOrderByAggregateInput = {
name?: Prisma.SortOrder
description?: Prisma.SortOrder
sku?: Prisma.SortOrder
local_sku?: Prisma.SortOrder
barcode?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
categoryId?: Prisma.SortOrder
baseSalePrice?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrder
category_id?: Prisma.SortOrder
base_sale_price?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
}
export type ServiceMinOrderByAggregateInput = {
@@ -475,18 +531,19 @@ export type ServiceMinOrderByAggregateInput = {
name?: Prisma.SortOrder
description?: Prisma.SortOrder
sku?: Prisma.SortOrder
local_sku?: Prisma.SortOrder
barcode?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
categoryId?: Prisma.SortOrder
baseSalePrice?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrder
category_id?: Prisma.SortOrder
base_sale_price?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
}
export type ServiceSumOrderByAggregateInput = {
id?: Prisma.SortOrder
categoryId?: Prisma.SortOrder
baseSalePrice?: Prisma.SortOrder
base_sale_price?: Prisma.SortOrder
}
export type ServiceListRelationFilter = {
@@ -499,20 +556,20 @@ export type ServiceOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type ServiceCreateNestedOneWithoutSalesInvoiceItemsInput = {
create?: Prisma.XOR<Prisma.ServiceCreateWithoutSalesInvoiceItemsInput, Prisma.ServiceUncheckedCreateWithoutSalesInvoiceItemsInput>
connectOrCreate?: Prisma.ServiceCreateOrConnectWithoutSalesInvoiceItemsInput
export type ServiceCreateNestedOneWithoutSales_invoice_itemsInput = {
create?: Prisma.XOR<Prisma.ServiceCreateWithoutSales_invoice_itemsInput, Prisma.ServiceUncheckedCreateWithoutSales_invoice_itemsInput>
connectOrCreate?: Prisma.ServiceCreateOrConnectWithoutSales_invoice_itemsInput
connect?: Prisma.ServiceWhereUniqueInput
}
export type ServiceUpdateOneWithoutSalesInvoiceItemsNestedInput = {
create?: Prisma.XOR<Prisma.ServiceCreateWithoutSalesInvoiceItemsInput, Prisma.ServiceUncheckedCreateWithoutSalesInvoiceItemsInput>
connectOrCreate?: Prisma.ServiceCreateOrConnectWithoutSalesInvoiceItemsInput
upsert?: Prisma.ServiceUpsertWithoutSalesInvoiceItemsInput
export type ServiceUpdateOneWithoutSales_invoice_itemsNestedInput = {
create?: Prisma.XOR<Prisma.ServiceCreateWithoutSales_invoice_itemsInput, Prisma.ServiceUncheckedCreateWithoutSales_invoice_itemsInput>
connectOrCreate?: Prisma.ServiceCreateOrConnectWithoutSales_invoice_itemsInput
upsert?: Prisma.ServiceUpsertWithoutSales_invoice_itemsInput
disconnect?: Prisma.ServiceWhereInput | boolean
delete?: Prisma.ServiceWhereInput | boolean
connect?: Prisma.ServiceWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.ServiceUpdateToOneWithWhereWithoutSalesInvoiceItemsInput, Prisma.ServiceUpdateWithoutSalesInvoiceItemsInput>, Prisma.ServiceUncheckedUpdateWithoutSalesInvoiceItemsInput>
update?: Prisma.XOR<Prisma.XOR<Prisma.ServiceUpdateToOneWithWhereWithoutSales_invoice_itemsInput, Prisma.ServiceUpdateWithoutSales_invoice_itemsInput>, Prisma.ServiceUncheckedUpdateWithoutSales_invoice_itemsInput>
}
export type ServiceCreateNestedManyWithoutCategoryInput = {
@@ -557,95 +614,116 @@ export type ServiceUncheckedUpdateManyWithoutCategoryNestedInput = {
deleteMany?: Prisma.ServiceScalarWhereInput | Prisma.ServiceScalarWhereInput[]
}
export type ServiceCreateWithoutSalesInvoiceItemsInput = {
export type ServiceCreateWithoutSales_invoice_itemsInput = {
id?: string
name: string
description?: string | null
sku: string
local_sku?: string | null
barcode?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
baseSalePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
account_id: string
complex_id: string
category?: Prisma.ServiceCategoryCreateNestedOneWithoutServicesInput
}
export type ServiceUncheckedCreateWithoutSalesInvoiceItemsInput = {
id?: number
export type ServiceUncheckedCreateWithoutSales_invoice_itemsInput = {
id?: string
name: string
description?: string | null
sku: string
local_sku?: string | null
barcode?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
categoryId?: number | null
baseSalePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
category_id?: string | null
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
account_id: string
complex_id: string
}
export type ServiceCreateOrConnectWithoutSalesInvoiceItemsInput = {
export type ServiceCreateOrConnectWithoutSales_invoice_itemsInput = {
where: Prisma.ServiceWhereUniqueInput
create: Prisma.XOR<Prisma.ServiceCreateWithoutSalesInvoiceItemsInput, Prisma.ServiceUncheckedCreateWithoutSalesInvoiceItemsInput>
create: Prisma.XOR<Prisma.ServiceCreateWithoutSales_invoice_itemsInput, Prisma.ServiceUncheckedCreateWithoutSales_invoice_itemsInput>
}
export type ServiceUpsertWithoutSalesInvoiceItemsInput = {
update: Prisma.XOR<Prisma.ServiceUpdateWithoutSalesInvoiceItemsInput, Prisma.ServiceUncheckedUpdateWithoutSalesInvoiceItemsInput>
create: Prisma.XOR<Prisma.ServiceCreateWithoutSalesInvoiceItemsInput, Prisma.ServiceUncheckedCreateWithoutSalesInvoiceItemsInput>
export type ServiceUpsertWithoutSales_invoice_itemsInput = {
update: Prisma.XOR<Prisma.ServiceUpdateWithoutSales_invoice_itemsInput, Prisma.ServiceUncheckedUpdateWithoutSales_invoice_itemsInput>
create: Prisma.XOR<Prisma.ServiceCreateWithoutSales_invoice_itemsInput, Prisma.ServiceUncheckedCreateWithoutSales_invoice_itemsInput>
where?: Prisma.ServiceWhereInput
}
export type ServiceUpdateToOneWithWhereWithoutSalesInvoiceItemsInput = {
export type ServiceUpdateToOneWithWhereWithoutSales_invoice_itemsInput = {
where?: Prisma.ServiceWhereInput
data: Prisma.XOR<Prisma.ServiceUpdateWithoutSalesInvoiceItemsInput, Prisma.ServiceUncheckedUpdateWithoutSalesInvoiceItemsInput>
data: Prisma.XOR<Prisma.ServiceUpdateWithoutSales_invoice_itemsInput, Prisma.ServiceUncheckedUpdateWithoutSales_invoice_itemsInput>
}
export type ServiceUpdateWithoutSalesInvoiceItemsInput = {
export type ServiceUpdateWithoutSales_invoice_itemsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sku?: Prisma.StringFieldUpdateOperationsInput | string
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
baseSalePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
base_sale_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
category?: Prisma.ServiceCategoryUpdateOneWithoutServicesNestedInput
}
export type ServiceUncheckedUpdateWithoutSalesInvoiceItemsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
export type ServiceUncheckedUpdateWithoutSales_invoice_itemsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sku?: Prisma.StringFieldUpdateOperationsInput | string
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
categoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
baseSalePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
category_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
base_sale_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
}
export type ServiceCreateWithoutCategoryInput = {
id?: string
name: string
description?: string | null
sku: string
local_sku?: string | null
barcode?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
baseSalePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutServiceInput
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
account_id: string
complex_id: string
sales_invoice_items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutServiceInput
}
export type ServiceUncheckedCreateWithoutCategoryInput = {
id?: number
id?: string
name: string
description?: string | null
sku: string
local_sku?: string | null
barcode?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
baseSalePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutServiceInput
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
account_id: string
complex_id: string
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutServiceInput
}
export type ServiceCreateOrConnectWithoutCategoryInput = {
@@ -678,65 +756,81 @@ export type ServiceScalarWhereInput = {
AND?: Prisma.ServiceScalarWhereInput | Prisma.ServiceScalarWhereInput[]
OR?: Prisma.ServiceScalarWhereInput[]
NOT?: Prisma.ServiceScalarWhereInput | Prisma.ServiceScalarWhereInput[]
id?: Prisma.IntFilter<"Service"> | number
id?: Prisma.StringFilter<"Service"> | string
name?: Prisma.StringFilter<"Service"> | string
description?: Prisma.StringNullableFilter<"Service"> | string | null
sku?: Prisma.StringFilter<"Service"> | string
local_sku?: Prisma.StringNullableFilter<"Service"> | string | null
barcode?: Prisma.StringNullableFilter<"Service"> | string | null
createdAt?: Prisma.DateTimeFilter<"Service"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Service"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"Service"> | Date | string | null
categoryId?: Prisma.IntNullableFilter<"Service"> | number | null
baseSalePrice?: Prisma.DecimalFilter<"Service"> | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFilter<"Service"> | Date | string
updated_at?: Prisma.DateTimeFilter<"Service"> | Date | string
deleted_at?: Prisma.DateTimeNullableFilter<"Service"> | Date | string | null
category_id?: Prisma.StringNullableFilter<"Service"> | string | null
base_sale_price?: Prisma.DecimalFilter<"Service"> | runtime.Decimal | runtime.DecimalJsLike | number | string
account_id?: Prisma.StringFilter<"Service"> | string
complex_id?: Prisma.StringFilter<"Service"> | string
}
export type ServiceCreateManyCategoryInput = {
id?: number
id?: string
name: string
description?: string | null
sku: string
local_sku?: string | null
barcode?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
baseSalePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
base_sale_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
account_id: string
complex_id: string
}
export type ServiceUpdateWithoutCategoryInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sku?: Prisma.StringFieldUpdateOperationsInput | string
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
baseSalePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutServiceNestedInput
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
base_sale_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
sales_invoice_items?: Prisma.SalesInvoiceItemUpdateManyWithoutServiceNestedInput
}
export type ServiceUncheckedUpdateWithoutCategoryInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sku?: Prisma.StringFieldUpdateOperationsInput | string
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
baseSalePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutServiceNestedInput
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
base_sale_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
sales_invoice_items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutServiceNestedInput
}
export type ServiceUncheckedUpdateManyWithoutCategoryInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sku?: Prisma.StringFieldUpdateOperationsInput | string
local_sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
baseSalePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deleted_at?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
base_sale_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
account_id?: Prisma.StringFieldUpdateOperationsInput | string
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
}
@@ -745,11 +839,11 @@ export type ServiceUncheckedUpdateManyWithoutCategoryInput = {
*/
export type ServiceCountOutputType = {
salesInvoiceItems: number
sales_invoice_items: number
}
export type ServiceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
salesInvoiceItems?: boolean | ServiceCountOutputTypeCountSalesInvoiceItemsArgs
sales_invoice_items?: boolean | ServiceCountOutputTypeCountSales_invoice_itemsArgs
}
/**
@@ -765,7 +859,7 @@ export type ServiceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Exte
/**
* ServiceCountOutputType without action
*/
export type ServiceCountOutputTypeCountSalesInvoiceItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
export type ServiceCountOutputTypeCountSales_invoice_itemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.SalesInvoiceItemWhereInput
}
@@ -775,14 +869,17 @@ export type ServiceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
name?: boolean
description?: boolean
sku?: boolean
local_sku?: boolean
barcode?: boolean
createdAt?: boolean
updatedAt?: boolean
deletedAt?: boolean
categoryId?: boolean
baseSalePrice?: boolean
created_at?: boolean
updated_at?: boolean
deleted_at?: boolean
category_id?: boolean
base_sale_price?: boolean
account_id?: boolean
complex_id?: boolean
category?: boolean | Prisma.Service$categoryArgs<ExtArgs>
salesInvoiceItems?: boolean | Prisma.Service$salesInvoiceItemsArgs<ExtArgs>
sales_invoice_items?: boolean | Prisma.Service$sales_invoice_itemsArgs<ExtArgs>
_count?: boolean | Prisma.ServiceCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["service"]>
@@ -793,18 +890,21 @@ export type ServiceSelectScalar = {
name?: boolean
description?: boolean
sku?: boolean
local_sku?: boolean
barcode?: boolean
createdAt?: boolean
updatedAt?: boolean
deletedAt?: boolean
categoryId?: boolean
baseSalePrice?: boolean
created_at?: boolean
updated_at?: boolean
deleted_at?: boolean
category_id?: boolean
base_sale_price?: boolean
account_id?: boolean
complex_id?: boolean
}
export type ServiceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "sku" | "barcode" | "createdAt" | "updatedAt" | "deletedAt" | "categoryId" | "baseSalePrice", ExtArgs["result"]["service"]>
export type ServiceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "sku" | "local_sku" | "barcode" | "created_at" | "updated_at" | "deleted_at" | "category_id" | "base_sale_price" | "account_id" | "complex_id", ExtArgs["result"]["service"]>
export type ServiceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
category?: boolean | Prisma.Service$categoryArgs<ExtArgs>
salesInvoiceItems?: boolean | Prisma.Service$salesInvoiceItemsArgs<ExtArgs>
sales_invoice_items?: boolean | Prisma.Service$sales_invoice_itemsArgs<ExtArgs>
_count?: boolean | Prisma.ServiceCountOutputTypeDefaultArgs<ExtArgs>
}
@@ -812,19 +912,22 @@ export type $ServicePayload<ExtArgs extends runtime.Types.Extensions.InternalArg
name: "Service"
objects: {
category: Prisma.$ServiceCategoryPayload<ExtArgs> | null
salesInvoiceItems: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
sales_invoice_items: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
id: string
name: string
description: string | null
sku: string
local_sku: string | null
barcode: string | null
createdAt: Date
updatedAt: Date
deletedAt: Date | null
categoryId: number | null
baseSalePrice: runtime.Decimal
created_at: Date
updated_at: Date
deleted_at: Date | null
category_id: string | null
base_sale_price: runtime.Decimal
account_id: string
complex_id: string
}, ExtArgs["result"]["service"]>
composites: {}
}
@@ -1166,7 +1269,7 @@ readonly fields: ServiceFieldRefs;
export interface Prisma__ServiceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
category<T extends Prisma.Service$categoryArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Service$categoryArgs<ExtArgs>>): Prisma.Prisma__ServiceCategoryClient<runtime.Types.Result.GetResult<Prisma.$ServiceCategoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
salesInvoiceItems<T extends Prisma.Service$salesInvoiceItemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Service$salesInvoiceItemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
sales_invoice_items<T extends Prisma.Service$sales_invoice_itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Service$sales_invoice_itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
@@ -1196,16 +1299,19 @@ export interface Prisma__ServiceClient<T, Null = never, ExtArgs extends runtime.
* Fields of the Service model
*/
export interface ServiceFieldRefs {
readonly id: Prisma.FieldRef<"Service", 'Int'>
readonly id: Prisma.FieldRef<"Service", 'String'>
readonly name: Prisma.FieldRef<"Service", 'String'>
readonly description: Prisma.FieldRef<"Service", 'String'>
readonly sku: Prisma.FieldRef<"Service", 'String'>
readonly local_sku: Prisma.FieldRef<"Service", 'String'>
readonly barcode: Prisma.FieldRef<"Service", 'String'>
readonly createdAt: Prisma.FieldRef<"Service", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"Service", 'DateTime'>
readonly deletedAt: Prisma.FieldRef<"Service", 'DateTime'>
readonly categoryId: Prisma.FieldRef<"Service", 'Int'>
readonly baseSalePrice: Prisma.FieldRef<"Service", 'Decimal'>
readonly created_at: Prisma.FieldRef<"Service", 'DateTime'>
readonly updated_at: Prisma.FieldRef<"Service", 'DateTime'>
readonly deleted_at: Prisma.FieldRef<"Service", 'DateTime'>
readonly category_id: Prisma.FieldRef<"Service", 'String'>
readonly base_sale_price: Prisma.FieldRef<"Service", 'Decimal'>
readonly account_id: Prisma.FieldRef<"Service", 'String'>
readonly complex_id: Prisma.FieldRef<"Service", 'String'>
}
@@ -1568,9 +1674,9 @@ export type Service$categoryArgs<ExtArgs extends runtime.Types.Extensions.Intern
}
/**
* Service.salesInvoiceItems
* Service.sales_invoice_items
*/
export type Service$salesInvoiceItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
export type Service$sales_invoice_itemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the SalesInvoiceItem
*/
+200 -179
View File
@@ -20,88 +20,82 @@ export type ServiceCategoryModel = runtime.Types.Result.DefaultSelection<Prisma.
export type AggregateServiceCategory = {
_count: ServiceCategoryCountAggregateOutputType | null
_avg: ServiceCategoryAvgAggregateOutputType | null
_sum: ServiceCategorySumAggregateOutputType | null
_min: ServiceCategoryMinAggregateOutputType | null
_max: ServiceCategoryMaxAggregateOutputType | null
}
export type ServiceCategoryAvgAggregateOutputType = {
id: number | null
}
export type ServiceCategorySumAggregateOutputType = {
id: number | null
}
export type ServiceCategoryMinAggregateOutputType = {
id: number | null
id: string | null
name: string | null
description: string | null
imageUrl: string | null
createdAt: Date | null
updatedAt: Date | null
deletedAt: Date | null
image_url: string | null
account_id: string | null
complex_id: string | null
created_at: Date | null
updated_at: Date | null
deleted_at: Date | null
}
export type ServiceCategoryMaxAggregateOutputType = {
id: number | null
id: string | null
name: string | null
description: string | null
imageUrl: string | null
createdAt: Date | null
updatedAt: Date | null
deletedAt: Date | null
image_url: string | null
account_id: string | null
complex_id: string | null
created_at: Date | null
updated_at: Date | null
deleted_at: Date | null
}
export type ServiceCategoryCountAggregateOutputType = {
id: number
name: number
description: number
imageUrl: number
createdAt: number
updatedAt: number
deletedAt: number
image_url: number
account_id: number
complex_id: number
created_at: number
updated_at: number
deleted_at: number
_all: number
}
export type ServiceCategoryAvgAggregateInputType = {
id?: true
}
export type ServiceCategorySumAggregateInputType = {
id?: true
}
export type ServiceCategoryMinAggregateInputType = {
id?: true
name?: true
description?: true
imageUrl?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
image_url?: true
account_id?: true
complex_id?: true
created_at?: true
updated_at?: true
deleted_at?: true
}
export type ServiceCategoryMaxAggregateInputType = {
id?: true
name?: true
description?: true
imageUrl?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
image_url?: true
account_id?: true
complex_id?: true
created_at?: true
updated_at?: true
deleted_at?: true
}
export type ServiceCategoryCountAggregateInputType = {
id?: true
name?: true
description?: true
imageUrl?: true
createdAt?: true
updatedAt?: true
deletedAt?: true
image_url?: true
account_id?: true
complex_id?: true
created_at?: true
updated_at?: true
deleted_at?: true
_all?: true
}
@@ -140,18 +134,6 @@ export type ServiceCategoryAggregateArgs<ExtArgs extends runtime.Types.Extension
* Count returned ServiceCategories
**/
_count?: true | ServiceCategoryCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: ServiceCategoryAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: ServiceCategorySumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
@@ -185,23 +167,21 @@ export type ServiceCategoryGroupByArgs<ExtArgs extends runtime.Types.Extensions.
take?: number
skip?: number
_count?: ServiceCategoryCountAggregateInputType | true
_avg?: ServiceCategoryAvgAggregateInputType
_sum?: ServiceCategorySumAggregateInputType
_min?: ServiceCategoryMinAggregateInputType
_max?: ServiceCategoryMaxAggregateInputType
}
export type ServiceCategoryGroupByOutputType = {
id: number
id: string
name: string
description: string | null
imageUrl: string | null
createdAt: Date
updatedAt: Date
deletedAt: Date | null
image_url: string | null
account_id: string
complex_id: string
created_at: Date
updated_at: Date
deleted_at: Date | null
_count: ServiceCategoryCountAggregateOutputType | null
_avg: ServiceCategoryAvgAggregateOutputType | null
_sum: ServiceCategorySumAggregateOutputType | null
_min: ServiceCategoryMinAggregateOutputType | null
_max: ServiceCategoryMaxAggregateOutputType | null
}
@@ -225,13 +205,15 @@ export type ServiceCategoryWhereInput = {
AND?: Prisma.ServiceCategoryWhereInput | Prisma.ServiceCategoryWhereInput[]
OR?: Prisma.ServiceCategoryWhereInput[]
NOT?: Prisma.ServiceCategoryWhereInput | Prisma.ServiceCategoryWhereInput[]
id?: Prisma.IntFilter<"ServiceCategory"> | number
id?: Prisma.StringFilter<"ServiceCategory"> | string
name?: Prisma.StringFilter<"ServiceCategory"> | string
description?: Prisma.StringNullableFilter<"ServiceCategory"> | string | null
imageUrl?: Prisma.StringNullableFilter<"ServiceCategory"> | string | null
createdAt?: Prisma.DateTimeFilter<"ServiceCategory"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"ServiceCategory"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"ServiceCategory"> | Date | string | null
image_url?: Prisma.StringNullableFilter<"ServiceCategory"> | string | null
account_id?: Prisma.StringFilter<"ServiceCategory"> | string
complex_id?: Prisma.StringFilter<"ServiceCategory"> | string
created_at?: Prisma.DateTimeFilter<"ServiceCategory"> | Date | string
updated_at?: Prisma.DateTimeFilter<"ServiceCategory"> | Date | string
deleted_at?: Prisma.DateTimeNullableFilter<"ServiceCategory"> | Date | string | null
services?: Prisma.ServiceListRelationFilter
}
@@ -239,25 +221,29 @@ export type ServiceCategoryOrderByWithRelationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
imageUrl?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
image_url?: Prisma.SortOrderInput | Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
services?: Prisma.ServiceOrderByRelationAggregateInput
_relevance?: Prisma.ServiceCategoryOrderByRelevanceInput
}
export type ServiceCategoryWhereUniqueInput = Prisma.AtLeast<{
id?: number
id?: string
AND?: Prisma.ServiceCategoryWhereInput | Prisma.ServiceCategoryWhereInput[]
OR?: Prisma.ServiceCategoryWhereInput[]
NOT?: Prisma.ServiceCategoryWhereInput | Prisma.ServiceCategoryWhereInput[]
name?: Prisma.StringFilter<"ServiceCategory"> | string
description?: Prisma.StringNullableFilter<"ServiceCategory"> | string | null
imageUrl?: Prisma.StringNullableFilter<"ServiceCategory"> | string | null
createdAt?: Prisma.DateTimeFilter<"ServiceCategory"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"ServiceCategory"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"ServiceCategory"> | Date | string | null
image_url?: Prisma.StringNullableFilter<"ServiceCategory"> | string | null
account_id?: Prisma.StringFilter<"ServiceCategory"> | string
complex_id?: Prisma.StringFilter<"ServiceCategory"> | string
created_at?: Prisma.DateTimeFilter<"ServiceCategory"> | Date | string
updated_at?: Prisma.DateTimeFilter<"ServiceCategory"> | Date | string
deleted_at?: Prisma.DateTimeNullableFilter<"ServiceCategory"> | Date | string | null
services?: Prisma.ServiceListRelationFilter
}, "id">
@@ -265,99 +251,118 @@ export type ServiceCategoryOrderByWithAggregationInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
imageUrl?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
image_url?: Prisma.SortOrderInput | Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.ServiceCategoryCountOrderByAggregateInput
_avg?: Prisma.ServiceCategoryAvgOrderByAggregateInput
_max?: Prisma.ServiceCategoryMaxOrderByAggregateInput
_min?: Prisma.ServiceCategoryMinOrderByAggregateInput
_sum?: Prisma.ServiceCategorySumOrderByAggregateInput
}
export type ServiceCategoryScalarWhereWithAggregatesInput = {
AND?: Prisma.ServiceCategoryScalarWhereWithAggregatesInput | Prisma.ServiceCategoryScalarWhereWithAggregatesInput[]
OR?: Prisma.ServiceCategoryScalarWhereWithAggregatesInput[]
NOT?: Prisma.ServiceCategoryScalarWhereWithAggregatesInput | Prisma.ServiceCategoryScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"ServiceCategory"> | number
id?: Prisma.StringWithAggregatesFilter<"ServiceCategory"> | string
name?: Prisma.StringWithAggregatesFilter<"ServiceCategory"> | string
description?: Prisma.StringNullableWithAggregatesFilter<"ServiceCategory"> | string | null
imageUrl?: Prisma.StringNullableWithAggregatesFilter<"ServiceCategory"> | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"ServiceCategory"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"ServiceCategory"> | Date | string
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"ServiceCategory"> | Date | string | null
image_url?: Prisma.StringNullableWithAggregatesFilter<"ServiceCategory"> | string | null
account_id?: Prisma.StringWithAggregatesFilter<"ServiceCategory"> | string
complex_id?: Prisma.StringWithAggregatesFilter<"ServiceCategory"> | string
created_at?: Prisma.DateTimeWithAggregatesFilter<"ServiceCategory"> | Date | string
updated_at?: Prisma.DateTimeWithAggregatesFilter<"ServiceCategory"> | Date | string
deleted_at?: Prisma.DateTimeNullableWithAggregatesFilter<"ServiceCategory"> | Date | string | null
}
export type ServiceCategoryCreateInput = {
id?: string
name: string
description?: string | null
imageUrl?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
image_url?: string | null
account_id: string
complex_id: string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
services?: Prisma.ServiceCreateNestedManyWithoutCategoryInput
}
export type ServiceCategoryUncheckedCreateInput = {
id?: number
id?: string
name: string
description?: string | null
imageUrl?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
image_url?: string | null
account_id: string
complex_id: string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
services?: Prisma.ServiceUncheckedCreateNestedManyWithoutCategoryInput
}
export type ServiceCategoryUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
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
services?: Prisma.ServiceUpdateManyWithoutCategoryNestedInput
}
export type ServiceCategoryUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
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
services?: Prisma.ServiceUncheckedUpdateManyWithoutCategoryNestedInput
}
export type ServiceCategoryCreateManyInput = {
id?: number
id?: string
name: string
description?: string | null
imageUrl?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
image_url?: string | null
account_id: string
complex_id: string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
}
export type ServiceCategoryUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
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 ServiceCategoryUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
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 ServiceCategoryNullableScalarRelationFilter = {
@@ -375,38 +380,36 @@ export type ServiceCategoryCountOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
imageUrl?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
}
export type ServiceCategoryAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
image_url?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrder
}
export type ServiceCategoryMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
imageUrl?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
image_url?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrder
}
export type ServiceCategoryMinOrderByAggregateInput = {
id?: Prisma.SortOrder
name?: Prisma.SortOrder
description?: Prisma.SortOrder
imageUrl?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrder
}
export type ServiceCategorySumOrderByAggregateInput = {
id?: Prisma.SortOrder
image_url?: Prisma.SortOrder
account_id?: Prisma.SortOrder
complex_id?: Prisma.SortOrder
created_at?: Prisma.SortOrder
updated_at?: Prisma.SortOrder
deleted_at?: Prisma.SortOrder
}
export type ServiceCategoryCreateNestedOneWithoutServicesInput = {
@@ -426,22 +429,27 @@ export type ServiceCategoryUpdateOneWithoutServicesNestedInput = {
}
export type ServiceCategoryCreateWithoutServicesInput = {
id?: string
name: string
description?: string | null
imageUrl?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
image_url?: string | null
account_id: string
complex_id: string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
}
export type ServiceCategoryUncheckedCreateWithoutServicesInput = {
id?: number
id?: string
name: string
description?: string | null
imageUrl?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
image_url?: string | null
account_id: string
complex_id: string
created_at?: Date | string
updated_at?: Date | string
deleted_at?: Date | string | null
}
export type ServiceCategoryCreateOrConnectWithoutServicesInput = {
@@ -461,22 +469,27 @@ export type ServiceCategoryUpdateToOneWithWhereWithoutServicesInput = {
}
export type ServiceCategoryUpdateWithoutServicesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
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 ServiceCategoryUncheckedUpdateWithoutServicesInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
id?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
imageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
image_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
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
}
@@ -514,10 +527,12 @@ export type ServiceCategorySelect<ExtArgs extends runtime.Types.Extensions.Inter
id?: boolean
name?: boolean
description?: boolean
imageUrl?: boolean
createdAt?: boolean
updatedAt?: boolean
deletedAt?: boolean
image_url?: boolean
account_id?: boolean
complex_id?: boolean
created_at?: boolean
updated_at?: boolean
deleted_at?: boolean
services?: boolean | Prisma.ServiceCategory$servicesArgs<ExtArgs>
_count?: boolean | Prisma.ServiceCategoryCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["serviceCategory"]>
@@ -528,13 +543,15 @@ export type ServiceCategorySelectScalar = {
id?: boolean
name?: boolean
description?: boolean
imageUrl?: boolean
createdAt?: boolean
updatedAt?: boolean
deletedAt?: boolean
image_url?: boolean
account_id?: boolean
complex_id?: boolean
created_at?: boolean
updated_at?: boolean
deleted_at?: boolean
}
export type ServiceCategoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "imageUrl" | "createdAt" | "updatedAt" | "deletedAt", ExtArgs["result"]["serviceCategory"]>
export type ServiceCategoryOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "image_url" | "account_id" | "complex_id" | "created_at" | "updated_at" | "deleted_at", ExtArgs["result"]["serviceCategory"]>
export type ServiceCategoryInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
services?: boolean | Prisma.ServiceCategory$servicesArgs<ExtArgs>
_count?: boolean | Prisma.ServiceCategoryCountOutputTypeDefaultArgs<ExtArgs>
@@ -546,13 +563,15 @@ export type $ServiceCategoryPayload<ExtArgs extends runtime.Types.Extensions.Int
services: Prisma.$ServicePayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
id: string
name: string
description: string | null
imageUrl: string | null
createdAt: Date
updatedAt: Date
deletedAt: Date | null
image_url: string | null
account_id: string
complex_id: string
created_at: Date
updated_at: Date
deleted_at: Date | null
}, ExtArgs["result"]["serviceCategory"]>
composites: {}
}
@@ -923,13 +942,15 @@ export interface Prisma__ServiceCategoryClient<T, Null = never, ExtArgs extends
* Fields of the ServiceCategory model
*/
export interface ServiceCategoryFieldRefs {
readonly id: Prisma.FieldRef<"ServiceCategory", 'Int'>
readonly id: Prisma.FieldRef<"ServiceCategory", 'String'>
readonly name: Prisma.FieldRef<"ServiceCategory", 'String'>
readonly description: Prisma.FieldRef<"ServiceCategory", 'String'>
readonly imageUrl: Prisma.FieldRef<"ServiceCategory", 'String'>
readonly createdAt: Prisma.FieldRef<"ServiceCategory", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"ServiceCategory", 'DateTime'>
readonly deletedAt: Prisma.FieldRef<"ServiceCategory", 'DateTime'>
readonly image_url: Prisma.FieldRef<"ServiceCategory", 'String'>
readonly account_id: Prisma.FieldRef<"ServiceCategory", 'String'>
readonly complex_id: Prisma.FieldRef<"ServiceCategory", 'String'>
readonly created_at: Prisma.FieldRef<"ServiceCategory", 'DateTime'>
readonly updated_at: Prisma.FieldRef<"ServiceCategory", 'DateTime'>
readonly deleted_at: Prisma.FieldRef<"ServiceCategory", 'DateTime'>
}
@@ -331,6 +331,14 @@ export type TriggerLogSumOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type IntFieldUpdateOperationsInput = {
set?: number
increment?: number
decrement?: number
multiply?: number
divide?: number
}
export type TriggerLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{