Skip to content

Instantly share code, notes, and snippets.

@stfsy
Last active October 2, 2020 07:04
Show Gist options
  • Save stfsy/4b8acb7c1b91e5daea0c2fc262268d59 to your computer and use it in GitHub Desktop.
Save stfsy/4b8acb7c1b91e5daea0c2fc262268d59 to your computer and use it in GitHub Desktop.
{
"title": "users",
"bsonType": "object",
"required": [
"id",
"name",
"email"
],
"properties": {
"id": {
"type": "string",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
"description": "A unique id for this particular user"
},
"name": {
"encrypt": {
"bsonType": "string",
"algorithm": "AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic"
},
"description": "The full name of the user"
},
"email": {
"encrypt": {
"bsonType": "string",
"algorithm": "AEAD_AES_256_CBC_HMAC_SHA_512-Random"
},
"description": "The email address of the user"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment