summaryrefslogtreecommitdiff
path: root/models/participant_item_use.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-31 15:14:12 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-31 15:14:12 +0200
commit59d82d6c68ae3e75c3a4d9408238c44640e587db (patch)
tree9aa61cd679bed9829c0637c5832265c59a77d031 /models/participant_item_use.js
parent37c16ecf9fd64fc7644e82d8619584d0f64d694e (diff)
downloadprocessor-59d82d6c68ae3e75c3a4d9408238c44640e587db.tar.gz
processor-59d82d6c68ae3e75c3a4d9408238c44640e587db.zip
regenerate model from releases/2.0.0 db schema
Diffstat (limited to 'models/participant_item_use.js')
-rw-r--r--models/participant_item_use.js9
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
});
};