I works on Loopback and have automigration works fine. But, I need config a model with two unique identifiers.
With this config
"properties": {
"id": {
"type": "Number",
"id": true,
"generated": true, // doesn't works
"required": false
},
"verificationCode": {
"type": "String",
"required": true,
"id": true,
"length": 10,
"mysql": {
"columnName": "verification_code"
}
},
ID = is primary key, is not AUTO INCREMENT
VerificationCode = is primary key
Any idea? thanks