Skip to content

Question: Can instrospection change table names to something else? like camelCased? #1925

Answered by pantharshit00
hcharley asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can change the introspected table names using the @@map directive.

Example:

model User {
  id   String @id @default(cuid())
  name String
  @@map("user")
}

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ryands17
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@nikolasburk
Comment options

@nikolasburk
Comment options

@hcharley
Comment options

@nikolasburk
Comment options

@hcharley
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants