fossasia / open-event-server

The Open Event Organizer Server to Manage Events https://test-api.eventyay.com
https://api.eventyay.com
GNU General Public License v3.0
2.96k stars 1.89k forks source link

Create event model and its children #9123

Open poju3185 opened 5 months ago

poju3185 commented 5 months ago

Fixes #9104

Short description of what this resolves:

Add the following models:

I add these models by following the schema here.

Checklist

poju3185 commented 5 months ago

This also fixes #9106

Shivangi-ch commented 5 months ago

I think instead of creating a separate app for each model, a better way would be to group functionally related models in the same app. For example, models for event_sub_types, event_types, events, etc can be put in the same app instead of separate apps. Having a separate app for each model would make the code structure messy and difficult to maintain.

One other way would be to make a models module and add all the models inside it.

@hongquan @marcoag what do you think which structure will work better for us?

poju3185 commented 5 months ago

Hi @Shivangi-ch, thanks for your reply. I use different apps because I saw the old models are all in seperate apps. If everyone agree that we should put some of them in the same app, I am willing to do so.