Natsuki's API! https://api.natsuki.app
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.
 
api/db/ani/series.js

33 lines
782 B

const {Schema} = require("mongoose");
module.exports = (connection) => connection.model('series', new Schema({
id: {type: String, unique: true},
meta: {
locked: {type: Boolean, default: false},
creator: String, //uid
edits: {type: [{
user: String, //uid
timestamp: String, //Date.getTime(),
action: String
}], default: []},
completed: {type: Boolean, default: false},
approved: {type: {
approved: Boolean,
by: String
}, default: false}
},
name: String,
romaji: String,
kanji: String,
altNames: [String],
id: Number,
synopsis: {
synopsis: String,
by: String
},
genres: [String],
tags: [String],
}));