mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-10-28 16:42:30 +00:00
46 lines
832 B
JSON
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
|
|
}
|
|
}
|
|
}
|