How to add "created_by" and "updated_by" columns to tables #7180
mbalslow
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
Update: The default value should be set to |
Beta Was this translation helpful? Give feedback.
0 replies
-
how do you diffirentiat between created_by and updated by |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It might not be clearly stated anywhere, but you can actually use the "auth.uid()" in your default values on columns and in DB functions similarly to how you would use them in RLS policies.
With this, you can quite easily setup logic to make "created_by" and "updated_by" columns:
Beta Was this translation helpful? Give feedback.
All reactions