targo-backend/prisma/generated/mariadb/models/tmp_vpn.ts

1115 lines
36 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 `tmp_vpn` 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"
import type * as Prisma from "../internal/prismaNamespace"
/**
* Model tmp_vpn
*
*/
export type tmp_vpnModel = runtime.Types.Result.DefaultSelection<Prisma.$tmp_vpnPayload>
export type AggregateTmp_vpn = {
_count: Tmp_vpnCountAggregateOutputType | null
_avg: Tmp_vpnAvgAggregateOutputType | null
_sum: Tmp_vpnSumAggregateOutputType | null
_min: Tmp_vpnMinAggregateOutputType | null
_max: Tmp_vpnMaxAggregateOutputType | null
}
export type Tmp_vpnAvgAggregateOutputType = {
id: number | null
m: number | null
}
export type Tmp_vpnSumAggregateOutputType = {
id: number | null
m: number | null
}
export type Tmp_vpnMinAggregateOutputType = {
id: number | null
username: string | null
password: string | null
ad_done: boolean | null
tacacs: boolean | null
m: number | null
}
export type Tmp_vpnMaxAggregateOutputType = {
id: number | null
username: string | null
password: string | null
ad_done: boolean | null
tacacs: boolean | null
m: number | null
}
export type Tmp_vpnCountAggregateOutputType = {
id: number
username: number
password: number
ad_done: number
tacacs: number
m: number
_all: number
}
export type Tmp_vpnAvgAggregateInputType = {
id?: true
m?: true
}
export type Tmp_vpnSumAggregateInputType = {
id?: true
m?: true
}
export type Tmp_vpnMinAggregateInputType = {
id?: true
username?: true
password?: true
ad_done?: true
tacacs?: true
m?: true
}
export type Tmp_vpnMaxAggregateInputType = {
id?: true
username?: true
password?: true
ad_done?: true
tacacs?: true
m?: true
}
export type Tmp_vpnCountAggregateInputType = {
id?: true
username?: true
password?: true
ad_done?: true
tacacs?: true
m?: true
_all?: true
}
export type Tmp_vpnAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which tmp_vpn to aggregate.
*/
where?: Prisma.tmp_vpnWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of tmp_vpns to fetch.
*/
orderBy?: Prisma.tmp_vpnOrderByWithRelationInput | Prisma.tmp_vpnOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.tmp_vpnWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` tmp_vpns 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` tmp_vpns.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned tmp_vpns
**/
_count?: true | Tmp_vpnCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Tmp_vpnAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Tmp_vpnSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Tmp_vpnMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Tmp_vpnMaxAggregateInputType
}
export type GetTmp_vpnAggregateType<T extends Tmp_vpnAggregateArgs> = {
[P in keyof T & keyof AggregateTmp_vpn]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateTmp_vpn[P]>
: Prisma.GetScalarType<T[P], AggregateTmp_vpn[P]>
}
export type tmp_vpnGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.tmp_vpnWhereInput
orderBy?: Prisma.tmp_vpnOrderByWithAggregationInput | Prisma.tmp_vpnOrderByWithAggregationInput[]
by: Prisma.Tmp_vpnScalarFieldEnum[] | Prisma.Tmp_vpnScalarFieldEnum
having?: Prisma.tmp_vpnScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Tmp_vpnCountAggregateInputType | true
_avg?: Tmp_vpnAvgAggregateInputType
_sum?: Tmp_vpnSumAggregateInputType
_min?: Tmp_vpnMinAggregateInputType
_max?: Tmp_vpnMaxAggregateInputType
}
export type Tmp_vpnGroupByOutputType = {
id: number
username: string
password: string
ad_done: boolean
tacacs: boolean
m: number
_count: Tmp_vpnCountAggregateOutputType | null
_avg: Tmp_vpnAvgAggregateOutputType | null
_sum: Tmp_vpnSumAggregateOutputType | null
_min: Tmp_vpnMinAggregateOutputType | null
_max: Tmp_vpnMaxAggregateOutputType | null
}
type GetTmp_vpnGroupByPayload<T extends tmp_vpnGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Tmp_vpnGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Tmp_vpnGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Tmp_vpnGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Tmp_vpnGroupByOutputType[P]>
}
>
>
export type tmp_vpnWhereInput = {
AND?: Prisma.tmp_vpnWhereInput | Prisma.tmp_vpnWhereInput[]
OR?: Prisma.tmp_vpnWhereInput[]
NOT?: Prisma.tmp_vpnWhereInput | Prisma.tmp_vpnWhereInput[]
id?: Prisma.IntFilter<"tmp_vpn"> | number
username?: Prisma.StringFilter<"tmp_vpn"> | string
password?: Prisma.StringFilter<"tmp_vpn"> | string
ad_done?: Prisma.BoolFilter<"tmp_vpn"> | boolean
tacacs?: Prisma.BoolFilter<"tmp_vpn"> | boolean
m?: Prisma.IntFilter<"tmp_vpn"> | number
}
export type tmp_vpnOrderByWithRelationInput = {
id?: Prisma.SortOrder
username?: Prisma.SortOrder
password?: Prisma.SortOrder
ad_done?: Prisma.SortOrder
tacacs?: Prisma.SortOrder
m?: Prisma.SortOrder
_relevance?: Prisma.tmp_vpnOrderByRelevanceInput
}
export type tmp_vpnWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.tmp_vpnWhereInput | Prisma.tmp_vpnWhereInput[]
OR?: Prisma.tmp_vpnWhereInput[]
NOT?: Prisma.tmp_vpnWhereInput | Prisma.tmp_vpnWhereInput[]
username?: Prisma.StringFilter<"tmp_vpn"> | string
password?: Prisma.StringFilter<"tmp_vpn"> | string
ad_done?: Prisma.BoolFilter<"tmp_vpn"> | boolean
tacacs?: Prisma.BoolFilter<"tmp_vpn"> | boolean
m?: Prisma.IntFilter<"tmp_vpn"> | number
}, "id">
export type tmp_vpnOrderByWithAggregationInput = {
id?: Prisma.SortOrder
username?: Prisma.SortOrder
password?: Prisma.SortOrder
ad_done?: Prisma.SortOrder
tacacs?: Prisma.SortOrder
m?: Prisma.SortOrder
_count?: Prisma.tmp_vpnCountOrderByAggregateInput
_avg?: Prisma.tmp_vpnAvgOrderByAggregateInput
_max?: Prisma.tmp_vpnMaxOrderByAggregateInput
_min?: Prisma.tmp_vpnMinOrderByAggregateInput
_sum?: Prisma.tmp_vpnSumOrderByAggregateInput
}
export type tmp_vpnScalarWhereWithAggregatesInput = {
AND?: Prisma.tmp_vpnScalarWhereWithAggregatesInput | Prisma.tmp_vpnScalarWhereWithAggregatesInput[]
OR?: Prisma.tmp_vpnScalarWhereWithAggregatesInput[]
NOT?: Prisma.tmp_vpnScalarWhereWithAggregatesInput | Prisma.tmp_vpnScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"tmp_vpn"> | number
username?: Prisma.StringWithAggregatesFilter<"tmp_vpn"> | string
password?: Prisma.StringWithAggregatesFilter<"tmp_vpn"> | string
ad_done?: Prisma.BoolWithAggregatesFilter<"tmp_vpn"> | boolean
tacacs?: Prisma.BoolWithAggregatesFilter<"tmp_vpn"> | boolean
m?: Prisma.IntWithAggregatesFilter<"tmp_vpn"> | number
}
export type tmp_vpnCreateInput = {
id: number
username: string
password: string
ad_done?: boolean
tacacs?: boolean
m?: number
}
export type tmp_vpnUncheckedCreateInput = {
id: number
username: string
password: string
ad_done?: boolean
tacacs?: boolean
m?: number
}
export type tmp_vpnUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
username?: Prisma.StringFieldUpdateOperationsInput | string
password?: Prisma.StringFieldUpdateOperationsInput | string
ad_done?: Prisma.BoolFieldUpdateOperationsInput | boolean
tacacs?: Prisma.BoolFieldUpdateOperationsInput | boolean
m?: Prisma.IntFieldUpdateOperationsInput | number
}
export type tmp_vpnUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
username?: Prisma.StringFieldUpdateOperationsInput | string
password?: Prisma.StringFieldUpdateOperationsInput | string
ad_done?: Prisma.BoolFieldUpdateOperationsInput | boolean
tacacs?: Prisma.BoolFieldUpdateOperationsInput | boolean
m?: Prisma.IntFieldUpdateOperationsInput | number
}
export type tmp_vpnCreateManyInput = {
id: number
username: string
password: string
ad_done?: boolean
tacacs?: boolean
m?: number
}
export type tmp_vpnUpdateManyMutationInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
username?: Prisma.StringFieldUpdateOperationsInput | string
password?: Prisma.StringFieldUpdateOperationsInput | string
ad_done?: Prisma.BoolFieldUpdateOperationsInput | boolean
tacacs?: Prisma.BoolFieldUpdateOperationsInput | boolean
m?: Prisma.IntFieldUpdateOperationsInput | number
}
export type tmp_vpnUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
username?: Prisma.StringFieldUpdateOperationsInput | string
password?: Prisma.StringFieldUpdateOperationsInput | string
ad_done?: Prisma.BoolFieldUpdateOperationsInput | boolean
tacacs?: Prisma.BoolFieldUpdateOperationsInput | boolean
m?: Prisma.IntFieldUpdateOperationsInput | number
}
export type tmp_vpnOrderByRelevanceInput = {
fields: Prisma.tmp_vpnOrderByRelevanceFieldEnum | Prisma.tmp_vpnOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type tmp_vpnCountOrderByAggregateInput = {
id?: Prisma.SortOrder
username?: Prisma.SortOrder
password?: Prisma.SortOrder
ad_done?: Prisma.SortOrder
tacacs?: Prisma.SortOrder
m?: Prisma.SortOrder
}
export type tmp_vpnAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
m?: Prisma.SortOrder
}
export type tmp_vpnMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
username?: Prisma.SortOrder
password?: Prisma.SortOrder
ad_done?: Prisma.SortOrder
tacacs?: Prisma.SortOrder
m?: Prisma.SortOrder
}
export type tmp_vpnMinOrderByAggregateInput = {
id?: Prisma.SortOrder
username?: Prisma.SortOrder
password?: Prisma.SortOrder
ad_done?: Prisma.SortOrder
tacacs?: Prisma.SortOrder
m?: Prisma.SortOrder
}
export type tmp_vpnSumOrderByAggregateInput = {
id?: Prisma.SortOrder
m?: Prisma.SortOrder
}
export type tmp_vpnSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
username?: boolean
password?: boolean
ad_done?: boolean
tacacs?: boolean
m?: boolean
}, ExtArgs["result"]["tmp_vpn"]>
export type tmp_vpnSelectScalar = {
id?: boolean
username?: boolean
password?: boolean
ad_done?: boolean
tacacs?: boolean
m?: boolean
}
export type tmp_vpnOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "username" | "password" | "ad_done" | "tacacs" | "m", ExtArgs["result"]["tmp_vpn"]>
export type $tmp_vpnPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "tmp_vpn"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
username: string
password: string
ad_done: boolean
tacacs: boolean
m: number
}, ExtArgs["result"]["tmp_vpn"]>
composites: {}
}
export type tmp_vpnGetPayload<S extends boolean | null | undefined | tmp_vpnDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$tmp_vpnPayload, S>
export type tmp_vpnCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<tmp_vpnFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Tmp_vpnCountAggregateInputType | true
}
export interface tmp_vpnDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['tmp_vpn'], meta: { name: 'tmp_vpn' } }
/**
* Find zero or one Tmp_vpn that matches the filter.
* @param {tmp_vpnFindUniqueArgs} args - Arguments to find a Tmp_vpn
* @example
* // Get one Tmp_vpn
* const tmp_vpn = await prisma.tmp_vpn.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends tmp_vpnFindUniqueArgs>(args: Prisma.SelectSubset<T, tmp_vpnFindUniqueArgs<ExtArgs>>): Prisma.Prisma__tmp_vpnClient<runtime.Types.Result.GetResult<Prisma.$tmp_vpnPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Tmp_vpn that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {tmp_vpnFindUniqueOrThrowArgs} args - Arguments to find a Tmp_vpn
* @example
* // Get one Tmp_vpn
* const tmp_vpn = await prisma.tmp_vpn.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends tmp_vpnFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, tmp_vpnFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__tmp_vpnClient<runtime.Types.Result.GetResult<Prisma.$tmp_vpnPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Tmp_vpn 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 {tmp_vpnFindFirstArgs} args - Arguments to find a Tmp_vpn
* @example
* // Get one Tmp_vpn
* const tmp_vpn = await prisma.tmp_vpn.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends tmp_vpnFindFirstArgs>(args?: Prisma.SelectSubset<T, tmp_vpnFindFirstArgs<ExtArgs>>): Prisma.Prisma__tmp_vpnClient<runtime.Types.Result.GetResult<Prisma.$tmp_vpnPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Tmp_vpn 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 {tmp_vpnFindFirstOrThrowArgs} args - Arguments to find a Tmp_vpn
* @example
* // Get one Tmp_vpn
* const tmp_vpn = await prisma.tmp_vpn.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends tmp_vpnFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, tmp_vpnFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__tmp_vpnClient<runtime.Types.Result.GetResult<Prisma.$tmp_vpnPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Tmp_vpns 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 {tmp_vpnFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Tmp_vpns
* const tmp_vpns = await prisma.tmp_vpn.findMany()
*
* // Get first 10 Tmp_vpns
* const tmp_vpns = await prisma.tmp_vpn.findMany({ take: 10 })
*
* // Only select the `id`
* const tmp_vpnWithIdOnly = await prisma.tmp_vpn.findMany({ select: { id: true } })
*
*/
findMany<T extends tmp_vpnFindManyArgs>(args?: Prisma.SelectSubset<T, tmp_vpnFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$tmp_vpnPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Tmp_vpn.
* @param {tmp_vpnCreateArgs} args - Arguments to create a Tmp_vpn.
* @example
* // Create one Tmp_vpn
* const Tmp_vpn = await prisma.tmp_vpn.create({
* data: {
* // ... data to create a Tmp_vpn
* }
* })
*
*/
create<T extends tmp_vpnCreateArgs>(args: Prisma.SelectSubset<T, tmp_vpnCreateArgs<ExtArgs>>): Prisma.Prisma__tmp_vpnClient<runtime.Types.Result.GetResult<Prisma.$tmp_vpnPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Tmp_vpns.
* @param {tmp_vpnCreateManyArgs} args - Arguments to create many Tmp_vpns.
* @example
* // Create many Tmp_vpns
* const tmp_vpn = await prisma.tmp_vpn.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends tmp_vpnCreateManyArgs>(args?: Prisma.SelectSubset<T, tmp_vpnCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Tmp_vpn.
* @param {tmp_vpnDeleteArgs} args - Arguments to delete one Tmp_vpn.
* @example
* // Delete one Tmp_vpn
* const Tmp_vpn = await prisma.tmp_vpn.delete({
* where: {
* // ... filter to delete one Tmp_vpn
* }
* })
*
*/
delete<T extends tmp_vpnDeleteArgs>(args: Prisma.SelectSubset<T, tmp_vpnDeleteArgs<ExtArgs>>): Prisma.Prisma__tmp_vpnClient<runtime.Types.Result.GetResult<Prisma.$tmp_vpnPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Tmp_vpn.
* @param {tmp_vpnUpdateArgs} args - Arguments to update one Tmp_vpn.
* @example
* // Update one Tmp_vpn
* const tmp_vpn = await prisma.tmp_vpn.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends tmp_vpnUpdateArgs>(args: Prisma.SelectSubset<T, tmp_vpnUpdateArgs<ExtArgs>>): Prisma.Prisma__tmp_vpnClient<runtime.Types.Result.GetResult<Prisma.$tmp_vpnPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Tmp_vpns.
* @param {tmp_vpnDeleteManyArgs} args - Arguments to filter Tmp_vpns to delete.
* @example
* // Delete a few Tmp_vpns
* const { count } = await prisma.tmp_vpn.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends tmp_vpnDeleteManyArgs>(args?: Prisma.SelectSubset<T, tmp_vpnDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Tmp_vpns.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {tmp_vpnUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Tmp_vpns
* const tmp_vpn = await prisma.tmp_vpn.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends tmp_vpnUpdateManyArgs>(args: Prisma.SelectSubset<T, tmp_vpnUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Tmp_vpn.
* @param {tmp_vpnUpsertArgs} args - Arguments to update or create a Tmp_vpn.
* @example
* // Update or create a Tmp_vpn
* const tmp_vpn = await prisma.tmp_vpn.upsert({
* create: {
* // ... data to create a Tmp_vpn
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Tmp_vpn we want to update
* }
* })
*/
upsert<T extends tmp_vpnUpsertArgs>(args: Prisma.SelectSubset<T, tmp_vpnUpsertArgs<ExtArgs>>): Prisma.Prisma__tmp_vpnClient<runtime.Types.Result.GetResult<Prisma.$tmp_vpnPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Tmp_vpns.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {tmp_vpnCountArgs} args - Arguments to filter Tmp_vpns to count.
* @example
* // Count the number of Tmp_vpns
* const count = await prisma.tmp_vpn.count({
* where: {
* // ... the filter for the Tmp_vpns we want to count
* }
* })
**/
count<T extends tmp_vpnCountArgs>(
args?: Prisma.Subset<T, tmp_vpnCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Tmp_vpnCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Tmp_vpn.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Tmp_vpnAggregateArgs} 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 Tmp_vpnAggregateArgs>(args: Prisma.Subset<T, Tmp_vpnAggregateArgs>): Prisma.PrismaPromise<GetTmp_vpnAggregateType<T>>
/**
* Group by Tmp_vpn.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {tmp_vpnGroupByArgs} 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 tmp_vpnGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: tmp_vpnGroupByArgs['orderBy'] }
: { orderBy?: tmp_vpnGroupByArgs['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, tmp_vpnGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTmp_vpnGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the tmp_vpn model
*/
readonly fields: tmp_vpnFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for tmp_vpn.
* 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__tmp_vpnClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* 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 tmp_vpn model
*/
export interface tmp_vpnFieldRefs {
readonly id: Prisma.FieldRef<"tmp_vpn", 'Int'>
readonly username: Prisma.FieldRef<"tmp_vpn", 'String'>
readonly password: Prisma.FieldRef<"tmp_vpn", 'String'>
readonly ad_done: Prisma.FieldRef<"tmp_vpn", 'Boolean'>
readonly tacacs: Prisma.FieldRef<"tmp_vpn", 'Boolean'>
readonly m: Prisma.FieldRef<"tmp_vpn", 'Int'>
}
// Custom InputTypes
/**
* tmp_vpn findUnique
*/
export type tmp_vpnFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tmp_vpn
*/
select?: Prisma.tmp_vpnSelect<ExtArgs> | null
/**
* Omit specific fields from the tmp_vpn
*/
omit?: Prisma.tmp_vpnOmit<ExtArgs> | null
/**
* Filter, which tmp_vpn to fetch.
*/
where: Prisma.tmp_vpnWhereUniqueInput
}
/**
* tmp_vpn findUniqueOrThrow
*/
export type tmp_vpnFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tmp_vpn
*/
select?: Prisma.tmp_vpnSelect<ExtArgs> | null
/**
* Omit specific fields from the tmp_vpn
*/
omit?: Prisma.tmp_vpnOmit<ExtArgs> | null
/**
* Filter, which tmp_vpn to fetch.
*/
where: Prisma.tmp_vpnWhereUniqueInput
}
/**
* tmp_vpn findFirst
*/
export type tmp_vpnFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tmp_vpn
*/
select?: Prisma.tmp_vpnSelect<ExtArgs> | null
/**
* Omit specific fields from the tmp_vpn
*/
omit?: Prisma.tmp_vpnOmit<ExtArgs> | null
/**
* Filter, which tmp_vpn to fetch.
*/
where?: Prisma.tmp_vpnWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of tmp_vpns to fetch.
*/
orderBy?: Prisma.tmp_vpnOrderByWithRelationInput | Prisma.tmp_vpnOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for tmp_vpns.
*/
cursor?: Prisma.tmp_vpnWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` tmp_vpns 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` tmp_vpns.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of tmp_vpns.
*/
distinct?: Prisma.Tmp_vpnScalarFieldEnum | Prisma.Tmp_vpnScalarFieldEnum[]
}
/**
* tmp_vpn findFirstOrThrow
*/
export type tmp_vpnFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tmp_vpn
*/
select?: Prisma.tmp_vpnSelect<ExtArgs> | null
/**
* Omit specific fields from the tmp_vpn
*/
omit?: Prisma.tmp_vpnOmit<ExtArgs> | null
/**
* Filter, which tmp_vpn to fetch.
*/
where?: Prisma.tmp_vpnWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of tmp_vpns to fetch.
*/
orderBy?: Prisma.tmp_vpnOrderByWithRelationInput | Prisma.tmp_vpnOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for tmp_vpns.
*/
cursor?: Prisma.tmp_vpnWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` tmp_vpns 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` tmp_vpns.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of tmp_vpns.
*/
distinct?: Prisma.Tmp_vpnScalarFieldEnum | Prisma.Tmp_vpnScalarFieldEnum[]
}
/**
* tmp_vpn findMany
*/
export type tmp_vpnFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tmp_vpn
*/
select?: Prisma.tmp_vpnSelect<ExtArgs> | null
/**
* Omit specific fields from the tmp_vpn
*/
omit?: Prisma.tmp_vpnOmit<ExtArgs> | null
/**
* Filter, which tmp_vpns to fetch.
*/
where?: Prisma.tmp_vpnWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of tmp_vpns to fetch.
*/
orderBy?: Prisma.tmp_vpnOrderByWithRelationInput | Prisma.tmp_vpnOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing tmp_vpns.
*/
cursor?: Prisma.tmp_vpnWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` tmp_vpns 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` tmp_vpns.
*/
skip?: number
distinct?: Prisma.Tmp_vpnScalarFieldEnum | Prisma.Tmp_vpnScalarFieldEnum[]
}
/**
* tmp_vpn create
*/
export type tmp_vpnCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tmp_vpn
*/
select?: Prisma.tmp_vpnSelect<ExtArgs> | null
/**
* Omit specific fields from the tmp_vpn
*/
omit?: Prisma.tmp_vpnOmit<ExtArgs> | null
/**
* The data needed to create a tmp_vpn.
*/
data: Prisma.XOR<Prisma.tmp_vpnCreateInput, Prisma.tmp_vpnUncheckedCreateInput>
}
/**
* tmp_vpn createMany
*/
export type tmp_vpnCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many tmp_vpns.
*/
data: Prisma.tmp_vpnCreateManyInput | Prisma.tmp_vpnCreateManyInput[]
skipDuplicates?: boolean
}
/**
* tmp_vpn update
*/
export type tmp_vpnUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tmp_vpn
*/
select?: Prisma.tmp_vpnSelect<ExtArgs> | null
/**
* Omit specific fields from the tmp_vpn
*/
omit?: Prisma.tmp_vpnOmit<ExtArgs> | null
/**
* The data needed to update a tmp_vpn.
*/
data: Prisma.XOR<Prisma.tmp_vpnUpdateInput, Prisma.tmp_vpnUncheckedUpdateInput>
/**
* Choose, which tmp_vpn to update.
*/
where: Prisma.tmp_vpnWhereUniqueInput
}
/**
* tmp_vpn updateMany
*/
export type tmp_vpnUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update tmp_vpns.
*/
data: Prisma.XOR<Prisma.tmp_vpnUpdateManyMutationInput, Prisma.tmp_vpnUncheckedUpdateManyInput>
/**
* Filter which tmp_vpns to update
*/
where?: Prisma.tmp_vpnWhereInput
/**
* Limit how many tmp_vpns to update.
*/
limit?: number
}
/**
* tmp_vpn upsert
*/
export type tmp_vpnUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tmp_vpn
*/
select?: Prisma.tmp_vpnSelect<ExtArgs> | null
/**
* Omit specific fields from the tmp_vpn
*/
omit?: Prisma.tmp_vpnOmit<ExtArgs> | null
/**
* The filter to search for the tmp_vpn to update in case it exists.
*/
where: Prisma.tmp_vpnWhereUniqueInput
/**
* In case the tmp_vpn found by the `where` argument doesn't exist, create a new tmp_vpn with this data.
*/
create: Prisma.XOR<Prisma.tmp_vpnCreateInput, Prisma.tmp_vpnUncheckedCreateInput>
/**
* In case the tmp_vpn was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.tmp_vpnUpdateInput, Prisma.tmp_vpnUncheckedUpdateInput>
}
/**
* tmp_vpn delete
*/
export type tmp_vpnDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tmp_vpn
*/
select?: Prisma.tmp_vpnSelect<ExtArgs> | null
/**
* Omit specific fields from the tmp_vpn
*/
omit?: Prisma.tmp_vpnOmit<ExtArgs> | null
/**
* Filter which tmp_vpn to delete.
*/
where: Prisma.tmp_vpnWhereUniqueInput
}
/**
* tmp_vpn deleteMany
*/
export type tmp_vpnDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which tmp_vpns to delete
*/
where?: Prisma.tmp_vpnWhereInput
/**
* Limit how many tmp_vpns to delete.
*/
limit?: number
}
/**
* tmp_vpn without action
*/
export type tmp_vpnDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the tmp_vpn
*/
select?: Prisma.tmp_vpnSelect<ExtArgs> | null
/**
* Omit specific fields from the tmp_vpn
*/
omit?: Prisma.tmp_vpnOmit<ExtArgs> | null
}