Back

How do I "extend" a collection?

  • 0
  • Databases
  • Flutter
  • Cloud
havoc
24 Jun, 2024, 10:32

Hi everyone!

I have two groups of people that I need to enter into a database. The first collection, let's call it attendees, has the following attributes: lastName, firstName, emailAdd, registrationDate. The second collection, let's call it volunteers, has the same attributes as that of the attendees collection but with additional attributes: committee, volunteerDate, contactNumber.

Can I simply "extend" the attendees collection, adding the new attributes to create the volunteers collection? If so, how? Or would it be better to just have a collection containing all the attributes and just have an additional atteibute to differentiate an attendee from a volunteer?

Thanks for your insights.

TL;DR
You can extend the attendees collection to create the volunteers collection by adding the new attributes. Alternatively, you can have a single collection with all attributes and include an additional attribute to differentiate between attendees and volunteers.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more