2583-create_account_supplier #552
|
@ -1,11 +0,0 @@
|
||||||
module.exports = Self => {
|
|
||||||
Self.validatesPresenceOf('name', {
|
|
||||||
message: 'Name cannot be blank'
|
|
||||||
});
|
|
||||||
Self.validatesPresenceOf('bic', {
|
|
||||||
message: 'Swift / BIC cannot be empty'
|
|
||||||
});
|
|
||||||
Self.validatesUniquenessOf('bic', {
|
|
||||||
message: 'This BIC already exist.'
|
|
||||||
});
|
|
||||||
};
|
|
|
@ -1,29 +0,0 @@
|
||||||
{
|
|
||||||
"name": "BankEntity",
|
|
||||||
"base": "VnModel",
|
|
||||||
"options": {
|
|
||||||
"mysql": {
|
|
||||||
"table": "bankEntity"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"properties": {
|
|
||||||
"id": {
|
|
||||||
"type": "Number",
|
|
||||||
"id": true,
|
|
||||||
"description": "Identifier"
|
|
||||||
},
|
|
||||||
"bic": {
|
|
||||||
"type": "String"
|
|
||||||
},
|
|
||||||
"name": {
|
|
||||||
"type": "String"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"relations": {
|
|
||||||
"country": {
|
|
||||||
"type": "belongsTo",
|
|
||||||
"model": "Country",
|
|
||||||
"foreignKey": "countryFk"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue