             [
                 "id": id,
                 "name": name,
-                "code": code,
-                "image": image
+                "description" : description,
+                "price" : price,
+            	  "count" : count,
+            	  "image_url_1" : image_url_1,
+            	  "image_url_2" : image_url_2
+
             ]
         )
     }

extension Product {
    mutating func merge(updates: Product) {
        id = updates.id ?? id
        code = updates.code ?? code
        name = updates.name ?? name
        image = updates.image ?? image
    }
}

    static func prepare(_ database: Database) throws {
        try database.create("products") { users in
            users.id()
            users.string("name")
            users.string("description")
            users.double("price")
            users.int("count")
            users.string("image_url_1")
            users.string("image_url_2")
        }
    }

