#help creating a prisma query for an api route

11 messages · Page 1 of 1 (latest)

onyx geodeBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

north relic
#

I didn’t understand your use case, can you please elaborate?

drifting kettle
#

figured it out

#

wait no

drifting kettle
#
model accounts {
  id Int @id @default(autoincrement()) @unique
  email String @unique
  password String
  activated Boolean @default(false)
  lifespan Int
  activation_code String @unique
  builds builds[]
}

model builds {
  id Int @id @default(autoincrement()) @unique
  handler String
  name String
  date_created Int
  data String
  account_id Int @unique
  account accounts @relation(fields: [account_id], references: [id])
}
#

why is it an

#

oh

#

wait

#

im

#

fucking