mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
Initial Commit
This commit is contained in:
25
app/model/client.js
Normal file
25
app/model/client.js
Normal file
@ -0,0 +1,25 @@
|
||||
var mongoose = require('mongoose'),
|
||||
Schema = mongoose.Schema,
|
||||
ObjectId = Schema.ObjectId;
|
||||
|
||||
var clientSchema = new Schema({
|
||||
name: String,
|
||||
identifier: String,
|
||||
address: {
|
||||
street1: String,
|
||||
street2: String,
|
||||
city: String,
|
||||
state: String,
|
||||
zip: String
|
||||
},
|
||||
contacts: [{
|
||||
name: String,
|
||||
phone: String,
|
||||
email: String
|
||||
}],
|
||||
frequencies: {},
|
||||
workorders: [{ type: ObjectId, ref: 'Workorder' }],
|
||||
deleted: { type: Boolean, default: false }
|
||||
});
|
||||
|
||||
module.exports = mongoose.model('Client', clientSchema);
|
Reference in New Issue
Block a user