'use strict';
+
module.exports = function(sequelize, DataTypes) {
var SquareProject = sequelize.define('SquareProject', {
name: {
type: DataTypes.STRING,
unique: true,
+ allowNull: false,
validate: {
notEmpty: true
}
},
description: DataTypes.STRING,
+ notes: DataTypes.TEXT,
preproduction: {
type: DataTypes.TEXT,
length: 'long'
length: 'long'
}
}, {
- tableName: 'square_projects',
+ tableName: 'square_projects'
});
return SquareProject;