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

Organizations have many events #21

Open
ketupia opened this issue Feb 26, 2025 · 0 comments
Open

Organizations have many events #21

ketupia opened this issue Feb 26, 2025 · 0 comments

Comments

@ketupia
Copy link
Owner

ketupia commented Feb 26, 2025

  1. Create an event resource
    The attributes are:
    name (:string) – The name of the event.
    description (:string) – A short description.
    startDate (:utc_datetime) – When the event starts.
    endDate (:utc_datetime) – When the event ends.
    location (:map) – The venue/location.
    virtual_url (:string) - the online meeting link for hybrid or online events
    eventStatus (:atom) – The event status (Scheduled, Postponed, etc.).
    eventAttendanceMode (:atom) – Whether it is in-person, online, or hybrid.
    image_url (:string) – Cover image URL.

relationships:
belongs_to organizer (Accounts.User)
belongs_to organization (Organizations.Organizations)

  1. Generate the default views
    mix ash_phoenix.gen.live --domain Kindkaboom.Organizations --resource Kindkaboom.Organizations.Event --resourceplural events

  2. Add has_many to Organization
    relationships do
    has_many :events, Kindkaboom.Organizations.Events

@ketupia ketupia converted this from a draft issue Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Ready
Development

No branches or pull requests

1 participant