-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.leads.ly json leads database.json
78 lines (78 loc) · 1.97 KB
/
post.leads.ly json leads database.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
db.runCommand({
collMod: "leads",
validator: {
$jsonSchema: {
bsonType: "object",
required: [
"first", "last", "email", "street", "city", "state", "zip"
],
properties: {
first: {
bsonType: "string",
description: "must be a string and is required"
},
last: {
bsonType: "string",
description: "must be a string and is required"
},
email: {
bsonType: "string",
description: "must be a string and is required"
},
street: {
bsonType: "string",
description: "must be a string and is required"
},
city: {
bsonType: "string",
description: "must be a string and is required"
},
state: {
bsonType: "string",
description: "must be a string and is required"
},
zip: {
bsonType: "int",
description: "must be an integer and is required"
},
phone: {
bsonType: "int",
description: "must be an integer"
},
balance: {
bsonType: "double",
description: "must be a number"
},
value: {
bsonType: "string",
description: "must be a string"
},
optin: {
bsonType: "string",
description: "must be a string"
},
ip: {
bsonType: "string",
description: "must be a string and be formatted as an IP address"
},
lender: {
bsonType: "string",
description: "must be a string"
},
property_type: {
bsonType: "string",
description: "must be a string"
},
credit: {
bsonType: "string",
description: "must be a string"
},
property_use: {
bsonType: "string",
description: "must be a string"
},
}
}
},
validationAction: "error"
});