98 lines
1.9 KiB
JavaScript
98 lines
1.9 KiB
JavaScript
exports.seed = function(knex) {
|
|
return knex('sessions').truncate()
|
|
.then(function () {
|
|
return knex('sessions').insert([
|
|
{
|
|
"id": 1,
|
|
"user_id": 1,
|
|
"bed_time": "2019-07-05 22:10:25",
|
|
"wake_time": "2019-07-06 07:10:25",
|
|
"wake_mood": 3,
|
|
"day_mood": 3,
|
|
"bed_tiredness": 3
|
|
},
|
|
{
|
|
"id": 2,
|
|
"user_id": 1,
|
|
"bed_time": "2019-07-06 23:50:25",
|
|
"wake_time": "2019-07-07 07:30:25",
|
|
"wake_mood": 4,
|
|
"day_mood": 4,
|
|
"bed_tiredness": 4
|
|
},
|
|
{
|
|
"id": 3,
|
|
"user_id": 1,
|
|
"bed_time": "2019-07-07 23:50:25",
|
|
"wake_time": "2019-07-08 07:30:25",
|
|
"wake_mood": 4,
|
|
"day_mood": 4,
|
|
"bed_tiredness": 4
|
|
},
|
|
{
|
|
"id": 4,
|
|
"user_id": 1,
|
|
"bed_time": "2019-07-09 01:50:25",
|
|
"wake_time": "2019-07-09 08:30:25",
|
|
"wake_mood": 2,
|
|
"day_mood": 3,
|
|
"bed_tiredness": 4
|
|
},
|
|
{
|
|
"id": 5,
|
|
"user_id": 1,
|
|
"bed_time": "2019-07-09 22:00:25",
|
|
"wake_time": "2019-07-10 07:30:25",
|
|
"wake_mood": 5,
|
|
"day_mood": 3,
|
|
"bed_tiredness": 4
|
|
},
|
|
{
|
|
"id": 6,
|
|
"user_id": 1,
|
|
"bed_time": "2019-07-10 23:00:25",
|
|
"wake_time": "2019-07-11 06:30:25",
|
|
"wake_mood": 3,
|
|
"day_mood": 4,
|
|
"bed_tiredness": 5
|
|
},
|
|
{
|
|
"id": 7,
|
|
"user_id": 1,
|
|
"bed_time": "2019-07-11 23:55:25",
|
|
"wake_time": "2019-07-12 08:30:25",
|
|
"wake_mood": 2,
|
|
"day_mood": 3,
|
|
"bed_tiredness": 3
|
|
},
|
|
{
|
|
"id": 8,
|
|
"user_id": 1,
|
|
"bed_time": "2019-07-12 23:05:25",
|
|
"wake_time": "2019-07-13 07:30:25",
|
|
"wake_mood": 4,
|
|
"day_mood": 5,
|
|
"bed_tiredness": 4
|
|
},
|
|
{
|
|
"id": 9,
|
|
"user_id": 1,
|
|
"bed_time": "2019-07-14 00:15:25",
|
|
"wake_time": "2019-07-14 06:30:25",
|
|
"wake_mood": 1,
|
|
"day_mood": 4,
|
|
"bed_tiredness": 5
|
|
},
|
|
{
|
|
"id": 10,
|
|
"user_id": 1,
|
|
"bed_time": "2019-07-14 21:15:25",
|
|
"wake_time": "2019-07-15 08:30:25",
|
|
"wake_mood": 5,
|
|
"day_mood": 5,
|
|
"bed_tiredness": 1
|
|
}
|
|
]);
|
|
});
|
|
};
|