Skip to content
Discussion options

You must be logged in to vote

What exactly are you trying to achieve? The existing Prisma level functions like uuid() or cuid() are pretty deeply embedded - and actually run on the Query Engine side (and not the database). If you have something that you could store as a Postgres function, you can already use those in as the default by defining them as a string default. Is that what you are looking for?

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
10 replies
@janpio
Comment options

@akshayvadher
Comment options

@GermanJablo
Comment options

@ruheni
Comment options

@AndreyMarchuk
Comment options

Answer selected by grimen
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants