работаем бля работаем

This commit is contained in:
2026-05-09 03:21:44 +06:00
parent f845777bac
commit 0b148c6a7d
169 changed files with 15816 additions and 1005 deletions

View File

@@ -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
}