color updates, tweaks to the new dataabse driven design
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user