initial commit

This commit is contained in:
Zoe
2023-01-03 09:29:04 -06:00
commit 7851137d88
12889 changed files with 2557443 additions and 0 deletions

10
node_modules/.prisma/client/deno/edge.ts generated vendored Normal file
View File

@@ -0,0 +1,10 @@
class PrismaClient {
constructor() {
throw new Error(
`@prisma/client/deno/edge did not initialize yet. Please run "prisma generate --data-proxy" and try to import it again.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
)
}
}
export { PrismaClient }

73
node_modules/.prisma/client/edge.d.ts generated vendored Normal file
View File

@@ -0,0 +1,73 @@
/* eslint-disable prettier/prettier */
import runtime from '@prisma/client/runtime'
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new Prisma()
* // Fetch zero or more Users
* const users = await prisma.user.findMany()
* ```
*
*
* Read more in our [docs](https://github.com/prisma/prisma/blob/main/docs/prisma-client-js/api.md).
*/
export declare const PrismaClient: any
/**
* ## Prisma Client ʲˢ
*
* Type-safe database client for TypeScript & Node.js
* @example
* ```
* const prisma = new Prisma()
* // Fetch zero or more Users
* const users = await prisma.user.findMany()
* ```
*
*
* Read more in our [docs](https://github.com/prisma/prisma/blob/main/docs/prisma-client-js/api.md).
*/
export declare type PrismaClient = any
export declare type PrismaClientExtends<ExtArgs extends runtime.Types.Extensions.Args = runtime.Types.Extensions.DefaultArgs> = {
$extends: { extArgs: ExtArgs } & (<
R extends runtime.Types.Extensions.Args['result'] = {},
M extends runtime.Types.Extensions.Args['model'] = {},
Q extends runtime.Types.Extensions.Args['query'] = {},
C extends runtime.Types.Extensions.Args['client'] = {},
Args extends runtime.Types.Extensions.Args = { result: R; model: M; query: Q; client: C }
>(args: ((client: PrismaClientExtends<ExtArgs>) => { $extends: { extArgs: Args } }) | {
result?: R; model?: M; query?: Q; client?: C
}) => PrismaClientExtends<runtime.Types.Utils.PatchDeep<Args, ExtArgs>>)
}
export declare const dmmf: any
export declare type dmmf = any
/**
* Get the type of the value, that the Promise holds.
*/
export declare type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T
/**
* Get the return type of a function which returns a Promise.
*/
export declare type PromiseReturnType<T extends (...args: any) => Promise<any>> = PromiseType<ReturnType<T>>
export namespace Prisma {
export type TransactionClient = any
export function defineExtension<
R extends runtime.Types.Extensions.Args['result'] = {},
M extends runtime.Types.Extensions.Args['model'] = {},
Q extends runtime.Types.Extensions.Args['query'] = {},
C extends runtime.Types.Extensions.Args['client'] = {},
Args extends runtime.Types.Extensions.Args = { result: R; model: M; query: Q; client: C }
>(args: ((client: PrismaClientExtends) => { $extends: { extArgs: Args } }) | {
result?: R; model?: M; query?: Q; client?: C
}): (client: any) => PrismaClientExtends<Args>
}

12
node_modules/.prisma/client/edge.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
class PrismaClient {
constructor() {
throw new Error(
`@prisma/client/edge did not initialize yet. Please run "prisma generate --data-proxy" and try to import it again.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
)
}
}
module.exports = {
PrismaClient,
}

167
node_modules/.prisma/client/index-browser.js generated vendored Normal file
View File

@@ -0,0 +1,167 @@
Object.defineProperty(exports, "__esModule", { value: true });
const {
Decimal,
objectEnumValues,
makeStrictEnum
} = require('@prisma/client/runtime/index-browser')
const Prisma = {}
exports.Prisma = Prisma
/**
* Prisma Client JS version: 4.8.0
* Query Engine version: d6e67a83f971b175a593ccc12e15c4a757f93ffe
*/
Prisma.prismaVersion = {
client: "4.8.0",
engine: "d6e67a83f971b175a593ccc12e15c4a757f93ffe"
}
Prisma.PrismaClientKnownRequestError = () => {
throw new Error(`PrismaClientKnownRequestError is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
)};
Prisma.PrismaClientUnknownRequestError = () => {
throw new Error(`PrismaClientUnknownRequestError is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
)}
Prisma.PrismaClientRustPanicError = () => {
throw new Error(`PrismaClientRustPanicError is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
)}
Prisma.PrismaClientInitializationError = () => {
throw new Error(`PrismaClientInitializationError is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
)}
Prisma.PrismaClientValidationError = () => {
throw new Error(`PrismaClientValidationError is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
)}
Prisma.NotFoundError = () => {
throw new Error(`NotFoundError is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
)}
Prisma.Decimal = Decimal
/**
* Re-export of sql-template-tag
*/
Prisma.sql = () => {
throw new Error(`sqltag is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
)}
Prisma.empty = () => {
throw new Error(`empty is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
)}
Prisma.join = () => {
throw new Error(`join is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
)}
Prisma.raw = () => {
throw new Error(`raw is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
)}
Prisma.validator = () => (val) => val
/**
* Shorthand utilities for JSON filtering
*/
Prisma.DbNull = objectEnumValues.instances.DbNull
Prisma.JsonNull = objectEnumValues.instances.JsonNull
Prisma.AnyNull = objectEnumValues.instances.AnyNull
Prisma.NullTypes = {
DbNull: objectEnumValues.classes.DbNull,
JsonNull: objectEnumValues.classes.JsonNull,
AnyNull: objectEnumValues.classes.AnyNull
}
/**
* Enums
*/
// Based on
// https://github.com/microsoft/TypeScript/issues/3192#issuecomment-261720275
function makeEnum(x) { return x; }
exports.Prisma.ExpiredSessionScalarFieldEnum = makeEnum({
id: 'id',
token: 'token'
});
exports.Prisma.MessageScalarFieldEnum = makeEnum({
id: 'id',
body: 'body',
userId: 'userId'
});
exports.Prisma.QueryMode = makeEnum({
default: 'default',
insensitive: 'insensitive'
});
exports.Prisma.RoomScalarFieldEnum = makeEnum({
id: 'id',
name: 'name'
});
exports.Prisma.ServerScalarFieldEnum = makeEnum({
id: 'id',
name: 'name'
});
exports.Prisma.SessionScalarFieldEnum = makeEnum({
id: 'id',
token: 'token',
userId: 'userId'
});
exports.Prisma.SortOrder = makeEnum({
asc: 'asc',
desc: 'desc'
});
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
ReadUncommitted: 'ReadUncommitted',
ReadCommitted: 'ReadCommitted',
RepeatableRead: 'RepeatableRead',
Serializable: 'Serializable'
});
exports.Prisma.UserScalarFieldEnum = makeEnum({
id: 'id',
email: 'email',
username: 'username',
passwordhash: 'passwordhash',
serverId: 'serverId'
});
exports.Prisma.ModelName = makeEnum({
User: 'User',
Server: 'Server',
Room: 'Room',
Message: 'Message',
Session: 'Session',
ExpiredSession: 'ExpiredSession'
});
/**
* Create the Client
*/
class PrismaClient {
constructor() {
throw new Error(
`PrismaClient is unable to be run in the browser.
In case this error is unexpected for you, please report it in https://github.com/prisma/prisma/issues`,
)
}
}
exports.PrismaClient = PrismaClient
Object.assign(exports, Prisma)

8275
node_modules/.prisma/client/index.d.ts generated vendored Normal file

File diff suppressed because it is too large Load Diff

215
node_modules/.prisma/client/index.js generated vendored Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

6
node_modules/.prisma/client/package.json generated vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"name": ".prisma/client",
"main": "index.js",
"types": "index.d.ts",
"browser": "index-browser.js"
}

49
node_modules/.prisma/client/schema.prisma generated vendored Normal file
View File

@@ -0,0 +1,49 @@
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client-js"
}
model User {
id String @id @default(cuid())
email String @unique
username String @unique
passwordhash String
Server Server[]
serverId String?
Messages Message[]
Session Session[]
}
model Server {
id String @id @default(cuid())
name String
participants User[]
}
model Room {
id String @id @default(cuid())
name String
}
model Message {
id String @id @default(cuid())
body String
creator User @relation(fields: [userId], references: [id])
userId String
}
model Session {
id String @id @default(cuid())
token String
userId String
user User @relation(fields: [userId], references: [id])
}
model ExpiredSession {
id String @id @default(cuid())
token String
}