-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
1 addition
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,8 @@ | ||
/* eslint-disable no-unused-vars */ | ||
// import initialProf from '../../server/initial-data/example1-teacher'; | ||
// import initialClassroom from '../../server/initial-data/example1-classroom'; | ||
// import initialStudent from '../../server/initial-data/example1-student'; | ||
|
||
/** | ||
* Create the initial data of the system | ||
*/ | ||
export default function addInitialData(server) { | ||
// const Teacher = server.models.Teacher; | ||
// const Classroom = server.models.Classroom; | ||
// const Student = server.models.Student; | ||
|
||
// const createTeacher = () => { | ||
// return Teacher.create(initialProf); | ||
// }; | ||
// const createStudent = teacher => { | ||
// initialStudent.teacherId = teacher.id; | ||
// return Student.create(initialStudent) | ||
// .then(student => ({teacher, student})); | ||
// }; | ||
// const createClassroom = ({student, teacher}) => { | ||
// initialClassroom.studentId = student.id; | ||
// initialClassroom.teacherId = teacher.id; | ||
// return Classroom.create(initialClassroom).then(classroom => ({ | ||
// teacher, | ||
// student, | ||
// classroom, | ||
// })); | ||
// }; | ||
|
||
// return createTeacher() | ||
// .then(createStudent) | ||
// .then(createClassroom); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters