summaryrefslogtreecommitdiff
path: root/models/roster.js
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-03-30 15:12:22 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-03-30 15:12:22 +0200
commitc9ca32cdecb2627605e68b07f1f386ef12a4d626 (patch)
tree307d951a90a9857d28484eaee744388c370e8f42 /models/roster.js
parent5c869aa26666215ec4ea5315b40fea3025a1ae83 (diff)
downloadprocessor-c9ca32cdecb2627605e68b07f1f386ef12a4d626.tar.gz
processor-c9ca32cdecb2627605e68b07f1f386ef12a4d626.zip
add imported db models
Diffstat (limited to 'models/roster.js')
-rw-r--r--models/roster.js54
1 files changed, 54 insertions, 0 deletions
diff --git a/models/roster.js b/models/roster.js
new file mode 100644
index 0000000..fb4b129
--- /dev/null
+++ b/models/roster.js
@@ -0,0 +1,54 @@
+/* jshint indent: 2 */
+
+module.exports = function(sequelize, DataTypes) {
+ return sequelize.define('roster', {
+ id: {
+ type: DataTypes.INTEGER(10).UNSIGNED,
+ allowNull: false,
+ primaryKey: true,
+ autoIncrement: true
+ },
+ match_api_id: {
+ type: DataTypes.STRING(191),
+ allowNull: false
+ },
+ api_id: {
+ type: DataTypes.STRING(191),
+ allowNull: false,
+ unique: true
+ },
+ aces_earned: {
+ type: DataTypes.INTEGER(11),
+ allowNull: false
+ },
+ gold: {
+ type: DataTypes.INTEGER(11),
+ allowNull: false
+ },
+ hero_kills: {
+ type: DataTypes.INTEGER(11),
+ allowNull: false
+ },
+ kraken_captures: {
+ type: DataTypes.INTEGER(11),
+ allowNull: false
+ },
+ side: {
+ type: DataTypes.STRING(191),
+ allowNull: false
+ },
+ team_color: {
+ type: DataTypes.STRING(191)
+ },
+ turret_kills: {
+ type: DataTypes.INTEGER(11),
+ allowNull: false
+ },
+ turrets_remaining: {
+ type: DataTypes.INTEGER(11),
+ allowNull: false
+ }
+ }, {
+ tableName: 'roster'
+ });
+};