Last active
August 29, 2015 14:14
-
-
Save jahands/327ac939cf58c537024f to your computer and use it in GitHub Desktop.
MongoDB Example Documents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"clients": [ | |
{ | |
"_id": "...", | |
"name": [ | |
{ | |
"first": "...", | |
"last": "...", | |
"middle": "...", | |
"other": [ | |
{ "...": "..." } | |
], | |
"date": "..." | |
} | |
], | |
"address": [ | |
{ | |
"type_id": "...", | |
"country": "...", | |
"state": "...", | |
"city": "...", | |
"zip": "...", | |
"date": "..." | |
} | |
], | |
"ghid": [ | |
{ | |
"country": "us", | |
"id": { | |
"ssn": "...", | |
"alien": "..." | |
} | |
} | |
], | |
"extra_info": [ | |
{ "...": "..." }, | |
{ "...": "..." } | |
], | |
"files": [ | |
{ | |
"file_path": "...", | |
"display_name": "...", | |
"date_added": "..." | |
} | |
] | |
} | |
], | |
"forms": [ | |
{ | |
"_id": "...", | |
"client_id": "...", | |
"form_template_id": "...", | |
"template_version": "...", | |
"fields": [ | |
{ | |
"field_name": "...", | |
"field_value": 2, | |
"field_info": { | |
"field_type": "multiple_choice", | |
"choice_options": [ | |
"...", | |
"...", | |
"..." | |
], | |
"default_value": 0 | |
} | |
}, | |
{ | |
"field_name": "...", | |
"field_value": "...", | |
"field_info": { | |
"field_type": "string", | |
"null_info": { | |
"is_nullable": true, | |
"null_value": "NA", | |
"default_null": true | |
}, | |
"charset": { | |
"charset_id": "...", | |
"name": "alpha", | |
"chars": "abcdefghijklmnopqrstuvwxyz" | |
} | |
} | |
} | |
] | |
} | |
], | |
"form_templates": [ | |
{ | |
"_id": "...", | |
"name": "...", | |
"field_info": { | |
"help_text": "...", | |
"field_type": "multiple_choice", | |
"choice_options": [ | |
"...", | |
"...", | |
"..." | |
], | |
"default_value": 0 | |
} | |
}, | |
{ | |
"_id": "...", | |
"name": "...", | |
"version": "...", | |
"field_info": { | |
"help_text": "...", | |
"field_type": "string", | |
"max_length": 255, | |
"null_info": { | |
"is_nullable": true, | |
"null_value": "NA", | |
"default_to_null": true | |
}, | |
"charset": { | |
"charset_id": "...", | |
"name": "alpha", | |
"chars": "abcdefghijklmnopqrstuvwxyz" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment