As part of work towards #1712, I've opened this issue to represent the relationship between a personal access token and the repositor(ies) or organisation(s) it is scoped to.
As noted in this issue, XORM doesn't support foreign keys. My initial thought was to add an AccessTokenID field to the Repository and Organisation models, but maybe that's not the best choice 😇
Feedback/Review welcome 🙏
Edit: This issue is meant to be a backend focused discussion. UI/UX discussion for this is #50
As part of work towards [#1712](https://codeberg.org/forgejo/forgejo/issues/1712), I've opened this issue to represent the relationship between a personal access token and the repositor(ies) or organisation(s) it is scoped to.
As noted in [this issue](https://gitea.com/xorm/xorm/issues/73), XORM doesn't support foreign keys. My initial thought was to add an `AccessTokenID` field to the `Repository` and `Organisation` models, but maybe that's not the best choice 😇
Feedback/Review welcome 🙏
Edit: This issue is meant to be a backend focused discussion. UI/UX discussion for this is [#50](https://codeberg.org/forgejo/design/issues/50)