<commit_before>const mongoose = require("mongoose");

const novel = mongoose.Schema({
    title: { type: String, required: true, unique: true },
    writer: { type: String, required: true },
    story: { type: String, required: true },
    genre: { typr: String, required: true },
    ended: { type: Boolean, default: false },
    contents: [{
        page: { type: Number, required: true },
        img: [{ charactor: { data: Buffer, contentType: String} }],
        backgroundImg: { data: Buffer, contentType: String },
        text: { type: String },
    }],
    allImg: [{ 
        img: { data: Buffer, contentType: String } 
    }],
    date: { type: Date, default: Date.now },
    like: { type: Number, default: 0 }
});

const Novel = mongoose.model("novel", novel);

module.exports = Novel;<commit_msg>update comment part<commit_after>const mongoose = require("mongoose");

const novel = mongoose.Schema({
    title: { type: String, required: true, unique: true },
    writer: { type: String, required: true },
    story: { type: String, required: true },
    genre: { typr: String, required: true },
    ended: { type: Boolean, default: false },
    contents: [{
        page: { type: Number },
        img: [{ charactor: { data: Buffer, contentType: String} }],
        backgroundImg: { data: Buffer, contentType: String },
        text: { type: String },
    }],
    allImg: [{ 
        img: { data: Buffer, contentType: String } 
    }],
    date: { type: Date, default: Date.now },
    like: { type: Number, default: 0 },
    comment: [{
        name: String,
        memo: String,
        date: { type: Date, default: Date.now }
    }]
});

const Novel = mongoose.model("novel", novel);

module.exports = Novel;
{'fraction_non_alphanumeric': 0.15603248259860789, 'fraction_numerical': 0.001160092807424594, 'mean_word_length': 2.8333333333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2681442', 'n_tokens_mistral': 525, 'n_tokens_neox': 523, 'n_words': 159}