add user id to map schema/examples

This commit is contained in:
Devin Howard 2016-10-29 21:49:55 +08:00
parent 8dc8685a8f
commit 9705874ea1
4 changed files with 6 additions and 0 deletions

View file

@ -8,6 +8,7 @@
"starred": false, "starred": false,
"created_at": "2016-03-26T08:02:05.379Z", "created_at": "2016-03-26T08:02:05.379Z",
"updated_at": "2016-03-27T07:20:18.047Z", "updated_at": "2016-03-27T07:20:18.047Z",
"user_id": 1234,
"topic_ids": [ "topic_ids": [
58, 58,
59 59

View file

@ -8,6 +8,7 @@
"starred": true, "starred": true,
"created_at": "2016-03-26T08:02:05.379Z", "created_at": "2016-03-26T08:02:05.379Z",
"updated_at": "2016-03-27T07:20:18.047Z", "updated_at": "2016-03-27T07:20:18.047Z",
"user_id": 1234,
"topic_ids": [ "topic_ids": [
58, 58,
59 59

View file

@ -9,6 +9,7 @@
"starred": false, "starred": false,
"created_at": "2016-03-26T08:02:05.379Z", "created_at": "2016-03-26T08:02:05.379Z",
"updated_at": "2016-03-27T07:20:18.047Z", "updated_at": "2016-03-27T07:20:18.047Z",
"user_id": 1234,
"topic_ids": [ "topic_ids": [
58, 58,
59 59

View file

@ -27,6 +27,9 @@
"updated_at": { "updated_at": {
"$ref": "_datetimestamp.json" "$ref": "_datetimestamp.json"
}, },
"user_id": {
"$ref": "_id.json"
},
"topic_ids": { "topic_ids": {
"type": "array", "type": "array",
"items": { "items": {