<commit_before>/**
 * Person
 *
 * @module      :: Model
 * @description :: The basic person, will be referenced as customer or business contact
 * @docs		:: http://sailsjs.org/#!documentation/models
 */

module.exports = {
    attributes: {
        firstname: 'string',
  	     lastname: {
             type: 'string',
             required: true
         },
        title: 'string',
        phone: 'string',
          fax: 'string',
        email: {
            type: 'email',
            required: true
        },
        skype: 'string',
        google: {
            type: 'email'
        },
        jabber: {
            type: 'email'
        },
        address: {
            type: 'text',
            required: true
        },
        prefferedLanguage: {
            type: 'string',
            defaultsTo: 'german'
        },
        taxNumber: 'string',
             iban: 'string',
              bic: 'string'
    }
};<commit_msg>iban and bic validation rules (basic)<commit_after>/**
 * Person
 *
 * @module      :: Model
 * @description :: The basic person, will be referenced as customer or business contact
 * @docs		:: http://sailsjs.org/#!documentation/models
 */

module.exports = {
    attributes: {
        firstname: 'string',
  	     lastname: {
             type: 'string',
             required: true
         },
        title: 'string',
        phone: 'string',
          fax: 'string',
        email: {
            type: 'email',
            required: true
        },
        skype: 'string',
        google: {
            type: 'email'
        },
        jabber: {
            type: 'email'
        },
        address: {
            type: 'text',
            required: true
        },
        prefferedLanguage: {
            type: 'string',
            defaultsTo: 'german'
        },
        taxNumber: 'string',
             iban: {
                 type: 'string',
            maxLength: 27,
            minLength: 20
              },
              bic: {
                 type: 'string',
            maxLength: 11,
            minLength: 8
              }
    }
};
{'fraction_non_alphanumeric': 0.12398664759179781, 'fraction_numerical': 0.0033381020505484026, 'mean_word_length': 1.19916142557652, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3472215', 'n_tokens_mistral': 583, 'n_tokens_neox': 558, 'n_words': 139}