color updates, tweaks to the new dataabse driven design

This commit is contained in:
Michael Simard
2021-11-01 15:07:14 -05:00
parent 9374175c50
commit 2c5ea3a9d5
6 changed files with 16 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ final class ColourScheme: Model, Content {
var id: UUID?
@Field(key: "game_id")
var gameId: Int
var gameId: String
@Field(key: "tile_colour")
var tileColour: String?
@@ -35,7 +35,7 @@ final class ColourScheme: Model, Content {
init() { }
// Creates a new with all properties set.
init(id: UUID? = nil, gameId: Int, tileColour: String?,winColour: String?,lossColour: String? ) {
init(id: UUID? = nil, gameId: String, tileColour: String?,winColour: String?,lossColour: String? ) {
self.id = id
self.gameId = gameId
self.tileColour = tileColour