My syntax for the postman JSON post reguest is:

```
{
    "id": 3,
    "type": "Colonial",
    "Location": 1.1,
    "Postnumber": 1424,
    "City": "Helsinki",
    "Reservation_time": "1112"
}

These column hold values in postgresDB
id = serial
type = varchar
location = point
postnumber = int
City = varchar
Reservation time = varchar

```

I cant figure out what is wrong as the error i get is wrong type for integer. 

Edit: added endpoint model and service.

Model:

```
exports.createTila = async (id, type, location, postnumber, city, reservation_time) => {
  try {
    const result = await client.query(
      "INSERT INTO tila (id, type, location, postnumber, city, reservation_time) VALUES$
      [id, type, location, postnumber, city, reservation_time]
    );
    return result.rows;
  } catch (err) {
    throw new Error(err);
  }
};

```

Service:

```
exports.createTila = async (request, response) => {
  try {
    const tilaObject = request.body;
    const newTila = await tilaModel.createTila(tilaObject);
    response.status(200).send(newTila);
  } catch (err) {
    response.status(400).send({ message: err.message });
  }
};

```