You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
500 B

const mongoose = require('mongoose');
const Schema = mongoose.Schema;
let favorite =
new Schema(
{
scanlator: {type: String, required: true, max: 100},
title: {type: String, required: true, max: 100},
link:{type: String, require:true, max:100},
tags:{type: Array, require:false}
}
);
const Favorite = module.exports = mongoose.model('favorite', favorite, 'mangareader');
module.exports.get = (callback, limit)=>
{
Favorite.find(callback).limit(limit);
}