text: // person model
  // var Person = require('./core/person');
  //
  
  module.exports = function (db, cb) {
  	//db.load(__dirname + "/test-model-pet", function (err) {
  	//	if (err) return cb(err);
  
  		db.define("person", {
  			name      : String,
  			surname   : { type: "text", size: 150, unique: true },
  			age       : { type: "number", unsigned: true },
  			continent : [ 'Europe', 'America', 'Asia', 'Africa', 'Australia', 'Antartica' ],
  			male      : Boolean,
  			dt        : { type: "date", time: false },
  			photo     : { type: "binary", lazyload: true, lazyname: "avatar" }
  		});
  		db.models.person.hasMany("pets", db.models.pet);
  		db.models.person.hasOne("favpet", db.models.pet);
  
  		return cb();
  	//});
  };
  