feat: add daily challenge and blitz mode (2min speedrun)
This commit is contained in:
@@ -27,3 +27,13 @@ export type User = Prisma.UserModel
|
||||
*
|
||||
*/
|
||||
export type Game = Prisma.GameModel
|
||||
/**
|
||||
* Model DailyPuzzle
|
||||
*
|
||||
*/
|
||||
export type DailyPuzzle = Prisma.DailyPuzzleModel
|
||||
/**
|
||||
* Model DailyResult
|
||||
*
|
||||
*/
|
||||
export type DailyResult = Prisma.DailyResultModel
|
||||
|
||||
@@ -51,3 +51,13 @@ export type User = Prisma.UserModel
|
||||
*
|
||||
*/
|
||||
export type Game = Prisma.GameModel
|
||||
/**
|
||||
* Model DailyPuzzle
|
||||
*
|
||||
*/
|
||||
export type DailyPuzzle = Prisma.DailyPuzzleModel
|
||||
/**
|
||||
* Model DailyResult
|
||||
*
|
||||
*/
|
||||
export type DailyResult = Prisma.DailyResultModel
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -385,7 +385,9 @@ type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRe
|
||||
|
||||
export const ModelName = {
|
||||
User: 'User',
|
||||
Game: 'Game'
|
||||
Game: 'Game',
|
||||
DailyPuzzle: 'DailyPuzzle',
|
||||
DailyResult: 'DailyResult'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -401,7 +403,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
omit: GlobalOmitOptions
|
||||
}
|
||||
meta: {
|
||||
modelProps: "user" | "game"
|
||||
modelProps: "user" | "game" | "dailyPuzzle" | "dailyResult"
|
||||
txIsolationLevel: TransactionIsolationLevel
|
||||
}
|
||||
model: {
|
||||
@@ -553,6 +555,154 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
DailyPuzzle: {
|
||||
payload: Prisma.$DailyPuzzlePayload<ExtArgs>
|
||||
fields: Prisma.DailyPuzzleFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.DailyPuzzleFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyPuzzlePayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.DailyPuzzleFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyPuzzlePayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.DailyPuzzleFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyPuzzlePayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.DailyPuzzleFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyPuzzlePayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.DailyPuzzleFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyPuzzlePayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.DailyPuzzleCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyPuzzlePayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.DailyPuzzleCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
createManyAndReturn: {
|
||||
args: Prisma.DailyPuzzleCreateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyPuzzlePayload>[]
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.DailyPuzzleDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyPuzzlePayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.DailyPuzzleUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyPuzzlePayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.DailyPuzzleDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.DailyPuzzleUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateManyAndReturn: {
|
||||
args: Prisma.DailyPuzzleUpdateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyPuzzlePayload>[]
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.DailyPuzzleUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyPuzzlePayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.DailyPuzzleAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateDailyPuzzle>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.DailyPuzzleGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.DailyPuzzleGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.DailyPuzzleCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.DailyPuzzleCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
DailyResult: {
|
||||
payload: Prisma.$DailyResultPayload<ExtArgs>
|
||||
fields: Prisma.DailyResultFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.DailyResultFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyResultPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.DailyResultFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyResultPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.DailyResultFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyResultPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.DailyResultFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyResultPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.DailyResultFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyResultPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.DailyResultCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyResultPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.DailyResultCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
createManyAndReturn: {
|
||||
args: Prisma.DailyResultCreateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyResultPayload>[]
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.DailyResultDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyResultPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.DailyResultUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyResultPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.DailyResultDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.DailyResultUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateManyAndReturn: {
|
||||
args: Prisma.DailyResultUpdateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyResultPayload>[]
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.DailyResultUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$DailyResultPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.DailyResultAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateDailyResult>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.DailyResultGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.DailyResultGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.DailyResultCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.DailyResultCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} & {
|
||||
other: {
|
||||
@@ -616,6 +766,30 @@ export const GameScalarFieldEnum = {
|
||||
export type GameScalarFieldEnum = (typeof GameScalarFieldEnum)[keyof typeof GameScalarFieldEnum]
|
||||
|
||||
|
||||
export const DailyPuzzleScalarFieldEnum = {
|
||||
id: 'id',
|
||||
date: 'date',
|
||||
startArticle: 'startArticle',
|
||||
targetArticle: 'targetArticle'
|
||||
} as const
|
||||
|
||||
export type DailyPuzzleScalarFieldEnum = (typeof DailyPuzzleScalarFieldEnum)[keyof typeof DailyPuzzleScalarFieldEnum]
|
||||
|
||||
|
||||
export const DailyResultScalarFieldEnum = {
|
||||
id: 'id',
|
||||
puzzleId: 'puzzleId',
|
||||
userId: 'userId',
|
||||
path: 'path',
|
||||
clicks: 'clicks',
|
||||
timeSeconds: 'timeSeconds',
|
||||
won: 'won',
|
||||
playedAt: 'playedAt'
|
||||
} as const
|
||||
|
||||
export type DailyResultScalarFieldEnum = (typeof DailyResultScalarFieldEnum)[keyof typeof DailyResultScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -761,6 +935,8 @@ export type PrismaClientOptions = ({
|
||||
export type GlobalOmitConfig = {
|
||||
user?: Prisma.UserOmit
|
||||
game?: Prisma.GameOmit
|
||||
dailyPuzzle?: Prisma.DailyPuzzleOmit
|
||||
dailyResult?: Prisma.DailyResultOmit
|
||||
}
|
||||
|
||||
/* Types for Logging */
|
||||
|
||||
@@ -52,7 +52,9 @@ export const AnyNull = runtime.AnyNull
|
||||
|
||||
export const ModelName = {
|
||||
User: 'User',
|
||||
Game: 'Game'
|
||||
Game: 'Game',
|
||||
DailyPuzzle: 'DailyPuzzle',
|
||||
DailyResult: 'DailyResult'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -95,6 +97,30 @@ export const GameScalarFieldEnum = {
|
||||
export type GameScalarFieldEnum = (typeof GameScalarFieldEnum)[keyof typeof GameScalarFieldEnum]
|
||||
|
||||
|
||||
export const DailyPuzzleScalarFieldEnum = {
|
||||
id: 'id',
|
||||
date: 'date',
|
||||
startArticle: 'startArticle',
|
||||
targetArticle: 'targetArticle'
|
||||
} as const
|
||||
|
||||
export type DailyPuzzleScalarFieldEnum = (typeof DailyPuzzleScalarFieldEnum)[keyof typeof DailyPuzzleScalarFieldEnum]
|
||||
|
||||
|
||||
export const DailyResultScalarFieldEnum = {
|
||||
id: 'id',
|
||||
puzzleId: 'puzzleId',
|
||||
userId: 'userId',
|
||||
path: 'path',
|
||||
clicks: 'clicks',
|
||||
timeSeconds: 'timeSeconds',
|
||||
won: 'won',
|
||||
playedAt: 'playedAt'
|
||||
} as const
|
||||
|
||||
export type DailyResultScalarFieldEnum = (typeof DailyResultScalarFieldEnum)[keyof typeof DailyResultScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
|
||||
@@ -10,4 +10,6 @@
|
||||
*/
|
||||
export type * from './models/User'
|
||||
export type * from './models/Game'
|
||||
export type * from './models/DailyPuzzle'
|
||||
export type * from './models/DailyResult'
|
||||
export type * from './commonInputTypes'
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -183,6 +183,7 @@ export type UserWhereInput = {
|
||||
password?: Prisma.StringFilter<"User"> | string
|
||||
createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
||||
games?: Prisma.GameListRelationFilter
|
||||
dailyResults?: Prisma.DailyResultListRelationFilter
|
||||
}
|
||||
|
||||
export type UserOrderByWithRelationInput = {
|
||||
@@ -192,6 +193,7 @@ export type UserOrderByWithRelationInput = {
|
||||
password?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
games?: Prisma.GameOrderByRelationAggregateInput
|
||||
dailyResults?: Prisma.DailyResultOrderByRelationAggregateInput
|
||||
}
|
||||
|
||||
export type UserWhereUniqueInput = Prisma.AtLeast<{
|
||||
@@ -204,6 +206,7 @@ export type UserWhereUniqueInput = Prisma.AtLeast<{
|
||||
password?: Prisma.StringFilter<"User"> | string
|
||||
createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
|
||||
games?: Prisma.GameListRelationFilter
|
||||
dailyResults?: Prisma.DailyResultListRelationFilter
|
||||
}, "id" | "email">
|
||||
|
||||
export type UserOrderByWithAggregationInput = {
|
||||
@@ -235,6 +238,7 @@ export type UserCreateInput = {
|
||||
password: string
|
||||
createdAt?: Date | string
|
||||
games?: Prisma.GameCreateNestedManyWithoutUserInput
|
||||
dailyResults?: Prisma.DailyResultCreateNestedManyWithoutUserInput
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateInput = {
|
||||
@@ -244,6 +248,7 @@ export type UserUncheckedCreateInput = {
|
||||
password: string
|
||||
createdAt?: Date | string
|
||||
games?: Prisma.GameUncheckedCreateNestedManyWithoutUserInput
|
||||
dailyResults?: Prisma.DailyResultUncheckedCreateNestedManyWithoutUserInput
|
||||
}
|
||||
|
||||
export type UserUpdateInput = {
|
||||
@@ -253,6 +258,7 @@ export type UserUpdateInput = {
|
||||
password?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
games?: Prisma.GameUpdateManyWithoutUserNestedInput
|
||||
dailyResults?: Prisma.DailyResultUpdateManyWithoutUserNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateInput = {
|
||||
@@ -262,6 +268,7 @@ export type UserUncheckedUpdateInput = {
|
||||
password?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
games?: Prisma.GameUncheckedUpdateManyWithoutUserNestedInput
|
||||
dailyResults?: Prisma.DailyResultUncheckedUpdateManyWithoutUserNestedInput
|
||||
}
|
||||
|
||||
export type UserCreateManyInput = {
|
||||
@@ -339,12 +346,27 @@ export type UserUpdateOneRequiredWithoutGamesNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutGamesInput, Prisma.UserUpdateWithoutGamesInput>, Prisma.UserUncheckedUpdateWithoutGamesInput>
|
||||
}
|
||||
|
||||
export type UserCreateNestedOneWithoutDailyResultsInput = {
|
||||
create?: Prisma.XOR<Prisma.UserCreateWithoutDailyResultsInput, Prisma.UserUncheckedCreateWithoutDailyResultsInput>
|
||||
connectOrCreate?: Prisma.UserCreateOrConnectWithoutDailyResultsInput
|
||||
connect?: Prisma.UserWhereUniqueInput
|
||||
}
|
||||
|
||||
export type UserUpdateOneRequiredWithoutDailyResultsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.UserCreateWithoutDailyResultsInput, Prisma.UserUncheckedCreateWithoutDailyResultsInput>
|
||||
connectOrCreate?: Prisma.UserCreateOrConnectWithoutDailyResultsInput
|
||||
upsert?: Prisma.UserUpsertWithoutDailyResultsInput
|
||||
connect?: Prisma.UserWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutDailyResultsInput, Prisma.UserUpdateWithoutDailyResultsInput>, Prisma.UserUncheckedUpdateWithoutDailyResultsInput>
|
||||
}
|
||||
|
||||
export type UserCreateWithoutGamesInput = {
|
||||
id?: string
|
||||
name: string
|
||||
email: string
|
||||
password: string
|
||||
createdAt?: Date | string
|
||||
dailyResults?: Prisma.DailyResultCreateNestedManyWithoutUserInput
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateWithoutGamesInput = {
|
||||
@@ -353,6 +375,7 @@ export type UserUncheckedCreateWithoutGamesInput = {
|
||||
email: string
|
||||
password: string
|
||||
createdAt?: Date | string
|
||||
dailyResults?: Prisma.DailyResultUncheckedCreateNestedManyWithoutUserInput
|
||||
}
|
||||
|
||||
export type UserCreateOrConnectWithoutGamesInput = {
|
||||
@@ -377,6 +400,7 @@ export type UserUpdateWithoutGamesInput = {
|
||||
email?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
password?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
dailyResults?: Prisma.DailyResultUpdateManyWithoutUserNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateWithoutGamesInput = {
|
||||
@@ -385,6 +409,59 @@ export type UserUncheckedUpdateWithoutGamesInput = {
|
||||
email?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
password?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
dailyResults?: Prisma.DailyResultUncheckedUpdateManyWithoutUserNestedInput
|
||||
}
|
||||
|
||||
export type UserCreateWithoutDailyResultsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
email: string
|
||||
password: string
|
||||
createdAt?: Date | string
|
||||
games?: Prisma.GameCreateNestedManyWithoutUserInput
|
||||
}
|
||||
|
||||
export type UserUncheckedCreateWithoutDailyResultsInput = {
|
||||
id?: string
|
||||
name: string
|
||||
email: string
|
||||
password: string
|
||||
createdAt?: Date | string
|
||||
games?: Prisma.GameUncheckedCreateNestedManyWithoutUserInput
|
||||
}
|
||||
|
||||
export type UserCreateOrConnectWithoutDailyResultsInput = {
|
||||
where: Prisma.UserWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.UserCreateWithoutDailyResultsInput, Prisma.UserUncheckedCreateWithoutDailyResultsInput>
|
||||
}
|
||||
|
||||
export type UserUpsertWithoutDailyResultsInput = {
|
||||
update: Prisma.XOR<Prisma.UserUpdateWithoutDailyResultsInput, Prisma.UserUncheckedUpdateWithoutDailyResultsInput>
|
||||
create: Prisma.XOR<Prisma.UserCreateWithoutDailyResultsInput, Prisma.UserUncheckedCreateWithoutDailyResultsInput>
|
||||
where?: Prisma.UserWhereInput
|
||||
}
|
||||
|
||||
export type UserUpdateToOneWithWhereWithoutDailyResultsInput = {
|
||||
where?: Prisma.UserWhereInput
|
||||
data: Prisma.XOR<Prisma.UserUpdateWithoutDailyResultsInput, Prisma.UserUncheckedUpdateWithoutDailyResultsInput>
|
||||
}
|
||||
|
||||
export type UserUpdateWithoutDailyResultsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
password?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
games?: Prisma.GameUpdateManyWithoutUserNestedInput
|
||||
}
|
||||
|
||||
export type UserUncheckedUpdateWithoutDailyResultsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
password?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
games?: Prisma.GameUncheckedUpdateManyWithoutUserNestedInput
|
||||
}
|
||||
|
||||
|
||||
@@ -394,10 +471,12 @@ export type UserUncheckedUpdateWithoutGamesInput = {
|
||||
|
||||
export type UserCountOutputType = {
|
||||
games: number
|
||||
dailyResults: number
|
||||
}
|
||||
|
||||
export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
games?: boolean | UserCountOutputTypeCountGamesArgs
|
||||
dailyResults?: boolean | UserCountOutputTypeCountDailyResultsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -417,6 +496,13 @@ export type UserCountOutputTypeCountGamesArgs<ExtArgs extends runtime.Types.Exte
|
||||
where?: Prisma.GameWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* UserCountOutputType without action
|
||||
*/
|
||||
export type UserCountOutputTypeCountDailyResultsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.DailyResultWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -425,6 +511,7 @@ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = r
|
||||
password?: boolean
|
||||
createdAt?: boolean
|
||||
games?: boolean | Prisma.User$gamesArgs<ExtArgs>
|
||||
dailyResults?: boolean | Prisma.User$dailyResultsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["user"]>
|
||||
|
||||
@@ -455,6 +542,7 @@ export type UserSelectScalar = {
|
||||
export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "email" | "password" | "createdAt", ExtArgs["result"]["user"]>
|
||||
export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
games?: boolean | Prisma.User$gamesArgs<ExtArgs>
|
||||
dailyResults?: boolean | Prisma.User$dailyResultsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
export type UserIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
||||
@@ -464,6 +552,7 @@ export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
name: "User"
|
||||
objects: {
|
||||
games: Prisma.$GamePayload<ExtArgs>[]
|
||||
dailyResults: Prisma.$DailyResultPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
@@ -866,6 +955,7 @@ readonly fields: UserFieldRefs;
|
||||
export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
games<T extends Prisma.User$gamesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$gamesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GamePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
dailyResults<T extends Prisma.User$dailyResultsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$dailyResultsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DailyResultPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -1314,6 +1404,30 @@ export type User$gamesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
distinct?: Prisma.GameScalarFieldEnum | Prisma.GameScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* User.dailyResults
|
||||
*/
|
||||
export type User$dailyResultsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the DailyResult
|
||||
*/
|
||||
select?: Prisma.DailyResultSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the DailyResult
|
||||
*/
|
||||
omit?: Prisma.DailyResultOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.DailyResultInclude<ExtArgs> | null
|
||||
where?: Prisma.DailyResultWhereInput
|
||||
orderBy?: Prisma.DailyResultOrderByWithRelationInput | Prisma.DailyResultOrderByWithRelationInput[]
|
||||
cursor?: Prisma.DailyResultWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.DailyResultScalarFieldEnum | Prisma.DailyResultScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* User without action
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user