freeCodeCamp/common/models/user.json

206 lines
4.0 KiB
JSON
Raw Normal View History

{
2015-06-03 23:48:17 +00:00
"name": "user",
"base": "User",
2015-06-09 23:43:08 +00:00
"strict": true,
2015-06-11 06:59:42 +00:00
"idInjection": true,
"trackChanges": false,
"properties": {
"email": {
"type": "string",
"index": {
"mongodb": {
"unique": true,
"background": true,
"sparse": true
}
}
2015-06-11 06:59:42 +00:00
},
"password": {
"type": "string"
},
"progressTimestamps": {
"type": "array",
"default": []
},
"isGithubCool": {
"type": "boolean",
"default": false
},
2015-08-06 00:49:19 +00:00
"githubId": {
"type": "string"
},
"githubURL": {
"type": "string"
},
"githubEmail": {
"type": "string"
},
"joinedGithubOn": {
"type": "date"
},
"isMigrationGrandfathered": {
"type": "boolean",
"default": false
},
2015-06-04 19:47:31 +00:00
"username": {
"type": "string",
"require": true,
"index": {
"mongodb": {
"unique": true,
"background": true
}
}
},
2015-06-04 19:47:31 +00:00
"bio": {
"type": "string",
"default": ""
},
"name": {
"type": "string",
"default": ""
},
"gender": {
"type": "string",
"default": ""
},
"location": {
"type": "string",
"default": ""
},
"picture": {
"type": "string",
"default": ""
},
"linkedinProfile": {
"type": "string",
"default": ""
},
"githubProfile": {
"type": "string",
"default": ""
},
"codepenProfile": {
"type": "string",
"default": ""
},
"twitterHandle": {
"type": "string",
"default": ""
},
"facebookProfile": {
"type": "string",
"default": ""
},
2015-06-11 06:59:42 +00:00
"completedBonfires": {
"type": [
{
"id": "string",
"name": "string",
"completedWith": "string",
"completedDate": "string",
"solution": "string"
}
],
"default": []
2015-06-11 06:59:42 +00:00
},
"uncompletedCoursewares": {
"type": "array",
"default": []
2015-06-11 06:59:42 +00:00
},
"completedCoursewares": {
"type": [
{
"completedDate": {
"type": "string",
"defaultFn": "now"
},
"id": "string",
"name": "string",
"completedWith": "string",
"solution": "string",
"githubLink": "string",
"verified": "boolean"
}
],
"default": []
2015-06-11 06:59:42 +00:00
},
"currentStreak": {
"type": "number",
"default": 0
},
"longestStreak": {
"type": "number",
"default": 0
},
"sendMonthlyEmail": {
"type": "boolean",
"default": true
},
2015-06-11 06:59:42 +00:00
"currentChallenge": {
"type": {}
},
"completedChallenges": {
2015-06-11 06:59:42 +00:00
"type": [
{
"completedDate": "number",
"id": "string",
"name": "string",
"completedWith": "string",
"solution": "string",
"githubLink": "string",
"verified": "boolean",
"challengeType": {
"type": "number",
"default": 0
}
}
2015-06-11 06:59:42 +00:00
],
"default": []
2015-06-11 06:59:42 +00:00
}
},
"validations": [],
2015-06-12 20:14:07 +00:00
"relations": {
"credentials": {
"type": "hasMany",
"model": "userCredential",
"foreignKey": ""
},
"identities": {
"type": "hasMany",
"model": "userIdentity",
"foreignKey": ""
}
},
2015-06-11 06:59:42 +00:00
"acls": [
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "EXECUTE",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW",
"property": "doesExist"
2015-07-29 18:32:16 +00:00
},
{
"accessType": "EXECUTE",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW",
"property": "about"
2015-07-29 22:00:24 +00:00
},
{
"accessType": "EXECUTE",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW",
"property": "giveBrowniePoints"
2015-06-11 06:59:42 +00:00
}
],
2015-06-12 18:38:00 +00:00
"methods": []
}