Prisma migrate to Postgres
This commit is contained in:
parent
dbb9bd8476
commit
0291e6656e
5 changed files with 13 additions and 7 deletions
|
@ -49,8 +49,8 @@ const options: NextAuthOptions = {
|
|||
},
|
||||
},
|
||||
pages: {
|
||||
signIn: "/login",
|
||||
signOut: "/logout",
|
||||
signIn: "/signin",
|
||||
signOut: "/signout",
|
||||
// error: '/auth/error', // Error code passed in query string as ?error=
|
||||
// verifyRequest: '/auth/verify-request', // (used for check email message)
|
||||
// newUser: '/auth/new-user' // New users will be directed here on first sign in (leave the property out if not of interest)
|
||||
|
|
|
@ -22,6 +22,8 @@ export const HitScalarFieldEnumSchema = z.enum(['id','x','y','hit','user_GameId'
|
|||
|
||||
export const MoveScalarFieldEnumSchema = z.enum(['id','createdAt','index','type','x','y','orientation','user_game_id']);
|
||||
|
||||
export const QueryModeSchema = z.enum(['default','insensitive']);
|
||||
|
||||
export const SessionScalarFieldEnumSchema = z.enum(['id','sessionToken','userId','expires']);
|
||||
|
||||
export const ShipScalarFieldEnumSchema = z.enum(['id','size','variant','x','y','orientation','user_GameId']);
|
||||
|
@ -1898,6 +1900,7 @@ export const StringFilterSchema: z.ZodType<Prisma.StringFilter> = z.object({
|
|||
contains: z.string().optional(),
|
||||
startsWith: z.string().optional(),
|
||||
endsWith: z.string().optional(),
|
||||
mode: z.lazy(() => QueryModeSchema).optional(),
|
||||
not: z.union([ z.string(),z.lazy(() => NestedStringFilterSchema) ]).optional(),
|
||||
}).strict();
|
||||
|
||||
|
@ -1912,6 +1915,7 @@ export const StringNullableFilterSchema: z.ZodType<Prisma.StringNullableFilter>
|
|||
contains: z.string().optional(),
|
||||
startsWith: z.string().optional(),
|
||||
endsWith: z.string().optional(),
|
||||
mode: z.lazy(() => QueryModeSchema).optional(),
|
||||
not: z.union([ z.string(),z.lazy(() => NestedStringNullableFilterSchema) ]).optional().nullable(),
|
||||
}).strict();
|
||||
|
||||
|
@ -2011,6 +2015,7 @@ export const StringWithAggregatesFilterSchema: z.ZodType<Prisma.StringWithAggreg
|
|||
contains: z.string().optional(),
|
||||
startsWith: z.string().optional(),
|
||||
endsWith: z.string().optional(),
|
||||
mode: z.lazy(() => QueryModeSchema).optional(),
|
||||
not: z.union([ z.string(),z.lazy(() => NestedStringWithAggregatesFilterSchema) ]).optional(),
|
||||
_count: z.lazy(() => NestedIntFilterSchema).optional(),
|
||||
_min: z.lazy(() => NestedStringFilterSchema).optional(),
|
||||
|
@ -2028,6 +2033,7 @@ export const StringNullableWithAggregatesFilterSchema: z.ZodType<Prisma.StringNu
|
|||
contains: z.string().optional(),
|
||||
startsWith: z.string().optional(),
|
||||
endsWith: z.string().optional(),
|
||||
mode: z.lazy(() => QueryModeSchema).optional(),
|
||||
not: z.union([ z.string(),z.lazy(() => NestedStringNullableWithAggregatesFilterSchema) ]).optional().nullable(),
|
||||
_count: z.lazy(() => NestedIntNullableFilterSchema).optional(),
|
||||
_min: z.lazy(() => NestedStringNullableFilterSchema).optional(),
|
||||
|
|
|
@ -7,7 +7,7 @@ generator client {
|
|||
}
|
||||
|
||||
datasource db {
|
||||
provider = "mysql"
|
||||
provider = "postgres"
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
|
@ -17,13 +17,13 @@ model Account {
|
|||
type String
|
||||
provider String
|
||||
providerAccountId String @map("provider_account_id")
|
||||
refresh_token String? @db.Text
|
||||
access_token String? @db.Text
|
||||
refresh_token String?
|
||||
access_token String?
|
||||
expires_at Int?
|
||||
ext_expires_in Int?
|
||||
token_type String?
|
||||
scope String?
|
||||
id_token String? @db.Text
|
||||
id_token String?
|
||||
session_state String?
|
||||
oauth_token_secret String?
|
||||
oauth_token String?
|
||||
|
@ -49,7 +49,7 @@ model User {
|
|||
name String?
|
||||
email String? @unique
|
||||
emailVerified DateTime? @map("email_verified")
|
||||
image String? @db.Text
|
||||
image String?
|
||||
createdAt DateTime @default(now()) @map(name: "created_at")
|
||||
updatedAt DateTime @updatedAt @map(name: "updated_at")
|
||||
games User_Game[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue