Skip to content
This repository was archived by the owner on Jul 16, 2020. It is now read-only.

Users: record membership start and end #11

@jvanloov

Description

@jvanloov

Find start/end dates based on payment of membership fees. Possible implementation:

  • Keep a "Membership period" table that has user_id, start and end date, and a "closed" field
  • When the first membership payment is received, create a record with startdate as the current month. The end date is set to startdate + (amount/monthly_fee) months
  • When a new payment is received, bump the enddate with (amount/monthly_fee) months
  • Every month (?), run a job to check the current month with the end dates of all users. If the current month is past the end date for a user, set the "closed" field, indicating that the user is not a member any more. New payments will create a new record in this table, for that user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions