`@default(crypt(genSaltSync(10), ""))` GitHub copi...
# orm-help
d
@default(crypt(genSaltSync(10), ""))
GitHub copilot suggested that when defining a model and I want to know if it is possible. I have searched and I can't find an answer.
n
Hey 👋 These are the only valid attribute functions that are allowed. The closest thing I can find is using
db_generated
with
gen_random_uuid()
function by enabling
pgcrypto
postgres extension as mentioned here
d
Okay. Thanks