#Is there a way to "pre-seed" a database table?

3 messages · Page 1 of 1 (latest)

magic sigil
#

For example, I'd like to populate a table with user roles and their descriptions on database creation based on an exported array of objects. I can only think of creating a script and running that against my DB but I was thinking there might be something similar to seed.ts but for production which I'm somehow missing. Thanks!

shadow heart
magic sigil
#

Thank you! I missed that!