Lambda-School-Labs/Labs26-StorySquad-BE-TeamB

View on GitHub
data/seeds/011_Members.js

Summary

Maintainability
A
0 mins
Test Coverage
const members = [0,0,0,0,0,0,0,0].map((i, idx) => ({
  TeamID: `${Math.floor((idx + 2) / 2)}`,
  SubmissionID: `${idx + 1}`,
}));

exports.seed = function (knex) {
  // Inserts seed entries
  return knex('Members').insert(members);
};