diff --git a/leaky-ships/pages/api/auth/[...nextauth].ts b/leaky-ships/pages/api/auth/[...nextauth].ts index c5872ec..00da0f3 100644 --- a/leaky-ships/pages/api/auth/[...nextauth].ts +++ b/leaky-ships/pages/api/auth/[...nextauth].ts @@ -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) diff --git a/leaky-ships/pages/login.tsx b/leaky-ships/pages/signin.tsx similarity index 100% rename from leaky-ships/pages/login.tsx rename to leaky-ships/pages/signin.tsx diff --git a/leaky-ships/pages/logout.tsx b/leaky-ships/pages/signout.tsx similarity index 100% rename from leaky-ships/pages/logout.tsx rename to leaky-ships/pages/signout.tsx diff --git a/leaky-ships/prisma/generated/zod/index.ts b/leaky-ships/prisma/generated/zod/index.ts index 3063256..c7da076 100644 --- a/leaky-ships/prisma/generated/zod/index.ts +++ b/leaky-ships/prisma/generated/zod/index.ts @@ -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 = 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 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 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 QueryModeSchema).optional(), not: z.union([ z.string(),z.lazy(() => NestedStringNullableWithAggregatesFilterSchema) ]).optional().nullable(), _count: z.lazy(() => NestedIntNullableFilterSchema).optional(), _min: z.lazy(() => NestedStringNullableFilterSchema).optional(), diff --git a/leaky-ships/prisma/schema.prisma b/leaky-ships/prisma/schema.prisma index 0114066..9cde5db 100644 --- a/leaky-ships/prisma/schema.prisma +++ b/leaky-ships/prisma/schema.prisma @@ -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[]