{"size": 781, "ext": "js", "max_stars_repo_path": "seeds/09_tasks_table.js", "max_stars_repo_name": "Lixpi/DEPRECATED-TBD-Lixpi-lists-API", "max_stars_repo_stars_event_min_datetime": "2018-11-06T02:40:48.000Z", "max_stars_repo_stars_event_max_datetime": "2020-08-04T00:14:24.000Z", "max_issues_repo_path": "seeds/09_tasks_table.js", "max_issues_repo_name": "Lixpi/DEPRECATED-TBD-Lixpi-lists-API", "max_issues_repo_issues_event_min_datetime": "2018-09-19T02:06:56.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-02T10:36:11.000Z", "max_forks_repo_path": "seeds/09_tasks_table.js", "max_forks_repo_name": "Lixpi/DEPRECATED-TBD-Lixpi-lists-API", "max_forks_repo_forks_event_min_datetime": "2021-05-27T21:05:42.000Z", "max_forks_repo_forks_event_max_datetime": "2021-05-27T21:05:42.000Z"}
{"max_stars_count": 2, "max_issues_count": 11, "max_forks_count": 1, "avg_line_length": 27.8928571429, "max_line_length": 52, "alphanum_fraction": 0.4071702945}
'use strict'

const { Task } = require('../src/models/task')

exports.seed = function(knex) {
    return knex('tasks').del()
        .then(function () {
            return Task.create({
                title: 'Move humanity to Mars',
                description: 'Lets get out of here',
                version: '1.0',
                timeEstimated: 124234,
                timeSpent: 124234,
                dueAt: '2030-11-11 00:00:00',
                projectId: 1,
                authorId: 1,
                priorityId: 1,
                typeId: 1,
                statusId: 1,
                labelIds: [1, 2],
                versionIds: [1, 2],
                assignees: [
                    {userId: 1, assigneeRoleId: 1}
                ]
            })
        })
}
