diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-31 15:14:12 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-31 15:14:12 +0200 |
| commit | 59d82d6c68ae3e75c3a4d9408238c44640e587db (patch) | |
| tree | 9aa61cd679bed9829c0637c5832265c59a77d031 /models/gamer.js | |
| parent | 37c16ecf9fd64fc7644e82d8619584d0f64d694e (diff) | |
| download | processor-59d82d6c68ae3e75c3a4d9408238c44640e587db.tar.gz processor-59d82d6c68ae3e75c3a4d9408238c44640e587db.zip | |
regenerate model from releases/2.0.0 db schema
Diffstat (limited to 'models/gamer.js')
| -rw-r--r-- | models/gamer.js | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/models/gamer.js b/models/gamer.js new file mode 100644 index 0000000..d88484c --- /dev/null +++ b/models/gamer.js @@ -0,0 +1,41 @@ +/* jshint indent: 2 */ + +module.exports = function(sequelize, DataTypes) { + return sequelize.define('gamer', { + id: { + type: DataTypes.INTEGER(10).UNSIGNED, + allowNull: false, + primaryKey: true, + autoIncrement: true + }, + player_api_id: { + type: DataTypes.STRING(191), + allowNull: false + }, + name: { + type: DataTypes.STRING(191), + allowNull: false + }, + vainsocial_status: { + type: DataTypes.STRING(191), + allowNull: true + }, + vainglory_ign: { + type: DataTypes.STRING(191), + allowNull: true + }, + vainglory_shard_id: { + type: DataTypes.STRING(191), + allowNull: true + }, + vainglory_is_pro: { + type: DataTypes.INTEGER(1), + allowNull: true + } + }, { + tableName: 'gamer', + timestamps: false, + underscored: true, + freezeTableName: true + }); +}; |
