{"size": 374, "ext": "js", "max_stars_repo_path": "rate-repository-api/migrations/20200216132342_create_users_table.js", "max_stars_repo_name": "nikoruo/Full-stack-open-2021-part10", "max_stars_repo_stars_event_min_datetime": "2020-12-05T16:08:30.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-23T13:40:43.000Z", "max_issues_repo_path": "rate-repository-api/migrations/20200216132342_create_users_table.js", "max_issues_repo_name": "nikoruo/Full-stack-open-2021-part10", "max_issues_repo_issues_event_min_datetime": "2020-09-02T09:10:36.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-14T14:38:45.000Z", "max_forks_repo_path": "rate-repository-api/migrations/20200216132342_create_users_table.js", "max_forks_repo_name": "nikoruo/Full-stack-open-2021-part10", "max_forks_repo_forks_event_min_datetime": "2020-09-18T14:30:12.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-28T09:46:24.000Z"}
{"max_stars_count": 10, "max_issues_count": 14, "max_forks_count": 29, "avg_line_length": 23.375, "max_line_length": 52, "alphanum_fraction": 0.6497326203}
exports.up = function(knex) {
  return knex.schema.createTable('users', table => {
    table.text('id').primary();
    table.text('username').unique();
    table.text('password');
    table.timestamp('created_at');
    table.timestamp('updated_at');

    table.index('username');
  });
};

exports.down = function(knex) {
  return knex.schema.dropTableIfExists('users');
};
