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

Allow users to participate in multiple events at once #80

Closed
alexrandaccio opened this issue Nov 10, 2021 · 0 comments · Fixed by #79
Closed

Allow users to participate in multiple events at once #80

alexrandaccio opened this issue Nov 10, 2021 · 0 comments · Fixed by #79
Assignees
Labels
enhancement New feature or request

Comments

@alexrandaccio
Copy link
Member

Is your feature request related to a problem? Please describe.
Formerly, the Delegate model extended the default User class provided by Django via a OneToOneField. Each user's voice credit balance was recorded in the credit_balance field of their Delegate object.

However, we want users to be able to participate in more than one event on the app. This means they have to have a separate voice credit budget for each event. In order to implement this, we need a new database model.

Describe the solution you'd like
New structure: each user has one Profile object that extends the User class. For each event that a user is invited to, a new Delegate object is created to record their voice credit balance for that event. See below:

User (holds default Django login info)

  • email
  • password
    etc.

Profile (holds other account info necessary for our app)

  • user (OneToOneField)
  • public_username
  • is_verified
  • oauth_token
  • groups_managed (for group admins)
    etc.

Delegate (holds account info related to one specific event the user is participating in)

  • profile (ForeignKeyField)
  • event (ForeignKeyField)
  • credit_balance
    etc.
@alexrandaccio alexrandaccio added the enhancement New feature or request label Nov 10, 2021
@alexrandaccio alexrandaccio self-assigned this Nov 10, 2021
@alexrandaccio alexrandaccio linked a pull request Dec 2, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant