270 lines
7.3 KiB
TypeScript
270 lines
7.3 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* WARNING: This is an internal file that is subject to change!
|
|
*
|
|
* 🛑 Under no circumstances should you import this file directly! 🛑
|
|
*
|
|
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
|
|
* While this enables partial backward compatibility, it is not part of the stable public API.
|
|
*
|
|
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
* model files in the `model` directory!
|
|
*/
|
|
|
|
import * as runtime from "@prisma/client/runtime/index-browser"
|
|
|
|
export type * from '../models'
|
|
export type * from './prismaNamespace'
|
|
|
|
export const Decimal = runtime.Decimal
|
|
|
|
|
|
export const NullTypes = {
|
|
DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
|
|
JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
|
|
AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
|
|
}
|
|
/**
|
|
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const DbNull = runtime.DbNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const JsonNull = runtime.JsonNull
|
|
|
|
/**
|
|
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
*
|
|
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
*/
|
|
export const AnyNull = runtime.AnyNull
|
|
|
|
|
|
export const ModelName = {
|
|
User: 'User',
|
|
UserPreferences: 'UserPreferences',
|
|
Event: 'Event',
|
|
EventRegistration: 'EventRegistration',
|
|
EventFeedback: 'EventFeedback',
|
|
SitePreferences: 'SitePreferences',
|
|
Challenge: 'Challenge',
|
|
House: 'House',
|
|
HouseMembership: 'HouseMembership',
|
|
HouseInvitation: 'HouseInvitation',
|
|
HouseRequest: 'HouseRequest'
|
|
} as const
|
|
|
|
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
|
|
|
/*
|
|
* Enums
|
|
*/
|
|
|
|
export const TransactionIsolationLevel = {
|
|
ReadUncommitted: 'ReadUncommitted',
|
|
ReadCommitted: 'ReadCommitted',
|
|
RepeatableRead: 'RepeatableRead',
|
|
Serializable: 'Serializable'
|
|
} as const
|
|
|
|
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
|
|
|
|
|
|
export const UserScalarFieldEnum = {
|
|
id: 'id',
|
|
email: 'email',
|
|
password: 'password',
|
|
username: 'username',
|
|
role: 'role',
|
|
score: 'score',
|
|
level: 'level',
|
|
hp: 'hp',
|
|
maxHp: 'maxHp',
|
|
xp: 'xp',
|
|
maxXp: 'maxXp',
|
|
avatar: 'avatar',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt',
|
|
bio: 'bio',
|
|
characterClass: 'characterClass'
|
|
} as const
|
|
|
|
export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
|
|
|
|
|
|
export const UserPreferencesScalarFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
homeBackground: 'homeBackground',
|
|
eventsBackground: 'eventsBackground',
|
|
leaderboardBackground: 'leaderboardBackground',
|
|
theme: 'theme',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type UserPreferencesScalarFieldEnum = (typeof UserPreferencesScalarFieldEnum)[keyof typeof UserPreferencesScalarFieldEnum]
|
|
|
|
|
|
export const EventScalarFieldEnum = {
|
|
id: 'id',
|
|
date: 'date',
|
|
name: 'name',
|
|
description: 'description',
|
|
type: 'type',
|
|
room: 'room',
|
|
time: 'time',
|
|
maxPlaces: 'maxPlaces',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type EventScalarFieldEnum = (typeof EventScalarFieldEnum)[keyof typeof EventScalarFieldEnum]
|
|
|
|
|
|
export const EventRegistrationScalarFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
eventId: 'eventId',
|
|
createdAt: 'createdAt'
|
|
} as const
|
|
|
|
export type EventRegistrationScalarFieldEnum = (typeof EventRegistrationScalarFieldEnum)[keyof typeof EventRegistrationScalarFieldEnum]
|
|
|
|
|
|
export const EventFeedbackScalarFieldEnum = {
|
|
id: 'id',
|
|
userId: 'userId',
|
|
eventId: 'eventId',
|
|
rating: 'rating',
|
|
comment: 'comment',
|
|
isRead: 'isRead',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type EventFeedbackScalarFieldEnum = (typeof EventFeedbackScalarFieldEnum)[keyof typeof EventFeedbackScalarFieldEnum]
|
|
|
|
|
|
export const SitePreferencesScalarFieldEnum = {
|
|
id: 'id',
|
|
homeBackground: 'homeBackground',
|
|
eventsBackground: 'eventsBackground',
|
|
leaderboardBackground: 'leaderboardBackground',
|
|
challengesBackground: 'challengesBackground',
|
|
profileBackground: 'profileBackground',
|
|
houseBackground: 'houseBackground',
|
|
eventRegistrationPoints: 'eventRegistrationPoints',
|
|
eventFeedbackPoints: 'eventFeedbackPoints',
|
|
houseJoinPoints: 'houseJoinPoints',
|
|
houseLeavePoints: 'houseLeavePoints',
|
|
houseCreatePoints: 'houseCreatePoints',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type SitePreferencesScalarFieldEnum = (typeof SitePreferencesScalarFieldEnum)[keyof typeof SitePreferencesScalarFieldEnum]
|
|
|
|
|
|
export const ChallengeScalarFieldEnum = {
|
|
id: 'id',
|
|
challengerId: 'challengerId',
|
|
challengedId: 'challengedId',
|
|
title: 'title',
|
|
description: 'description',
|
|
pointsReward: 'pointsReward',
|
|
status: 'status',
|
|
adminId: 'adminId',
|
|
adminComment: 'adminComment',
|
|
winnerId: 'winnerId',
|
|
createdAt: 'createdAt',
|
|
acceptedAt: 'acceptedAt',
|
|
completedAt: 'completedAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type ChallengeScalarFieldEnum = (typeof ChallengeScalarFieldEnum)[keyof typeof ChallengeScalarFieldEnum]
|
|
|
|
|
|
export const HouseScalarFieldEnum = {
|
|
id: 'id',
|
|
name: 'name',
|
|
description: 'description',
|
|
creatorId: 'creatorId',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type HouseScalarFieldEnum = (typeof HouseScalarFieldEnum)[keyof typeof HouseScalarFieldEnum]
|
|
|
|
|
|
export const HouseMembershipScalarFieldEnum = {
|
|
id: 'id',
|
|
houseId: 'houseId',
|
|
userId: 'userId',
|
|
role: 'role',
|
|
joinedAt: 'joinedAt'
|
|
} as const
|
|
|
|
export type HouseMembershipScalarFieldEnum = (typeof HouseMembershipScalarFieldEnum)[keyof typeof HouseMembershipScalarFieldEnum]
|
|
|
|
|
|
export const HouseInvitationScalarFieldEnum = {
|
|
id: 'id',
|
|
houseId: 'houseId',
|
|
inviterId: 'inviterId',
|
|
inviteeId: 'inviteeId',
|
|
status: 'status',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type HouseInvitationScalarFieldEnum = (typeof HouseInvitationScalarFieldEnum)[keyof typeof HouseInvitationScalarFieldEnum]
|
|
|
|
|
|
export const HouseRequestScalarFieldEnum = {
|
|
id: 'id',
|
|
houseId: 'houseId',
|
|
requesterId: 'requesterId',
|
|
status: 'status',
|
|
createdAt: 'createdAt',
|
|
updatedAt: 'updatedAt'
|
|
} as const
|
|
|
|
export type HouseRequestScalarFieldEnum = (typeof HouseRequestScalarFieldEnum)[keyof typeof HouseRequestScalarFieldEnum]
|
|
|
|
|
|
export const SortOrder = {
|
|
asc: 'asc',
|
|
desc: 'desc'
|
|
} as const
|
|
|
|
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
|
|
|
|
|
|
export const QueryMode = {
|
|
default: 'default',
|
|
insensitive: 'insensitive'
|
|
} as const
|
|
|
|
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
|
|
|
|
|
|
export const NullsOrder = {
|
|
first: 'first',
|
|
last: 'last'
|
|
} as const
|
|
|
|
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
|
|
|