summaryrefslogtreecommitdiff
path: root/models/hero_core_stats.js
blob: 1accc6a65cba81fbf6995ab6db739ed994b23023 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('hero_core_stats', {
    id: {
      type: DataTypes.INTEGER(10).UNSIGNED,
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    created_at: {
      type: DataTypes.TIME,
      allowNull: true
    },
    updated_at: {
      type: DataTypes.TIME,
      allowNull: true
    },
    patch_version: {
      type: DataTypes.STRING(191),
      allowNull: false
    },
    hp: {
      type: "DOUBLE",
      allowNull: false
    },
    energy: {
      type: "DOUBLE",
      allowNull: false
    },
    weapon_damage: {
      type: "DOUBLE",
      allowNull: false
    },
    attack_speed: {
      type: "DOUBLE",
      allowNull: false
    },
    armor: {
      type: "DOUBLE",
      allowNull: false
    },
    shield: {
      type: "DOUBLE",
      allowNull: false
    },
    attack_range: {
      type: "DOUBLE",
      allowNull: false
    },
    move_speed: {
      type: "DOUBLE",
      allowNull: false
    },
    hp_regen: {
      type: "DOUBLE",
      allowNull: false
    },
    ep_regen: {
      type: "DOUBLE",
      allowNull: false
    }
  }, {
    tableName: 'hero_core_stats'
  });
};