© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
9 replies
Argzon

How to create a new entry on the user_logs table on each user login?

Hi everybody. I have a table named user_logs with columns: user_id, first_name, last_name, email, last_login, ip_address. I need to create a function that will insert auth user data to this table on each login. Please check the attached image of what I'm trying to achieve. Thank you in advance 😊

***
btw: im using Nextjs and cookies for login session
accounts_table.png
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to create a bucket folder for each user in the profiles table?
SupabaseSSupabase / help-and-questions
4y ago
Unable to Create New User
SupabaseSSupabase / help-and-questions
3y ago
Create new table on row insert
SupabaseSSupabase / help-and-questions
4y ago
How to create an entry in database when user signs in
SupabaseSSupabase / help-and-questions
4y ago