I am trying to add a simple enum to my user model like so:
{
"name" : "user",
"properties" : {
"identifier": {
"type": "string",
"id": true
},
"firstName": "string",
"lastName": "string",
"email": "string",
"phone": [{
"tag": "string",
"number": "string"
}],
"userType": {
"type": "string",
"enum": ["customer", "partner"]
}
},
"base": "User"
}
But it doesn't seem to be enforced, so I'm guessing this is not supported?!
So my question is what's best practice here? Create a userTypes model with the two types and relate it back to user? Seems like such overkill, but it's all I'm coming up with.
Thanks.