salix/modules/item/back/models/item-barcode.js

6 lines
121 B
JavaScript

module.exports = Self => {
Self.validatesUniquenessOf('code', {
message: `Barcode must be unique`
});
};