3 var _ = require('lodash');
5 module.exports = function(sequelize, DataTypes) {
7 var SquareProject = sequelize.define('SquareProject', {
9 type: DataTypes.STRING,
16 description: DataTypes.STRING,
17 notes: DataTypes.TEXT,
19 type: DataTypes.BLOB('long'),
21 if (this.getDataValue('preproduction')) {
22 return _.toString(this.getDataValue('preproduction'));
27 type: DataTypes.BLOB('long'),
29 if (this.getDataValue('production')) {
30 return _.toString(this.getDataValue('production'));
35 tableName: 'square_projects'