doc: add ncovChinaSchema and model

This commit is contained in:
Leon Xu
2022-04-12 12:41:01 -07:00
parent 03577c3c59
commit 1c535b4830
+18
View File
@@ -0,0 +1,18 @@
import mongoose from "mongoose";
const ncovChinaSchema = mongoose.Schema({
newslist: [
{
news: { type: Array },
desc: { type: Array },
riskarea: { type: Array },
},
],
date: {
type: Date,
default: Date.now();
}
});
const ncovChinaData = mongoose.model('ncovChinaData', ncovChinaSchema);
export default ncovChinaData;