{"size": 518, "ext": "js", "max_stars_repo_path": "src/database/schemas/book.js", "max_stars_repo_name": "ermaxnet/treehouse-project-10", "max_stars_repo_stars_event_min_datetime": "2018-04-24T08:11:56.000Z", "max_stars_repo_stars_event_max_datetime": "2018-04-24T09:05:27.000Z", "max_issues_repo_path": "src/database/schemas/book.js", "max_issues_repo_name": "ermaxnet/treehouse-project-10", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/database/schemas/book.js", "max_forks_repo_name": "ermaxnet/treehouse-project-10", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 39.8461538462, "max_line_length": 79, "alphanum_fraction": 0.6351351351}
const SCHEMAS = require("../../constants").SCHEMA_TYPES;

const Book = (sequelize, DataTypes) => 
    sequelize.define(SCHEMAS.BOOKS, {
        id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
        title: { type: DataTypes.STRING, allowNull: false },
        author: { type: DataTypes.STRING, allowNull: false },
        genre: { type: DataTypes.STRING, allowNull: false },
        first_published: { type: DataTypes.INTEGER }
    }, {
        timestamps: false
    });
module.exports = Book;