summaryrefslogtreecommitdiff
path: root/models/player_dimension.js
blob: 40556ae176a9a61c9fcaec428a4a2a069c2f9e37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('player_dimension', {
    id: {
      type: DataTypes.INTEGER(10).UNSIGNED,
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    player_id: {
      type: DataTypes.INTEGER(11),
      allowNull: false
    },
    dimension_id: {
      type: DataTypes.INTEGER(11),
      allowNull: false
    },
    stats_id: {
      type: DataTypes.INTEGER(11),
      allowNull: false
    },
    computed_on: {
      type: DataTypes.DATE,
      allowNull: false
    }
  }, {
    tableName: 'player_dimension'
  });
};