1660 lines
60 KiB
TypeScript
1660 lines
60 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `Company` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model Company
|
|
*
|
|
*/
|
|
export type CompanyModel = runtime.Types.Result.DefaultSelection<Prisma.$CompanyPayload>
|
|
|
|
export type AggregateCompany = {
|
|
_count: CompanyCountAggregateOutputType | null
|
|
_avg: CompanyAvgAggregateOutputType | null
|
|
_sum: CompanySumAggregateOutputType | null
|
|
_min: CompanyMinAggregateOutputType | null
|
|
_max: CompanyMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type CompanyAvgAggregateOutputType = {
|
|
cw_CompanyId: number | null
|
|
}
|
|
|
|
export type CompanySumAggregateOutputType = {
|
|
cw_CompanyId: number | null
|
|
}
|
|
|
|
export type CompanyMinAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
cw_CompanyId: number | null
|
|
cw_Identifier: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type CompanyMaxAggregateOutputType = {
|
|
id: string | null
|
|
name: string | null
|
|
cw_CompanyId: number | null
|
|
cw_Identifier: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type CompanyCountAggregateOutputType = {
|
|
id: number
|
|
name: number
|
|
cw_CompanyId: number
|
|
cw_Identifier: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type CompanyAvgAggregateInputType = {
|
|
cw_CompanyId?: true
|
|
}
|
|
|
|
export type CompanySumAggregateInputType = {
|
|
cw_CompanyId?: true
|
|
}
|
|
|
|
export type CompanyMinAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
cw_CompanyId?: true
|
|
cw_Identifier?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type CompanyMaxAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
cw_CompanyId?: true
|
|
cw_Identifier?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type CompanyCountAggregateInputType = {
|
|
id?: true
|
|
name?: true
|
|
cw_CompanyId?: true
|
|
cw_Identifier?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type CompanyAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Company to aggregate.
|
|
*/
|
|
where?: Prisma.CompanyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Companies to fetch.
|
|
*/
|
|
orderBy?: Prisma.CompanyOrderByWithRelationInput | Prisma.CompanyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.CompanyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Companies from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Companies.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Companies
|
|
**/
|
|
_count?: true | CompanyCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: CompanyAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: CompanySumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: CompanyMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: CompanyMaxAggregateInputType
|
|
}
|
|
|
|
export type GetCompanyAggregateType<T extends CompanyAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateCompany]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateCompany[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateCompany[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type CompanyGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.CompanyWhereInput
|
|
orderBy?: Prisma.CompanyOrderByWithAggregationInput | Prisma.CompanyOrderByWithAggregationInput[]
|
|
by: Prisma.CompanyScalarFieldEnum[] | Prisma.CompanyScalarFieldEnum
|
|
having?: Prisma.CompanyScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: CompanyCountAggregateInputType | true
|
|
_avg?: CompanyAvgAggregateInputType
|
|
_sum?: CompanySumAggregateInputType
|
|
_min?: CompanyMinAggregateInputType
|
|
_max?: CompanyMaxAggregateInputType
|
|
}
|
|
|
|
export type CompanyGroupByOutputType = {
|
|
id: string
|
|
name: string
|
|
cw_CompanyId: number
|
|
cw_Identifier: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: CompanyCountAggregateOutputType | null
|
|
_avg: CompanyAvgAggregateOutputType | null
|
|
_sum: CompanySumAggregateOutputType | null
|
|
_min: CompanyMinAggregateOutputType | null
|
|
_max: CompanyMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetCompanyGroupByPayload<T extends CompanyGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<CompanyGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof CompanyGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], CompanyGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], CompanyGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type CompanyWhereInput = {
|
|
AND?: Prisma.CompanyWhereInput | Prisma.CompanyWhereInput[]
|
|
OR?: Prisma.CompanyWhereInput[]
|
|
NOT?: Prisma.CompanyWhereInput | Prisma.CompanyWhereInput[]
|
|
id?: Prisma.StringFilter<"Company"> | string
|
|
name?: Prisma.StringFilter<"Company"> | string
|
|
cw_CompanyId?: Prisma.IntFilter<"Company"> | number
|
|
cw_Identifier?: Prisma.StringFilter<"Company"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"Company"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"Company"> | Date | string
|
|
credentials?: Prisma.CredentialListRelationFilter
|
|
unifiSites?: Prisma.UnifiSiteListRelationFilter
|
|
opportunities?: Prisma.OpportunityListRelationFilter
|
|
}
|
|
|
|
export type CompanyOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
cw_CompanyId?: Prisma.SortOrder
|
|
cw_Identifier?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
credentials?: Prisma.CredentialOrderByRelationAggregateInput
|
|
unifiSites?: Prisma.UnifiSiteOrderByRelationAggregateInput
|
|
opportunities?: Prisma.OpportunityOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type CompanyWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
cw_CompanyId?: number
|
|
cw_Identifier?: string
|
|
AND?: Prisma.CompanyWhereInput | Prisma.CompanyWhereInput[]
|
|
OR?: Prisma.CompanyWhereInput[]
|
|
NOT?: Prisma.CompanyWhereInput | Prisma.CompanyWhereInput[]
|
|
name?: Prisma.StringFilter<"Company"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"Company"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"Company"> | Date | string
|
|
credentials?: Prisma.CredentialListRelationFilter
|
|
unifiSites?: Prisma.UnifiSiteListRelationFilter
|
|
opportunities?: Prisma.OpportunityListRelationFilter
|
|
}, "id" | "cw_CompanyId" | "cw_Identifier">
|
|
|
|
export type CompanyOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
cw_CompanyId?: Prisma.SortOrder
|
|
cw_Identifier?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
_count?: Prisma.CompanyCountOrderByAggregateInput
|
|
_avg?: Prisma.CompanyAvgOrderByAggregateInput
|
|
_max?: Prisma.CompanyMaxOrderByAggregateInput
|
|
_min?: Prisma.CompanyMinOrderByAggregateInput
|
|
_sum?: Prisma.CompanySumOrderByAggregateInput
|
|
}
|
|
|
|
export type CompanyScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.CompanyScalarWhereWithAggregatesInput | Prisma.CompanyScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.CompanyScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.CompanyScalarWhereWithAggregatesInput | Prisma.CompanyScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"Company"> | string
|
|
name?: Prisma.StringWithAggregatesFilter<"Company"> | string
|
|
cw_CompanyId?: Prisma.IntWithAggregatesFilter<"Company"> | number
|
|
cw_Identifier?: Prisma.StringWithAggregatesFilter<"Company"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Company"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Company"> | Date | string
|
|
}
|
|
|
|
export type CompanyCreateInput = {
|
|
id?: string
|
|
name: string
|
|
cw_CompanyId: number
|
|
cw_Identifier: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
credentials?: Prisma.CredentialCreateNestedManyWithoutCompanyInput
|
|
unifiSites?: Prisma.UnifiSiteCreateNestedManyWithoutCompanyInput
|
|
opportunities?: Prisma.OpportunityCreateNestedManyWithoutCompanyInput
|
|
}
|
|
|
|
export type CompanyUncheckedCreateInput = {
|
|
id?: string
|
|
name: string
|
|
cw_CompanyId: number
|
|
cw_Identifier: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutCompanyInput
|
|
unifiSites?: Prisma.UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput
|
|
opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutCompanyInput
|
|
}
|
|
|
|
export type CompanyUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cw_CompanyId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
cw_Identifier?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
credentials?: Prisma.CredentialUpdateManyWithoutCompanyNestedInput
|
|
unifiSites?: Prisma.UnifiSiteUpdateManyWithoutCompanyNestedInput
|
|
opportunities?: Prisma.OpportunityUpdateManyWithoutCompanyNestedInput
|
|
}
|
|
|
|
export type CompanyUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cw_CompanyId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
cw_Identifier?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
credentials?: Prisma.CredentialUncheckedUpdateManyWithoutCompanyNestedInput
|
|
unifiSites?: Prisma.UnifiSiteUncheckedUpdateManyWithoutCompanyNestedInput
|
|
opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutCompanyNestedInput
|
|
}
|
|
|
|
export type CompanyCreateManyInput = {
|
|
id?: string
|
|
name: string
|
|
cw_CompanyId: number
|
|
cw_Identifier: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type CompanyUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cw_CompanyId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
cw_Identifier?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CompanyUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cw_CompanyId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
cw_Identifier?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type CompanyNullableScalarRelationFilter = {
|
|
is?: Prisma.CompanyWhereInput | null
|
|
isNot?: Prisma.CompanyWhereInput | null
|
|
}
|
|
|
|
export type CompanyCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
cw_CompanyId?: Prisma.SortOrder
|
|
cw_Identifier?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type CompanyAvgOrderByAggregateInput = {
|
|
cw_CompanyId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type CompanyMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
cw_CompanyId?: Prisma.SortOrder
|
|
cw_Identifier?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type CompanyMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
cw_CompanyId?: Prisma.SortOrder
|
|
cw_Identifier?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type CompanySumOrderByAggregateInput = {
|
|
cw_CompanyId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type CompanyScalarRelationFilter = {
|
|
is?: Prisma.CompanyWhereInput
|
|
isNot?: Prisma.CompanyWhereInput
|
|
}
|
|
|
|
export type CompanyCreateNestedOneWithoutUnifiSitesInput = {
|
|
create?: Prisma.XOR<Prisma.CompanyCreateWithoutUnifiSitesInput, Prisma.CompanyUncheckedCreateWithoutUnifiSitesInput>
|
|
connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutUnifiSitesInput
|
|
connect?: Prisma.CompanyWhereUniqueInput
|
|
}
|
|
|
|
export type CompanyUpdateOneWithoutUnifiSitesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.CompanyCreateWithoutUnifiSitesInput, Prisma.CompanyUncheckedCreateWithoutUnifiSitesInput>
|
|
connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutUnifiSitesInput
|
|
upsert?: Prisma.CompanyUpsertWithoutUnifiSitesInput
|
|
disconnect?: Prisma.CompanyWhereInput | boolean
|
|
delete?: Prisma.CompanyWhereInput | boolean
|
|
connect?: Prisma.CompanyWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.CompanyUpdateToOneWithWhereWithoutUnifiSitesInput, Prisma.CompanyUpdateWithoutUnifiSitesInput>, Prisma.CompanyUncheckedUpdateWithoutUnifiSitesInput>
|
|
}
|
|
|
|
export type IntFieldUpdateOperationsInput = {
|
|
set?: number
|
|
increment?: number
|
|
decrement?: number
|
|
multiply?: number
|
|
divide?: number
|
|
}
|
|
|
|
export type CompanyCreateNestedOneWithoutOpportunitiesInput = {
|
|
create?: Prisma.XOR<Prisma.CompanyCreateWithoutOpportunitiesInput, Prisma.CompanyUncheckedCreateWithoutOpportunitiesInput>
|
|
connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutOpportunitiesInput
|
|
connect?: Prisma.CompanyWhereUniqueInput
|
|
}
|
|
|
|
export type CompanyUpdateOneWithoutOpportunitiesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.CompanyCreateWithoutOpportunitiesInput, Prisma.CompanyUncheckedCreateWithoutOpportunitiesInput>
|
|
connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutOpportunitiesInput
|
|
upsert?: Prisma.CompanyUpsertWithoutOpportunitiesInput
|
|
disconnect?: Prisma.CompanyWhereInput | boolean
|
|
delete?: Prisma.CompanyWhereInput | boolean
|
|
connect?: Prisma.CompanyWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.CompanyUpdateToOneWithWhereWithoutOpportunitiesInput, Prisma.CompanyUpdateWithoutOpportunitiesInput>, Prisma.CompanyUncheckedUpdateWithoutOpportunitiesInput>
|
|
}
|
|
|
|
export type CompanyCreateNestedOneWithoutCredentialsInput = {
|
|
create?: Prisma.XOR<Prisma.CompanyCreateWithoutCredentialsInput, Prisma.CompanyUncheckedCreateWithoutCredentialsInput>
|
|
connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutCredentialsInput
|
|
connect?: Prisma.CompanyWhereUniqueInput
|
|
}
|
|
|
|
export type CompanyUpdateOneRequiredWithoutCredentialsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.CompanyCreateWithoutCredentialsInput, Prisma.CompanyUncheckedCreateWithoutCredentialsInput>
|
|
connectOrCreate?: Prisma.CompanyCreateOrConnectWithoutCredentialsInput
|
|
upsert?: Prisma.CompanyUpsertWithoutCredentialsInput
|
|
connect?: Prisma.CompanyWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.CompanyUpdateToOneWithWhereWithoutCredentialsInput, Prisma.CompanyUpdateWithoutCredentialsInput>, Prisma.CompanyUncheckedUpdateWithoutCredentialsInput>
|
|
}
|
|
|
|
export type CompanyCreateWithoutUnifiSitesInput = {
|
|
id?: string
|
|
name: string
|
|
cw_CompanyId: number
|
|
cw_Identifier: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
credentials?: Prisma.CredentialCreateNestedManyWithoutCompanyInput
|
|
opportunities?: Prisma.OpportunityCreateNestedManyWithoutCompanyInput
|
|
}
|
|
|
|
export type CompanyUncheckedCreateWithoutUnifiSitesInput = {
|
|
id?: string
|
|
name: string
|
|
cw_CompanyId: number
|
|
cw_Identifier: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutCompanyInput
|
|
opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutCompanyInput
|
|
}
|
|
|
|
export type CompanyCreateOrConnectWithoutUnifiSitesInput = {
|
|
where: Prisma.CompanyWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.CompanyCreateWithoutUnifiSitesInput, Prisma.CompanyUncheckedCreateWithoutUnifiSitesInput>
|
|
}
|
|
|
|
export type CompanyUpsertWithoutUnifiSitesInput = {
|
|
update: Prisma.XOR<Prisma.CompanyUpdateWithoutUnifiSitesInput, Prisma.CompanyUncheckedUpdateWithoutUnifiSitesInput>
|
|
create: Prisma.XOR<Prisma.CompanyCreateWithoutUnifiSitesInput, Prisma.CompanyUncheckedCreateWithoutUnifiSitesInput>
|
|
where?: Prisma.CompanyWhereInput
|
|
}
|
|
|
|
export type CompanyUpdateToOneWithWhereWithoutUnifiSitesInput = {
|
|
where?: Prisma.CompanyWhereInput
|
|
data: Prisma.XOR<Prisma.CompanyUpdateWithoutUnifiSitesInput, Prisma.CompanyUncheckedUpdateWithoutUnifiSitesInput>
|
|
}
|
|
|
|
export type CompanyUpdateWithoutUnifiSitesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cw_CompanyId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
cw_Identifier?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
credentials?: Prisma.CredentialUpdateManyWithoutCompanyNestedInput
|
|
opportunities?: Prisma.OpportunityUpdateManyWithoutCompanyNestedInput
|
|
}
|
|
|
|
export type CompanyUncheckedUpdateWithoutUnifiSitesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cw_CompanyId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
cw_Identifier?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
credentials?: Prisma.CredentialUncheckedUpdateManyWithoutCompanyNestedInput
|
|
opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutCompanyNestedInput
|
|
}
|
|
|
|
export type CompanyCreateWithoutOpportunitiesInput = {
|
|
id?: string
|
|
name: string
|
|
cw_CompanyId: number
|
|
cw_Identifier: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
credentials?: Prisma.CredentialCreateNestedManyWithoutCompanyInput
|
|
unifiSites?: Prisma.UnifiSiteCreateNestedManyWithoutCompanyInput
|
|
}
|
|
|
|
export type CompanyUncheckedCreateWithoutOpportunitiesInput = {
|
|
id?: string
|
|
name: string
|
|
cw_CompanyId: number
|
|
cw_Identifier: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
credentials?: Prisma.CredentialUncheckedCreateNestedManyWithoutCompanyInput
|
|
unifiSites?: Prisma.UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput
|
|
}
|
|
|
|
export type CompanyCreateOrConnectWithoutOpportunitiesInput = {
|
|
where: Prisma.CompanyWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.CompanyCreateWithoutOpportunitiesInput, Prisma.CompanyUncheckedCreateWithoutOpportunitiesInput>
|
|
}
|
|
|
|
export type CompanyUpsertWithoutOpportunitiesInput = {
|
|
update: Prisma.XOR<Prisma.CompanyUpdateWithoutOpportunitiesInput, Prisma.CompanyUncheckedUpdateWithoutOpportunitiesInput>
|
|
create: Prisma.XOR<Prisma.CompanyCreateWithoutOpportunitiesInput, Prisma.CompanyUncheckedCreateWithoutOpportunitiesInput>
|
|
where?: Prisma.CompanyWhereInput
|
|
}
|
|
|
|
export type CompanyUpdateToOneWithWhereWithoutOpportunitiesInput = {
|
|
where?: Prisma.CompanyWhereInput
|
|
data: Prisma.XOR<Prisma.CompanyUpdateWithoutOpportunitiesInput, Prisma.CompanyUncheckedUpdateWithoutOpportunitiesInput>
|
|
}
|
|
|
|
export type CompanyUpdateWithoutOpportunitiesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cw_CompanyId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
cw_Identifier?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
credentials?: Prisma.CredentialUpdateManyWithoutCompanyNestedInput
|
|
unifiSites?: Prisma.UnifiSiteUpdateManyWithoutCompanyNestedInput
|
|
}
|
|
|
|
export type CompanyUncheckedUpdateWithoutOpportunitiesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cw_CompanyId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
cw_Identifier?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
credentials?: Prisma.CredentialUncheckedUpdateManyWithoutCompanyNestedInput
|
|
unifiSites?: Prisma.UnifiSiteUncheckedUpdateManyWithoutCompanyNestedInput
|
|
}
|
|
|
|
export type CompanyCreateWithoutCredentialsInput = {
|
|
id?: string
|
|
name: string
|
|
cw_CompanyId: number
|
|
cw_Identifier: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
unifiSites?: Prisma.UnifiSiteCreateNestedManyWithoutCompanyInput
|
|
opportunities?: Prisma.OpportunityCreateNestedManyWithoutCompanyInput
|
|
}
|
|
|
|
export type CompanyUncheckedCreateWithoutCredentialsInput = {
|
|
id?: string
|
|
name: string
|
|
cw_CompanyId: number
|
|
cw_Identifier: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
unifiSites?: Prisma.UnifiSiteUncheckedCreateNestedManyWithoutCompanyInput
|
|
opportunities?: Prisma.OpportunityUncheckedCreateNestedManyWithoutCompanyInput
|
|
}
|
|
|
|
export type CompanyCreateOrConnectWithoutCredentialsInput = {
|
|
where: Prisma.CompanyWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.CompanyCreateWithoutCredentialsInput, Prisma.CompanyUncheckedCreateWithoutCredentialsInput>
|
|
}
|
|
|
|
export type CompanyUpsertWithoutCredentialsInput = {
|
|
update: Prisma.XOR<Prisma.CompanyUpdateWithoutCredentialsInput, Prisma.CompanyUncheckedUpdateWithoutCredentialsInput>
|
|
create: Prisma.XOR<Prisma.CompanyCreateWithoutCredentialsInput, Prisma.CompanyUncheckedCreateWithoutCredentialsInput>
|
|
where?: Prisma.CompanyWhereInput
|
|
}
|
|
|
|
export type CompanyUpdateToOneWithWhereWithoutCredentialsInput = {
|
|
where?: Prisma.CompanyWhereInput
|
|
data: Prisma.XOR<Prisma.CompanyUpdateWithoutCredentialsInput, Prisma.CompanyUncheckedUpdateWithoutCredentialsInput>
|
|
}
|
|
|
|
export type CompanyUpdateWithoutCredentialsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cw_CompanyId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
cw_Identifier?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
unifiSites?: Prisma.UnifiSiteUpdateManyWithoutCompanyNestedInput
|
|
opportunities?: Prisma.OpportunityUpdateManyWithoutCompanyNestedInput
|
|
}
|
|
|
|
export type CompanyUncheckedUpdateWithoutCredentialsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
cw_CompanyId?: Prisma.IntFieldUpdateOperationsInput | number
|
|
cw_Identifier?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
unifiSites?: Prisma.UnifiSiteUncheckedUpdateManyWithoutCompanyNestedInput
|
|
opportunities?: Prisma.OpportunityUncheckedUpdateManyWithoutCompanyNestedInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type CompanyCountOutputType
|
|
*/
|
|
|
|
export type CompanyCountOutputType = {
|
|
credentials: number
|
|
unifiSites: number
|
|
opportunities: number
|
|
}
|
|
|
|
export type CompanyCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
credentials?: boolean | CompanyCountOutputTypeCountCredentialsArgs
|
|
unifiSites?: boolean | CompanyCountOutputTypeCountUnifiSitesArgs
|
|
opportunities?: boolean | CompanyCountOutputTypeCountOpportunitiesArgs
|
|
}
|
|
|
|
/**
|
|
* CompanyCountOutputType without action
|
|
*/
|
|
export type CompanyCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the CompanyCountOutputType
|
|
*/
|
|
select?: Prisma.CompanyCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* CompanyCountOutputType without action
|
|
*/
|
|
export type CompanyCountOutputTypeCountCredentialsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.CredentialWhereInput
|
|
}
|
|
|
|
/**
|
|
* CompanyCountOutputType without action
|
|
*/
|
|
export type CompanyCountOutputTypeCountUnifiSitesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.UnifiSiteWhereInput
|
|
}
|
|
|
|
/**
|
|
* CompanyCountOutputType without action
|
|
*/
|
|
export type CompanyCountOutputTypeCountOpportunitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.OpportunityWhereInput
|
|
}
|
|
|
|
|
|
export type CompanySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
cw_CompanyId?: boolean
|
|
cw_Identifier?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
credentials?: boolean | Prisma.Company$credentialsArgs<ExtArgs>
|
|
unifiSites?: boolean | Prisma.Company$unifiSitesArgs<ExtArgs>
|
|
opportunities?: boolean | Prisma.Company$opportunitiesArgs<ExtArgs>
|
|
_count?: boolean | Prisma.CompanyCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["company"]>
|
|
|
|
export type CompanySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
cw_CompanyId?: boolean
|
|
cw_Identifier?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}, ExtArgs["result"]["company"]>
|
|
|
|
export type CompanySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
name?: boolean
|
|
cw_CompanyId?: boolean
|
|
cw_Identifier?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}, ExtArgs["result"]["company"]>
|
|
|
|
export type CompanySelectScalar = {
|
|
id?: boolean
|
|
name?: boolean
|
|
cw_CompanyId?: boolean
|
|
cw_Identifier?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type CompanyOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "cw_CompanyId" | "cw_Identifier" | "createdAt" | "updatedAt", ExtArgs["result"]["company"]>
|
|
export type CompanyInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
credentials?: boolean | Prisma.Company$credentialsArgs<ExtArgs>
|
|
unifiSites?: boolean | Prisma.Company$unifiSitesArgs<ExtArgs>
|
|
opportunities?: boolean | Prisma.Company$opportunitiesArgs<ExtArgs>
|
|
_count?: boolean | Prisma.CompanyCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type CompanyIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
export type CompanyIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
|
|
export type $CompanyPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "Company"
|
|
objects: {
|
|
credentials: Prisma.$CredentialPayload<ExtArgs>[]
|
|
unifiSites: Prisma.$UnifiSitePayload<ExtArgs>[]
|
|
opportunities: Prisma.$OpportunityPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
name: string
|
|
cw_CompanyId: number
|
|
cw_Identifier: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["company"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type CompanyGetPayload<S extends boolean | null | undefined | CompanyDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$CompanyPayload, S>
|
|
|
|
export type CompanyCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<CompanyFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: CompanyCountAggregateInputType | true
|
|
}
|
|
|
|
export interface CompanyDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Company'], meta: { name: 'Company' } }
|
|
/**
|
|
* Find zero or one Company that matches the filter.
|
|
* @param {CompanyFindUniqueArgs} args - Arguments to find a Company
|
|
* @example
|
|
* // Get one Company
|
|
* const company = await prisma.company.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends CompanyFindUniqueArgs>(args: Prisma.SelectSubset<T, CompanyFindUniqueArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Company that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {CompanyFindUniqueOrThrowArgs} args - Arguments to find a Company
|
|
* @example
|
|
* // Get one Company
|
|
* const company = await prisma.company.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends CompanyFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, CompanyFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Company that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CompanyFindFirstArgs} args - Arguments to find a Company
|
|
* @example
|
|
* // Get one Company
|
|
* const company = await prisma.company.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends CompanyFindFirstArgs>(args?: Prisma.SelectSubset<T, CompanyFindFirstArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Company that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CompanyFindFirstOrThrowArgs} args - Arguments to find a Company
|
|
* @example
|
|
* // Get one Company
|
|
* const company = await prisma.company.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends CompanyFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, CompanyFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Companies that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CompanyFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Companies
|
|
* const companies = await prisma.company.findMany()
|
|
*
|
|
* // Get first 10 Companies
|
|
* const companies = await prisma.company.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const companyWithIdOnly = await prisma.company.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends CompanyFindManyArgs>(args?: Prisma.SelectSubset<T, CompanyFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Company.
|
|
* @param {CompanyCreateArgs} args - Arguments to create a Company.
|
|
* @example
|
|
* // Create one Company
|
|
* const Company = await prisma.company.create({
|
|
* data: {
|
|
* // ... data to create a Company
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends CompanyCreateArgs>(args: Prisma.SelectSubset<T, CompanyCreateArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Companies.
|
|
* @param {CompanyCreateManyArgs} args - Arguments to create many Companies.
|
|
* @example
|
|
* // Create many Companies
|
|
* const company = await prisma.company.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends CompanyCreateManyArgs>(args?: Prisma.SelectSubset<T, CompanyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many Companies and returns the data saved in the database.
|
|
* @param {CompanyCreateManyAndReturnArgs} args - Arguments to create many Companies.
|
|
* @example
|
|
* // Create many Companies
|
|
* const company = await prisma.company.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Companies and only return the `id`
|
|
* const companyWithIdOnly = await prisma.company.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends CompanyCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CompanyCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a Company.
|
|
* @param {CompanyDeleteArgs} args - Arguments to delete one Company.
|
|
* @example
|
|
* // Delete one Company
|
|
* const Company = await prisma.company.delete({
|
|
* where: {
|
|
* // ... filter to delete one Company
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends CompanyDeleteArgs>(args: Prisma.SelectSubset<T, CompanyDeleteArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Company.
|
|
* @param {CompanyUpdateArgs} args - Arguments to update one Company.
|
|
* @example
|
|
* // Update one Company
|
|
* const company = await prisma.company.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends CompanyUpdateArgs>(args: Prisma.SelectSubset<T, CompanyUpdateArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Companies.
|
|
* @param {CompanyDeleteManyArgs} args - Arguments to filter Companies to delete.
|
|
* @example
|
|
* // Delete a few Companies
|
|
* const { count } = await prisma.company.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends CompanyDeleteManyArgs>(args?: Prisma.SelectSubset<T, CompanyDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Companies.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CompanyUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Companies
|
|
* const company = await prisma.company.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends CompanyUpdateManyArgs>(args: Prisma.SelectSubset<T, CompanyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Companies and returns the data updated in the database.
|
|
* @param {CompanyUpdateManyAndReturnArgs} args - Arguments to update many Companies.
|
|
* @example
|
|
* // Update many Companies
|
|
* const company = await prisma.company.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Companies and only return the `id`
|
|
* const companyWithIdOnly = await prisma.company.updateManyAndReturn({
|
|
* select: { id: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends CompanyUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CompanyUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one Company.
|
|
* @param {CompanyUpsertArgs} args - Arguments to update or create a Company.
|
|
* @example
|
|
* // Update or create a Company
|
|
* const company = await prisma.company.upsert({
|
|
* create: {
|
|
* // ... data to create a Company
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Company we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends CompanyUpsertArgs>(args: Prisma.SelectSubset<T, CompanyUpsertArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Companies.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CompanyCountArgs} args - Arguments to filter Companies to count.
|
|
* @example
|
|
* // Count the number of Companies
|
|
* const count = await prisma.company.count({
|
|
* where: {
|
|
* // ... the filter for the Companies we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends CompanyCountArgs>(
|
|
args?: Prisma.Subset<T, CompanyCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], CompanyCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Company.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CompanyAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends CompanyAggregateArgs>(args: Prisma.Subset<T, CompanyAggregateArgs>): Prisma.PrismaPromise<GetCompanyAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Company.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {CompanyGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends CompanyGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: CompanyGroupByArgs['orderBy'] }
|
|
: { orderBy?: CompanyGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, CompanyGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetCompanyGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Company model
|
|
*/
|
|
readonly fields: CompanyFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Company.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__CompanyClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
credentials<T extends Prisma.Company$credentialsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Company$credentialsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CredentialPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
unifiSites<T extends Prisma.Company$unifiSitesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Company$unifiSitesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UnifiSitePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
opportunities<T extends Prisma.Company$opportunitiesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Company$opportunitiesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OpportunityPayload<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.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the Company model
|
|
*/
|
|
export interface CompanyFieldRefs {
|
|
readonly id: Prisma.FieldRef<"Company", 'String'>
|
|
readonly name: Prisma.FieldRef<"Company", 'String'>
|
|
readonly cw_CompanyId: Prisma.FieldRef<"Company", 'Int'>
|
|
readonly cw_Identifier: Prisma.FieldRef<"Company", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"Company", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"Company", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Company findUnique
|
|
*/
|
|
export type CompanyFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Company
|
|
*/
|
|
select?: Prisma.CompanySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Company
|
|
*/
|
|
omit?: Prisma.CompanyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CompanyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Company to fetch.
|
|
*/
|
|
where: Prisma.CompanyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Company findUniqueOrThrow
|
|
*/
|
|
export type CompanyFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Company
|
|
*/
|
|
select?: Prisma.CompanySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Company
|
|
*/
|
|
omit?: Prisma.CompanyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CompanyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Company to fetch.
|
|
*/
|
|
where: Prisma.CompanyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Company findFirst
|
|
*/
|
|
export type CompanyFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Company
|
|
*/
|
|
select?: Prisma.CompanySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Company
|
|
*/
|
|
omit?: Prisma.CompanyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CompanyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Company to fetch.
|
|
*/
|
|
where?: Prisma.CompanyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Companies to fetch.
|
|
*/
|
|
orderBy?: Prisma.CompanyOrderByWithRelationInput | Prisma.CompanyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Companies.
|
|
*/
|
|
cursor?: Prisma.CompanyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Companies from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Companies.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Companies.
|
|
*/
|
|
distinct?: Prisma.CompanyScalarFieldEnum | Prisma.CompanyScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Company findFirstOrThrow
|
|
*/
|
|
export type CompanyFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Company
|
|
*/
|
|
select?: Prisma.CompanySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Company
|
|
*/
|
|
omit?: Prisma.CompanyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CompanyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Company to fetch.
|
|
*/
|
|
where?: Prisma.CompanyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Companies to fetch.
|
|
*/
|
|
orderBy?: Prisma.CompanyOrderByWithRelationInput | Prisma.CompanyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Companies.
|
|
*/
|
|
cursor?: Prisma.CompanyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Companies from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Companies.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Companies.
|
|
*/
|
|
distinct?: Prisma.CompanyScalarFieldEnum | Prisma.CompanyScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Company findMany
|
|
*/
|
|
export type CompanyFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Company
|
|
*/
|
|
select?: Prisma.CompanySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Company
|
|
*/
|
|
omit?: Prisma.CompanyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CompanyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Companies to fetch.
|
|
*/
|
|
where?: Prisma.CompanyWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Companies to fetch.
|
|
*/
|
|
orderBy?: Prisma.CompanyOrderByWithRelationInput | Prisma.CompanyOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Companies.
|
|
*/
|
|
cursor?: Prisma.CompanyWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Companies from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Companies.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.CompanyScalarFieldEnum | Prisma.CompanyScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Company create
|
|
*/
|
|
export type CompanyCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Company
|
|
*/
|
|
select?: Prisma.CompanySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Company
|
|
*/
|
|
omit?: Prisma.CompanyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CompanyInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Company.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CompanyCreateInput, Prisma.CompanyUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Company createMany
|
|
*/
|
|
export type CompanyCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Companies.
|
|
*/
|
|
data: Prisma.CompanyCreateManyInput | Prisma.CompanyCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Company createManyAndReturn
|
|
*/
|
|
export type CompanyCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Company
|
|
*/
|
|
select?: Prisma.CompanySelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Company
|
|
*/
|
|
omit?: Prisma.CompanyOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Companies.
|
|
*/
|
|
data: Prisma.CompanyCreateManyInput | Prisma.CompanyCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Company update
|
|
*/
|
|
export type CompanyUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Company
|
|
*/
|
|
select?: Prisma.CompanySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Company
|
|
*/
|
|
omit?: Prisma.CompanyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CompanyInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Company.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CompanyUpdateInput, Prisma.CompanyUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Company to update.
|
|
*/
|
|
where: Prisma.CompanyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Company updateMany
|
|
*/
|
|
export type CompanyUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Companies.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CompanyUpdateManyMutationInput, Prisma.CompanyUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Companies to update
|
|
*/
|
|
where?: Prisma.CompanyWhereInput
|
|
/**
|
|
* Limit how many Companies to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Company updateManyAndReturn
|
|
*/
|
|
export type CompanyUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Company
|
|
*/
|
|
select?: Prisma.CompanySelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Company
|
|
*/
|
|
omit?: Prisma.CompanyOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update Companies.
|
|
*/
|
|
data: Prisma.XOR<Prisma.CompanyUpdateManyMutationInput, Prisma.CompanyUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Companies to update
|
|
*/
|
|
where?: Prisma.CompanyWhereInput
|
|
/**
|
|
* Limit how many Companies to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Company upsert
|
|
*/
|
|
export type CompanyUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Company
|
|
*/
|
|
select?: Prisma.CompanySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Company
|
|
*/
|
|
omit?: Prisma.CompanyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CompanyInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Company to update in case it exists.
|
|
*/
|
|
where: Prisma.CompanyWhereUniqueInput
|
|
/**
|
|
* In case the Company found by the `where` argument doesn't exist, create a new Company with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.CompanyCreateInput, Prisma.CompanyUncheckedCreateInput>
|
|
/**
|
|
* In case the Company was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.CompanyUpdateInput, Prisma.CompanyUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Company delete
|
|
*/
|
|
export type CompanyDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Company
|
|
*/
|
|
select?: Prisma.CompanySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Company
|
|
*/
|
|
omit?: Prisma.CompanyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CompanyInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Company to delete.
|
|
*/
|
|
where: Prisma.CompanyWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Company deleteMany
|
|
*/
|
|
export type CompanyDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Companies to delete
|
|
*/
|
|
where?: Prisma.CompanyWhereInput
|
|
/**
|
|
* Limit how many Companies to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Company.credentials
|
|
*/
|
|
export type Company$credentialsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Credential
|
|
*/
|
|
select?: Prisma.CredentialSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Credential
|
|
*/
|
|
omit?: Prisma.CredentialOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CredentialInclude<ExtArgs> | null
|
|
where?: Prisma.CredentialWhereInput
|
|
orderBy?: Prisma.CredentialOrderByWithRelationInput | Prisma.CredentialOrderByWithRelationInput[]
|
|
cursor?: Prisma.CredentialWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.CredentialScalarFieldEnum | Prisma.CredentialScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Company.unifiSites
|
|
*/
|
|
export type Company$unifiSitesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the UnifiSite
|
|
*/
|
|
select?: Prisma.UnifiSiteSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the UnifiSite
|
|
*/
|
|
omit?: Prisma.UnifiSiteOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.UnifiSiteInclude<ExtArgs> | null
|
|
where?: Prisma.UnifiSiteWhereInput
|
|
orderBy?: Prisma.UnifiSiteOrderByWithRelationInput | Prisma.UnifiSiteOrderByWithRelationInput[]
|
|
cursor?: Prisma.UnifiSiteWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.UnifiSiteScalarFieldEnum | Prisma.UnifiSiteScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Company.opportunities
|
|
*/
|
|
export type Company$opportunitiesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Opportunity
|
|
*/
|
|
select?: Prisma.OpportunitySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Opportunity
|
|
*/
|
|
omit?: Prisma.OpportunityOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.OpportunityInclude<ExtArgs> | null
|
|
where?: Prisma.OpportunityWhereInput
|
|
orderBy?: Prisma.OpportunityOrderByWithRelationInput | Prisma.OpportunityOrderByWithRelationInput[]
|
|
cursor?: Prisma.OpportunityWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.OpportunityScalarFieldEnum | Prisma.OpportunityScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Company without action
|
|
*/
|
|
export type CompanyDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Company
|
|
*/
|
|
select?: Prisma.CompanySelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Company
|
|
*/
|
|
omit?: Prisma.CompanyOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.CompanyInclude<ExtArgs> | null
|
|
}
|