zgo/backend/models/owner.js

9 lines
215 B
JavaScript
Raw Normal View History

2021-10-20 20:51:14 +00:00
const mongoose = require('mongoose');
const ownerSchema = mongoose.Schema({
address: {type: String, required:true},
name: {type: String, required:true}
});
module.exports = mongoose.model('Owner', ownerSchema);