plaZma
plaZma
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
Oh well. This might cause issues later but we'll see. Thanks for the help ig
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
what's really strange is it was working in my dev environment even when that wasnt commented out
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
no clue why that was the fix - i dont really know what im doing here
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
and it works
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
so now my schema is:
// Necessary for Next auth
model Account {
id String @id @default(cuid())
userId String
type String
provider String
providerAccountId String
refresh_token String? @db.Text
access_token String? @db.Text
expires_at Int?
token_type String?
scope String?
id_token String? // @db.Text
session_state String?
user User @relation(fields: [userId], references: [id], onDelete: Cascade)

@@unique([provider, providerAccountId])
}

model Session {
id String @id @default(cuid())
sessionToken String @unique
userId String
expires DateTime
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
}

model User {
id String @id @default(cuid())
name String?
email String? @unique
emailVerified DateTime?
image String?
accounts Account[]
sessions Session[]
posts Post[]
}

model VerificationToken {
identifier String
token String @unique
expires DateTime

@@unique([identifier, token])
}
// Necessary for Next auth
model Account {
id String @id @default(cuid())
userId String
type String
provider String
providerAccountId String
refresh_token String? @db.Text
access_token String? @db.Text
expires_at Int?
token_type String?
scope String?
id_token String? // @db.Text
session_state String?
user User @relation(fields: [userId], references: [id], onDelete: Cascade)

@@unique([provider, providerAccountId])
}

model Session {
id String @id @default(cuid())
sessionToken String @unique
userId String
expires DateTime
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
}

model User {
id String @id @default(cuid())
name String?
email String? @unique
emailVerified DateTime?
image String?
accounts Account[]
sessions Session[]
posts Post[]
}

model VerificationToken {
identifier String
token String @unique
expires DateTime

@@unique([identifier, token])
}
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
instead of uncommented
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
i was browsing other people's posts abt this problem and one person had their schema and it was commented out
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
id_token String? // @db.Text
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
and now it works
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
i literally just commented out one thing and pushed it
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
oh shoot. i may have just fixed it
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
sorry what's gh? im a total noob D:
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
This is my schema as well.
generator client {
provider = "prisma-client-js"
}

datasource db {
provider = "mysql"
// NOTE: When using mysql or sqlserver, uncomment the @db.Text annotations in model Account below
// Further reading:
// https://next-auth.js.org/adapters/prisma#create-the-prisma-schema
// https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#string
url = env("DATABASE_URL")
relationMode = "prisma"
}

model Post {
id Int @id @default(autoincrement())
name String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

createdBy User @relation(fields: [createdById], references: [id])
createdById String

@@index([name])
}

// Necessary for Next auth
model Account {
id String @id @default(cuid())
userId String
type String
provider String
providerAccountId String
refresh_token String? @db.Text
access_token String? @db.Text
expires_at Int?
token_type String?
scope String?
id_token String? @db.Text
session_state String?
user User @relation(fields: [userId], references: [id], onDelete: Cascade)

@@unique([provider, providerAccountId])
}

model Session {
id String @id @default(cuid())
sessionToken String @unique
userId String
expires DateTime
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
}

model User {
id String @id @default(cuid())
name String?
email String? @unique
emailVerified DateTime?
image String?
accounts Account[]
sessions Session[]
posts Post[]
}

model VerificationToken {
identifier String
token String @unique
expires DateTime

@@unique([identifier, token])
}
generator client {
provider = "prisma-client-js"
}

datasource db {
provider = "mysql"
// NOTE: When using mysql or sqlserver, uncomment the @db.Text annotations in model Account below
// Further reading:
// https://next-auth.js.org/adapters/prisma#create-the-prisma-schema
// https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#string
url = env("DATABASE_URL")
relationMode = "prisma"
}

model Post {
id Int @id @default(autoincrement())
name String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

createdBy User @relation(fields: [createdById], references: [id])
createdById String

@@index([name])
}

// Necessary for Next auth
model Account {
id String @id @default(cuid())
userId String
type String
provider String
providerAccountId String
refresh_token String? @db.Text
access_token String? @db.Text
expires_at Int?
token_type String?
scope String?
id_token String? @db.Text
session_state String?
user User @relation(fields: [userId], references: [id], onDelete: Cascade)

@@unique([provider, providerAccountId])
}

model Session {
id String @id @default(cuid())
sessionToken String @unique
userId String
expires DateTime
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
}

model User {
id String @id @default(cuid())
name String?
email String? @unique
emailVerified DateTime?
image String?
accounts Account[]
sessions Session[]
posts Post[]
}

model VerificationToken {
identifier String
token String @unique
expires DateTime

@@unique([identifier, token])
}
22 replies