26 lines
428 B
JavaScript
26 lines
428 B
JavaScript
exports.seed = function(knex) {
|
|
return knex('sessions').truncate()
|
|
.then(function () {
|
|
return knex('sessions').insert([
|
|
{
|
|
"id": 1,
|
|
"user_id": 1,
|
|
"bed_time": "",
|
|
"wake_time": "",
|
|
"wake_mood": 3,
|
|
"day_mood": 3,
|
|
"bed_tiredness": 3
|
|
},
|
|
{
|
|
"id": 2,
|
|
"user_id": 1,
|
|
"bed_time": "",
|
|
"wake_time": "",
|
|
"wake_mood": 4,
|
|
"day_mood": 4,
|
|
"bed_tiredness": 4
|
|
}
|
|
]);
|
|
});
|
|
};
|