Use qint64 for message ID type.
The database stores the message identifier as a text string.
However, the application should use qint64 when dealing with messages outside the database. ISDS currently stores messages with ID < 300000000. Storing this values takes at least 10 bytes when using strings.
The usage of 32-bit integers is not recommendable as the maximal number which can be represented is expected to be exceeded.