Update weekly player stat and patch to include some misc stats

This commit is contained in:
Garrett Mills 2020-11-07 13:31:00 -06:00
parent eee8d9a6a3
commit 27f8f5e4dc
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246
2 changed files with 14 additions and 0 deletions

View File

@ -50,6 +50,13 @@ class SeedWeeklyPlayerDataPatch extends Injectable {
patch_player_id: stat.PlayerID,
week_num: week,
fantasy_points: stat.FantasyPoints,
passing_attempts: stat.PassingAttempts,
passing_completions: stat.PassingCompletions,
passing_yards: stat.PassingYards,
fumbles: stat.Fumbles,
kick_returns: stat.KickReturns,
sacks: stat.Sacks,
})
await weekly_stat.save()

View File

@ -11,6 +11,13 @@ class WeeklyPlayerStat extends Model {
week_num: Number,
patch_player_id: String,
fantasy_points: Number,
passing_attempts: Number,
passing_completions: Number,
passing_yards: Number,
fumbles: Number,
kick_returns: Number,
sacks: Number,
}
}
}