add map history

This commit is contained in:
Michael Simard
2021-01-11 09:35:42 -06:00
parent 83e99a8ae5
commit 38453355dd
3 changed files with 58 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
import Foundation
struct Map: Hashable {
struct Map: Hashable, Codable {
var id: Int
var name:String
var imageName:String

View File

@@ -0,0 +1,16 @@
//
// MapRecord.swift
// App
//
// Created by Michael Simard on 1/10/21.
//
import Foundation
import Vapor
import Fluent
struct MapRecord: Content {
var map:Map
var stats:Stats
var ratio:String
}