
module.exports = function(sequelize, DataTypes) {

    var Photographer = sequelize.define("Photographer", {
        company: {
            type: DataTypes.STRING,
            allowNull: false,
            notEmpty: true,

            validate: {
                len: [1]
            }
        },

        email: {
            type: DataTypes.STRING,
            isUnique :true,
            allowNull:false,
            
            validate:{
                isEmail : true
            }
        },

        phone: {
            type: DataTypes.STRING,
            isNumeric: true,
            allowNull: false,
            notEmpty: true


        },

        description: {
            type: DataTypes.TEXT
        },

        price: {
            type: DataTypes.INTEGER
        }
    });
    return Photographer;
};

// Florist.sync().then(function() {
//         // Table created
//         return Florist.create({
//             company: 'RP Printing',
//             email: 'mwqeyoi@yahoo.com',
//             phone: 89286757,
//             // ZipCode: 67890,
//             price: 400

//         });
//     return Florist;
// });


@@ -820,324 +820,5 @@
 %7D;%0A%0A
-// Florist.sync().then(function() %7B%0A//         // Table created%0A//         return Florist.create(%7B%0A//             company: 'RP Printing',%0A//             email: 'mwqeyoi@yahoo.com',%0A//             phone: 89286757,%0A//             // ZipCode: 67890,%0A//             price: 400%0A%0A//         %7D);%0A//     return Florist;%0A// %7D);%0A
 %0A

Update photographer.js