zgo/backend/models/owner.js

9 lines
228 B
JavaScript
Raw Normal View History

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