forked from Differential/meteor-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdatamodel.json
52 lines (51 loc) · 1.84 KB
/
datamodel.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
// architecture
// using forked accounts-entry package located (not symlinked) in
// packages/accounts-entry/ directory. Inside:
// - XXX in comments designate changes from the original code
// - sign-up/signUp.html contains html view code.
// - sign-up/signUp.coffee contains template helpers for the signup form.
// - the 'address' object is implicitly defined in signUp.coffee and explicitly below.
// - entry.coffee defines the accountsCreateUser() Meteor.method that signUp.coffee
// calls to create new users. We added a field to accept an 'address' object.
//
// How do we store the results of the address validation service? Look at
// everythinglocation.com/field-descriptions/ to see what they return. Planning to just
// save the validatedAddress string for display (shouldn't be directly editable).
// json User datamodel
{
_id: "bbca5d6a-2156-41c4-89da-0329e8c99a4f", // Meteor.userId()
username: "cool_kid_13", // unique name - WE DON'T SET THIS
emails: [
// each email address can only belong to one user.
{ address: "cool@example.com", verified: true },
{ address: "another@different.com", verified: false }
],
createdAt: Wed Aug 21 2013 15:16:52 GMT-0700 (PDT),
profile: {
// The profile is writable by the user by default.
address: {
firstName: "Jane",
lastName: "Biologist",
orgn: "Bio-Inc",
add1: "100 Pennsylvania Ave",
add2: "Apt 120",
lcty: "City",
admn: "State",
pcde: "01234",
ctry: "01",
validatedAddress: "Jane Biologist\nBio-Inc\n100 Pennsylvania Ave Apt120\nCity\nState\nZip\nCountry"
},
},
services: {
facebook: {
id: "709050", // facebook id
accessToken: "AAACCgdX7G2...AbV9AZDZD"
},
resume: {
loginTokens: [
{ token: "97e8c205-c7e4-47c9-9bea-8e2ccc0694cd",
when: 1349761684048 }
]
}
}
}