Refactor Study Desk application structure
This commit is contained in:
parent
faaccf8a7e
commit
089439ed90
145 changed files with 8087 additions and 3412 deletions
|
|
@ -80,12 +80,12 @@ export type PrismaVersion = {
|
|||
}
|
||||
|
||||
/**
|
||||
* Prisma Client JS version: 7.8.0
|
||||
* Query Engine version: 3c6e192761c0362d496ed980de936e2f3cebcd3a
|
||||
* Prisma Client JS version: 7.9.1
|
||||
* Query Engine version: e922089b7d7502aff4249d5da3420f6fa55fc6ad
|
||||
*/
|
||||
export const prismaVersion: PrismaVersion = {
|
||||
client: "7.8.0",
|
||||
engine: "3c6e192761c0362d496ed980de936e2f3cebcd3a"
|
||||
client: "7.9.1",
|
||||
engine: "e922089b7d7502aff4249d5da3420f6fa55fc6ad"
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -155,6 +155,19 @@ export type Subset<T, U> = {
|
|||
[key in keyof T]: key extends keyof U ? T[key] : never;
|
||||
};
|
||||
|
||||
/**
|
||||
* Resolved type of the argument passed to the `PrismaClient` constructor.
|
||||
*
|
||||
* When called without a narrower options type (the common case), this resolves
|
||||
* to `PrismaClientOptions` directly, which produces a clear TypeScript error
|
||||
* message (`not assignable to parameter of type 'PrismaClientOptions'`) when
|
||||
* the argument is missing or incomplete. When the user supplies a narrower
|
||||
* options type (e.g. via a literal), it falls back to `Subset` to keep
|
||||
* filtering out unknown properties.
|
||||
*/
|
||||
export type PrismaClientConstructorArgs<Options extends PrismaClientOptions> =
|
||||
[PrismaClientOptions] extends [Options] ? PrismaClientOptions : Subset<Options, PrismaClientOptions>;
|
||||
|
||||
/**
|
||||
* SelectSubset
|
||||
* @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
|
||||
|
|
@ -187,7 +200,7 @@ type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
|
|||
export type XOR<T, U> =
|
||||
T extends object ?
|
||||
U extends object ?
|
||||
(Without<T, U> & U) | (Without<U, T> & T)
|
||||
((Without<T, U> & U) | (Without<U, T> & T)) & object
|
||||
: U : T
|
||||
|
||||
|
||||
|
|
@ -1871,6 +1884,8 @@ export const StudyProgressScalarFieldEnum = {
|
|||
orderJson: 'orderJson',
|
||||
answersJson: 'answersJson',
|
||||
cardResultsJson: 'cardResultsJson',
|
||||
sessionId: 'sessionId',
|
||||
revision: 'revision',
|
||||
updatedAt: 'updatedAt'
|
||||
} as const
|
||||
|
||||
|
|
@ -1883,6 +1898,7 @@ export const QuizAttemptScalarFieldEnum = {
|
|||
score: 'score',
|
||||
maxScore: 'maxScore',
|
||||
answersJson: 'answersJson',
|
||||
reviewSnapshotJson: 'reviewSnapshotJson',
|
||||
isPartialRetake: 'isPartialRetake',
|
||||
completedAt: 'completedAt'
|
||||
} as const
|
||||
|
|
@ -2090,19 +2106,10 @@ export type BatchPayload = {
|
|||
export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>
|
||||
export type DefaultPrismaClient = PrismaClient
|
||||
export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
|
||||
export type PrismaClientOptions = ({
|
||||
/**
|
||||
* Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`.
|
||||
*/
|
||||
adapter: runtime.SqlDriverAdapterFactory
|
||||
accelerateUrl?: never
|
||||
} | {
|
||||
/**
|
||||
* Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database.
|
||||
*/
|
||||
accelerateUrl: string
|
||||
adapter?: never
|
||||
}) & {
|
||||
/**
|
||||
* Options common to all variants of `PrismaClientOptions`, regardless of whether you connect to your database through a driver adapter or through Prisma Accelerate.
|
||||
*/
|
||||
export interface PrismaClientBaseOptions {
|
||||
/**
|
||||
* @default "colorless"
|
||||
*/
|
||||
|
|
@ -2189,6 +2196,56 @@ export type PrismaClientOptions = ({
|
|||
*/
|
||||
queryPlanCacheMaxSize?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* `PrismaClient` options for connecting to your database through Prisma Accelerate instead of a driver adapter.
|
||||
*
|
||||
* Learn more: https://pris.ly/d/accelerate
|
||||
*/
|
||||
export interface PrismaClientOptionsWithAccelerateUrl extends PrismaClientBaseOptions {
|
||||
/**
|
||||
* The Prisma Accelerate connection URL. Use this option to connect to your database through Prisma Accelerate instead of using a driver adapter to connect directly.
|
||||
*
|
||||
* Learn more: https://pris.ly/d/accelerate
|
||||
*/
|
||||
accelerateUrl: string
|
||||
adapter?: never
|
||||
}
|
||||
|
||||
/**
|
||||
* `PrismaClient` options for connecting to your database through a driver adapter. This is the common case in Prisma 7.
|
||||
*
|
||||
* Learn more: https://pris.ly/d/driver-adapters
|
||||
*/
|
||||
export interface PrismaClientOptionsWithAdapter extends PrismaClientBaseOptions {
|
||||
/**
|
||||
* A driver adapter that PrismaClient uses to connect to your database, such as the ones provided by `@prisma/adapter-pg`, `@prisma/adapter-libsql`, `@prisma/adapter-planetscale`, etc.
|
||||
*
|
||||
* A driver adapter is **required** unless you connect to your database through Prisma Accelerate (in which case use `accelerateUrl` instead).
|
||||
*
|
||||
* Learn more: https://pris.ly/d/driver-adapters
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* import { PrismaPg } from '@prisma/adapter-pg'
|
||||
* import { PrismaClient } from './generated/prisma/client'
|
||||
*
|
||||
* const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
||||
* const prisma = new PrismaClient({ adapter })
|
||||
* ```
|
||||
*/
|
||||
adapter: runtime.SqlDriverAdapterFactory
|
||||
accelerateUrl?: never
|
||||
}
|
||||
|
||||
/**
|
||||
* Options passed to the `PrismaClient` constructor.
|
||||
*
|
||||
* A driver adapter (or, alternatively, a Prisma Accelerate URL) is **required**. See {@link PrismaClientOptionsWithAdapter} and {@link PrismaClientOptionsWithAccelerateUrl} for the two variants. All other properties live in {@link PrismaClientBaseOptions} and are optional.
|
||||
*
|
||||
* Learn more about driver adapters: https://pris.ly/d/driver-adapters
|
||||
*/
|
||||
export type PrismaClientOptions = PrismaClientOptionsWithAccelerateUrl | PrismaClientOptionsWithAdapter
|
||||
export type GlobalOmitConfig = {
|
||||
class?: Prisma.ClassOmit
|
||||
deck?: Prisma.DeckOmit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue