DevPanda
DevPanda
Explore posts from servers
PPrisma
Created by Sudhanshu on 10/8/2024 in #help-and-questions
Can I use Prisma ORM in a JavaScript project?
you must trust your intellisense 🙂
7 replies
PPrisma
Created by Sudhanshu on 10/8/2024 in #help-and-questions
Can I use Prisma ORM in a JavaScript project?
@Sudhanshu
7 replies
PPrisma
Created by Sudhanshu on 10/8/2024 in #help-and-questions
Can I use Prisma ORM in a JavaScript project?
you can use prisma in js projects too
7 replies
PPrisma
Created by DevPanda on 9/24/2024 in #help-and-questions
why he say that is missing? Its come from a relation
@RaphaelEtim thx for your fast Answer. The code still worked until yesterday
4 replies
PPrisma
Created by DevPanda on 9/24/2024 in #help-and-questions
why he say that is missing? Its come from a relation
model Character {
id String @id @default(auto()) @map("_id") @db.ObjectId

accountId String @db.ObjectId
inGame Boolean @default(false)

isActive Boolean @default(true)
inActiveReason String?

firstName String
lastName String
birthdate String
dimension Int @default(0)
playtime Int @default(0)
lastPosition Json?
lastRotation Json?
hasTutorialFinished Boolean @default(false)
health Int @default(1000)
armour Int @default(0)
food Int @default(100)
drink Int @default(100)
mana Int @default(100)
isDeath Boolean @default(false)
isPermaDeath Boolean @default(false)
permaDeathDate DateTime?
permaDeathReason String?

gender String?
/// [HeadBlendData]
headBlendData Json?
faceFeatures Json[] @default([])
headOverlays Json[] @default([])
clothes Json[] @default([])
props Json[] @default([])
hairColor Int @default(0)
hairHighlightColor Int @default(0)
eyeColor Int @default(0)
decorations Json[] @default([])
charCreatorDone Boolean @default(false)

createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

callNumbers CharacterCallNumber[]

account Account @relation(fields: [accountId], references: [id])

@@unique([firstName, lastName])
@@map("characters")
}
model Character {
id String @id @default(auto()) @map("_id") @db.ObjectId

accountId String @db.ObjectId
inGame Boolean @default(false)

isActive Boolean @default(true)
inActiveReason String?

firstName String
lastName String
birthdate String
dimension Int @default(0)
playtime Int @default(0)
lastPosition Json?
lastRotation Json?
hasTutorialFinished Boolean @default(false)
health Int @default(1000)
armour Int @default(0)
food Int @default(100)
drink Int @default(100)
mana Int @default(100)
isDeath Boolean @default(false)
isPermaDeath Boolean @default(false)
permaDeathDate DateTime?
permaDeathReason String?

gender String?
/// [HeadBlendData]
headBlendData Json?
faceFeatures Json[] @default([])
headOverlays Json[] @default([])
clothes Json[] @default([])
props Json[] @default([])
hairColor Int @default(0)
hairHighlightColor Int @default(0)
eyeColor Int @default(0)
decorations Json[] @default([])
charCreatorDone Boolean @default(false)

createdAt DateTime @default(now())
updatedAt DateTime @updatedAt

callNumbers CharacterCallNumber[]

account Account @relation(fields: [accountId], references: [id])

@@unique([firstName, lastName])
@@map("characters")
}
const char = await DBService.db.character.create({
data: {
...charData,
accountId: player.accountId,
charCreatorDone: true
}
})
const char = await DBService.db.character.create({
data: {
...charData,
accountId: player.accountId,
charCreatorDone: true
}
})
4 replies
PPrisma
Created by ranco on 9/17/2024 in #help-and-questions
Help with Prisma schema
@ranco
11 replies
PPrisma
Created by ranco on 9/17/2024 in #help-and-questions
Help with Prisma schema
The problem is that it wants to describe a field when it is created, but this is automatically generated by the relation. Just leave out members in the create function and you're done
11 replies
PPrisma
Created by ranco on 9/17/2024 in #help-and-questions
Help with Prisma schema
@ranco
11 replies
PPrisma
Created by ranco on 9/17/2024 in #help-and-questions
Help with Prisma schema
show us the code snipped from create
11 replies
PPrisma
Created by Spctr on 9/17/2024 in #help-and-questions
ERROR P1001: Can't reach database server
when not, check your firewall maybe
14 replies
PPrisma
Created by Spctr on 9/17/2024 in #help-and-questions
ERROR P1001: Can't reach database server
do you try it from the same system?
14 replies
PPrisma
Created by Spctr on 9/17/2024 in #help-and-questions
ERROR P1001: Can't reach database server
@Spctr
14 replies
PPrisma
Created by Spctr on 9/17/2024 in #help-and-questions
ERROR P1001: Can't reach database server
is your connection url correct?
14 replies
PPrisma
Created by DevPanda on 7/21/2024 in #help-and-questions
At what point is a query used up from the 60k
okay ty 🙂
7 replies
PPrisma
Created by DevPanda on 7/21/2024 in #help-and-questions
At what point is a query used up from the 60k
okay, thanks. What happens if I book a package with 1 million queries? Is that until it is empty or for a month?
7 replies
PPrisma
Created by DevPanda on 6/13/2024 in #help-and-questions
Own local Caching?
then sorry for pinging
11 replies
PPrisma
Created by DevPanda on 6/13/2024 in #help-and-questions
Own local Caching?
oh okay
11 replies
PPrisma
Created by DevPanda on 6/13/2024 in #help-and-questions
Own local Caching?
My Reposone to that: We'd also love if you could describe your issue and comment on a proposed API.
11 replies
PPrisma
Created by DevPanda on 6/13/2024 in #help-and-questions
Own local Caching?
@Jon Harrell
11 replies
PPrisma
Created by DevPanda on 6/13/2024 in #help-and-questions
Own local Caching?
I have decided to use prisma-cache-nosql. However, I would be pleased if you could come up with something directly, e.g. Memory Cache or RedisCache
11 replies