cosmicds / cds-api

API for accessing the CosmicDS database
GNU General Public License v3.0
0 stars 3 forks source link

Endpoint for roster data #10

Closed Carifio24 closed 2 years ago

Carifio24 commented 2 years ago

Endpoint for roster data

This PR adds two new endpoints:

This PR also creates associations between some tables, in src/associations.ts. Basically, this is a way of telling Sequelize about the associations that we've created using join tables. I've used this in these roster-info queries, and this should help write complicated queries more easily in Sequelize in the future.