         try row.set(Market.Keys.name, name)
         try row.set(Market.Keys.description, description)
         try row.set(Market.Keys.isActive, isActive)
+        try row.set(Market.Keys.lastPrice, lastPrice)
         
         return row
     }

    let name: String
    let description: String
    let isActive: Bool
    
    init(name: String, description: String, isActive: Bool = true) {
        
        self.name = name.uppercased()
        self.description = description
        self.isActive = isActive
    }
    
    required init(row: Row) throws {
        
        name = try row.get(Market.Keys.name)
        description = try row.get(Market.Keys.description)
        isActive = try row.get(Market.Keys.isActive)
    }
    
    init(json: JSON) throws {

            builder.string(Market.Keys.name, unique: true)
            builder.string(Market.Keys.description)
            builder.bool(Market.Keys.isActive)
            builder.double(Market.Keys.lastPrice, optional: true)
        }
    }
    
