Ext.define('KitchenSink.model.Customer', {
    extend: 'KitchenSink.model.Base',
    requires: [
        "KitchenSink.model.field.PhoneNumber"
    ],
    
    fields: [
        'name',
        { name: 'phone', type: 'phonenumber' }
    ],

    proxy: {
        type: 'rest',
        url: '/KitchenSink/Customer'
    },

    validators: {
        name: 'presence'
    }
});
