cosmicds / cds-api

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

Updates to account for two sample data points #61

Closed Carifio24 closed 1 year ago

Carifio24 commented 1 year ago

This PR contains updates to account for the database update that allows for two sample data points. In the database, this is done by adding a measurement_number field, which is a MySQL ENUM that can take the values "first" and "second" (the primary key has been updated to be (student_id, galaxy_id, measurement_number). These commits update the SQL definition accordingly, as well as the Sequelize model, and add/modify some relevant sample measurement endpoints.