file: create ChinaCities model with schema
This commit is contained in:
1 parent
c5fa80a2d5
commit
4c56a9a4e2
1 file changed
+15
@@ -0,0 +1,15 @@
|
|||||||
|
import mongoose from "mongoose";
|
||||||
|
|
||||||
|
const ChinaNcovCitiesSchema = mongoose.Schema({
|
||||||
|
retdata: [],
|
||||||
|
date: {
|
||||||
|
type: Date,
|
||||||
|
default: Date.now(),
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
const ChinaNcovCitiesData = mongoose.model(
|
||||||
|
"ChinaNcovCitiesData",
|
||||||
|
ChinaNcovCitiesSchema
|
||||||
|
);
|
||||||
|
export default ChinaNcovCitiesData;
|
||||||
Reference in new issue
Block a user