Files
databunker/user.json
2020-11-28 22:43:18 +00:00

46 lines
834 B
JSON

{
"$id": "https://privacybunker.io/schema/",
"$comment" : "user record",
"title": "user",
"description": "user record",
"type": "object",
"required": ["fname", "passportid", "email", "phone", "status"],
"properties": {
"fname": {
"type": "string",
"minLength": 1
},
"lname": {
"type": "string",
"minLength": 1
},
"passportid": {
"type": "string",
"locked": true,
"minLength": 6,
"maxLength": 10,
"preserve": true
},
"email": {
"type": "string",
"minLength": 1,
"format": "email",
"admin": true,
"preserve": true
},
"phone": {
"type": "string",
"minLength": 1,
"admin": true
},
"status": {
"type": "string",
"enum": ["prospect", "customer", "old-customer", "not-relevant"]
},
"age": {
"type": "integer",
"minimum": 10
}
}
}