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
DIAdiscord.js - Imagine an app
Created by DevPanda on 6/26/2024 in #djs-questions
Why i got error by Embeds?
thanks that was it
9 replies
DIAdiscord.js - Imagine an app
Created by DevPanda on 6/26/2024 in #djs-questions
Why i got error by Embeds?
i try it
9 replies
DIAdiscord.js - Imagine an app
Created by DevPanda on 6/26/2024 in #djs-questions
Why i got error by Embeds?
oh
9 replies
DIAdiscord.js - Imagine an app
Created by DevPanda on 6/26/2024 in #djs-questions
Why i got error by Embeds?
What's your exact discord.js npm list discord.js and Node Version v20.13.1
Legend: production dependency, optional only, dev only

[email protected] C:\Users\devpanda\IdeaProjects\discordbot-eternal

dependencies:
discord.js 14.15.3
Legend: production dependency, optional only, dev only

[email protected] C:\Users\devpanda\IdeaProjects\discordbot-eternal

dependencies:
discord.js 14.15.3
9 replies
PPrisma
Created by DevPanda on 6/13/2024 in #help-and-questions
Own local Caching?
then sorry for pinging
11 replies