salix/back/models/bank-entity.js

12 lines
301 B
JavaScript
Raw Normal View History

2019-06-17 06:14:48 +00:00
module.exports = Self => {
Self.validatesPresenceOf('name', {
message: 'Name cannot be blank'
2019-11-28 11:54:34 +00:00
});
Self.validatesPresenceOf('bic', {
message: 'Swift / BIC cannot be empty'
});
Self.validatesUniquenessOf('bic', {
message: 'This BIC already exist.'
2019-06-17 06:14:48 +00:00
});
};