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.
Natsuki/models/anime.js

30 lines
879 B

const mongoose = require('mongoose');
const AniSchema = new mongoose.Schema({
id: {type: String, unique: true},
name: String,
japname: String,
plot: String,
publishers: [String],
studios: [String],
airStartDate: String,
airEndDate: String,
isComplete: Boolean,
seasons: Number,
episodes: Number,
genres: [String],
3 years ago
tags: {type: [String], default: []},
characters: [String],
3 years ago
altNames: {type: [String], default: []},
streamAt: [String],
watchers: {type: Number, default: 0},
listed: {type: Number, default: 0},
liked: {type: Number, default: 0},
rating: {type: Number, default: 0},
lastUpdate: String,
thumbnail: String,
3 years ago
images: {type: [String], default: []},
queued: {type: Boolean, default: true}
});
module.exports = mongoose.model('anime', AniSchema);