Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve group data model #154

Open
signebedi opened this issue Apr 5, 2024 · 1 comment
Open

Improve group data model #154

signebedi opened this issue Apr 5, 2024 · 1 comment

Comments

@signebedi
Copy link
Owner

It may be worth adding a last_edited timestamp field, and a last_edited_by foreign key > User.id field. This enables slightly better audit trail. Cf. all related transactions will be stored in the transaction log.

@signebedi
Copy link
Owner Author

However, deleting a group causes the group to be removed from users. I think maybe a better way handle deletion is to maybe add an is_deleted bool field, or to simply strip all permissions from a group on-delete. Or, both. Then, if a user is a member of a group that is deleted, it will show up on their profile, but we can add a (deleted) designation to show the group is inactive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant