Answer the question
In order to leave comments, you need to log in
How to do an INSERT in a model?
Started writing in NestJS and decided to use postgres and prisma ( https://www.prisma.io/ ).
Here is the model:
model User {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
login String @default(autoincrement())
password String?
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question