var mongoose     = require('mongoose');
var Schema       = mongoose.Schema;

var ObjectId = mongoose.Schema.Types.ObjectId;
var Location = require('./location_model');

var XeroAccountSchema   = new Schema({
	location_id: { type: ObjectId, ref: 'Location' },
	consumer_key: String,
	consumer_secret: String
});

XeroAccountSchema.set("_perms", {
	super_user: "crud",
	admin: "r",
	all: ""
});

module.exports = mongoose.model('XeroAccount', XeroAccountSchema);
var mongoose     = require('mongoose');
var Schema       = mongoose.Schema;

var ObjectId = mongoose.Schema.Types.ObjectId;
var Location = require('./location_model');

var XeroAccountSchema   = new Schema({
	location_id: { type: ObjectId, ref: 'Location' },
	consumer_key: String,
	consumer_secret: String
});

XeroAccountSchema.set("_perms", {
	super_user: "crud",
	admin: "r",
	user: "r",
	all: ""
});

module.exports = mongoose.model('XeroAccount', XeroAccountSchema);
Allow users to read xeroaccount for booking
Allow users to read xeroaccount for booking
