From 59d82d6c68ae3e75c3a4d9408238c44640e587db Mon Sep 17 00:00:00 2001 From: schneefux Date: Fri, 31 Mar 2017 15:14:12 +0200 Subject: regenerate model from releases/2.0.0 db schema --- models/participant_item_use.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'models/participant_item_use.js') 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 }); }; -- cgit v1.3.1