Files
cod-backend/Sources/App/Models/Stats.swift

25 lines
454 B
Swift

//
// Stats.swift
// App
//
// Created by Michael Simard on 5/29/20.
//
import Foundation
import Fluent
import Vapor
final class Stats: Content {
var winLossRatio:String
var totalWins:Int
var totalLosses:Int
init( winLoss:String, totalWins:Int, totalLosses:Int) {
self.winLossRatio = winLoss
self.totalWins = totalWins
self.totalLosses = totalLosses
}
}