How to Automatically Create Default Values in a Related Table on User Signup?
Version: 0.13.2
I'm building a project using Wasp-lang where I need to automatically create default entries in a Priority table whenever a user signs up via Google Auth (no custom fields). Specifically, when a new user is registered, I want to insert predefined rows in the Priority table linked to that user.
What is the recommended approach for implementing this logic in Wasp-lang following best practices? Should I use a signup hook, or is there another method I should consider?
Any advice on structuring this feature would be greatly appreciated!
Recent Announcements
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
W
Wasp
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.