1117 lines
37 KiB
TypeScript
1117 lines
37 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 `Sessions` 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 Sessions
|
|
*
|
|
*/
|
|
export type SessionsModel = runtime.Types.Result.DefaultSelection<Prisma.$SessionsPayload>
|
|
|
|
export type AggregateSessions = {
|
|
_count: SessionsCountAggregateOutputType | null
|
|
_min: SessionsMinAggregateOutputType | null
|
|
_max: SessionsMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type SessionsMinAggregateOutputType = {
|
|
id: string | null
|
|
sid: string | null
|
|
data: string | null
|
|
expiresAt: Date | null
|
|
}
|
|
|
|
export type SessionsMaxAggregateOutputType = {
|
|
id: string | null
|
|
sid: string | null
|
|
data: string | null
|
|
expiresAt: Date | null
|
|
}
|
|
|
|
export type SessionsCountAggregateOutputType = {
|
|
id: number
|
|
sid: number
|
|
data: number
|
|
expiresAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type SessionsMinAggregateInputType = {
|
|
id?: true
|
|
sid?: true
|
|
data?: true
|
|
expiresAt?: true
|
|
}
|
|
|
|
export type SessionsMaxAggregateInputType = {
|
|
id?: true
|
|
sid?: true
|
|
data?: true
|
|
expiresAt?: true
|
|
}
|
|
|
|
export type SessionsCountAggregateInputType = {
|
|
id?: true
|
|
sid?: true
|
|
data?: true
|
|
expiresAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type SessionsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Sessions to aggregate.
|
|
*/
|
|
where?: Prisma.SessionsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: Prisma.SessionsOrderByWithRelationInput | Prisma.SessionsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.SessionsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions 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` Sessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Sessions
|
|
**/
|
|
_count?: true | SessionsCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: SessionsMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: SessionsMaxAggregateInputType
|
|
}
|
|
|
|
export type GetSessionsAggregateType<T extends SessionsAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateSessions]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateSessions[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateSessions[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SessionsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.SessionsWhereInput
|
|
orderBy?: Prisma.SessionsOrderByWithAggregationInput | Prisma.SessionsOrderByWithAggregationInput[]
|
|
by: Prisma.SessionsScalarFieldEnum[] | Prisma.SessionsScalarFieldEnum
|
|
having?: Prisma.SessionsScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: SessionsCountAggregateInputType | true
|
|
_min?: SessionsMinAggregateInputType
|
|
_max?: SessionsMaxAggregateInputType
|
|
}
|
|
|
|
export type SessionsGroupByOutputType = {
|
|
id: string
|
|
sid: string
|
|
data: string
|
|
expiresAt: Date
|
|
_count: SessionsCountAggregateOutputType | null
|
|
_min: SessionsMinAggregateOutputType | null
|
|
_max: SessionsMaxAggregateOutputType | null
|
|
}
|
|
|
|
type GetSessionsGroupByPayload<T extends SessionsGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<SessionsGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof SessionsGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], SessionsGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], SessionsGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type SessionsWhereInput = {
|
|
AND?: Prisma.SessionsWhereInput | Prisma.SessionsWhereInput[]
|
|
OR?: Prisma.SessionsWhereInput[]
|
|
NOT?: Prisma.SessionsWhereInput | Prisma.SessionsWhereInput[]
|
|
id?: Prisma.StringFilter<"Sessions"> | string
|
|
sid?: Prisma.StringFilter<"Sessions"> | string
|
|
data?: Prisma.StringFilter<"Sessions"> | string
|
|
expiresAt?: Prisma.DateTimeFilter<"Sessions"> | Date | string
|
|
}
|
|
|
|
export type SessionsOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
sid?: Prisma.SortOrder
|
|
data?: Prisma.SortOrder
|
|
expiresAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SessionsWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
sid?: string
|
|
AND?: Prisma.SessionsWhereInput | Prisma.SessionsWhereInput[]
|
|
OR?: Prisma.SessionsWhereInput[]
|
|
NOT?: Prisma.SessionsWhereInput | Prisma.SessionsWhereInput[]
|
|
data?: Prisma.StringFilter<"Sessions"> | string
|
|
expiresAt?: Prisma.DateTimeFilter<"Sessions"> | Date | string
|
|
}, "id" | "sid">
|
|
|
|
export type SessionsOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
sid?: Prisma.SortOrder
|
|
data?: Prisma.SortOrder
|
|
expiresAt?: Prisma.SortOrder
|
|
_count?: Prisma.SessionsCountOrderByAggregateInput
|
|
_max?: Prisma.SessionsMaxOrderByAggregateInput
|
|
_min?: Prisma.SessionsMinOrderByAggregateInput
|
|
}
|
|
|
|
export type SessionsScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.SessionsScalarWhereWithAggregatesInput | Prisma.SessionsScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.SessionsScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.SessionsScalarWhereWithAggregatesInput | Prisma.SessionsScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"Sessions"> | string
|
|
sid?: Prisma.StringWithAggregatesFilter<"Sessions"> | string
|
|
data?: Prisma.StringWithAggregatesFilter<"Sessions"> | string
|
|
expiresAt?: Prisma.DateTimeWithAggregatesFilter<"Sessions"> | Date | string
|
|
}
|
|
|
|
export type SessionsCreateInput = {
|
|
id: string
|
|
sid: string
|
|
data: string
|
|
expiresAt: Date | string
|
|
}
|
|
|
|
export type SessionsUncheckedCreateInput = {
|
|
id: string
|
|
sid: string
|
|
data: string
|
|
expiresAt: Date | string
|
|
}
|
|
|
|
export type SessionsUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sid?: Prisma.StringFieldUpdateOperationsInput | string
|
|
data?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SessionsUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sid?: Prisma.StringFieldUpdateOperationsInput | string
|
|
data?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SessionsCreateManyInput = {
|
|
id: string
|
|
sid: string
|
|
data: string
|
|
expiresAt: Date | string
|
|
}
|
|
|
|
export type SessionsUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sid?: Prisma.StringFieldUpdateOperationsInput | string
|
|
data?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SessionsUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sid?: Prisma.StringFieldUpdateOperationsInput | string
|
|
data?: Prisma.StringFieldUpdateOperationsInput | string
|
|
expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type SessionsCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
sid?: Prisma.SortOrder
|
|
data?: Prisma.SortOrder
|
|
expiresAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SessionsMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
sid?: Prisma.SortOrder
|
|
data?: Prisma.SortOrder
|
|
expiresAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type SessionsMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
sid?: Prisma.SortOrder
|
|
data?: Prisma.SortOrder
|
|
expiresAt?: Prisma.SortOrder
|
|
}
|
|
|
|
|
|
|
|
export type SessionsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
sid?: boolean
|
|
data?: boolean
|
|
expiresAt?: boolean
|
|
}, ExtArgs["result"]["sessions"]>
|
|
|
|
export type SessionsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
sid?: boolean
|
|
data?: boolean
|
|
expiresAt?: boolean
|
|
}, ExtArgs["result"]["sessions"]>
|
|
|
|
export type SessionsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
sid?: boolean
|
|
data?: boolean
|
|
expiresAt?: boolean
|
|
}, ExtArgs["result"]["sessions"]>
|
|
|
|
export type SessionsSelectScalar = {
|
|
id?: boolean
|
|
sid?: boolean
|
|
data?: boolean
|
|
expiresAt?: boolean
|
|
}
|
|
|
|
export type SessionsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "sid" | "data" | "expiresAt", ExtArgs["result"]["sessions"]>
|
|
|
|
export type $SessionsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "Sessions"
|
|
objects: {}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
sid: string
|
|
data: string
|
|
expiresAt: Date
|
|
}, ExtArgs["result"]["sessions"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type SessionsGetPayload<S extends boolean | null | undefined | SessionsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SessionsPayload, S>
|
|
|
|
export type SessionsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<SessionsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: SessionsCountAggregateInputType | true
|
|
}
|
|
|
|
export interface SessionsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Sessions'], meta: { name: 'Sessions' } }
|
|
/**
|
|
* Find zero or one Sessions that matches the filter.
|
|
* @param {SessionsFindUniqueArgs} args - Arguments to find a Sessions
|
|
* @example
|
|
* // Get one Sessions
|
|
* const sessions = await prisma.sessions.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends SessionsFindUniqueArgs>(args: Prisma.SelectSubset<T, SessionsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Sessions that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {SessionsFindUniqueOrThrowArgs} args - Arguments to find a Sessions
|
|
* @example
|
|
* // Get one Sessions
|
|
* const sessions = await prisma.sessions.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends SessionsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SessionsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Sessions 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 {SessionsFindFirstArgs} args - Arguments to find a Sessions
|
|
* @example
|
|
* // Get one Sessions
|
|
* const sessions = await prisma.sessions.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends SessionsFindFirstArgs>(args?: Prisma.SelectSubset<T, SessionsFindFirstArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Sessions 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 {SessionsFindFirstOrThrowArgs} args - Arguments to find a Sessions
|
|
* @example
|
|
* // Get one Sessions
|
|
* const sessions = await prisma.sessions.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends SessionsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SessionsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Sessions 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 {SessionsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Sessions
|
|
* const sessions = await prisma.sessions.findMany()
|
|
*
|
|
* // Get first 10 Sessions
|
|
* const sessions = await prisma.sessions.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const sessionsWithIdOnly = await prisma.sessions.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends SessionsFindManyArgs>(args?: Prisma.SelectSubset<T, SessionsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Sessions.
|
|
* @param {SessionsCreateArgs} args - Arguments to create a Sessions.
|
|
* @example
|
|
* // Create one Sessions
|
|
* const Sessions = await prisma.sessions.create({
|
|
* data: {
|
|
* // ... data to create a Sessions
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends SessionsCreateArgs>(args: Prisma.SelectSubset<T, SessionsCreateArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Sessions.
|
|
* @param {SessionsCreateManyArgs} args - Arguments to create many Sessions.
|
|
* @example
|
|
* // Create many Sessions
|
|
* const sessions = await prisma.sessions.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends SessionsCreateManyArgs>(args?: Prisma.SelectSubset<T, SessionsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many Sessions and returns the data saved in the database.
|
|
* @param {SessionsCreateManyAndReturnArgs} args - Arguments to create many Sessions.
|
|
* @example
|
|
* // Create many Sessions
|
|
* const sessions = await prisma.sessions.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Sessions and only return the `id`
|
|
* const sessionsWithIdOnly = await prisma.sessions.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 SessionsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SessionsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a Sessions.
|
|
* @param {SessionsDeleteArgs} args - Arguments to delete one Sessions.
|
|
* @example
|
|
* // Delete one Sessions
|
|
* const Sessions = await prisma.sessions.delete({
|
|
* where: {
|
|
* // ... filter to delete one Sessions
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends SessionsDeleteArgs>(args: Prisma.SelectSubset<T, SessionsDeleteArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Sessions.
|
|
* @param {SessionsUpdateArgs} args - Arguments to update one Sessions.
|
|
* @example
|
|
* // Update one Sessions
|
|
* const sessions = await prisma.sessions.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends SessionsUpdateArgs>(args: Prisma.SelectSubset<T, SessionsUpdateArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Sessions.
|
|
* @param {SessionsDeleteManyArgs} args - Arguments to filter Sessions to delete.
|
|
* @example
|
|
* // Delete a few Sessions
|
|
* const { count } = await prisma.sessions.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends SessionsDeleteManyArgs>(args?: Prisma.SelectSubset<T, SessionsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Sessions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Sessions
|
|
* const sessions = await prisma.sessions.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends SessionsUpdateManyArgs>(args: Prisma.SelectSubset<T, SessionsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Sessions and returns the data updated in the database.
|
|
* @param {SessionsUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
|
|
* @example
|
|
* // Update many Sessions
|
|
* const sessions = await prisma.sessions.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Sessions and only return the `id`
|
|
* const sessionsWithIdOnly = await prisma.sessions.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 SessionsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SessionsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one Sessions.
|
|
* @param {SessionsUpsertArgs} args - Arguments to update or create a Sessions.
|
|
* @example
|
|
* // Update or create a Sessions
|
|
* const sessions = await prisma.sessions.upsert({
|
|
* create: {
|
|
* // ... data to create a Sessions
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Sessions we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends SessionsUpsertArgs>(args: Prisma.SelectSubset<T, SessionsUpsertArgs<ExtArgs>>): Prisma.Prisma__SessionsClient<runtime.Types.Result.GetResult<Prisma.$SessionsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Sessions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionsCountArgs} args - Arguments to filter Sessions to count.
|
|
* @example
|
|
* // Count the number of Sessions
|
|
* const count = await prisma.sessions.count({
|
|
* where: {
|
|
* // ... the filter for the Sessions we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends SessionsCountArgs>(
|
|
args?: Prisma.Subset<T, SessionsCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], SessionsCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Sessions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionsAggregateArgs} 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 SessionsAggregateArgs>(args: Prisma.Subset<T, SessionsAggregateArgs>): Prisma.PrismaPromise<GetSessionsAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Sessions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {SessionsGroupByArgs} 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 SessionsGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: SessionsGroupByArgs['orderBy'] }
|
|
: { orderBy?: SessionsGroupByArgs['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, SessionsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Sessions model
|
|
*/
|
|
readonly fields: SessionsFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Sessions.
|
|
* 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__SessionsClient<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 Sessions model
|
|
*/
|
|
export interface SessionsFieldRefs {
|
|
readonly id: Prisma.FieldRef<"Sessions", 'String'>
|
|
readonly sid: Prisma.FieldRef<"Sessions", 'String'>
|
|
readonly data: Prisma.FieldRef<"Sessions", 'String'>
|
|
readonly expiresAt: Prisma.FieldRef<"Sessions", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Sessions findUnique
|
|
*/
|
|
export type SessionsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sessions
|
|
*/
|
|
select?: Prisma.SessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sessions
|
|
*/
|
|
omit?: Prisma.SessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which Sessions to fetch.
|
|
*/
|
|
where: Prisma.SessionsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Sessions findUniqueOrThrow
|
|
*/
|
|
export type SessionsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sessions
|
|
*/
|
|
select?: Prisma.SessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sessions
|
|
*/
|
|
omit?: Prisma.SessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which Sessions to fetch.
|
|
*/
|
|
where: Prisma.SessionsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Sessions findFirst
|
|
*/
|
|
export type SessionsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sessions
|
|
*/
|
|
select?: Prisma.SessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sessions
|
|
*/
|
|
omit?: Prisma.SessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which Sessions to fetch.
|
|
*/
|
|
where?: Prisma.SessionsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: Prisma.SessionsOrderByWithRelationInput | Prisma.SessionsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Sessions.
|
|
*/
|
|
cursor?: Prisma.SessionsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions 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` Sessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Sessions.
|
|
*/
|
|
distinct?: Prisma.SessionsScalarFieldEnum | Prisma.SessionsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Sessions findFirstOrThrow
|
|
*/
|
|
export type SessionsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sessions
|
|
*/
|
|
select?: Prisma.SessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sessions
|
|
*/
|
|
omit?: Prisma.SessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which Sessions to fetch.
|
|
*/
|
|
where?: Prisma.SessionsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: Prisma.SessionsOrderByWithRelationInput | Prisma.SessionsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Sessions.
|
|
*/
|
|
cursor?: Prisma.SessionsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions 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` Sessions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Sessions.
|
|
*/
|
|
distinct?: Prisma.SessionsScalarFieldEnum | Prisma.SessionsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Sessions findMany
|
|
*/
|
|
export type SessionsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sessions
|
|
*/
|
|
select?: Prisma.SessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sessions
|
|
*/
|
|
omit?: Prisma.SessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter, which Sessions to fetch.
|
|
*/
|
|
where?: Prisma.SessionsWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Sessions to fetch.
|
|
*/
|
|
orderBy?: Prisma.SessionsOrderByWithRelationInput | Prisma.SessionsOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Sessions.
|
|
*/
|
|
cursor?: Prisma.SessionsWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Sessions 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` Sessions.
|
|
*/
|
|
skip?: number
|
|
distinct?: Prisma.SessionsScalarFieldEnum | Prisma.SessionsScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Sessions create
|
|
*/
|
|
export type SessionsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sessions
|
|
*/
|
|
select?: Prisma.SessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sessions
|
|
*/
|
|
omit?: Prisma.SessionsOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Sessions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SessionsCreateInput, Prisma.SessionsUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Sessions createMany
|
|
*/
|
|
export type SessionsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Sessions.
|
|
*/
|
|
data: Prisma.SessionsCreateManyInput | Prisma.SessionsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Sessions createManyAndReturn
|
|
*/
|
|
export type SessionsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sessions
|
|
*/
|
|
select?: Prisma.SessionsSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sessions
|
|
*/
|
|
omit?: Prisma.SessionsOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Sessions.
|
|
*/
|
|
data: Prisma.SessionsCreateManyInput | Prisma.SessionsCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Sessions update
|
|
*/
|
|
export type SessionsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sessions
|
|
*/
|
|
select?: Prisma.SessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sessions
|
|
*/
|
|
omit?: Prisma.SessionsOmit<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Sessions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SessionsUpdateInput, Prisma.SessionsUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Sessions to update.
|
|
*/
|
|
where: Prisma.SessionsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Sessions updateMany
|
|
*/
|
|
export type SessionsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Sessions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SessionsUpdateManyMutationInput, Prisma.SessionsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Sessions to update
|
|
*/
|
|
where?: Prisma.SessionsWhereInput
|
|
/**
|
|
* Limit how many Sessions to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Sessions updateManyAndReturn
|
|
*/
|
|
export type SessionsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sessions
|
|
*/
|
|
select?: Prisma.SessionsSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sessions
|
|
*/
|
|
omit?: Prisma.SessionsOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update Sessions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.SessionsUpdateManyMutationInput, Prisma.SessionsUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Sessions to update
|
|
*/
|
|
where?: Prisma.SessionsWhereInput
|
|
/**
|
|
* Limit how many Sessions to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Sessions upsert
|
|
*/
|
|
export type SessionsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sessions
|
|
*/
|
|
select?: Prisma.SessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sessions
|
|
*/
|
|
omit?: Prisma.SessionsOmit<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Sessions to update in case it exists.
|
|
*/
|
|
where: Prisma.SessionsWhereUniqueInput
|
|
/**
|
|
* In case the Sessions found by the `where` argument doesn't exist, create a new Sessions with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.SessionsCreateInput, Prisma.SessionsUncheckedCreateInput>
|
|
/**
|
|
* In case the Sessions was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.SessionsUpdateInput, Prisma.SessionsUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Sessions delete
|
|
*/
|
|
export type SessionsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sessions
|
|
*/
|
|
select?: Prisma.SessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sessions
|
|
*/
|
|
omit?: Prisma.SessionsOmit<ExtArgs> | null
|
|
/**
|
|
* Filter which Sessions to delete.
|
|
*/
|
|
where: Prisma.SessionsWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Sessions deleteMany
|
|
*/
|
|
export type SessionsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Sessions to delete
|
|
*/
|
|
where?: Prisma.SessionsWhereInput
|
|
/**
|
|
* Limit how many Sessions to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Sessions without action
|
|
*/
|
|
export type SessionsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Sessions
|
|
*/
|
|
select?: Prisma.SessionsSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Sessions
|
|
*/
|
|
omit?: Prisma.SessionsOmit<ExtArgs> | null
|
|
}
|