|
|
|
@ -22,7 +22,7 @@ export const MoveScalarFieldEnumSchema = z.enum(['id','createdAt','index','actio
|
|
|
|
|
|
|
|
|
|
export const SessionScalarFieldEnumSchema = z.enum(['id','sessionToken','userId','expires']);
|
|
|
|
|
|
|
|
|
|
export const ShipScalarFieldEnumSchema = z.enum(['id','size','variant','x','y','orientation','gameId']);
|
|
|
|
|
export const ShipScalarFieldEnumSchema = z.enum(['id','size','variant','x','y','orientation','user_GameId']);
|
|
|
|
|
|
|
|
|
|
export const SortOrderSchema = z.enum(['asc','desc']);
|
|
|
|
|
|
|
|
|
@ -126,7 +126,7 @@ export const ShipSchema = z.object({
|
|
|
|
|
variant: z.number().int(),
|
|
|
|
|
x: z.number().int(),
|
|
|
|
|
y: z.number().int(),
|
|
|
|
|
gameId: z.string(),
|
|
|
|
|
user_GameId: z.string(),
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export type Ship = z.infer<typeof ShipSchema>
|
|
|
|
@ -313,7 +313,7 @@ export const VerificationTokenSelectSchema: z.ZodType<Prisma.VerificationTokenSe
|
|
|
|
|
//------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
export const ShipIncludeSchema: z.ZodType<Prisma.ShipInclude> = z.object({
|
|
|
|
|
game: z.union([z.boolean(),z.lazy(() => GameArgsSchema)]).optional(),
|
|
|
|
|
User_Game: z.union([z.boolean(),z.lazy(() => User_GameArgsSchema)]).optional(),
|
|
|
|
|
}).strict()
|
|
|
|
|
|
|
|
|
|
export const ShipArgsSchema: z.ZodType<Prisma.ShipArgs> = z.object({
|
|
|
|
@ -328,15 +328,14 @@ export const ShipSelectSchema: z.ZodType<Prisma.ShipSelect> = z.object({
|
|
|
|
|
x: z.boolean().optional(),
|
|
|
|
|
y: z.boolean().optional(),
|
|
|
|
|
orientation: z.boolean().optional(),
|
|
|
|
|
gameId: z.boolean().optional(),
|
|
|
|
|
game: z.union([z.boolean(),z.lazy(() => GameArgsSchema)]).optional(),
|
|
|
|
|
user_GameId: z.boolean().optional(),
|
|
|
|
|
User_Game: z.union([z.boolean(),z.lazy(() => User_GameArgsSchema)]).optional(),
|
|
|
|
|
}).strict()
|
|
|
|
|
|
|
|
|
|
// GAME
|
|
|
|
|
//------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
export const GameIncludeSchema: z.ZodType<Prisma.GameInclude> = z.object({
|
|
|
|
|
ships: z.union([z.boolean(),z.lazy(() => ShipFindManyArgsSchema)]).optional(),
|
|
|
|
|
gamePin: z.union([z.boolean(),z.lazy(() => GamepinArgsSchema)]).optional(),
|
|
|
|
|
users: z.union([z.boolean(),z.lazy(() => User_GameFindManyArgsSchema)]).optional(),
|
|
|
|
|
_count: z.union([z.boolean(),z.lazy(() => GameCountOutputTypeArgsSchema)]).optional(),
|
|
|
|
@ -352,7 +351,6 @@ export const GameCountOutputTypeArgsSchema: z.ZodType<Prisma.GameCountOutputType
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GameCountOutputTypeSelectSchema: z.ZodType<Prisma.GameCountOutputTypeSelect> = z.object({
|
|
|
|
|
ships: z.boolean().optional(),
|
|
|
|
|
users: z.boolean().optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -365,7 +363,6 @@ export const GameSelectSchema: z.ZodType<Prisma.GameSelect> = z.object({
|
|
|
|
|
allowSpecials: z.boolean().optional(),
|
|
|
|
|
allowChat: z.boolean().optional(),
|
|
|
|
|
allowMarkDraw: z.boolean().optional(),
|
|
|
|
|
ships: z.union([z.boolean(),z.lazy(() => ShipFindManyArgsSchema)]).optional(),
|
|
|
|
|
gamePin: z.union([z.boolean(),z.lazy(() => GamepinArgsSchema)]).optional(),
|
|
|
|
|
users: z.union([z.boolean(),z.lazy(() => User_GameFindManyArgsSchema)]).optional(),
|
|
|
|
|
_count: z.union([z.boolean(),z.lazy(() => GameCountOutputTypeArgsSchema)]).optional(),
|
|
|
|
@ -396,6 +393,7 @@ export const GamepinSelectSchema: z.ZodType<Prisma.GamepinSelect> = z.object({
|
|
|
|
|
|
|
|
|
|
export const User_GameIncludeSchema: z.ZodType<Prisma.User_GameInclude> = z.object({
|
|
|
|
|
moves: z.union([z.boolean(),z.lazy(() => MoveFindManyArgsSchema)]).optional(),
|
|
|
|
|
ships: z.union([z.boolean(),z.lazy(() => ShipFindManyArgsSchema)]).optional(),
|
|
|
|
|
chats: z.union([z.boolean(),z.lazy(() => ChatFindManyArgsSchema)]).optional(),
|
|
|
|
|
game: z.union([z.boolean(),z.lazy(() => GameArgsSchema)]).optional(),
|
|
|
|
|
user: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(),
|
|
|
|
@ -413,6 +411,7 @@ export const User_GameCountOutputTypeArgsSchema: z.ZodType<Prisma.User_GameCount
|
|
|
|
|
|
|
|
|
|
export const User_GameCountOutputTypeSelectSchema: z.ZodType<Prisma.User_GameCountOutputTypeSelect> = z.object({
|
|
|
|
|
moves: z.boolean().optional(),
|
|
|
|
|
ships: z.boolean().optional(),
|
|
|
|
|
chats: z.boolean().optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -423,6 +422,7 @@ export const User_GameSelectSchema: z.ZodType<Prisma.User_GameSelect> = z.object
|
|
|
|
|
userId: z.boolean().optional(),
|
|
|
|
|
index: z.boolean().optional(),
|
|
|
|
|
moves: z.union([z.boolean(),z.lazy(() => MoveFindManyArgsSchema)]).optional(),
|
|
|
|
|
ships: z.union([z.boolean(),z.lazy(() => ShipFindManyArgsSchema)]).optional(),
|
|
|
|
|
chats: z.union([z.boolean(),z.lazy(() => ChatFindManyArgsSchema)]).optional(),
|
|
|
|
|
game: z.union([z.boolean(),z.lazy(() => GameArgsSchema)]).optional(),
|
|
|
|
|
user: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).optional(),
|
|
|
|
@ -721,8 +721,8 @@ export const ShipWhereInputSchema: z.ZodType<Prisma.ShipWhereInput> = z.object({
|
|
|
|
|
x: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(),
|
|
|
|
|
y: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(),
|
|
|
|
|
orientation: z.union([ z.lazy(() => EnumOrientationFilterSchema),z.lazy(() => OrientationSchema) ]).optional(),
|
|
|
|
|
gameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
|
|
|
|
|
game: z.union([ z.lazy(() => GameRelationFilterSchema),z.lazy(() => GameWhereInputSchema) ]).optional(),
|
|
|
|
|
user_GameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
|
|
|
|
|
User_Game: z.union([ z.lazy(() => User_GameRelationFilterSchema),z.lazy(() => User_GameWhereInputSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipOrderByWithRelationInputSchema: z.ZodType<Prisma.ShipOrderByWithRelationInput> = z.object({
|
|
|
|
@ -732,8 +732,8 @@ export const ShipOrderByWithRelationInputSchema: z.ZodType<Prisma.ShipOrderByWit
|
|
|
|
|
x: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
y: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
orientation: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
gameId: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
game: z.lazy(() => GameOrderByWithRelationInputSchema).optional()
|
|
|
|
|
user_GameId: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
User_Game: z.lazy(() => User_GameOrderByWithRelationInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipWhereUniqueInputSchema: z.ZodType<Prisma.ShipWhereUniqueInput> = z.object({
|
|
|
|
@ -747,7 +747,7 @@ export const ShipOrderByWithAggregationInputSchema: z.ZodType<Prisma.ShipOrderBy
|
|
|
|
|
x: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
y: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
orientation: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
gameId: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
user_GameId: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
_count: z.lazy(() => ShipCountOrderByAggregateInputSchema).optional(),
|
|
|
|
|
_avg: z.lazy(() => ShipAvgOrderByAggregateInputSchema).optional(),
|
|
|
|
|
_max: z.lazy(() => ShipMaxOrderByAggregateInputSchema).optional(),
|
|
|
|
@ -765,7 +765,7 @@ export const ShipScalarWhereWithAggregatesInputSchema: z.ZodType<Prisma.ShipScal
|
|
|
|
|
x: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(),
|
|
|
|
|
y: z.union([ z.lazy(() => IntWithAggregatesFilterSchema),z.number() ]).optional(),
|
|
|
|
|
orientation: z.union([ z.lazy(() => EnumOrientationWithAggregatesFilterSchema),z.lazy(() => OrientationSchema) ]).optional(),
|
|
|
|
|
gameId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
|
|
|
|
|
user_GameId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GameWhereInputSchema: z.ZodType<Prisma.GameWhereInput> = z.object({
|
|
|
|
@ -780,7 +780,6 @@ export const GameWhereInputSchema: z.ZodType<Prisma.GameWhereInput> = z.object({
|
|
|
|
|
allowSpecials: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(),
|
|
|
|
|
allowChat: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(),
|
|
|
|
|
allowMarkDraw: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipListRelationFilterSchema).optional(),
|
|
|
|
|
gamePin: z.union([ z.lazy(() => GamepinRelationFilterSchema),z.lazy(() => GamepinWhereInputSchema) ]).optional().nullable(),
|
|
|
|
|
users: z.lazy(() => User_GameListRelationFilterSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
@ -794,7 +793,6 @@ export const GameOrderByWithRelationInputSchema: z.ZodType<Prisma.GameOrderByWit
|
|
|
|
|
allowSpecials: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
allowChat: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
allowMarkDraw: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipOrderByRelationAggregateInputSchema).optional(),
|
|
|
|
|
gamePin: z.lazy(() => GamepinOrderByWithRelationInputSchema).optional(),
|
|
|
|
|
users: z.lazy(() => User_GameOrderByRelationAggregateInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
@ -886,6 +884,7 @@ export const User_GameWhereInputSchema: z.ZodType<Prisma.User_GameWhereInput> =
|
|
|
|
|
userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
|
|
|
|
|
index: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(),
|
|
|
|
|
moves: z.lazy(() => MoveListRelationFilterSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipListRelationFilterSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatListRelationFilterSchema).optional(),
|
|
|
|
|
game: z.union([ z.lazy(() => GameRelationFilterSchema),z.lazy(() => GameWhereInputSchema) ]).optional(),
|
|
|
|
|
user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(),
|
|
|
|
@ -898,6 +897,7 @@ export const User_GameOrderByWithRelationInputSchema: z.ZodType<Prisma.User_Game
|
|
|
|
|
userId: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
index: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
moves: z.lazy(() => MoveOrderByRelationAggregateInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipOrderByRelationAggregateInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatOrderByRelationAggregateInputSchema).optional(),
|
|
|
|
|
game: z.lazy(() => GameOrderByWithRelationInputSchema).optional(),
|
|
|
|
|
user: z.lazy(() => UserOrderByWithRelationInputSchema).optional()
|
|
|
|
@ -1347,7 +1347,7 @@ export const ShipCreateInputSchema: z.ZodType<Prisma.ShipCreateInput> = z.object
|
|
|
|
|
x: z.number().int(),
|
|
|
|
|
y: z.number().int(),
|
|
|
|
|
orientation: z.lazy(() => OrientationSchema),
|
|
|
|
|
game: z.lazy(() => GameCreateNestedOneWithoutShipsInputSchema)
|
|
|
|
|
User_Game: z.lazy(() => User_GameCreateNestedOneWithoutShipsInputSchema)
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUncheckedCreateInputSchema: z.ZodType<Prisma.ShipUncheckedCreateInput> = z.object({
|
|
|
|
@ -1357,7 +1357,7 @@ export const ShipUncheckedCreateInputSchema: z.ZodType<Prisma.ShipUncheckedCreat
|
|
|
|
|
x: z.number().int(),
|
|
|
|
|
y: z.number().int(),
|
|
|
|
|
orientation: z.lazy(() => OrientationSchema),
|
|
|
|
|
gameId: z.string()
|
|
|
|
|
user_GameId: z.string()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUpdateInputSchema: z.ZodType<Prisma.ShipUpdateInput> = z.object({
|
|
|
|
@ -1367,7 +1367,7 @@ export const ShipUpdateInputSchema: z.ZodType<Prisma.ShipUpdateInput> = z.object
|
|
|
|
|
x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
game: z.lazy(() => GameUpdateOneRequiredWithoutShipsNestedInputSchema).optional()
|
|
|
|
|
User_Game: z.lazy(() => User_GameUpdateOneRequiredWithoutShipsNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUncheckedUpdateInputSchema: z.ZodType<Prisma.ShipUncheckedUpdateInput> = z.object({
|
|
|
|
@ -1377,7 +1377,7 @@ export const ShipUncheckedUpdateInputSchema: z.ZodType<Prisma.ShipUncheckedUpdat
|
|
|
|
|
x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
user_GameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipCreateManyInputSchema: z.ZodType<Prisma.ShipCreateManyInput> = z.object({
|
|
|
|
@ -1387,7 +1387,7 @@ export const ShipCreateManyInputSchema: z.ZodType<Prisma.ShipCreateManyInput> =
|
|
|
|
|
x: z.number().int(),
|
|
|
|
|
y: z.number().int(),
|
|
|
|
|
orientation: z.lazy(() => OrientationSchema),
|
|
|
|
|
gameId: z.string()
|
|
|
|
|
user_GameId: z.string()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUpdateManyMutationInputSchema: z.ZodType<Prisma.ShipUpdateManyMutationInput> = z.object({
|
|
|
|
@ -1406,7 +1406,7 @@ export const ShipUncheckedUpdateManyInputSchema: z.ZodType<Prisma.ShipUncheckedU
|
|
|
|
|
x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
user_GameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GameCreateInputSchema: z.ZodType<Prisma.GameCreateInput> = z.object({
|
|
|
|
@ -1418,7 +1418,6 @@ export const GameCreateInputSchema: z.ZodType<Prisma.GameCreateInput> = z.object
|
|
|
|
|
allowSpecials: z.boolean().optional(),
|
|
|
|
|
allowChat: z.boolean().optional(),
|
|
|
|
|
allowMarkDraw: z.boolean().optional(),
|
|
|
|
|
ships: z.lazy(() => ShipCreateNestedManyWithoutGameInputSchema).optional(),
|
|
|
|
|
gamePin: z.lazy(() => GamepinCreateNestedOneWithoutGameInputSchema).optional(),
|
|
|
|
|
users: z.lazy(() => User_GameCreateNestedManyWithoutGameInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
@ -1432,7 +1431,6 @@ export const GameUncheckedCreateInputSchema: z.ZodType<Prisma.GameUncheckedCreat
|
|
|
|
|
allowSpecials: z.boolean().optional(),
|
|
|
|
|
allowChat: z.boolean().optional(),
|
|
|
|
|
allowMarkDraw: z.boolean().optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedCreateNestedManyWithoutGameInputSchema).optional(),
|
|
|
|
|
gamePin: z.lazy(() => GamepinUncheckedCreateNestedOneWithoutGameInputSchema).optional(),
|
|
|
|
|
users: z.lazy(() => User_GameUncheckedCreateNestedManyWithoutGameInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
@ -1446,7 +1444,6 @@ export const GameUpdateInputSchema: z.ZodType<Prisma.GameUpdateInput> = z.object
|
|
|
|
|
allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUpdateManyWithoutGameNestedInputSchema).optional(),
|
|
|
|
|
gamePin: z.lazy(() => GamepinUpdateOneWithoutGameNestedInputSchema).optional(),
|
|
|
|
|
users: z.lazy(() => User_GameUpdateManyWithoutGameNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
@ -1460,7 +1457,6 @@ export const GameUncheckedUpdateInputSchema: z.ZodType<Prisma.GameUncheckedUpdat
|
|
|
|
|
allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedUpdateManyWithoutGameNestedInputSchema).optional(),
|
|
|
|
|
gamePin: z.lazy(() => GamepinUncheckedUpdateOneWithoutGameNestedInputSchema).optional(),
|
|
|
|
|
users: z.lazy(() => User_GameUncheckedUpdateManyWithoutGameNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
@ -1551,6 +1547,7 @@ export const User_GameCreateInputSchema: z.ZodType<Prisma.User_GameCreateInput>
|
|
|
|
|
createdAt: z.coerce.date().optional(),
|
|
|
|
|
index: z.number().int(),
|
|
|
|
|
moves: z.lazy(() => MoveCreateNestedManyWithoutUser_gameInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipCreateNestedManyWithoutUser_GameInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatCreateNestedManyWithoutUser_gameInputSchema).optional(),
|
|
|
|
|
game: z.lazy(() => GameCreateNestedOneWithoutUsersInputSchema),
|
|
|
|
|
user: z.lazy(() => UserCreateNestedOneWithoutGamesInputSchema)
|
|
|
|
@ -1563,6 +1560,7 @@ export const User_GameUncheckedCreateInputSchema: z.ZodType<Prisma.User_GameUnch
|
|
|
|
|
userId: z.string(),
|
|
|
|
|
index: z.number().int(),
|
|
|
|
|
moves: z.lazy(() => MoveUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -1571,6 +1569,7 @@ export const User_GameUpdateInputSchema: z.ZodType<Prisma.User_GameUpdateInput>
|
|
|
|
|
createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
moves: z.lazy(() => MoveUpdateManyWithoutUser_gameNestedInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUpdateManyWithoutUser_GameNestedInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatUpdateManyWithoutUser_gameNestedInputSchema).optional(),
|
|
|
|
|
game: z.lazy(() => GameUpdateOneRequiredWithoutUsersNestedInputSchema).optional(),
|
|
|
|
|
user: z.lazy(() => UserUpdateOneRequiredWithoutGamesNestedInputSchema).optional()
|
|
|
|
@ -1583,6 +1582,7 @@ export const User_GameUncheckedUpdateInputSchema: z.ZodType<Prisma.User_GameUnch
|
|
|
|
|
userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
moves: z.lazy(() => MoveUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -2074,9 +2074,9 @@ export const EnumOrientationFilterSchema: z.ZodType<Prisma.EnumOrientationFilter
|
|
|
|
|
not: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => NestedEnumOrientationFilterSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GameRelationFilterSchema: z.ZodType<Prisma.GameRelationFilter> = z.object({
|
|
|
|
|
is: z.lazy(() => GameWhereInputSchema).optional(),
|
|
|
|
|
isNot: z.lazy(() => GameWhereInputSchema).optional()
|
|
|
|
|
export const User_GameRelationFilterSchema: z.ZodType<Prisma.User_GameRelationFilter> = z.object({
|
|
|
|
|
is: z.lazy(() => User_GameWhereInputSchema).optional(),
|
|
|
|
|
isNot: z.lazy(() => User_GameWhereInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipCountOrderByAggregateInputSchema: z.ZodType<Prisma.ShipCountOrderByAggregateInput> = z.object({
|
|
|
|
@ -2086,7 +2086,7 @@ export const ShipCountOrderByAggregateInputSchema: z.ZodType<Prisma.ShipCountOrd
|
|
|
|
|
x: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
y: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
orientation: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
gameId: z.lazy(() => SortOrderSchema).optional()
|
|
|
|
|
user_GameId: z.lazy(() => SortOrderSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipAvgOrderByAggregateInputSchema: z.ZodType<Prisma.ShipAvgOrderByAggregateInput> = z.object({
|
|
|
|
@ -2103,7 +2103,7 @@ export const ShipMaxOrderByAggregateInputSchema: z.ZodType<Prisma.ShipMaxOrderBy
|
|
|
|
|
x: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
y: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
orientation: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
gameId: z.lazy(() => SortOrderSchema).optional()
|
|
|
|
|
user_GameId: z.lazy(() => SortOrderSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipMinOrderByAggregateInputSchema: z.ZodType<Prisma.ShipMinOrderByAggregateInput> = z.object({
|
|
|
|
@ -2113,7 +2113,7 @@ export const ShipMinOrderByAggregateInputSchema: z.ZodType<Prisma.ShipMinOrderBy
|
|
|
|
|
x: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
y: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
orientation: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
gameId: z.lazy(() => SortOrderSchema).optional()
|
|
|
|
|
user_GameId: z.lazy(() => SortOrderSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipSumOrderByAggregateInputSchema: z.ZodType<Prisma.ShipSumOrderByAggregateInput> = z.object({
|
|
|
|
@ -2161,21 +2161,11 @@ export const BoolFilterSchema: z.ZodType<Prisma.BoolFilter> = z.object({
|
|
|
|
|
not: z.union([ z.boolean(),z.lazy(() => NestedBoolFilterSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipListRelationFilterSchema: z.ZodType<Prisma.ShipListRelationFilter> = z.object({
|
|
|
|
|
every: z.lazy(() => ShipWhereInputSchema).optional(),
|
|
|
|
|
some: z.lazy(() => ShipWhereInputSchema).optional(),
|
|
|
|
|
none: z.lazy(() => ShipWhereInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GamepinRelationFilterSchema: z.ZodType<Prisma.GamepinRelationFilter> = z.object({
|
|
|
|
|
is: z.lazy(() => GamepinWhereInputSchema).optional().nullable(),
|
|
|
|
|
isNot: z.lazy(() => GamepinWhereInputSchema).optional().nullable()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipOrderByRelationAggregateInputSchema: z.ZodType<Prisma.ShipOrderByRelationAggregateInput> = z.object({
|
|
|
|
|
_count: z.lazy(() => SortOrderSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GameCountOrderByAggregateInputSchema: z.ZodType<Prisma.GameCountOrderByAggregateInput> = z.object({
|
|
|
|
|
id: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
createdAt: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
@ -2227,6 +2217,11 @@ export const BoolWithAggregatesFilterSchema: z.ZodType<Prisma.BoolWithAggregates
|
|
|
|
|
_max: z.lazy(() => NestedBoolFilterSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GameRelationFilterSchema: z.ZodType<Prisma.GameRelationFilter> = z.object({
|
|
|
|
|
is: z.lazy(() => GameWhereInputSchema).optional(),
|
|
|
|
|
isNot: z.lazy(() => GameWhereInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GamepinCountOrderByAggregateInputSchema: z.ZodType<Prisma.GamepinCountOrderByAggregateInput> = z.object({
|
|
|
|
|
id: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
|
createdAt: z.lazy(() => SortOrderSchema).optional(),
|
|
|
|
@ -2254,6 +2249,12 @@ export const MoveListRelationFilterSchema: z.ZodType<Prisma.MoveListRelationFilt
|
|
|
|
|
none: z.lazy(() => MoveWhereInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipListRelationFilterSchema: z.ZodType<Prisma.ShipListRelationFilter> = z.object({
|
|
|
|
|
every: z.lazy(() => ShipWhereInputSchema).optional(),
|
|
|
|
|
some: z.lazy(() => ShipWhereInputSchema).optional(),
|
|
|
|
|
none: z.lazy(() => ShipWhereInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ChatListRelationFilterSchema: z.ZodType<Prisma.ChatListRelationFilter> = z.object({
|
|
|
|
|
every: z.lazy(() => ChatWhereInputSchema).optional(),
|
|
|
|
|
some: z.lazy(() => ChatWhereInputSchema).optional(),
|
|
|
|
@ -2264,6 +2265,10 @@ export const MoveOrderByRelationAggregateInputSchema: z.ZodType<Prisma.MoveOrder
|
|
|
|
|
_count: z.lazy(() => SortOrderSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipOrderByRelationAggregateInputSchema: z.ZodType<Prisma.ShipOrderByRelationAggregateInput> = z.object({
|
|
|
|
|
_count: z.lazy(() => SortOrderSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ChatOrderByRelationAggregateInputSchema: z.ZodType<Prisma.ChatOrderByRelationAggregateInput> = z.object({
|
|
|
|
|
_count: z.lazy(() => SortOrderSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
@ -2317,11 +2322,6 @@ export const EnumMoveTypeFilterSchema: z.ZodType<Prisma.EnumMoveTypeFilter> = z.
|
|
|
|
|
not: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => NestedEnumMoveTypeFilterSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const User_GameRelationFilterSchema: z.ZodType<Prisma.User_GameRelationFilter> = z.object({
|
|
|
|
|
is: z.lazy(() => User_GameWhereInputSchema).optional(),
|
|
|
|
|
isNot: z.lazy(() => User_GameWhereInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const MoveUser_game_idIndexCompoundUniqueInputSchema: z.ZodType<Prisma.MoveUser_game_idIndexCompoundUniqueInput> = z.object({
|
|
|
|
|
user_game_id: z.string(),
|
|
|
|
|
index: z.number()
|
|
|
|
@ -2590,10 +2590,10 @@ export const SessionUncheckedUpdateManyWithoutUserNestedInputSchema: z.ZodType<P
|
|
|
|
|
deleteMany: z.union([ z.lazy(() => SessionScalarWhereInputSchema),z.lazy(() => SessionScalarWhereInputSchema).array() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GameCreateNestedOneWithoutShipsInputSchema: z.ZodType<Prisma.GameCreateNestedOneWithoutShipsInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => GameCreateWithoutShipsInputSchema),z.lazy(() => GameUncheckedCreateWithoutShipsInputSchema) ]).optional(),
|
|
|
|
|
connectOrCreate: z.lazy(() => GameCreateOrConnectWithoutShipsInputSchema).optional(),
|
|
|
|
|
connect: z.lazy(() => GameWhereUniqueInputSchema).optional()
|
|
|
|
|
export const User_GameCreateNestedOneWithoutShipsInputSchema: z.ZodType<Prisma.User_GameCreateNestedOneWithoutShipsInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => User_GameCreateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutShipsInputSchema) ]).optional(),
|
|
|
|
|
connectOrCreate: z.lazy(() => User_GameCreateOrConnectWithoutShipsInputSchema).optional(),
|
|
|
|
|
connect: z.lazy(() => User_GameWhereUniqueInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const IntFieldUpdateOperationsInputSchema: z.ZodType<Prisma.IntFieldUpdateOperationsInput> = z.object({
|
|
|
|
@ -2608,19 +2608,12 @@ export const EnumOrientationFieldUpdateOperationsInputSchema: z.ZodType<Prisma.E
|
|
|
|
|
set: z.lazy(() => OrientationSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GameUpdateOneRequiredWithoutShipsNestedInputSchema: z.ZodType<Prisma.GameUpdateOneRequiredWithoutShipsNestedInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => GameCreateWithoutShipsInputSchema),z.lazy(() => GameUncheckedCreateWithoutShipsInputSchema) ]).optional(),
|
|
|
|
|
connectOrCreate: z.lazy(() => GameCreateOrConnectWithoutShipsInputSchema).optional(),
|
|
|
|
|
upsert: z.lazy(() => GameUpsertWithoutShipsInputSchema).optional(),
|
|
|
|
|
connect: z.lazy(() => GameWhereUniqueInputSchema).optional(),
|
|
|
|
|
update: z.union([ z.lazy(() => GameUpdateWithoutShipsInputSchema),z.lazy(() => GameUncheckedUpdateWithoutShipsInputSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipCreateNestedManyWithoutGameInputSchema: z.ZodType<Prisma.ShipCreateNestedManyWithoutGameInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => ShipCreateWithoutGameInputSchema),z.lazy(() => ShipCreateWithoutGameInputSchema).array(),z.lazy(() => ShipUncheckedCreateWithoutGameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutGameInputSchema).array() ]).optional(),
|
|
|
|
|
connectOrCreate: z.union([ z.lazy(() => ShipCreateOrConnectWithoutGameInputSchema),z.lazy(() => ShipCreateOrConnectWithoutGameInputSchema).array() ]).optional(),
|
|
|
|
|
createMany: z.lazy(() => ShipCreateManyGameInputEnvelopeSchema).optional(),
|
|
|
|
|
connect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
export const User_GameUpdateOneRequiredWithoutShipsNestedInputSchema: z.ZodType<Prisma.User_GameUpdateOneRequiredWithoutShipsNestedInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => User_GameCreateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutShipsInputSchema) ]).optional(),
|
|
|
|
|
connectOrCreate: z.lazy(() => User_GameCreateOrConnectWithoutShipsInputSchema).optional(),
|
|
|
|
|
upsert: z.lazy(() => User_GameUpsertWithoutShipsInputSchema).optional(),
|
|
|
|
|
connect: z.lazy(() => User_GameWhereUniqueInputSchema).optional(),
|
|
|
|
|
update: z.union([ z.lazy(() => User_GameUpdateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutShipsInputSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GamepinCreateNestedOneWithoutGameInputSchema: z.ZodType<Prisma.GamepinCreateNestedOneWithoutGameInput> = z.object({
|
|
|
|
@ -2636,13 +2629,6 @@ export const User_GameCreateNestedManyWithoutGameInputSchema: z.ZodType<Prisma.U
|
|
|
|
|
connect: z.union([ z.lazy(() => User_GameWhereUniqueInputSchema),z.lazy(() => User_GameWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUncheckedCreateNestedManyWithoutGameInputSchema: z.ZodType<Prisma.ShipUncheckedCreateNestedManyWithoutGameInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => ShipCreateWithoutGameInputSchema),z.lazy(() => ShipCreateWithoutGameInputSchema).array(),z.lazy(() => ShipUncheckedCreateWithoutGameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutGameInputSchema).array() ]).optional(),
|
|
|
|
|
connectOrCreate: z.union([ z.lazy(() => ShipCreateOrConnectWithoutGameInputSchema),z.lazy(() => ShipCreateOrConnectWithoutGameInputSchema).array() ]).optional(),
|
|
|
|
|
createMany: z.lazy(() => ShipCreateManyGameInputEnvelopeSchema).optional(),
|
|
|
|
|
connect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GamepinUncheckedCreateNestedOneWithoutGameInputSchema: z.ZodType<Prisma.GamepinUncheckedCreateNestedOneWithoutGameInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => GamepinCreateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedCreateWithoutGameInputSchema) ]).optional(),
|
|
|
|
|
connectOrCreate: z.lazy(() => GamepinCreateOrConnectWithoutGameInputSchema).optional(),
|
|
|
|
@ -2664,20 +2650,6 @@ export const BoolFieldUpdateOperationsInputSchema: z.ZodType<Prisma.BoolFieldUpd
|
|
|
|
|
set: z.boolean().optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUpdateManyWithoutGameNestedInputSchema: z.ZodType<Prisma.ShipUpdateManyWithoutGameNestedInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => ShipCreateWithoutGameInputSchema),z.lazy(() => ShipCreateWithoutGameInputSchema).array(),z.lazy(() => ShipUncheckedCreateWithoutGameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutGameInputSchema).array() ]).optional(),
|
|
|
|
|
connectOrCreate: z.union([ z.lazy(() => ShipCreateOrConnectWithoutGameInputSchema),z.lazy(() => ShipCreateOrConnectWithoutGameInputSchema).array() ]).optional(),
|
|
|
|
|
upsert: z.union([ z.lazy(() => ShipUpsertWithWhereUniqueWithoutGameInputSchema),z.lazy(() => ShipUpsertWithWhereUniqueWithoutGameInputSchema).array() ]).optional(),
|
|
|
|
|
createMany: z.lazy(() => ShipCreateManyGameInputEnvelopeSchema).optional(),
|
|
|
|
|
set: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
disconnect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
delete: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
connect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
update: z.union([ z.lazy(() => ShipUpdateWithWhereUniqueWithoutGameInputSchema),z.lazy(() => ShipUpdateWithWhereUniqueWithoutGameInputSchema).array() ]).optional(),
|
|
|
|
|
updateMany: z.union([ z.lazy(() => ShipUpdateManyWithWhereWithoutGameInputSchema),z.lazy(() => ShipUpdateManyWithWhereWithoutGameInputSchema).array() ]).optional(),
|
|
|
|
|
deleteMany: z.union([ z.lazy(() => ShipScalarWhereInputSchema),z.lazy(() => ShipScalarWhereInputSchema).array() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GamepinUpdateOneWithoutGameNestedInputSchema: z.ZodType<Prisma.GamepinUpdateOneWithoutGameNestedInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => GamepinCreateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedCreateWithoutGameInputSchema) ]).optional(),
|
|
|
|
|
connectOrCreate: z.lazy(() => GamepinCreateOrConnectWithoutGameInputSchema).optional(),
|
|
|
|
@ -2702,20 +2674,6 @@ export const User_GameUpdateManyWithoutGameNestedInputSchema: z.ZodType<Prisma.U
|
|
|
|
|
deleteMany: z.union([ z.lazy(() => User_GameScalarWhereInputSchema),z.lazy(() => User_GameScalarWhereInputSchema).array() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUncheckedUpdateManyWithoutGameNestedInputSchema: z.ZodType<Prisma.ShipUncheckedUpdateManyWithoutGameNestedInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => ShipCreateWithoutGameInputSchema),z.lazy(() => ShipCreateWithoutGameInputSchema).array(),z.lazy(() => ShipUncheckedCreateWithoutGameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutGameInputSchema).array() ]).optional(),
|
|
|
|
|
connectOrCreate: z.union([ z.lazy(() => ShipCreateOrConnectWithoutGameInputSchema),z.lazy(() => ShipCreateOrConnectWithoutGameInputSchema).array() ]).optional(),
|
|
|
|
|
upsert: z.union([ z.lazy(() => ShipUpsertWithWhereUniqueWithoutGameInputSchema),z.lazy(() => ShipUpsertWithWhereUniqueWithoutGameInputSchema).array() ]).optional(),
|
|
|
|
|
createMany: z.lazy(() => ShipCreateManyGameInputEnvelopeSchema).optional(),
|
|
|
|
|
set: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
disconnect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
delete: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
connect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
update: z.union([ z.lazy(() => ShipUpdateWithWhereUniqueWithoutGameInputSchema),z.lazy(() => ShipUpdateWithWhereUniqueWithoutGameInputSchema).array() ]).optional(),
|
|
|
|
|
updateMany: z.union([ z.lazy(() => ShipUpdateManyWithWhereWithoutGameInputSchema),z.lazy(() => ShipUpdateManyWithWhereWithoutGameInputSchema).array() ]).optional(),
|
|
|
|
|
deleteMany: z.union([ z.lazy(() => ShipScalarWhereInputSchema),z.lazy(() => ShipScalarWhereInputSchema).array() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GamepinUncheckedUpdateOneWithoutGameNestedInputSchema: z.ZodType<Prisma.GamepinUncheckedUpdateOneWithoutGameNestedInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => GamepinCreateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedCreateWithoutGameInputSchema) ]).optional(),
|
|
|
|
|
connectOrCreate: z.lazy(() => GamepinCreateOrConnectWithoutGameInputSchema).optional(),
|
|
|
|
@ -2761,6 +2719,13 @@ export const MoveCreateNestedManyWithoutUser_gameInputSchema: z.ZodType<Prisma.M
|
|
|
|
|
connect: z.union([ z.lazy(() => MoveWhereUniqueInputSchema),z.lazy(() => MoveWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipCreateNestedManyWithoutUser_GameInputSchema: z.ZodType<Prisma.ShipCreateNestedManyWithoutUser_GameInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => ShipCreateWithoutUser_GameInputSchema),z.lazy(() => ShipCreateWithoutUser_GameInputSchema).array(),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema).array() ]).optional(),
|
|
|
|
|
connectOrCreate: z.union([ z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema),z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema).array() ]).optional(),
|
|
|
|
|
createMany: z.lazy(() => ShipCreateManyUser_GameInputEnvelopeSchema).optional(),
|
|
|
|
|
connect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ChatCreateNestedManyWithoutUser_gameInputSchema: z.ZodType<Prisma.ChatCreateNestedManyWithoutUser_gameInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => ChatCreateWithoutUser_gameInputSchema),z.lazy(() => ChatCreateWithoutUser_gameInputSchema).array(),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema).array() ]).optional(),
|
|
|
|
|
connectOrCreate: z.union([ z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema),z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema).array() ]).optional(),
|
|
|
|
@ -2787,6 +2752,13 @@ export const MoveUncheckedCreateNestedManyWithoutUser_gameInputSchema: z.ZodType
|
|
|
|
|
connect: z.union([ z.lazy(() => MoveWhereUniqueInputSchema),z.lazy(() => MoveWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUncheckedCreateNestedManyWithoutUser_GameInputSchema: z.ZodType<Prisma.ShipUncheckedCreateNestedManyWithoutUser_GameInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => ShipCreateWithoutUser_GameInputSchema),z.lazy(() => ShipCreateWithoutUser_GameInputSchema).array(),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema).array() ]).optional(),
|
|
|
|
|
connectOrCreate: z.union([ z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema),z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema).array() ]).optional(),
|
|
|
|
|
createMany: z.lazy(() => ShipCreateManyUser_GameInputEnvelopeSchema).optional(),
|
|
|
|
|
connect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ChatUncheckedCreateNestedManyWithoutUser_gameInputSchema: z.ZodType<Prisma.ChatUncheckedCreateNestedManyWithoutUser_gameInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => ChatCreateWithoutUser_gameInputSchema),z.lazy(() => ChatCreateWithoutUser_gameInputSchema).array(),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema).array() ]).optional(),
|
|
|
|
|
connectOrCreate: z.union([ z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema),z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema).array() ]).optional(),
|
|
|
|
@ -2808,6 +2780,20 @@ export const MoveUpdateManyWithoutUser_gameNestedInputSchema: z.ZodType<Prisma.M
|
|
|
|
|
deleteMany: z.union([ z.lazy(() => MoveScalarWhereInputSchema),z.lazy(() => MoveScalarWhereInputSchema).array() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUpdateManyWithoutUser_GameNestedInputSchema: z.ZodType<Prisma.ShipUpdateManyWithoutUser_GameNestedInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => ShipCreateWithoutUser_GameInputSchema),z.lazy(() => ShipCreateWithoutUser_GameInputSchema).array(),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema).array() ]).optional(),
|
|
|
|
|
connectOrCreate: z.union([ z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema),z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema).array() ]).optional(),
|
|
|
|
|
upsert: z.union([ z.lazy(() => ShipUpsertWithWhereUniqueWithoutUser_GameInputSchema),z.lazy(() => ShipUpsertWithWhereUniqueWithoutUser_GameInputSchema).array() ]).optional(),
|
|
|
|
|
createMany: z.lazy(() => ShipCreateManyUser_GameInputEnvelopeSchema).optional(),
|
|
|
|
|
set: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
disconnect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
delete: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
connect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
update: z.union([ z.lazy(() => ShipUpdateWithWhereUniqueWithoutUser_GameInputSchema),z.lazy(() => ShipUpdateWithWhereUniqueWithoutUser_GameInputSchema).array() ]).optional(),
|
|
|
|
|
updateMany: z.union([ z.lazy(() => ShipUpdateManyWithWhereWithoutUser_GameInputSchema),z.lazy(() => ShipUpdateManyWithWhereWithoutUser_GameInputSchema).array() ]).optional(),
|
|
|
|
|
deleteMany: z.union([ z.lazy(() => ShipScalarWhereInputSchema),z.lazy(() => ShipScalarWhereInputSchema).array() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ChatUpdateManyWithoutUser_gameNestedInputSchema: z.ZodType<Prisma.ChatUpdateManyWithoutUser_gameNestedInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => ChatCreateWithoutUser_gameInputSchema),z.lazy(() => ChatCreateWithoutUser_gameInputSchema).array(),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema).array() ]).optional(),
|
|
|
|
|
connectOrCreate: z.union([ z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema),z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema).array() ]).optional(),
|
|
|
|
@ -2852,6 +2838,20 @@ export const MoveUncheckedUpdateManyWithoutUser_gameNestedInputSchema: z.ZodType
|
|
|
|
|
deleteMany: z.union([ z.lazy(() => MoveScalarWhereInputSchema),z.lazy(() => MoveScalarWhereInputSchema).array() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUncheckedUpdateManyWithoutUser_GameNestedInputSchema: z.ZodType<Prisma.ShipUncheckedUpdateManyWithoutUser_GameNestedInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => ShipCreateWithoutUser_GameInputSchema),z.lazy(() => ShipCreateWithoutUser_GameInputSchema).array(),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema).array() ]).optional(),
|
|
|
|
|
connectOrCreate: z.union([ z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema),z.lazy(() => ShipCreateOrConnectWithoutUser_GameInputSchema).array() ]).optional(),
|
|
|
|
|
upsert: z.union([ z.lazy(() => ShipUpsertWithWhereUniqueWithoutUser_GameInputSchema),z.lazy(() => ShipUpsertWithWhereUniqueWithoutUser_GameInputSchema).array() ]).optional(),
|
|
|
|
|
createMany: z.lazy(() => ShipCreateManyUser_GameInputEnvelopeSchema).optional(),
|
|
|
|
|
set: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
disconnect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
delete: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
connect: z.union([ z.lazy(() => ShipWhereUniqueInputSchema),z.lazy(() => ShipWhereUniqueInputSchema).array() ]).optional(),
|
|
|
|
|
update: z.union([ z.lazy(() => ShipUpdateWithWhereUniqueWithoutUser_GameInputSchema),z.lazy(() => ShipUpdateWithWhereUniqueWithoutUser_GameInputSchema).array() ]).optional(),
|
|
|
|
|
updateMany: z.union([ z.lazy(() => ShipUpdateManyWithWhereWithoutUser_GameInputSchema),z.lazy(() => ShipUpdateManyWithWhereWithoutUser_GameInputSchema).array() ]).optional(),
|
|
|
|
|
deleteMany: z.union([ z.lazy(() => ShipScalarWhereInputSchema),z.lazy(() => ShipScalarWhereInputSchema).array() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ChatUncheckedUpdateManyWithoutUser_gameNestedInputSchema: z.ZodType<Prisma.ChatUncheckedUpdateManyWithoutUser_gameNestedInput> = z.object({
|
|
|
|
|
create: z.union([ z.lazy(() => ChatCreateWithoutUser_gameInputSchema),z.lazy(() => ChatCreateWithoutUser_gameInputSchema).array(),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema),z.lazy(() => ChatUncheckedCreateWithoutUser_gameInputSchema).array() ]).optional(),
|
|
|
|
|
connectOrCreate: z.union([ z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema),z.lazy(() => ChatCreateOrConnectWithoutUser_gameInputSchema).array() ]).optional(),
|
|
|
|
@ -3271,6 +3271,7 @@ export const User_GameCreateWithoutUserInputSchema: z.ZodType<Prisma.User_GameCr
|
|
|
|
|
createdAt: z.coerce.date().optional(),
|
|
|
|
|
index: z.number().int(),
|
|
|
|
|
moves: z.lazy(() => MoveCreateNestedManyWithoutUser_gameInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipCreateNestedManyWithoutUser_GameInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatCreateNestedManyWithoutUser_gameInputSchema).optional(),
|
|
|
|
|
game: z.lazy(() => GameCreateNestedOneWithoutUsersInputSchema)
|
|
|
|
|
}).strict();
|
|
|
|
@ -3281,6 +3282,7 @@ export const User_GameUncheckedCreateWithoutUserInputSchema: z.ZodType<Prisma.Us
|
|
|
|
|
gameId: z.string(),
|
|
|
|
|
index: z.number().int(),
|
|
|
|
|
moves: z.lazy(() => MoveUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -3450,94 +3452,54 @@ export const SessionScalarWhereInputSchema: z.ZodType<Prisma.SessionScalarWhereI
|
|
|
|
|
expires: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GameCreateWithoutShipsInputSchema: z.ZodType<Prisma.GameCreateWithoutShipsInput> = z.object({
|
|
|
|
|
export const User_GameCreateWithoutShipsInputSchema: z.ZodType<Prisma.User_GameCreateWithoutShipsInput> = z.object({
|
|
|
|
|
id: z.string().cuid().optional(),
|
|
|
|
|
createdAt: z.coerce.date().optional(),
|
|
|
|
|
updatedAt: z.coerce.date().optional(),
|
|
|
|
|
state: z.lazy(() => GameStateSchema).optional(),
|
|
|
|
|
allowSpectators: z.boolean().optional(),
|
|
|
|
|
allowSpecials: z.boolean().optional(),
|
|
|
|
|
allowChat: z.boolean().optional(),
|
|
|
|
|
allowMarkDraw: z.boolean().optional(),
|
|
|
|
|
gamePin: z.lazy(() => GamepinCreateNestedOneWithoutGameInputSchema).optional(),
|
|
|
|
|
users: z.lazy(() => User_GameCreateNestedManyWithoutGameInputSchema).optional()
|
|
|
|
|
index: z.number().int(),
|
|
|
|
|
moves: z.lazy(() => MoveCreateNestedManyWithoutUser_gameInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatCreateNestedManyWithoutUser_gameInputSchema).optional(),
|
|
|
|
|
game: z.lazy(() => GameCreateNestedOneWithoutUsersInputSchema),
|
|
|
|
|
user: z.lazy(() => UserCreateNestedOneWithoutGamesInputSchema)
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GameUncheckedCreateWithoutShipsInputSchema: z.ZodType<Prisma.GameUncheckedCreateWithoutShipsInput> = z.object({
|
|
|
|
|
export const User_GameUncheckedCreateWithoutShipsInputSchema: z.ZodType<Prisma.User_GameUncheckedCreateWithoutShipsInput> = z.object({
|
|
|
|
|
id: z.string().cuid().optional(),
|
|
|
|
|
createdAt: z.coerce.date().optional(),
|
|
|
|
|
updatedAt: z.coerce.date().optional(),
|
|
|
|
|
state: z.lazy(() => GameStateSchema).optional(),
|
|
|
|
|
allowSpectators: z.boolean().optional(),
|
|
|
|
|
allowSpecials: z.boolean().optional(),
|
|
|
|
|
allowChat: z.boolean().optional(),
|
|
|
|
|
allowMarkDraw: z.boolean().optional(),
|
|
|
|
|
gamePin: z.lazy(() => GamepinUncheckedCreateNestedOneWithoutGameInputSchema).optional(),
|
|
|
|
|
users: z.lazy(() => User_GameUncheckedCreateNestedManyWithoutGameInputSchema).optional()
|
|
|
|
|
gameId: z.string(),
|
|
|
|
|
userId: z.string(),
|
|
|
|
|
index: z.number().int(),
|
|
|
|
|
moves: z.lazy(() => MoveUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GameCreateOrConnectWithoutShipsInputSchema: z.ZodType<Prisma.GameCreateOrConnectWithoutShipsInput> = z.object({
|
|
|
|
|
where: z.lazy(() => GameWhereUniqueInputSchema),
|
|
|
|
|
create: z.union([ z.lazy(() => GameCreateWithoutShipsInputSchema),z.lazy(() => GameUncheckedCreateWithoutShipsInputSchema) ]),
|
|
|
|
|
export const User_GameCreateOrConnectWithoutShipsInputSchema: z.ZodType<Prisma.User_GameCreateOrConnectWithoutShipsInput> = z.object({
|
|
|
|
|
where: z.lazy(() => User_GameWhereUniqueInputSchema),
|
|
|
|
|
create: z.union([ z.lazy(() => User_GameCreateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutShipsInputSchema) ]),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GameUpsertWithoutShipsInputSchema: z.ZodType<Prisma.GameUpsertWithoutShipsInput> = z.object({
|
|
|
|
|
update: z.union([ z.lazy(() => GameUpdateWithoutShipsInputSchema),z.lazy(() => GameUncheckedUpdateWithoutShipsInputSchema) ]),
|
|
|
|
|
create: z.union([ z.lazy(() => GameCreateWithoutShipsInputSchema),z.lazy(() => GameUncheckedCreateWithoutShipsInputSchema) ]),
|
|
|
|
|
export const User_GameUpsertWithoutShipsInputSchema: z.ZodType<Prisma.User_GameUpsertWithoutShipsInput> = z.object({
|
|
|
|
|
update: z.union([ z.lazy(() => User_GameUpdateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutShipsInputSchema) ]),
|
|
|
|
|
create: z.union([ z.lazy(() => User_GameCreateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutShipsInputSchema) ]),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GameUpdateWithoutShipsInputSchema: z.ZodType<Prisma.GameUpdateWithoutShipsInput> = z.object({
|
|
|
|
|
export const User_GameUpdateWithoutShipsInputSchema: z.ZodType<Prisma.User_GameUpdateWithoutShipsInput> = z.object({
|
|
|
|
|
id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
state: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => EnumGameStateFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowSpectators: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
gamePin: z.lazy(() => GamepinUpdateOneWithoutGameNestedInputSchema).optional(),
|
|
|
|
|
users: z.lazy(() => User_GameUpdateManyWithoutGameNestedInputSchema).optional()
|
|
|
|
|
index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
moves: z.lazy(() => MoveUpdateManyWithoutUser_gameNestedInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatUpdateManyWithoutUser_gameNestedInputSchema).optional(),
|
|
|
|
|
game: z.lazy(() => GameUpdateOneRequiredWithoutUsersNestedInputSchema).optional(),
|
|
|
|
|
user: z.lazy(() => UserUpdateOneRequiredWithoutGamesNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GameUncheckedUpdateWithoutShipsInputSchema: z.ZodType<Prisma.GameUncheckedUpdateWithoutShipsInput> = z.object({
|
|
|
|
|
export const User_GameUncheckedUpdateWithoutShipsInputSchema: z.ZodType<Prisma.User_GameUncheckedUpdateWithoutShipsInput> = z.object({
|
|
|
|
|
id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
updatedAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
state: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => EnumGameStateFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowSpectators: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
gamePin: z.lazy(() => GamepinUncheckedUpdateOneWithoutGameNestedInputSchema).optional(),
|
|
|
|
|
users: z.lazy(() => User_GameUncheckedUpdateManyWithoutGameNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipCreateWithoutGameInputSchema: z.ZodType<Prisma.ShipCreateWithoutGameInput> = z.object({
|
|
|
|
|
id: z.string().cuid().optional(),
|
|
|
|
|
size: z.number().int(),
|
|
|
|
|
variant: z.number().int(),
|
|
|
|
|
x: z.number().int(),
|
|
|
|
|
y: z.number().int(),
|
|
|
|
|
orientation: z.lazy(() => OrientationSchema)
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUncheckedCreateWithoutGameInputSchema: z.ZodType<Prisma.ShipUncheckedCreateWithoutGameInput> = z.object({
|
|
|
|
|
id: z.string().cuid().optional(),
|
|
|
|
|
size: z.number().int(),
|
|
|
|
|
variant: z.number().int(),
|
|
|
|
|
x: z.number().int(),
|
|
|
|
|
y: z.number().int(),
|
|
|
|
|
orientation: z.lazy(() => OrientationSchema)
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipCreateOrConnectWithoutGameInputSchema: z.ZodType<Prisma.ShipCreateOrConnectWithoutGameInput> = z.object({
|
|
|
|
|
where: z.lazy(() => ShipWhereUniqueInputSchema),
|
|
|
|
|
create: z.union([ z.lazy(() => ShipCreateWithoutGameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutGameInputSchema) ]),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipCreateManyGameInputEnvelopeSchema: z.ZodType<Prisma.ShipCreateManyGameInputEnvelope> = z.object({
|
|
|
|
|
data: z.union([ z.lazy(() => ShipCreateManyGameInputSchema),z.lazy(() => ShipCreateManyGameInputSchema).array() ]),
|
|
|
|
|
skipDuplicates: z.boolean().optional()
|
|
|
|
|
gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
moves: z.lazy(() => MoveUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GamepinCreateWithoutGameInputSchema: z.ZodType<Prisma.GamepinCreateWithoutGameInput> = z.object({
|
|
|
|
@ -3562,6 +3524,7 @@ export const User_GameCreateWithoutGameInputSchema: z.ZodType<Prisma.User_GameCr
|
|
|
|
|
createdAt: z.coerce.date().optional(),
|
|
|
|
|
index: z.number().int(),
|
|
|
|
|
moves: z.lazy(() => MoveCreateNestedManyWithoutUser_gameInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipCreateNestedManyWithoutUser_GameInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatCreateNestedManyWithoutUser_gameInputSchema).optional(),
|
|
|
|
|
user: z.lazy(() => UserCreateNestedOneWithoutGamesInputSchema)
|
|
|
|
|
}).strict();
|
|
|
|
@ -3572,6 +3535,7 @@ export const User_GameUncheckedCreateWithoutGameInputSchema: z.ZodType<Prisma.Us
|
|
|
|
|
userId: z.string(),
|
|
|
|
|
index: z.number().int(),
|
|
|
|
|
moves: z.lazy(() => MoveUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -3585,35 +3549,6 @@ export const User_GameCreateManyGameInputEnvelopeSchema: z.ZodType<Prisma.User_G
|
|
|
|
|
skipDuplicates: z.boolean().optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUpsertWithWhereUniqueWithoutGameInputSchema: z.ZodType<Prisma.ShipUpsertWithWhereUniqueWithoutGameInput> = z.object({
|
|
|
|
|
where: z.lazy(() => ShipWhereUniqueInputSchema),
|
|
|
|
|
update: z.union([ z.lazy(() => ShipUpdateWithoutGameInputSchema),z.lazy(() => ShipUncheckedUpdateWithoutGameInputSchema) ]),
|
|
|
|
|
create: z.union([ z.lazy(() => ShipCreateWithoutGameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutGameInputSchema) ]),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUpdateWithWhereUniqueWithoutGameInputSchema: z.ZodType<Prisma.ShipUpdateWithWhereUniqueWithoutGameInput> = z.object({
|
|
|
|
|
where: z.lazy(() => ShipWhereUniqueInputSchema),
|
|
|
|
|
data: z.union([ z.lazy(() => ShipUpdateWithoutGameInputSchema),z.lazy(() => ShipUncheckedUpdateWithoutGameInputSchema) ]),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUpdateManyWithWhereWithoutGameInputSchema: z.ZodType<Prisma.ShipUpdateManyWithWhereWithoutGameInput> = z.object({
|
|
|
|
|
where: z.lazy(() => ShipScalarWhereInputSchema),
|
|
|
|
|
data: z.union([ z.lazy(() => ShipUpdateManyMutationInputSchema),z.lazy(() => ShipUncheckedUpdateManyWithoutShipsInputSchema) ]),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipScalarWhereInputSchema: z.ZodType<Prisma.ShipScalarWhereInput> = z.object({
|
|
|
|
|
AND: z.union([ z.lazy(() => ShipScalarWhereInputSchema),z.lazy(() => ShipScalarWhereInputSchema).array() ]).optional(),
|
|
|
|
|
OR: z.lazy(() => ShipScalarWhereInputSchema).array().optional(),
|
|
|
|
|
NOT: z.union([ z.lazy(() => ShipScalarWhereInputSchema),z.lazy(() => ShipScalarWhereInputSchema).array() ]).optional(),
|
|
|
|
|
id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
|
|
|
|
|
size: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(),
|
|
|
|
|
variant: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(),
|
|
|
|
|
x: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(),
|
|
|
|
|
y: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(),
|
|
|
|
|
orientation: z.union([ z.lazy(() => EnumOrientationFilterSchema),z.lazy(() => OrientationSchema) ]).optional(),
|
|
|
|
|
gameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const GamepinUpsertWithoutGameInputSchema: z.ZodType<Prisma.GamepinUpsertWithoutGameInput> = z.object({
|
|
|
|
|
update: z.union([ z.lazy(() => GamepinUpdateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedUpdateWithoutGameInputSchema) ]),
|
|
|
|
|
create: z.union([ z.lazy(() => GamepinCreateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedCreateWithoutGameInputSchema) ]),
|
|
|
|
@ -3656,7 +3591,6 @@ export const GameCreateWithoutGamePinInputSchema: z.ZodType<Prisma.GameCreateWit
|
|
|
|
|
allowSpecials: z.boolean().optional(),
|
|
|
|
|
allowChat: z.boolean().optional(),
|
|
|
|
|
allowMarkDraw: z.boolean().optional(),
|
|
|
|
|
ships: z.lazy(() => ShipCreateNestedManyWithoutGameInputSchema).optional(),
|
|
|
|
|
users: z.lazy(() => User_GameCreateNestedManyWithoutGameInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -3669,7 +3603,6 @@ export const GameUncheckedCreateWithoutGamePinInputSchema: z.ZodType<Prisma.Game
|
|
|
|
|
allowSpecials: z.boolean().optional(),
|
|
|
|
|
allowChat: z.boolean().optional(),
|
|
|
|
|
allowMarkDraw: z.boolean().optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedCreateNestedManyWithoutGameInputSchema).optional(),
|
|
|
|
|
users: z.lazy(() => User_GameUncheckedCreateNestedManyWithoutGameInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -3692,7 +3625,6 @@ export const GameUpdateWithoutGamePinInputSchema: z.ZodType<Prisma.GameUpdateWit
|
|
|
|
|
allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUpdateManyWithoutGameNestedInputSchema).optional(),
|
|
|
|
|
users: z.lazy(() => User_GameUpdateManyWithoutGameNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -3705,7 +3637,6 @@ export const GameUncheckedUpdateWithoutGamePinInputSchema: z.ZodType<Prisma.Game
|
|
|
|
|
allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedUpdateManyWithoutGameNestedInputSchema).optional(),
|
|
|
|
|
users: z.lazy(() => User_GameUncheckedUpdateManyWithoutGameNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -3739,6 +3670,34 @@ export const MoveCreateManyUser_gameInputEnvelopeSchema: z.ZodType<Prisma.MoveCr
|
|
|
|
|
skipDuplicates: z.boolean().optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipCreateWithoutUser_GameInputSchema: z.ZodType<Prisma.ShipCreateWithoutUser_GameInput> = z.object({
|
|
|
|
|
id: z.string().cuid().optional(),
|
|
|
|
|
size: z.number().int(),
|
|
|
|
|
variant: z.number().int(),
|
|
|
|
|
x: z.number().int(),
|
|
|
|
|
y: z.number().int(),
|
|
|
|
|
orientation: z.lazy(() => OrientationSchema)
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUncheckedCreateWithoutUser_GameInputSchema: z.ZodType<Prisma.ShipUncheckedCreateWithoutUser_GameInput> = z.object({
|
|
|
|
|
id: z.string().cuid().optional(),
|
|
|
|
|
size: z.number().int(),
|
|
|
|
|
variant: z.number().int(),
|
|
|
|
|
x: z.number().int(),
|
|
|
|
|
y: z.number().int(),
|
|
|
|
|
orientation: z.lazy(() => OrientationSchema)
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipCreateOrConnectWithoutUser_GameInputSchema: z.ZodType<Prisma.ShipCreateOrConnectWithoutUser_GameInput> = z.object({
|
|
|
|
|
where: z.lazy(() => ShipWhereUniqueInputSchema),
|
|
|
|
|
create: z.union([ z.lazy(() => ShipCreateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema) ]),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipCreateManyUser_GameInputEnvelopeSchema: z.ZodType<Prisma.ShipCreateManyUser_GameInputEnvelope> = z.object({
|
|
|
|
|
data: z.union([ z.lazy(() => ShipCreateManyUser_GameInputSchema),z.lazy(() => ShipCreateManyUser_GameInputSchema).array() ]),
|
|
|
|
|
skipDuplicates: z.boolean().optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ChatCreateWithoutUser_gameInputSchema: z.ZodType<Prisma.ChatCreateWithoutUser_gameInput> = z.object({
|
|
|
|
|
id: z.string().cuid().optional(),
|
|
|
|
|
createdAt: z.coerce.date().optional(),
|
|
|
|
@ -3772,7 +3731,6 @@ export const GameCreateWithoutUsersInputSchema: z.ZodType<Prisma.GameCreateWitho
|
|
|
|
|
allowSpecials: z.boolean().optional(),
|
|
|
|
|
allowChat: z.boolean().optional(),
|
|
|
|
|
allowMarkDraw: z.boolean().optional(),
|
|
|
|
|
ships: z.lazy(() => ShipCreateNestedManyWithoutGameInputSchema).optional(),
|
|
|
|
|
gamePin: z.lazy(() => GamepinCreateNestedOneWithoutGameInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -3785,7 +3743,6 @@ export const GameUncheckedCreateWithoutUsersInputSchema: z.ZodType<Prisma.GameUn
|
|
|
|
|
allowSpecials: z.boolean().optional(),
|
|
|
|
|
allowChat: z.boolean().optional(),
|
|
|
|
|
allowMarkDraw: z.boolean().optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedCreateNestedManyWithoutGameInputSchema).optional(),
|
|
|
|
|
gamePin: z.lazy(() => GamepinUncheckedCreateNestedOneWithoutGameInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -3853,6 +3810,35 @@ export const MoveScalarWhereInputSchema: z.ZodType<Prisma.MoveScalarWhereInput>
|
|
|
|
|
user_game_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUpsertWithWhereUniqueWithoutUser_GameInputSchema: z.ZodType<Prisma.ShipUpsertWithWhereUniqueWithoutUser_GameInput> = z.object({
|
|
|
|
|
where: z.lazy(() => ShipWhereUniqueInputSchema),
|
|
|
|
|
update: z.union([ z.lazy(() => ShipUpdateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedUpdateWithoutUser_GameInputSchema) ]),
|
|
|
|
|
create: z.union([ z.lazy(() => ShipCreateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedCreateWithoutUser_GameInputSchema) ]),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUpdateWithWhereUniqueWithoutUser_GameInputSchema: z.ZodType<Prisma.ShipUpdateWithWhereUniqueWithoutUser_GameInput> = z.object({
|
|
|
|
|
where: z.lazy(() => ShipWhereUniqueInputSchema),
|
|
|
|
|
data: z.union([ z.lazy(() => ShipUpdateWithoutUser_GameInputSchema),z.lazy(() => ShipUncheckedUpdateWithoutUser_GameInputSchema) ]),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUpdateManyWithWhereWithoutUser_GameInputSchema: z.ZodType<Prisma.ShipUpdateManyWithWhereWithoutUser_GameInput> = z.object({
|
|
|
|
|
where: z.lazy(() => ShipScalarWhereInputSchema),
|
|
|
|
|
data: z.union([ z.lazy(() => ShipUpdateManyMutationInputSchema),z.lazy(() => ShipUncheckedUpdateManyWithoutShipsInputSchema) ]),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipScalarWhereInputSchema: z.ZodType<Prisma.ShipScalarWhereInput> = z.object({
|
|
|
|
|
AND: z.union([ z.lazy(() => ShipScalarWhereInputSchema),z.lazy(() => ShipScalarWhereInputSchema).array() ]).optional(),
|
|
|
|
|
OR: z.lazy(() => ShipScalarWhereInputSchema).array().optional(),
|
|
|
|
|
NOT: z.union([ z.lazy(() => ShipScalarWhereInputSchema),z.lazy(() => ShipScalarWhereInputSchema).array() ]).optional(),
|
|
|
|
|
id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
|
|
|
|
|
size: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(),
|
|
|
|
|
variant: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(),
|
|
|
|
|
x: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(),
|
|
|
|
|
y: z.union([ z.lazy(() => IntFilterSchema),z.number() ]).optional(),
|
|
|
|
|
orientation: z.union([ z.lazy(() => EnumOrientationFilterSchema),z.lazy(() => OrientationSchema) ]).optional(),
|
|
|
|
|
user_GameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ChatUpsertWithWhereUniqueWithoutUser_gameInputSchema: z.ZodType<Prisma.ChatUpsertWithWhereUniqueWithoutUser_gameInput> = z.object({
|
|
|
|
|
where: z.lazy(() => ChatWhereUniqueInputSchema),
|
|
|
|
|
update: z.union([ z.lazy(() => ChatUpdateWithoutUser_gameInputSchema),z.lazy(() => ChatUncheckedUpdateWithoutUser_gameInputSchema) ]),
|
|
|
|
@ -3894,7 +3880,6 @@ export const GameUpdateWithoutUsersInputSchema: z.ZodType<Prisma.GameUpdateWitho
|
|
|
|
|
allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUpdateManyWithoutGameNestedInputSchema).optional(),
|
|
|
|
|
gamePin: z.lazy(() => GamepinUpdateOneWithoutGameNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -3907,7 +3892,6 @@ export const GameUncheckedUpdateWithoutUsersInputSchema: z.ZodType<Prisma.GameUn
|
|
|
|
|
allowSpecials: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowChat: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
allowMarkDraw: z.union([ z.boolean(),z.lazy(() => BoolFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedUpdateManyWithoutGameNestedInputSchema).optional(),
|
|
|
|
|
gamePin: z.lazy(() => GamepinUncheckedUpdateOneWithoutGameNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -3944,6 +3928,7 @@ export const User_GameCreateWithoutMovesInputSchema: z.ZodType<Prisma.User_GameC
|
|
|
|
|
id: z.string().cuid().optional(),
|
|
|
|
|
createdAt: z.coerce.date().optional(),
|
|
|
|
|
index: z.number().int(),
|
|
|
|
|
ships: z.lazy(() => ShipCreateNestedManyWithoutUser_GameInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatCreateNestedManyWithoutUser_gameInputSchema).optional(),
|
|
|
|
|
game: z.lazy(() => GameCreateNestedOneWithoutUsersInputSchema),
|
|
|
|
|
user: z.lazy(() => UserCreateNestedOneWithoutGamesInputSchema)
|
|
|
|
@ -3955,6 +3940,7 @@ export const User_GameUncheckedCreateWithoutMovesInputSchema: z.ZodType<Prisma.U
|
|
|
|
|
gameId: z.string(),
|
|
|
|
|
userId: z.string(),
|
|
|
|
|
index: z.number().int(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -3972,6 +3958,7 @@ export const User_GameUpdateWithoutMovesInputSchema: z.ZodType<Prisma.User_GameU
|
|
|
|
|
id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUpdateManyWithoutUser_GameNestedInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatUpdateManyWithoutUser_gameNestedInputSchema).optional(),
|
|
|
|
|
game: z.lazy(() => GameUpdateOneRequiredWithoutUsersNestedInputSchema).optional(),
|
|
|
|
|
user: z.lazy(() => UserUpdateOneRequiredWithoutGamesNestedInputSchema).optional()
|
|
|
|
@ -3983,6 +3970,7 @@ export const User_GameUncheckedUpdateWithoutMovesInputSchema: z.ZodType<Prisma.U
|
|
|
|
|
gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -3991,6 +3979,7 @@ export const User_GameCreateWithoutChatsInputSchema: z.ZodType<Prisma.User_GameC
|
|
|
|
|
createdAt: z.coerce.date().optional(),
|
|
|
|
|
index: z.number().int(),
|
|
|
|
|
moves: z.lazy(() => MoveCreateNestedManyWithoutUser_gameInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipCreateNestedManyWithoutUser_GameInputSchema).optional(),
|
|
|
|
|
game: z.lazy(() => GameCreateNestedOneWithoutUsersInputSchema),
|
|
|
|
|
user: z.lazy(() => UserCreateNestedOneWithoutGamesInputSchema)
|
|
|
|
|
}).strict();
|
|
|
|
@ -4001,7 +3990,8 @@ export const User_GameUncheckedCreateWithoutChatsInputSchema: z.ZodType<Prisma.U
|
|
|
|
|
gameId: z.string(),
|
|
|
|
|
userId: z.string(),
|
|
|
|
|
index: z.number().int(),
|
|
|
|
|
moves: z.lazy(() => MoveUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional()
|
|
|
|
|
moves: z.lazy(() => MoveUncheckedCreateNestedManyWithoutUser_gameInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedCreateNestedManyWithoutUser_GameInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const User_GameCreateOrConnectWithoutChatsInputSchema: z.ZodType<Prisma.User_GameCreateOrConnectWithoutChatsInput> = z.object({
|
|
|
|
@ -4019,6 +4009,7 @@ export const User_GameUpdateWithoutChatsInputSchema: z.ZodType<Prisma.User_GameU
|
|
|
|
|
createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
moves: z.lazy(() => MoveUpdateManyWithoutUser_gameNestedInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUpdateManyWithoutUser_GameNestedInputSchema).optional(),
|
|
|
|
|
game: z.lazy(() => GameUpdateOneRequiredWithoutUsersNestedInputSchema).optional(),
|
|
|
|
|
user: z.lazy(() => UserUpdateOneRequiredWithoutGamesNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
@ -4029,7 +4020,8 @@ export const User_GameUncheckedUpdateWithoutChatsInputSchema: z.ZodType<Prisma.U
|
|
|
|
|
gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
moves: z.lazy(() => MoveUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional()
|
|
|
|
|
moves: z.lazy(() => MoveUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const User_GameCreateManyUserInputSchema: z.ZodType<Prisma.User_GameCreateManyUserInput> = z.object({
|
|
|
|
@ -4067,6 +4059,7 @@ export const User_GameUpdateWithoutUserInputSchema: z.ZodType<Prisma.User_GameUp
|
|
|
|
|
createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
moves: z.lazy(() => MoveUpdateManyWithoutUser_gameNestedInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUpdateManyWithoutUser_GameNestedInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatUpdateManyWithoutUser_gameNestedInputSchema).optional(),
|
|
|
|
|
game: z.lazy(() => GameUpdateOneRequiredWithoutUsersNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
@ -4077,6 +4070,7 @@ export const User_GameUncheckedUpdateWithoutUserInputSchema: z.ZodType<Prisma.Us
|
|
|
|
|
gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
moves: z.lazy(() => MoveUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -4156,15 +4150,6 @@ export const SessionUncheckedUpdateManyWithoutSessionsInputSchema: z.ZodType<Pri
|
|
|
|
|
expires: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipCreateManyGameInputSchema: z.ZodType<Prisma.ShipCreateManyGameInput> = z.object({
|
|
|
|
|
id: z.string().cuid().optional(),
|
|
|
|
|
size: z.number().int(),
|
|
|
|
|
variant: z.number().int(),
|
|
|
|
|
x: z.number().int(),
|
|
|
|
|
y: z.number().int(),
|
|
|
|
|
orientation: z.lazy(() => OrientationSchema)
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const User_GameCreateManyGameInputSchema: z.ZodType<Prisma.User_GameCreateManyGameInput> = z.object({
|
|
|
|
|
id: z.string().cuid().optional(),
|
|
|
|
|
createdAt: z.coerce.date().optional(),
|
|
|
|
@ -4172,38 +4157,12 @@ export const User_GameCreateManyGameInputSchema: z.ZodType<Prisma.User_GameCreat
|
|
|
|
|
index: z.number().int()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUpdateWithoutGameInputSchema: z.ZodType<Prisma.ShipUpdateWithoutGameInput> = z.object({
|
|
|
|
|
id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
size: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
variant: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUncheckedUpdateWithoutGameInputSchema: z.ZodType<Prisma.ShipUncheckedUpdateWithoutGameInput> = z.object({
|
|
|
|
|
id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
size: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
variant: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUncheckedUpdateManyWithoutShipsInputSchema: z.ZodType<Prisma.ShipUncheckedUpdateManyWithoutShipsInput> = z.object({
|
|
|
|
|
id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
size: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
variant: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const User_GameUpdateWithoutGameInputSchema: z.ZodType<Prisma.User_GameUpdateWithoutGameInput> = z.object({
|
|
|
|
|
id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
moves: z.lazy(() => MoveUpdateManyWithoutUser_gameNestedInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUpdateManyWithoutUser_GameNestedInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatUpdateManyWithoutUser_gameNestedInputSchema).optional(),
|
|
|
|
|
user: z.lazy(() => UserUpdateOneRequiredWithoutGamesNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
@ -4214,6 +4173,7 @@ export const User_GameUncheckedUpdateWithoutGameInputSchema: z.ZodType<Prisma.Us
|
|
|
|
|
userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
moves: z.lazy(() => MoveUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional(),
|
|
|
|
|
ships: z.lazy(() => ShipUncheckedUpdateManyWithoutUser_GameNestedInputSchema).optional(),
|
|
|
|
|
chats: z.lazy(() => ChatUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional()
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
@ -4234,6 +4194,15 @@ export const MoveCreateManyUser_gameInputSchema: z.ZodType<Prisma.MoveCreateMany
|
|
|
|
|
orientation: z.lazy(() => OrientationSchema)
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipCreateManyUser_GameInputSchema: z.ZodType<Prisma.ShipCreateManyUser_GameInput> = z.object({
|
|
|
|
|
id: z.string().cuid().optional(),
|
|
|
|
|
size: z.number().int(),
|
|
|
|
|
variant: z.number().int(),
|
|
|
|
|
x: z.number().int(),
|
|
|
|
|
y: z.number().int(),
|
|
|
|
|
orientation: z.lazy(() => OrientationSchema)
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ChatCreateManyUser_gameInputSchema: z.ZodType<Prisma.ChatCreateManyUser_gameInput> = z.object({
|
|
|
|
|
id: z.string().cuid().optional(),
|
|
|
|
|
createdAt: z.coerce.date().optional(),
|
|
|
|
@ -4271,6 +4240,33 @@ export const MoveUncheckedUpdateManyWithoutMovesInputSchema: z.ZodType<Prisma.Mo
|
|
|
|
|
orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUpdateWithoutUser_GameInputSchema: z.ZodType<Prisma.ShipUpdateWithoutUser_GameInput> = z.object({
|
|
|
|
|
id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
size: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
variant: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUncheckedUpdateWithoutUser_GameInputSchema: z.ZodType<Prisma.ShipUncheckedUpdateWithoutUser_GameInput> = z.object({
|
|
|
|
|
id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
size: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
variant: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ShipUncheckedUpdateManyWithoutShipsInputSchema: z.ZodType<Prisma.ShipUncheckedUpdateManyWithoutShipsInput> = z.object({
|
|
|
|
|
id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
size: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
variant: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
orientation: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
}).strict();
|
|
|
|
|
|
|
|
|
|
export const ChatUpdateWithoutUser_gameInputSchema: z.ZodType<Prisma.ChatUpdateWithoutUser_gameInput> = z.object({
|
|
|
|
|
id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|
createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
|
|
|
|
|