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

1092 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 `notice_gui` 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 notice_gui
*
*/
export type notice_guiModel = runtime.Types.Result.DefaultSelection<Prisma.$notice_guiPayload>
export type AggregateNotice_gui = {
_count: Notice_guiCountAggregateOutputType | null
_avg: Notice_guiAvgAggregateOutputType | null
_sum: Notice_guiSumAggregateOutputType | null
_min: Notice_guiMinAggregateOutputType | null
_max: Notice_guiMaxAggregateOutputType | null
}
export type Notice_guiAvgAggregateOutputType = {
id: number | null
staff_id: number | null
is_read: number | null
}
export type Notice_guiSumAggregateOutputType = {
id: number | null
staff_id: number | null
is_read: number | null
}
export type Notice_guiMinAggregateOutputType = {
id: number | null
staff_id: number | null
message: string | null
is_read: number | null
timestamp: string | null
}
export type Notice_guiMaxAggregateOutputType = {
id: number | null
staff_id: number | null
message: string | null
is_read: number | null
timestamp: string | null
}
export type Notice_guiCountAggregateOutputType = {
id: number
staff_id: number
message: number
is_read: number
timestamp: number
_all: number
}
export type Notice_guiAvgAggregateInputType = {
id?: true
staff_id?: true
is_read?: true
}
export type Notice_guiSumAggregateInputType = {
id?: true
staff_id?: true
is_read?: true
}
export type Notice_guiMinAggregateInputType = {
id?: true
staff_id?: true
message?: true
is_read?: true
timestamp?: true
}
export type Notice_guiMaxAggregateInputType = {
id?: true
staff_id?: true
message?: true
is_read?: true
timestamp?: true
}
export type Notice_guiCountAggregateInputType = {
id?: true
staff_id?: true
message?: true
is_read?: true
timestamp?: true
_all?: true
}
export type Notice_guiAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which notice_gui to aggregate.
*/
where?: Prisma.notice_guiWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of notice_guis to fetch.
*/
orderBy?: Prisma.notice_guiOrderByWithRelationInput | Prisma.notice_guiOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.notice_guiWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` notice_guis 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` notice_guis.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned notice_guis
**/
_count?: true | Notice_guiCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: Notice_guiAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: Notice_guiSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: Notice_guiMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: Notice_guiMaxAggregateInputType
}
export type GetNotice_guiAggregateType<T extends Notice_guiAggregateArgs> = {
[P in keyof T & keyof AggregateNotice_gui]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateNotice_gui[P]>
: Prisma.GetScalarType<T[P], AggregateNotice_gui[P]>
}
export type notice_guiGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.notice_guiWhereInput
orderBy?: Prisma.notice_guiOrderByWithAggregationInput | Prisma.notice_guiOrderByWithAggregationInput[]
by: Prisma.Notice_guiScalarFieldEnum[] | Prisma.Notice_guiScalarFieldEnum
having?: Prisma.notice_guiScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: Notice_guiCountAggregateInputType | true
_avg?: Notice_guiAvgAggregateInputType
_sum?: Notice_guiSumAggregateInputType
_min?: Notice_guiMinAggregateInputType
_max?: Notice_guiMaxAggregateInputType
}
export type Notice_guiGroupByOutputType = {
id: number
staff_id: number
message: string
is_read: number
timestamp: string
_count: Notice_guiCountAggregateOutputType | null
_avg: Notice_guiAvgAggregateOutputType | null
_sum: Notice_guiSumAggregateOutputType | null
_min: Notice_guiMinAggregateOutputType | null
_max: Notice_guiMaxAggregateOutputType | null
}
type GetNotice_guiGroupByPayload<T extends notice_guiGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<Notice_guiGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof Notice_guiGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], Notice_guiGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], Notice_guiGroupByOutputType[P]>
}
>
>
export type notice_guiWhereInput = {
AND?: Prisma.notice_guiWhereInput | Prisma.notice_guiWhereInput[]
OR?: Prisma.notice_guiWhereInput[]
NOT?: Prisma.notice_guiWhereInput | Prisma.notice_guiWhereInput[]
id?: Prisma.IntFilter<"notice_gui"> | number
staff_id?: Prisma.IntFilter<"notice_gui"> | number
message?: Prisma.StringFilter<"notice_gui"> | string
is_read?: Prisma.IntFilter<"notice_gui"> | number
timestamp?: Prisma.StringFilter<"notice_gui"> | string
}
export type notice_guiOrderByWithRelationInput = {
id?: Prisma.SortOrder
staff_id?: Prisma.SortOrder
message?: Prisma.SortOrder
is_read?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
_relevance?: Prisma.notice_guiOrderByRelevanceInput
}
export type notice_guiWhereUniqueInput = Prisma.AtLeast<{
id?: number
AND?: Prisma.notice_guiWhereInput | Prisma.notice_guiWhereInput[]
OR?: Prisma.notice_guiWhereInput[]
NOT?: Prisma.notice_guiWhereInput | Prisma.notice_guiWhereInput[]
staff_id?: Prisma.IntFilter<"notice_gui"> | number
message?: Prisma.StringFilter<"notice_gui"> | string
is_read?: Prisma.IntFilter<"notice_gui"> | number
timestamp?: Prisma.StringFilter<"notice_gui"> | string
}, "id">
export type notice_guiOrderByWithAggregationInput = {
id?: Prisma.SortOrder
staff_id?: Prisma.SortOrder
message?: Prisma.SortOrder
is_read?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
_count?: Prisma.notice_guiCountOrderByAggregateInput
_avg?: Prisma.notice_guiAvgOrderByAggregateInput
_max?: Prisma.notice_guiMaxOrderByAggregateInput
_min?: Prisma.notice_guiMinOrderByAggregateInput
_sum?: Prisma.notice_guiSumOrderByAggregateInput
}
export type notice_guiScalarWhereWithAggregatesInput = {
AND?: Prisma.notice_guiScalarWhereWithAggregatesInput | Prisma.notice_guiScalarWhereWithAggregatesInput[]
OR?: Prisma.notice_guiScalarWhereWithAggregatesInput[]
NOT?: Prisma.notice_guiScalarWhereWithAggregatesInput | Prisma.notice_guiScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"notice_gui"> | number
staff_id?: Prisma.IntWithAggregatesFilter<"notice_gui"> | number
message?: Prisma.StringWithAggregatesFilter<"notice_gui"> | string
is_read?: Prisma.IntWithAggregatesFilter<"notice_gui"> | number
timestamp?: Prisma.StringWithAggregatesFilter<"notice_gui"> | string
}
export type notice_guiCreateInput = {
staff_id: number
message: string
is_read?: number
timestamp: string
}
export type notice_guiUncheckedCreateInput = {
id?: number
staff_id: number
message: string
is_read?: number
timestamp: string
}
export type notice_guiUpdateInput = {
staff_id?: Prisma.IntFieldUpdateOperationsInput | number
message?: Prisma.StringFieldUpdateOperationsInput | string
is_read?: Prisma.IntFieldUpdateOperationsInput | number
timestamp?: Prisma.StringFieldUpdateOperationsInput | string
}
export type notice_guiUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
staff_id?: Prisma.IntFieldUpdateOperationsInput | number
message?: Prisma.StringFieldUpdateOperationsInput | string
is_read?: Prisma.IntFieldUpdateOperationsInput | number
timestamp?: Prisma.StringFieldUpdateOperationsInput | string
}
export type notice_guiCreateManyInput = {
id?: number
staff_id: number
message: string
is_read?: number
timestamp: string
}
export type notice_guiUpdateManyMutationInput = {
staff_id?: Prisma.IntFieldUpdateOperationsInput | number
message?: Prisma.StringFieldUpdateOperationsInput | string
is_read?: Prisma.IntFieldUpdateOperationsInput | number
timestamp?: Prisma.StringFieldUpdateOperationsInput | string
}
export type notice_guiUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
staff_id?: Prisma.IntFieldUpdateOperationsInput | number
message?: Prisma.StringFieldUpdateOperationsInput | string
is_read?: Prisma.IntFieldUpdateOperationsInput | number
timestamp?: Prisma.StringFieldUpdateOperationsInput | string
}
export type notice_guiOrderByRelevanceInput = {
fields: Prisma.notice_guiOrderByRelevanceFieldEnum | Prisma.notice_guiOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
search: string
}
export type notice_guiCountOrderByAggregateInput = {
id?: Prisma.SortOrder
staff_id?: Prisma.SortOrder
message?: Prisma.SortOrder
is_read?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
}
export type notice_guiAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
staff_id?: Prisma.SortOrder
is_read?: Prisma.SortOrder
}
export type notice_guiMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
staff_id?: Prisma.SortOrder
message?: Prisma.SortOrder
is_read?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
}
export type notice_guiMinOrderByAggregateInput = {
id?: Prisma.SortOrder
staff_id?: Prisma.SortOrder
message?: Prisma.SortOrder
is_read?: Prisma.SortOrder
timestamp?: Prisma.SortOrder
}
export type notice_guiSumOrderByAggregateInput = {
id?: Prisma.SortOrder
staff_id?: Prisma.SortOrder
is_read?: Prisma.SortOrder
}
export type notice_guiSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
staff_id?: boolean
message?: boolean
is_read?: boolean
timestamp?: boolean
}, ExtArgs["result"]["notice_gui"]>
export type notice_guiSelectScalar = {
id?: boolean
staff_id?: boolean
message?: boolean
is_read?: boolean
timestamp?: boolean
}
export type notice_guiOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "staff_id" | "message" | "is_read" | "timestamp", ExtArgs["result"]["notice_gui"]>
export type $notice_guiPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "notice_gui"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
staff_id: number
message: string
is_read: number
timestamp: string
}, ExtArgs["result"]["notice_gui"]>
composites: {}
}
export type notice_guiGetPayload<S extends boolean | null | undefined | notice_guiDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$notice_guiPayload, S>
export type notice_guiCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<notice_guiFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: Notice_guiCountAggregateInputType | true
}
export interface notice_guiDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['notice_gui'], meta: { name: 'notice_gui' } }
/**
* Find zero or one Notice_gui that matches the filter.
* @param {notice_guiFindUniqueArgs} args - Arguments to find a Notice_gui
* @example
* // Get one Notice_gui
* const notice_gui = await prisma.notice_gui.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends notice_guiFindUniqueArgs>(args: Prisma.SelectSubset<T, notice_guiFindUniqueArgs<ExtArgs>>): Prisma.Prisma__notice_guiClient<runtime.Types.Result.GetResult<Prisma.$notice_guiPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Notice_gui that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {notice_guiFindUniqueOrThrowArgs} args - Arguments to find a Notice_gui
* @example
* // Get one Notice_gui
* const notice_gui = await prisma.notice_gui.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends notice_guiFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, notice_guiFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__notice_guiClient<runtime.Types.Result.GetResult<Prisma.$notice_guiPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Notice_gui 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 {notice_guiFindFirstArgs} args - Arguments to find a Notice_gui
* @example
* // Get one Notice_gui
* const notice_gui = await prisma.notice_gui.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends notice_guiFindFirstArgs>(args?: Prisma.SelectSubset<T, notice_guiFindFirstArgs<ExtArgs>>): Prisma.Prisma__notice_guiClient<runtime.Types.Result.GetResult<Prisma.$notice_guiPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Notice_gui 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 {notice_guiFindFirstOrThrowArgs} args - Arguments to find a Notice_gui
* @example
* // Get one Notice_gui
* const notice_gui = await prisma.notice_gui.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends notice_guiFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, notice_guiFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__notice_guiClient<runtime.Types.Result.GetResult<Prisma.$notice_guiPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Notice_guis 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 {notice_guiFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Notice_guis
* const notice_guis = await prisma.notice_gui.findMany()
*
* // Get first 10 Notice_guis
* const notice_guis = await prisma.notice_gui.findMany({ take: 10 })
*
* // Only select the `id`
* const notice_guiWithIdOnly = await prisma.notice_gui.findMany({ select: { id: true } })
*
*/
findMany<T extends notice_guiFindManyArgs>(args?: Prisma.SelectSubset<T, notice_guiFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$notice_guiPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Notice_gui.
* @param {notice_guiCreateArgs} args - Arguments to create a Notice_gui.
* @example
* // Create one Notice_gui
* const Notice_gui = await prisma.notice_gui.create({
* data: {
* // ... data to create a Notice_gui
* }
* })
*
*/
create<T extends notice_guiCreateArgs>(args: Prisma.SelectSubset<T, notice_guiCreateArgs<ExtArgs>>): Prisma.Prisma__notice_guiClient<runtime.Types.Result.GetResult<Prisma.$notice_guiPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Notice_guis.
* @param {notice_guiCreateManyArgs} args - Arguments to create many Notice_guis.
* @example
* // Create many Notice_guis
* const notice_gui = await prisma.notice_gui.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends notice_guiCreateManyArgs>(args?: Prisma.SelectSubset<T, notice_guiCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Delete a Notice_gui.
* @param {notice_guiDeleteArgs} args - Arguments to delete one Notice_gui.
* @example
* // Delete one Notice_gui
* const Notice_gui = await prisma.notice_gui.delete({
* where: {
* // ... filter to delete one Notice_gui
* }
* })
*
*/
delete<T extends notice_guiDeleteArgs>(args: Prisma.SelectSubset<T, notice_guiDeleteArgs<ExtArgs>>): Prisma.Prisma__notice_guiClient<runtime.Types.Result.GetResult<Prisma.$notice_guiPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Notice_gui.
* @param {notice_guiUpdateArgs} args - Arguments to update one Notice_gui.
* @example
* // Update one Notice_gui
* const notice_gui = await prisma.notice_gui.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends notice_guiUpdateArgs>(args: Prisma.SelectSubset<T, notice_guiUpdateArgs<ExtArgs>>): Prisma.Prisma__notice_guiClient<runtime.Types.Result.GetResult<Prisma.$notice_guiPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Notice_guis.
* @param {notice_guiDeleteManyArgs} args - Arguments to filter Notice_guis to delete.
* @example
* // Delete a few Notice_guis
* const { count } = await prisma.notice_gui.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends notice_guiDeleteManyArgs>(args?: Prisma.SelectSubset<T, notice_guiDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Notice_guis.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {notice_guiUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Notice_guis
* const notice_gui = await prisma.notice_gui.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends notice_guiUpdateManyArgs>(args: Prisma.SelectSubset<T, notice_guiUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create or update one Notice_gui.
* @param {notice_guiUpsertArgs} args - Arguments to update or create a Notice_gui.
* @example
* // Update or create a Notice_gui
* const notice_gui = await prisma.notice_gui.upsert({
* create: {
* // ... data to create a Notice_gui
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Notice_gui we want to update
* }
* })
*/
upsert<T extends notice_guiUpsertArgs>(args: Prisma.SelectSubset<T, notice_guiUpsertArgs<ExtArgs>>): Prisma.Prisma__notice_guiClient<runtime.Types.Result.GetResult<Prisma.$notice_guiPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Notice_guis.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {notice_guiCountArgs} args - Arguments to filter Notice_guis to count.
* @example
* // Count the number of Notice_guis
* const count = await prisma.notice_gui.count({
* where: {
* // ... the filter for the Notice_guis we want to count
* }
* })
**/
count<T extends notice_guiCountArgs>(
args?: Prisma.Subset<T, notice_guiCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], Notice_guiCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Notice_gui.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {Notice_guiAggregateArgs} 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 Notice_guiAggregateArgs>(args: Prisma.Subset<T, Notice_guiAggregateArgs>): Prisma.PrismaPromise<GetNotice_guiAggregateType<T>>
/**
* Group by Notice_gui.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {notice_guiGroupByArgs} 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 notice_guiGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: notice_guiGroupByArgs['orderBy'] }
: { orderBy?: notice_guiGroupByArgs['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, notice_guiGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetNotice_guiGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the notice_gui model
*/
readonly fields: notice_guiFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for notice_gui.
* 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__notice_guiClient<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 notice_gui model
*/
export interface notice_guiFieldRefs {
readonly id: Prisma.FieldRef<"notice_gui", 'Int'>
readonly staff_id: Prisma.FieldRef<"notice_gui", 'Int'>
readonly message: Prisma.FieldRef<"notice_gui", 'String'>
readonly is_read: Prisma.FieldRef<"notice_gui", 'Int'>
readonly timestamp: Prisma.FieldRef<"notice_gui", 'String'>
}
// Custom InputTypes
/**
* notice_gui findUnique
*/
export type notice_guiFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notice_gui
*/
select?: Prisma.notice_guiSelect<ExtArgs> | null
/**
* Omit specific fields from the notice_gui
*/
omit?: Prisma.notice_guiOmit<ExtArgs> | null
/**
* Filter, which notice_gui to fetch.
*/
where: Prisma.notice_guiWhereUniqueInput
}
/**
* notice_gui findUniqueOrThrow
*/
export type notice_guiFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notice_gui
*/
select?: Prisma.notice_guiSelect<ExtArgs> | null
/**
* Omit specific fields from the notice_gui
*/
omit?: Prisma.notice_guiOmit<ExtArgs> | null
/**
* Filter, which notice_gui to fetch.
*/
where: Prisma.notice_guiWhereUniqueInput
}
/**
* notice_gui findFirst
*/
export type notice_guiFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notice_gui
*/
select?: Prisma.notice_guiSelect<ExtArgs> | null
/**
* Omit specific fields from the notice_gui
*/
omit?: Prisma.notice_guiOmit<ExtArgs> | null
/**
* Filter, which notice_gui to fetch.
*/
where?: Prisma.notice_guiWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of notice_guis to fetch.
*/
orderBy?: Prisma.notice_guiOrderByWithRelationInput | Prisma.notice_guiOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for notice_guis.
*/
cursor?: Prisma.notice_guiWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` notice_guis 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` notice_guis.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of notice_guis.
*/
distinct?: Prisma.Notice_guiScalarFieldEnum | Prisma.Notice_guiScalarFieldEnum[]
}
/**
* notice_gui findFirstOrThrow
*/
export type notice_guiFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notice_gui
*/
select?: Prisma.notice_guiSelect<ExtArgs> | null
/**
* Omit specific fields from the notice_gui
*/
omit?: Prisma.notice_guiOmit<ExtArgs> | null
/**
* Filter, which notice_gui to fetch.
*/
where?: Prisma.notice_guiWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of notice_guis to fetch.
*/
orderBy?: Prisma.notice_guiOrderByWithRelationInput | Prisma.notice_guiOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for notice_guis.
*/
cursor?: Prisma.notice_guiWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` notice_guis 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` notice_guis.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of notice_guis.
*/
distinct?: Prisma.Notice_guiScalarFieldEnum | Prisma.Notice_guiScalarFieldEnum[]
}
/**
* notice_gui findMany
*/
export type notice_guiFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notice_gui
*/
select?: Prisma.notice_guiSelect<ExtArgs> | null
/**
* Omit specific fields from the notice_gui
*/
omit?: Prisma.notice_guiOmit<ExtArgs> | null
/**
* Filter, which notice_guis to fetch.
*/
where?: Prisma.notice_guiWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of notice_guis to fetch.
*/
orderBy?: Prisma.notice_guiOrderByWithRelationInput | Prisma.notice_guiOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing notice_guis.
*/
cursor?: Prisma.notice_guiWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` notice_guis 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` notice_guis.
*/
skip?: number
distinct?: Prisma.Notice_guiScalarFieldEnum | Prisma.Notice_guiScalarFieldEnum[]
}
/**
* notice_gui create
*/
export type notice_guiCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notice_gui
*/
select?: Prisma.notice_guiSelect<ExtArgs> | null
/**
* Omit specific fields from the notice_gui
*/
omit?: Prisma.notice_guiOmit<ExtArgs> | null
/**
* The data needed to create a notice_gui.
*/
data: Prisma.XOR<Prisma.notice_guiCreateInput, Prisma.notice_guiUncheckedCreateInput>
}
/**
* notice_gui createMany
*/
export type notice_guiCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many notice_guis.
*/
data: Prisma.notice_guiCreateManyInput | Prisma.notice_guiCreateManyInput[]
skipDuplicates?: boolean
}
/**
* notice_gui update
*/
export type notice_guiUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notice_gui
*/
select?: Prisma.notice_guiSelect<ExtArgs> | null
/**
* Omit specific fields from the notice_gui
*/
omit?: Prisma.notice_guiOmit<ExtArgs> | null
/**
* The data needed to update a notice_gui.
*/
data: Prisma.XOR<Prisma.notice_guiUpdateInput, Prisma.notice_guiUncheckedUpdateInput>
/**
* Choose, which notice_gui to update.
*/
where: Prisma.notice_guiWhereUniqueInput
}
/**
* notice_gui updateMany
*/
export type notice_guiUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update notice_guis.
*/
data: Prisma.XOR<Prisma.notice_guiUpdateManyMutationInput, Prisma.notice_guiUncheckedUpdateManyInput>
/**
* Filter which notice_guis to update
*/
where?: Prisma.notice_guiWhereInput
/**
* Limit how many notice_guis to update.
*/
limit?: number
}
/**
* notice_gui upsert
*/
export type notice_guiUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notice_gui
*/
select?: Prisma.notice_guiSelect<ExtArgs> | null
/**
* Omit specific fields from the notice_gui
*/
omit?: Prisma.notice_guiOmit<ExtArgs> | null
/**
* The filter to search for the notice_gui to update in case it exists.
*/
where: Prisma.notice_guiWhereUniqueInput
/**
* In case the notice_gui found by the `where` argument doesn't exist, create a new notice_gui with this data.
*/
create: Prisma.XOR<Prisma.notice_guiCreateInput, Prisma.notice_guiUncheckedCreateInput>
/**
* In case the notice_gui was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.notice_guiUpdateInput, Prisma.notice_guiUncheckedUpdateInput>
}
/**
* notice_gui delete
*/
export type notice_guiDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notice_gui
*/
select?: Prisma.notice_guiSelect<ExtArgs> | null
/**
* Omit specific fields from the notice_gui
*/
omit?: Prisma.notice_guiOmit<ExtArgs> | null
/**
* Filter which notice_gui to delete.
*/
where: Prisma.notice_guiWhereUniqueInput
}
/**
* notice_gui deleteMany
*/
export type notice_guiDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which notice_guis to delete
*/
where?: Prisma.notice_guiWhereInput
/**
* Limit how many notice_guis to delete.
*/
limit?: number
}
/**
* notice_gui without action
*/
export type notice_guiDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the notice_gui
*/
select?: Prisma.notice_guiSelect<ExtArgs> | null
/**
* Omit specific fields from the notice_gui
*/
omit?: Prisma.notice_guiOmit<ExtArgs> | null
}