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

how should we design the DB? #9

Open
wdiechmann opened this issue Nov 17, 2020 · 2 comments
Open

how should we design the DB? #9

wdiechmann opened this issue Nov 17, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@wdiechmann
Copy link
Collaborator

I'm taking a stab at it - and this is the first draft

DB design

This is where we're sketching out the information which Ticket
will persist for us.

As a user [contact with credentials] I would like to see what tickets [events] my coworkers [contacts belonging to contact] and I have.

As a participating scout [contact with credentials] I'd like to be able to comment [post belonging to a post] on a comment [post] where someone [contact] suggests that I [contact belonging to event] should accept responsibility [with role "delegated_to"] for a ticket labeled 'Åbningslejrbål' [event]

Core Elements

  • event
  • contact
  • post

We could totally abstract this away by adding

  • event

    • id
    • resource_id
    • ...
  • contact

    • id
    • resource_id
    • ...
  • post

    • id
    • resource_id
    • ...
  • resource

    • id
    • ancestors
  • resource_events

    • resource_id
    • event_id
  • resource_contacts

    • resource_id
    • contact_id
  • resource_posts

    • resource_id
    • post_id
@wdiechmann wdiechmann added the enhancement New feature or request label Nov 17, 2020
@JacobArrow
Copy link
Collaborator

:D

@wdiechmann
Copy link
Collaborator Author

wdiechmann commented Nov 17, 2020 via email

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

No branches or pull requests

2 participants