search

Home  >  Q&A  >  body text

数据库 - iOS客户端如何设计用于存储聊天记录的表?

除了表之外其他的存储方式也可以,现在没有思路不知道该如何设计。

大家讲道理大家讲道理2772 days ago670

reply all(4)I'll reply

  • 黄舟

    黄舟2017-04-17 11:45:40

    The sqlite files of QQ and WeChat are unencrypted, you can open them to see the table structure reference. General historical data is archived in sqlite, and the recent contact list with the last message is simply stored in plist.

    reply
    0
  • 高洛峰

    高洛峰2017-04-17 11:45:40

    Use files, one file corresponds to one chat object

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:45:40

    Coredata, sqlite, files are all fine, it depends on what you use

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 11:45:40

    It is recommended that you take a look at the SQLight structure of WeChat. One session is one table, and pictures, sounds, expressions are stored in files. Each record must have at least ID, message type, message body, sending time, from, to, etc.

    reply
    0
  • Cancelreply