zgo/backend/models/owner.js

8 lines
228 B
JavaScript

const mongoose = require('mongoose');
const ownerSchema = mongoose.Schema({
address: {type: String, required:true, unique:true},
name: {type: String, required:true}
});
module.exports = mongoose.model('Owner', ownerSchema);