/**
 * @overview Seed entry object. You can generate random test data with expressions.
 * @example
 *    new SeedEntry({
 *       updateAt:"${new Date().addYear(1).addMonth(2).addDate(10).format('yyyy-mm-dd')},
 *       //Functions in lib.string and lib.random (eg:'underscorize') are exposed as global variable within expressions.
 *       username:"${underscorize("JohnSmith")},
 *       custom: function(scope){
 *          return scope.index;
 *       }
 *    }).lang('en').repeat(100);  //Generate 100 data with english locale dummy data.
 *
 */
var object = require('../../../lib/object'),
    define = object.define,
    deepCopy = object.deepCopy;

module.exports = define({
    init: function (data) {
        var s = this;
        deepCopy(data, s);
    },
    accessors: ['repeat', 'lang'],
    properties: {_lang: 'en', _repeat: 1}
});