summaryrefslogtreecommitdiff
path: root/models/match_dimension.js
blob: c6c0c4596e958833e61c085d72a9eaa92f993df7 (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('match_dimension', {
    id: {
      type: DataTypes.INTEGER(10).UNSIGNED,
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    match_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: 'match_dimension'
  });
};