diff options
Diffstat (limited to 'models/participant_item_use.js')
| -rw-r--r-- | models/participant_item_use.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/models/participant_item_use.js b/models/participant_item_use.js index 0055650..5dc8c39 100644 --- a/models/participant_item_use.js +++ b/models/participant_item_use.js @@ -8,7 +8,7 @@ module.exports = function(sequelize, DataTypes) { primaryKey: true, autoIncrement: true }, - participant_id: { + participant_api_id: { type: DataTypes.STRING(191), allowNull: false, unique: true @@ -21,11 +21,14 @@ module.exports = function(sequelize, DataTypes) { type: DataTypes.STRING(191), allowNull: false }, - timeFromStart: { + time_from_start: { type: DataTypes.INTEGER(11), allowNull: false } }, { - tableName: 'participant_item_use' + tableName: 'participant_item_use', + timestamps: false, + underscored: true, + freezeTableName: true }); }; |
