<commit_before>var mongoose     = require('mongoose');
var Schema       = mongoose.Schema;

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

var LeadSchema   = new Schema({
	name: { type: String, index: true },
	organisation: String,
	location_id: { type: ObjectId, index: true, ref: "Location" },
	email: { type: String, index: true },
	mobile: String,
	date_created: { type: Date, default: Date.now },
	source: String,
});

LeadSchema.set("_perms", {
	admin: "crud",
	user: "cr",
	all: "c",
});

module.exports = mongoose.model('Lead', LeadSchema);<commit_msg>Add url and type<commit_after>var mongoose     = require('mongoose');
var Schema       = mongoose.Schema;

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

var LeadSchema   = new Schema({
	name: { type: String, index: true },
	organisation: String,
	location_id: { type: ObjectId, index: true, ref: "Location" },
	email: { type: String, index: true },
	mobile: String,
	date_created: { type: Date, default: Date.now },
	source: String,
	url: String,
	type: String,
});

LeadSchema.set("_perms", {
	admin: "crud",
	user: "cr",
	all: "c",
});

module.exports = mongoose.model('Lead', LeadSchema);
{'fraction_non_alphanumeric': 0.1642512077294686, 'fraction_numerical': 0.0, 'mean_word_length': 4.599099099099099, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1417230', 'n_tokens_mistral': 420, 'n_tokens_neox': 429, 'n_words': 114}