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

Events (how to attach date-related data to any item?) #280

Open
nelsonic opened this issue Jul 1, 2019 · 0 comments
Open

Events (how to attach date-related data to any item?) #280

nelsonic opened this issue Jul 1, 2019 · 0 comments
Labels
discuss Share your constructive thoughts on how to make progress with this issue enhancement New feature or enhancement of existing functionality epic A feature idea that is large enough to require a sprint (5 days) or more and has smaller sub-issues. good first issue help wanted If you can help make progress with this issue, please comment! needs-ui A feature idea that needs UI in order to be discussed/built. question A question needs to be answered before progress can be made on this issue technical A technical issue that requires understanding of the code, infrastructure or dependencies

Comments

@nelsonic
Copy link
Member

nelsonic commented Jul 1, 2019

Many items on several kinds of list can have date-time related data. e.g:

  • a task that has a deadline. SELECT * FROM events WHERE item_id=123
  • a checklist for a morning routine that reoccurs once each week day.
  • a reminder to send a birthday card 3 days before a person's birthday. 😉

The following is the outline of the schema I have in mind: (definitely not complete!)

  • event - when an item has dates & times associated.

    • id: Int
    • item_id: Int (FK item.id)
    • kind: Int (FK event_kind.id)
    • start: NaiveDateTime
    • end: NaiveDateTime
    • frequency: Int (FK event_frequency.id)
  • event_kind

    • name: String
      • "deadline"
      • "meeting"
      • "reminder"
      • "class"
  • event_frequency

    • id: Int
    • description: String
      • "once" - if an event is a one-off and does not repeat.
      • "hourly" -
        • "every-waking-hour" - e.g: "stand up from your desk every hour"
      • "morning-and-night"
      • "daily"
      • "week-days"
      • "weekends"
      • "weekly"
      • "monthly"
      • "quarterly"
      • "annually"
      • "custom"
        • "First Tuesday of the month"
  • event_invitees the people who are invited/required to attend an event

Contributions/discussion very much wanted/encouraged!

@nelsonic nelsonic added enhancement New feature or enhancement of existing functionality help wanted If you can help make progress with this issue, please comment! good first issue question A question needs to be answered before progress can be made on this issue labels Jul 1, 2019
@nelsonic nelsonic transferred this issue from dwyl/mvp Jul 19, 2022
@nelsonic nelsonic added discuss Share your constructive thoughts on how to make progress with this issue technical A technical issue that requires understanding of the code, infrastructure or dependencies epic A feature idea that is large enough to require a sprint (5 days) or more and has smaller sub-issues. needs-ui A feature idea that needs UI in order to be discussed/built. labels Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Share your constructive thoughts on how to make progress with this issue enhancement New feature or enhancement of existing functionality epic A feature idea that is large enough to require a sprint (5 days) or more and has smaller sub-issues. good first issue help wanted If you can help make progress with this issue, please comment! needs-ui A feature idea that needs UI in order to be discussed/built. question A question needs to be answered before progress can be made on this issue technical A technical issue that requires understanding of the code, infrastructure or dependencies
Projects
None yet
Development

No branches or pull requests

1 participant