Files
databunker/user.json
2024-09-09 19:39:50 +03:00

46 lines
832 B
JSON

{
"$id": "https://databunker.org/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
}
}
}