Skip to content

Commit d489ee2

Browse files
author
Vikas Agarwal
committed
marking duration as optional field
1 parent 2ec838a commit d489ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/projectPhase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = function defineProjectPhase(sequelize, DataTypes) {
99
status: { type: DataTypes.STRING, allowNull: true },
1010
startDate: { type: DataTypes.DATE, allowNull: true },
1111
endDate: { type: DataTypes.DATE, allowNull: true },
12-
duration: { type: DataTypes.INTEGER, allowNull: false },
12+
duration: { type: DataTypes.INTEGER, allowNull: true },
1313
budget: { type: DataTypes.DOUBLE, defaultValue: 0.0 },
1414
spentBudget: { type: DataTypes.DOUBLE, defaultValue: 0.0 },
1515
progress: { type: DataTypes.DOUBLE, defaultValue: 0.0 },

0 commit comments

Comments
 (0)