работаем бля работаем
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
@@ -8,7 +7,7 @@
|
||||
* Use it to get access to models, enums, and input types.
|
||||
*
|
||||
* This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
|
||||
* See `client.ts` for the standard, server-side entry point.
|
||||
* See `Client.ts` for the standard, server-side entry point.
|
||||
*
|
||||
* 🟢 You can import this file directly.
|
||||
*/
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,3 @@
|
||||
|
||||
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
||||
/* eslint-disable */
|
||||
// biome-ignore-all lint: generated file
|
||||
@@ -8,7 +7,7 @@
|
||||
*
|
||||
* 🛑 Under no circumstances should you import this file directly! 🛑
|
||||
*
|
||||
* All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file.
|
||||
* All exports from this file are wrapped under a `Prisma` namespace object in the Client.ts file.
|
||||
* While this enables partial backward compatibility, it is not part of the stable public API.
|
||||
*
|
||||
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
||||
@@ -1026,6 +1025,7 @@ export type MessageAttachmentScalarFieldEnum = (typeof MessageAttachmentScalarFi
|
||||
|
||||
export const ChannelScalarFieldEnum = {
|
||||
id: 'id',
|
||||
ownerId: 'ownerId',
|
||||
name: 'name',
|
||||
persistent: 'persistent'
|
||||
} as const
|
||||
|
||||
@@ -135,6 +135,7 @@ export type MessageAttachmentScalarFieldEnum = (typeof MessageAttachmentScalarFi
|
||||
|
||||
export const ChannelScalarFieldEnum = {
|
||||
id: 'id',
|
||||
ownerId: 'ownerId',
|
||||
name: 'name',
|
||||
persistent: 'persistent'
|
||||
} as const
|
||||
|
||||
@@ -26,18 +26,21 @@ export type AggregateChannel = {
|
||||
|
||||
export type ChannelMinAggregateOutputType = {
|
||||
id: string | null
|
||||
ownerId: string | null
|
||||
name: string | null
|
||||
persistent: boolean | null
|
||||
}
|
||||
|
||||
export type ChannelMaxAggregateOutputType = {
|
||||
id: string | null
|
||||
ownerId: string | null
|
||||
name: string | null
|
||||
persistent: boolean | null
|
||||
}
|
||||
|
||||
export type ChannelCountAggregateOutputType = {
|
||||
id: number
|
||||
ownerId: number
|
||||
name: number
|
||||
persistent: number
|
||||
_all: number
|
||||
@@ -46,18 +49,21 @@ export type ChannelCountAggregateOutputType = {
|
||||
|
||||
export type ChannelMinAggregateInputType = {
|
||||
id?: true
|
||||
ownerId?: true
|
||||
name?: true
|
||||
persistent?: true
|
||||
}
|
||||
|
||||
export type ChannelMaxAggregateInputType = {
|
||||
id?: true
|
||||
ownerId?: true
|
||||
name?: true
|
||||
persistent?: true
|
||||
}
|
||||
|
||||
export type ChannelCountAggregateInputType = {
|
||||
id?: true
|
||||
ownerId?: true
|
||||
name?: true
|
||||
persistent?: true
|
||||
_all?: true
|
||||
@@ -137,6 +143,7 @@ export type ChannelGroupByArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
|
||||
export type ChannelGroupByOutputType = {
|
||||
id: string
|
||||
ownerId: string | null
|
||||
name: string
|
||||
persistent: boolean
|
||||
_count: ChannelCountAggregateOutputType | null
|
||||
@@ -164,14 +171,18 @@ export type ChannelWhereInput = {
|
||||
OR?: Prisma.ChannelWhereInput[]
|
||||
NOT?: Prisma.ChannelWhereInput | Prisma.ChannelWhereInput[]
|
||||
id?: Prisma.StringFilter<"Channel"> | string
|
||||
ownerId?: Prisma.StringNullableFilter<"Channel"> | string | null
|
||||
name?: Prisma.StringFilter<"Channel"> | string
|
||||
persistent?: Prisma.BoolFilter<"Channel"> | boolean
|
||||
owner?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||||
}
|
||||
|
||||
export type ChannelOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
ownerId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
persistent?: Prisma.SortOrder
|
||||
owner?: Prisma.UserOrderByWithRelationInput
|
||||
}
|
||||
|
||||
export type ChannelWhereUniqueInput = Prisma.AtLeast<{
|
||||
@@ -179,12 +190,15 @@ export type ChannelWhereUniqueInput = Prisma.AtLeast<{
|
||||
AND?: Prisma.ChannelWhereInput | Prisma.ChannelWhereInput[]
|
||||
OR?: Prisma.ChannelWhereInput[]
|
||||
NOT?: Prisma.ChannelWhereInput | Prisma.ChannelWhereInput[]
|
||||
ownerId?: Prisma.StringNullableFilter<"Channel"> | string | null
|
||||
name?: Prisma.StringFilter<"Channel"> | string
|
||||
persistent?: Prisma.BoolFilter<"Channel"> | boolean
|
||||
owner?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||||
}, "id">
|
||||
|
||||
export type ChannelOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
ownerId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
persistent?: Prisma.SortOrder
|
||||
_count?: Prisma.ChannelCountOrderByAggregateInput
|
||||
@@ -197,6 +211,7 @@ export type ChannelScalarWhereWithAggregatesInput = {
|
||||
OR?: Prisma.ChannelScalarWhereWithAggregatesInput[]
|
||||
NOT?: Prisma.ChannelScalarWhereWithAggregatesInput | Prisma.ChannelScalarWhereWithAggregatesInput[]
|
||||
id?: Prisma.StringWithAggregatesFilter<"Channel"> | string
|
||||
ownerId?: Prisma.StringNullableWithAggregatesFilter<"Channel"> | string | null
|
||||
name?: Prisma.StringWithAggregatesFilter<"Channel"> | string
|
||||
persistent?: Prisma.BoolWithAggregatesFilter<"Channel"> | boolean
|
||||
}
|
||||
@@ -205,10 +220,12 @@ export type ChannelCreateInput = {
|
||||
id?: string
|
||||
name: string
|
||||
persistent: boolean
|
||||
owner?: Prisma.UserCreateNestedOneWithoutChannelsInput
|
||||
}
|
||||
|
||||
export type ChannelUncheckedCreateInput = {
|
||||
id?: string
|
||||
ownerId?: string | null
|
||||
name: string
|
||||
persistent: boolean
|
||||
}
|
||||
@@ -217,16 +234,19 @@ export type ChannelUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
persistent?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
owner?: Prisma.UserUpdateOneWithoutChannelsNestedInput
|
||||
}
|
||||
|
||||
export type ChannelUncheckedUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
persistent?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
}
|
||||
|
||||
export type ChannelCreateManyInput = {
|
||||
id?: string
|
||||
ownerId?: string | null
|
||||
name: string
|
||||
persistent: boolean
|
||||
}
|
||||
@@ -239,65 +259,211 @@ export type ChannelUpdateManyMutationInput = {
|
||||
|
||||
export type ChannelUncheckedUpdateManyInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
ownerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
persistent?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
}
|
||||
|
||||
export type ChannelListRelationFilter = {
|
||||
every?: Prisma.ChannelWhereInput
|
||||
some?: Prisma.ChannelWhereInput
|
||||
none?: Prisma.ChannelWhereInput
|
||||
}
|
||||
|
||||
export type ChannelOrderByRelationAggregateInput = {
|
||||
_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type ChannelCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
ownerId?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
persistent?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type ChannelMaxOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
ownerId?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
persistent?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type ChannelMinOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
ownerId?: Prisma.SortOrder
|
||||
name?: Prisma.SortOrder
|
||||
persistent?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type ChannelCreateNestedManyWithoutOwnerInput = {
|
||||
create?: Prisma.XOR<Prisma.ChannelCreateWithoutOwnerInput, Prisma.ChannelUncheckedCreateWithoutOwnerInput> | Prisma.ChannelCreateWithoutOwnerInput[] | Prisma.ChannelUncheckedCreateWithoutOwnerInput[]
|
||||
connectOrCreate?: Prisma.ChannelCreateOrConnectWithoutOwnerInput | Prisma.ChannelCreateOrConnectWithoutOwnerInput[]
|
||||
createMany?: Prisma.ChannelCreateManyOwnerInputEnvelope
|
||||
connect?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type ChannelUncheckedCreateNestedManyWithoutOwnerInput = {
|
||||
create?: Prisma.XOR<Prisma.ChannelCreateWithoutOwnerInput, Prisma.ChannelUncheckedCreateWithoutOwnerInput> | Prisma.ChannelCreateWithoutOwnerInput[] | Prisma.ChannelUncheckedCreateWithoutOwnerInput[]
|
||||
connectOrCreate?: Prisma.ChannelCreateOrConnectWithoutOwnerInput | Prisma.ChannelCreateOrConnectWithoutOwnerInput[]
|
||||
createMany?: Prisma.ChannelCreateManyOwnerInputEnvelope
|
||||
connect?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type ChannelUpdateManyWithoutOwnerNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.ChannelCreateWithoutOwnerInput, Prisma.ChannelUncheckedCreateWithoutOwnerInput> | Prisma.ChannelCreateWithoutOwnerInput[] | Prisma.ChannelUncheckedCreateWithoutOwnerInput[]
|
||||
connectOrCreate?: Prisma.ChannelCreateOrConnectWithoutOwnerInput | Prisma.ChannelCreateOrConnectWithoutOwnerInput[]
|
||||
upsert?: Prisma.ChannelUpsertWithWhereUniqueWithoutOwnerInput | Prisma.ChannelUpsertWithWhereUniqueWithoutOwnerInput[]
|
||||
createMany?: Prisma.ChannelCreateManyOwnerInputEnvelope
|
||||
set?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[]
|
||||
disconnect?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[]
|
||||
delete?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[]
|
||||
connect?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[]
|
||||
update?: Prisma.ChannelUpdateWithWhereUniqueWithoutOwnerInput | Prisma.ChannelUpdateWithWhereUniqueWithoutOwnerInput[]
|
||||
updateMany?: Prisma.ChannelUpdateManyWithWhereWithoutOwnerInput | Prisma.ChannelUpdateManyWithWhereWithoutOwnerInput[]
|
||||
deleteMany?: Prisma.ChannelScalarWhereInput | Prisma.ChannelScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type ChannelUncheckedUpdateManyWithoutOwnerNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.ChannelCreateWithoutOwnerInput, Prisma.ChannelUncheckedCreateWithoutOwnerInput> | Prisma.ChannelCreateWithoutOwnerInput[] | Prisma.ChannelUncheckedCreateWithoutOwnerInput[]
|
||||
connectOrCreate?: Prisma.ChannelCreateOrConnectWithoutOwnerInput | Prisma.ChannelCreateOrConnectWithoutOwnerInput[]
|
||||
upsert?: Prisma.ChannelUpsertWithWhereUniqueWithoutOwnerInput | Prisma.ChannelUpsertWithWhereUniqueWithoutOwnerInput[]
|
||||
createMany?: Prisma.ChannelCreateManyOwnerInputEnvelope
|
||||
set?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[]
|
||||
disconnect?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[]
|
||||
delete?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[]
|
||||
connect?: Prisma.ChannelWhereUniqueInput | Prisma.ChannelWhereUniqueInput[]
|
||||
update?: Prisma.ChannelUpdateWithWhereUniqueWithoutOwnerInput | Prisma.ChannelUpdateWithWhereUniqueWithoutOwnerInput[]
|
||||
updateMany?: Prisma.ChannelUpdateManyWithWhereWithoutOwnerInput | Prisma.ChannelUpdateManyWithWhereWithoutOwnerInput[]
|
||||
deleteMany?: Prisma.ChannelScalarWhereInput | Prisma.ChannelScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type BoolFieldUpdateOperationsInput = {
|
||||
set?: boolean
|
||||
}
|
||||
|
||||
export type ChannelCreateWithoutOwnerInput = {
|
||||
id?: string
|
||||
name: string
|
||||
persistent: boolean
|
||||
}
|
||||
|
||||
export type ChannelUncheckedCreateWithoutOwnerInput = {
|
||||
id?: string
|
||||
name: string
|
||||
persistent: boolean
|
||||
}
|
||||
|
||||
export type ChannelCreateOrConnectWithoutOwnerInput = {
|
||||
where: Prisma.ChannelWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.ChannelCreateWithoutOwnerInput, Prisma.ChannelUncheckedCreateWithoutOwnerInput>
|
||||
}
|
||||
|
||||
export type ChannelCreateManyOwnerInputEnvelope = {
|
||||
data: Prisma.ChannelCreateManyOwnerInput | Prisma.ChannelCreateManyOwnerInput[]
|
||||
}
|
||||
|
||||
export type ChannelUpsertWithWhereUniqueWithoutOwnerInput = {
|
||||
where: Prisma.ChannelWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.ChannelUpdateWithoutOwnerInput, Prisma.ChannelUncheckedUpdateWithoutOwnerInput>
|
||||
create: Prisma.XOR<Prisma.ChannelCreateWithoutOwnerInput, Prisma.ChannelUncheckedCreateWithoutOwnerInput>
|
||||
}
|
||||
|
||||
export type ChannelUpdateWithWhereUniqueWithoutOwnerInput = {
|
||||
where: Prisma.ChannelWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.ChannelUpdateWithoutOwnerInput, Prisma.ChannelUncheckedUpdateWithoutOwnerInput>
|
||||
}
|
||||
|
||||
export type ChannelUpdateManyWithWhereWithoutOwnerInput = {
|
||||
where: Prisma.ChannelScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.ChannelUpdateManyMutationInput, Prisma.ChannelUncheckedUpdateManyWithoutOwnerInput>
|
||||
}
|
||||
|
||||
export type ChannelScalarWhereInput = {
|
||||
AND?: Prisma.ChannelScalarWhereInput | Prisma.ChannelScalarWhereInput[]
|
||||
OR?: Prisma.ChannelScalarWhereInput[]
|
||||
NOT?: Prisma.ChannelScalarWhereInput | Prisma.ChannelScalarWhereInput[]
|
||||
id?: Prisma.StringFilter<"Channel"> | string
|
||||
ownerId?: Prisma.StringNullableFilter<"Channel"> | string | null
|
||||
name?: Prisma.StringFilter<"Channel"> | string
|
||||
persistent?: Prisma.BoolFilter<"Channel"> | boolean
|
||||
}
|
||||
|
||||
export type ChannelCreateManyOwnerInput = {
|
||||
id?: string
|
||||
name: string
|
||||
persistent: boolean
|
||||
}
|
||||
|
||||
export type ChannelUpdateWithoutOwnerInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
persistent?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
}
|
||||
|
||||
export type ChannelUncheckedUpdateWithoutOwnerInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
persistent?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
}
|
||||
|
||||
export type ChannelUncheckedUpdateManyWithoutOwnerInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
persistent?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
}
|
||||
|
||||
|
||||
|
||||
export type ChannelSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
ownerId?: boolean
|
||||
name?: boolean
|
||||
persistent?: boolean
|
||||
owner?: boolean | Prisma.Channel$ownerArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["channel"]>
|
||||
|
||||
export type ChannelSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
ownerId?: boolean
|
||||
name?: boolean
|
||||
persistent?: boolean
|
||||
owner?: boolean | Prisma.Channel$ownerArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["channel"]>
|
||||
|
||||
export type ChannelSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
ownerId?: boolean
|
||||
name?: boolean
|
||||
persistent?: boolean
|
||||
owner?: boolean | Prisma.Channel$ownerArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["channel"]>
|
||||
|
||||
export type ChannelSelectScalar = {
|
||||
id?: boolean
|
||||
ownerId?: boolean
|
||||
name?: boolean
|
||||
persistent?: boolean
|
||||
}
|
||||
|
||||
export type ChannelOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "persistent", ExtArgs["result"]["channel"]>
|
||||
export type ChannelOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "ownerId" | "name" | "persistent", ExtArgs["result"]["channel"]>
|
||||
export type ChannelInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
owner?: boolean | Prisma.Channel$ownerArgs<ExtArgs>
|
||||
}
|
||||
export type ChannelIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
owner?: boolean | Prisma.Channel$ownerArgs<ExtArgs>
|
||||
}
|
||||
export type ChannelIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
owner?: boolean | Prisma.Channel$ownerArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $ChannelPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "Channel"
|
||||
objects: {}
|
||||
objects: {
|
||||
owner: Prisma.$UserPayload<ExtArgs> | null
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
ownerId: string | null
|
||||
name: string
|
||||
persistent: boolean
|
||||
}, ExtArgs["result"]["channel"]>
|
||||
@@ -694,6 +860,7 @@ readonly fields: ChannelFieldRefs;
|
||||
*/
|
||||
export interface Prisma__ChannelClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
owner<T extends Prisma.Channel$ownerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Channel$ownerArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -724,6 +891,7 @@ export interface Prisma__ChannelClient<T, Null = never, ExtArgs extends runtime.
|
||||
*/
|
||||
export interface ChannelFieldRefs {
|
||||
readonly id: Prisma.FieldRef<"Channel", 'String'>
|
||||
readonly ownerId: Prisma.FieldRef<"Channel", 'String'>
|
||||
readonly name: Prisma.FieldRef<"Channel", 'String'>
|
||||
readonly persistent: Prisma.FieldRef<"Channel", 'Boolean'>
|
||||
}
|
||||
@@ -742,6 +910,10 @@ export type ChannelFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
* Omit specific fields from the Channel
|
||||
*/
|
||||
omit?: Prisma.ChannelOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ChannelInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which Channel to fetch.
|
||||
*/
|
||||
@@ -760,6 +932,10 @@ export type ChannelFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extension
|
||||
* Omit specific fields from the Channel
|
||||
*/
|
||||
omit?: Prisma.ChannelOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ChannelInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which Channel to fetch.
|
||||
*/
|
||||
@@ -778,6 +954,10 @@ export type ChannelFindFirstArgs<ExtArgs extends runtime.Types.Extensions.Intern
|
||||
* Omit specific fields from the Channel
|
||||
*/
|
||||
omit?: Prisma.ChannelOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ChannelInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which Channel to fetch.
|
||||
*/
|
||||
@@ -826,6 +1006,10 @@ export type ChannelFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions
|
||||
* Omit specific fields from the Channel
|
||||
*/
|
||||
omit?: Prisma.ChannelOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ChannelInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which Channel to fetch.
|
||||
*/
|
||||
@@ -874,6 +1058,10 @@ export type ChannelFindManyArgs<ExtArgs extends runtime.Types.Extensions.Interna
|
||||
* Omit specific fields from the Channel
|
||||
*/
|
||||
omit?: Prisma.ChannelOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ChannelInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter, which Channels to fetch.
|
||||
*/
|
||||
@@ -922,6 +1110,10 @@ export type ChannelCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalA
|
||||
* Omit specific fields from the Channel
|
||||
*/
|
||||
omit?: Prisma.ChannelOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ChannelInclude<ExtArgs> | null
|
||||
/**
|
||||
* The data needed to create a Channel.
|
||||
*/
|
||||
@@ -954,6 +1146,10 @@ export type ChannelCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensi
|
||||
* The data used to create many Channels.
|
||||
*/
|
||||
data: Prisma.ChannelCreateManyInput | Prisma.ChannelCreateManyInput[]
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ChannelIncludeCreateManyAndReturn<ExtArgs> | null
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -968,6 +1164,10 @@ export type ChannelUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalA
|
||||
* Omit specific fields from the Channel
|
||||
*/
|
||||
omit?: Prisma.ChannelOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ChannelInclude<ExtArgs> | null
|
||||
/**
|
||||
* The data needed to update a Channel.
|
||||
*/
|
||||
@@ -1020,6 +1220,10 @@ export type ChannelUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensi
|
||||
* Limit how many Channels to update.
|
||||
*/
|
||||
limit?: number
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ChannelIncludeUpdateManyAndReturn<ExtArgs> | null
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1034,6 +1238,10 @@ export type ChannelUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalA
|
||||
* Omit specific fields from the Channel
|
||||
*/
|
||||
omit?: Prisma.ChannelOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ChannelInclude<ExtArgs> | null
|
||||
/**
|
||||
* The filter to search for the Channel to update in case it exists.
|
||||
*/
|
||||
@@ -1060,6 +1268,10 @@ export type ChannelDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalA
|
||||
* Omit specific fields from the Channel
|
||||
*/
|
||||
omit?: Prisma.ChannelOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ChannelInclude<ExtArgs> | null
|
||||
/**
|
||||
* Filter which Channel to delete.
|
||||
*/
|
||||
@@ -1080,6 +1292,25 @@ export type ChannelDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* Channel.owner
|
||||
*/
|
||||
export type Channel$ownerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the User
|
||||
*/
|
||||
select?: Prisma.UserSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the User
|
||||
*/
|
||||
omit?: Prisma.UserOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.UserInclude<ExtArgs> | null
|
||||
where?: Prisma.UserWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* Channel without action
|
||||
*/
|
||||
@@ -1092,4 +1323,8 @@ export type ChannelDefaultArgs<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
* Omit specific fields from the Channel
|
||||
*/
|
||||
omit?: Prisma.ChannelOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ChannelInclude<ExtArgs> | null
|
||||
}
|
||||
|
||||
@@ -193,6 +193,7 @@ export type UserWhereInput = {
|
||||
Session?: Prisma.SessionListRelationFilter
|
||||
UserPreferences?: Prisma.XOR<Prisma.UserPreferencesNullableScalarRelationFilter, Prisma.UserPreferencesWhereInput> | null
|
||||
Messages?: Prisma.MessageListRelationFilter
|
||||
Channels?: Prisma.ChannelListRelationFilter
|
||||
}
|
||||
|
||||
export type UserOrderByWithRelationInput = {
|
||||
@@ -205,6 +206,7 @@ export type UserOrderByWithRelationInput = {
|
||||
Session?: Prisma.SessionOrderByRelationAggregateInput
|
||||
UserPreferences?: Prisma.UserPreferencesOrderByWithRelationInput
|
||||
Messages?: Prisma.MessageOrderByRelationAggregateInput
|
||||
Channels?: Prisma.ChannelOrderByRelationAggregateInput
|
||||
}
|
||||
|
||||
export type UserWhereUniqueInput = Prisma.AtLeast<{
|
||||
@@ -220,6 +222,7 @@ export type UserWhereUniqueInput = Prisma.AtLeast<{
|
||||
Session?: Prisma.SessionListRelationFilter
|
||||
UserPreferences?: Prisma.XOR<Prisma.UserPreferencesNullableScalarRelationFilter, Prisma.UserPreferencesWhereInput> | null
|
||||
Messages?: Prisma.MessageListRelationFilter
|
||||
Channels?: Prisma.ChannelListRelationFilter
|
||||
}, "id" | "username">
|
||||
|
||||
export type UserOrderByWithAggregationInput = {
|
||||
@@ -256,6 +259,7 @@ export type UserCreateInput = {
|
||||
Session?: Prisma.SessionCreateNestedManyWithoutUserInput
|
||||
UserPreferences?: Prisma.UserPreferencesCreateNestedOneWithoutUserInput
|
||||
Messages?: Prisma.MessageCreateNestedManyWithoutSenderInput
|
||||
Channels?: Prisma.ChannelCreateNestedManyWithoutOwnerInput
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateInput = {
|
||||
@@ -268,6 +272,7 @@ export type UserUncheckedCreateInput = {
|
||||
Session?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
||||
UserPreferences?: Prisma.UserPreferencesUncheckedCreateNestedOneWithoutUserInput
|
||||
Messages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderInput
|
||||
Channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutOwnerInput
|
||||
}
|
||||
|
||||
export type UserUpdateInput = {
|
||||
@@ -280,6 +285,7 @@ export type UserUpdateInput = {
|
||||
Session?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
||||
UserPreferences?: Prisma.UserPreferencesUpdateOneWithoutUserNestedInput
|
||||
Messages?: Prisma.MessageUpdateManyWithoutSenderNestedInput
|
||||
Channels?: Prisma.ChannelUpdateManyWithoutOwnerNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateInput = {
|
||||
@@ -292,6 +298,7 @@ export type UserUncheckedUpdateInput = {
|
||||
Session?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
||||
UserPreferences?: Prisma.UserPreferencesUncheckedUpdateOneWithoutUserNestedInput
|
||||
Messages?: Prisma.MessageUncheckedUpdateManyWithoutSenderNestedInput
|
||||
Channels?: Prisma.ChannelUncheckedUpdateManyWithoutOwnerNestedInput
|
||||
}
|
||||
|
||||
export type UserCreateManyInput = {
|
||||
@@ -410,6 +417,22 @@ export type UserUpdateOneWithoutMessagesNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutMessagesInput, Prisma.UserUpdateWithoutMessagesInput>, Prisma.UserUncheckedUpdateWithoutMessagesInput>
|
||||
}
|
||||
|
||||
export type UserCreateNestedOneWithoutChannelsInput = {
|
||||
create?: Prisma.XOR<Prisma.UserCreateWithoutChannelsInput, Prisma.UserUncheckedCreateWithoutChannelsInput>
|
||||
connectOrCreate?: Prisma.UserCreateOrConnectWithoutChannelsInput
|
||||
connect?: Prisma.UserWhereUniqueInput
|
||||
}
|
||||
|
||||
export type UserUpdateOneWithoutChannelsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.UserCreateWithoutChannelsInput, Prisma.UserUncheckedCreateWithoutChannelsInput>
|
||||
connectOrCreate?: Prisma.UserCreateOrConnectWithoutChannelsInput
|
||||
upsert?: Prisma.UserUpsertWithoutChannelsInput
|
||||
disconnect?: Prisma.UserWhereInput | boolean
|
||||
delete?: Prisma.UserWhereInput | boolean
|
||||
connect?: Prisma.UserWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutChannelsInput, Prisma.UserUpdateWithoutChannelsInput>, Prisma.UserUncheckedUpdateWithoutChannelsInput>
|
||||
}
|
||||
|
||||
export type UserCreateWithoutSessionInput = {
|
||||
id?: string
|
||||
username: string
|
||||
@@ -419,6 +442,7 @@ export type UserCreateWithoutSessionInput = {
|
||||
updatedAt?: Date | string
|
||||
UserPreferences?: Prisma.UserPreferencesCreateNestedOneWithoutUserInput
|
||||
Messages?: Prisma.MessageCreateNestedManyWithoutSenderInput
|
||||
Channels?: Prisma.ChannelCreateNestedManyWithoutOwnerInput
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateWithoutSessionInput = {
|
||||
@@ -430,6 +454,7 @@ export type UserUncheckedCreateWithoutSessionInput = {
|
||||
updatedAt?: Date | string
|
||||
UserPreferences?: Prisma.UserPreferencesUncheckedCreateNestedOneWithoutUserInput
|
||||
Messages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderInput
|
||||
Channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutOwnerInput
|
||||
}
|
||||
|
||||
export type UserCreateOrConnectWithoutSessionInput = {
|
||||
@@ -457,6 +482,7 @@ export type UserUpdateWithoutSessionInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
UserPreferences?: Prisma.UserPreferencesUpdateOneWithoutUserNestedInput
|
||||
Messages?: Prisma.MessageUpdateManyWithoutSenderNestedInput
|
||||
Channels?: Prisma.ChannelUpdateManyWithoutOwnerNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateWithoutSessionInput = {
|
||||
@@ -468,6 +494,7 @@ export type UserUncheckedUpdateWithoutSessionInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
UserPreferences?: Prisma.UserPreferencesUncheckedUpdateOneWithoutUserNestedInput
|
||||
Messages?: Prisma.MessageUncheckedUpdateManyWithoutSenderNestedInput
|
||||
Channels?: Prisma.ChannelUncheckedUpdateManyWithoutOwnerNestedInput
|
||||
}
|
||||
|
||||
export type UserCreateWithoutUserPreferencesInput = {
|
||||
@@ -479,6 +506,7 @@ export type UserCreateWithoutUserPreferencesInput = {
|
||||
updatedAt?: Date | string
|
||||
Session?: Prisma.SessionCreateNestedManyWithoutUserInput
|
||||
Messages?: Prisma.MessageCreateNestedManyWithoutSenderInput
|
||||
Channels?: Prisma.ChannelCreateNestedManyWithoutOwnerInput
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateWithoutUserPreferencesInput = {
|
||||
@@ -490,6 +518,7 @@ export type UserUncheckedCreateWithoutUserPreferencesInput = {
|
||||
updatedAt?: Date | string
|
||||
Session?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
||||
Messages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderInput
|
||||
Channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutOwnerInput
|
||||
}
|
||||
|
||||
export type UserCreateOrConnectWithoutUserPreferencesInput = {
|
||||
@@ -517,6 +546,7 @@ export type UserUpdateWithoutUserPreferencesInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
Session?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
||||
Messages?: Prisma.MessageUpdateManyWithoutSenderNestedInput
|
||||
Channels?: Prisma.ChannelUpdateManyWithoutOwnerNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateWithoutUserPreferencesInput = {
|
||||
@@ -528,6 +558,7 @@ export type UserUncheckedUpdateWithoutUserPreferencesInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
Session?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
||||
Messages?: Prisma.MessageUncheckedUpdateManyWithoutSenderNestedInput
|
||||
Channels?: Prisma.ChannelUncheckedUpdateManyWithoutOwnerNestedInput
|
||||
}
|
||||
|
||||
export type UserCreateWithoutMessagesInput = {
|
||||
@@ -539,6 +570,7 @@ export type UserCreateWithoutMessagesInput = {
|
||||
updatedAt?: Date | string
|
||||
Session?: Prisma.SessionCreateNestedManyWithoutUserInput
|
||||
UserPreferences?: Prisma.UserPreferencesCreateNestedOneWithoutUserInput
|
||||
Channels?: Prisma.ChannelCreateNestedManyWithoutOwnerInput
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateWithoutMessagesInput = {
|
||||
@@ -550,6 +582,7 @@ export type UserUncheckedCreateWithoutMessagesInput = {
|
||||
updatedAt?: Date | string
|
||||
Session?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
||||
UserPreferences?: Prisma.UserPreferencesUncheckedCreateNestedOneWithoutUserInput
|
||||
Channels?: Prisma.ChannelUncheckedCreateNestedManyWithoutOwnerInput
|
||||
}
|
||||
|
||||
export type UserCreateOrConnectWithoutMessagesInput = {
|
||||
@@ -577,6 +610,7 @@ export type UserUpdateWithoutMessagesInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
Session?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
||||
UserPreferences?: Prisma.UserPreferencesUpdateOneWithoutUserNestedInput
|
||||
Channels?: Prisma.ChannelUpdateManyWithoutOwnerNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateWithoutMessagesInput = {
|
||||
@@ -588,6 +622,71 @@ export type UserUncheckedUpdateWithoutMessagesInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
Session?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
||||
UserPreferences?: Prisma.UserPreferencesUncheckedUpdateOneWithoutUserNestedInput
|
||||
Channels?: Prisma.ChannelUncheckedUpdateManyWithoutOwnerNestedInput
|
||||
}
|
||||
|
||||
export type UserCreateWithoutChannelsInput = {
|
||||
id?: string
|
||||
username: string
|
||||
password: string
|
||||
displayName: string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
Session?: Prisma.SessionCreateNestedManyWithoutUserInput
|
||||
UserPreferences?: Prisma.UserPreferencesCreateNestedOneWithoutUserInput
|
||||
Messages?: Prisma.MessageCreateNestedManyWithoutSenderInput
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateWithoutChannelsInput = {
|
||||
id?: string
|
||||
username: string
|
||||
password: string
|
||||
displayName: string
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
Session?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
|
||||
UserPreferences?: Prisma.UserPreferencesUncheckedCreateNestedOneWithoutUserInput
|
||||
Messages?: Prisma.MessageUncheckedCreateNestedManyWithoutSenderInput
|
||||
}
|
||||
|
||||
export type UserCreateOrConnectWithoutChannelsInput = {
|
||||
where: Prisma.UserWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.UserCreateWithoutChannelsInput, Prisma.UserUncheckedCreateWithoutChannelsInput>
|
||||
}
|
||||
|
||||
export type UserUpsertWithoutChannelsInput = {
|
||||
update: Prisma.XOR<Prisma.UserUpdateWithoutChannelsInput, Prisma.UserUncheckedUpdateWithoutChannelsInput>
|
||||
create: Prisma.XOR<Prisma.UserCreateWithoutChannelsInput, Prisma.UserUncheckedCreateWithoutChannelsInput>
|
||||
where?: Prisma.UserWhereInput
|
||||
}
|
||||
|
||||
export type UserUpdateToOneWithWhereWithoutChannelsInput = {
|
||||
where?: Prisma.UserWhereInput
|
||||
data: Prisma.XOR<Prisma.UserUpdateWithoutChannelsInput, Prisma.UserUncheckedUpdateWithoutChannelsInput>
|
||||
}
|
||||
|
||||
export type UserUpdateWithoutChannelsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
username?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
password?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
displayName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
Session?: Prisma.SessionUpdateManyWithoutUserNestedInput
|
||||
UserPreferences?: Prisma.UserPreferencesUpdateOneWithoutUserNestedInput
|
||||
Messages?: Prisma.MessageUpdateManyWithoutSenderNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateWithoutChannelsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
username?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
password?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
displayName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
Session?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
|
||||
UserPreferences?: Prisma.UserPreferencesUncheckedUpdateOneWithoutUserNestedInput
|
||||
Messages?: Prisma.MessageUncheckedUpdateManyWithoutSenderNestedInput
|
||||
}
|
||||
|
||||
|
||||
@@ -598,11 +697,13 @@ export type UserUncheckedUpdateWithoutMessagesInput = {
|
||||
export type UserCountOutputType = {
|
||||
Session: number
|
||||
Messages: number
|
||||
Channels: number
|
||||
}
|
||||
|
||||
export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
Session?: boolean | UserCountOutputTypeCountSessionArgs
|
||||
Messages?: boolean | UserCountOutputTypeCountMessagesArgs
|
||||
Channels?: boolean | UserCountOutputTypeCountChannelsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -629,6 +730,13 @@ export type UserCountOutputTypeCountMessagesArgs<ExtArgs extends runtime.Types.E
|
||||
where?: Prisma.MessageWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* UserCountOutputType without action
|
||||
*/
|
||||
export type UserCountOutputTypeCountChannelsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.ChannelWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -640,6 +748,7 @@ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
|
||||
Session?: boolean | Prisma.User$SessionArgs<ExtArgs>
|
||||
UserPreferences?: boolean | Prisma.User$UserPreferencesArgs<ExtArgs>
|
||||
Messages?: boolean | Prisma.User$MessagesArgs<ExtArgs>
|
||||
Channels?: boolean | Prisma.User$ChannelsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["user"]>
|
||||
|
||||
@@ -675,6 +784,7 @@ export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
Session?: boolean | Prisma.User$SessionArgs<ExtArgs>
|
||||
UserPreferences?: boolean | Prisma.User$UserPreferencesArgs<ExtArgs>
|
||||
Messages?: boolean | Prisma.User$MessagesArgs<ExtArgs>
|
||||
Channels?: boolean | Prisma.User$ChannelsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
export type UserIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
||||
@@ -686,6 +796,7 @@ export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
Session: Prisma.$SessionPayload<ExtArgs>[]
|
||||
UserPreferences: Prisma.$UserPreferencesPayload<ExtArgs> | null
|
||||
Messages: Prisma.$MessagePayload<ExtArgs>[]
|
||||
Channels: Prisma.$ChannelPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
@@ -1091,6 +1202,7 @@ export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Typ
|
||||
Session<T extends Prisma.User$SessionArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$SessionArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
UserPreferences<T extends Prisma.User$UserPreferencesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$UserPreferencesArgs<ExtArgs>>): Prisma.Prisma__UserPreferencesClient<runtime.Types.Result.GetResult<Prisma.$UserPreferencesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
Messages<T extends Prisma.User$MessagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$MessagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
Channels<T extends Prisma.User$ChannelsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$ChannelsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ChannelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -1583,6 +1695,30 @@ export type User$MessagesArgs<ExtArgs extends runtime.Types.Extensions.InternalA
|
||||
distinct?: Prisma.MessageScalarFieldEnum | Prisma.MessageScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* User.Channels
|
||||
*/
|
||||
export type User$ChannelsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Channel
|
||||
*/
|
||||
select?: Prisma.ChannelSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Channel
|
||||
*/
|
||||
omit?: Prisma.ChannelOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.ChannelInclude<ExtArgs> | null
|
||||
where?: Prisma.ChannelWhereInput
|
||||
orderBy?: Prisma.ChannelOrderByWithRelationInput | Prisma.ChannelOrderByWithRelationInput[]
|
||||
cursor?: Prisma.ChannelWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.ChannelScalarFieldEnum | Prisma.ChannelScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* User without action
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- Added the required column `ownerId` to the `Channel` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- RedefineTables
|
||||
PRAGMA defer_foreign_keys=ON;
|
||||
PRAGMA foreign_keys=OFF;
|
||||
CREATE TABLE "new_Channel" (
|
||||
"id" TEXT NOT NULL PRIMARY KEY,
|
||||
"ownerId" TEXT NOT NULL,
|
||||
"name" TEXT NOT NULL,
|
||||
"persistent" BOOLEAN NOT NULL
|
||||
);
|
||||
INSERT INTO "new_Channel" ("id", "name", "persistent") SELECT "id", "name", "persistent" FROM "Channel";
|
||||
DROP TABLE "Channel";
|
||||
ALTER TABLE "new_Channel" RENAME TO "Channel";
|
||||
PRAGMA foreign_keys=ON;
|
||||
PRAGMA defer_foreign_keys=OFF;
|
||||
@@ -0,0 +1,15 @@
|
||||
-- RedefineTables
|
||||
PRAGMA defer_foreign_keys=ON;
|
||||
PRAGMA foreign_keys=OFF;
|
||||
CREATE TABLE "new_Channel" (
|
||||
"id" TEXT NOT NULL PRIMARY KEY,
|
||||
"ownerId" TEXT NOT NULL,
|
||||
"name" TEXT NOT NULL,
|
||||
"persistent" BOOLEAN NOT NULL,
|
||||
CONSTRAINT "Channel_ownerId_fkey" FOREIGN KEY ("ownerId") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
||||
);
|
||||
INSERT INTO "new_Channel" ("id", "name", "ownerId", "persistent") SELECT "id", "name", "ownerId", "persistent" FROM "Channel";
|
||||
DROP TABLE "Channel";
|
||||
ALTER TABLE "new_Channel" RENAME TO "Channel";
|
||||
PRAGMA foreign_keys=ON;
|
||||
PRAGMA defer_foreign_keys=OFF;
|
||||
@@ -0,0 +1,15 @@
|
||||
-- RedefineTables
|
||||
PRAGMA defer_foreign_keys=ON;
|
||||
PRAGMA foreign_keys=OFF;
|
||||
CREATE TABLE "new_Channel" (
|
||||
"id" TEXT NOT NULL PRIMARY KEY,
|
||||
"ownerId" TEXT,
|
||||
"name" TEXT NOT NULL,
|
||||
"persistent" BOOLEAN NOT NULL,
|
||||
CONSTRAINT "Channel_ownerId_fkey" FOREIGN KEY ("ownerId") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE
|
||||
);
|
||||
INSERT INTO "new_Channel" ("id", "name", "ownerId", "persistent") SELECT "id", "name", "ownerId", "persistent" FROM "Channel";
|
||||
DROP TABLE "Channel";
|
||||
ALTER TABLE "new_Channel" RENAME TO "Channel";
|
||||
PRAGMA foreign_keys=ON;
|
||||
PRAGMA defer_foreign_keys=OFF;
|
||||
@@ -18,6 +18,7 @@ model User {
|
||||
Session Session[]
|
||||
UserPreferences UserPreferences?
|
||||
Messages Message[]
|
||||
Channels Channel[]
|
||||
}
|
||||
|
||||
model Session {
|
||||
@@ -70,7 +71,10 @@ model MessageAttachment {
|
||||
}
|
||||
|
||||
model Channel {
|
||||
id String @id @default(uuid())
|
||||
id String @id @default(uuid())
|
||||
ownerId String?
|
||||
name String
|
||||
persistent Boolean
|
||||
|
||||
owner User? @relation(references: [id], fields: [ownerId], onDelete: Cascade)
|
||||
}
|
||||
Reference in New Issue
Block a user