kcjpop / vd

https://tudien.io
3 stars 0 forks source link

Flashcard: Auto-create a default flashcard set for new users #61

Open kcjpop opened 2 years ago

kcjpop commented 2 years ago

What

Let's create a new flashcard set called "Default set" (Bộ mặc định) for every new users. This can be done by sending a request to create a new set after confirming user's email, or creating a SQL trigger in database.

DangMin commented 2 years ago

I added trigger function in supabase sql so it will add Default Set set to the newly created user.

Functions name: create_default_flashcard_set (link) Trigger name: create_default_set_for_new_user (link)