{"size": 598, "ext": "js", "max_stars_repo_path": "migrations/photos.js", "max_stars_repo_name": "elemanhillary/scadaBackend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "migrations/photos.js", "max_issues_repo_name": "elemanhillary/scadaBackend", "max_issues_repo_issues_event_min_datetime": "2020-09-06T19:50:28.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-08T02:36:53.000Z", "max_forks_repo_path": "migrations/photos.js", "max_forks_repo_name": "elemanhillary-zz/scadaBackend", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 23.0, "max_line_length": 87, "alphanum_fraction": 0.6505016722}
export const up = (queryInterface, Sequelize) => queryInterface.createTable('photos', {
  userId: {
    type: Sequelize.UUID,
    defaultValue: Sequelize.UUIDV4,
    allowNull: false,
    onDelete: 'CASCADE',
    onUpdate: 'CASCADE',
  },
  photo: {
    type: Sequelize.STRING,
    allowNull: false,
  },
  createdAt: {
    allowNull: false,
    type: Sequelize.DATE,
    defaultValue: Sequelize.fn('now'),
  },
  updatedAt: {
    allowNull: false,
    type: Sequelize.DATE,
    defaultValue: Sequelize.fn('now'),
  },
});

export const down = queryInterface => queryInterface.dropTable('photos');
