What is user_org_id
for?
#3360
-
Keeping in mind User-Org is Many-to-One relation, I've made some testing. In Gitea I created an Organization Looking in database:
I wonder, what is the purpose of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Every user also has an org model in the |
Beta Was this translation helpful? Give feedback.
Every user also has an org model in the
orgs
table to simplify features like user secrets.This column links the corresponding org to the user.
In your case, user
usr
(ID 2) has the org with ID 2, thususer_org_id
is 2 too.