[SQLCipher]微信数据库 EnMicroMsg.db 的结构

最近这段时间在研究微信数据库的破解和数据读取,根据网上很多大佬的文章的指引,成功拿到了微信数据库的密码,写了个APP,也能成功读取 DB 里的数据。

但是,DB 里面都有哪些表呢?好说,把DB文件导出,用可视化工具打开看看就知道了。

可惜现实并不那么美好,虽然拿到了密码,但是在PC上打开DB时,就是打不开!!!


[SQLCipher]微信数据库 EnMicroMsg.db 的结构_第1张图片
在PC上无法打开

于是分析进程一度受阻……
难道就没办法知道这个 DB 里面都有什么表了?不应该,如果没办法查到有哪些表,那可视化工具又是怎么获取到数据的呢?

正在犯难之际,突然想到 sqlite_master 表。在 [SQLite]判断表是否存在 中我们说过,这张表是由 SQLite 自动维护的,用于记录使用过程中生成的 table、view、index、trigger 等信息。那么,我们也就只需要查一遍 sqlite_master 表就知道里面都有哪些表了。

SQL 语句如下:

SELECT * FROM sqlite_master ORDER BY type DESC

Java 代码如下:

CursorWrapper cw = new CursorWrapper(db.rawQuery("SELECT * FROM sqlite_master ORDER BY type DESC", null));
int colCount = cw.getColumnCount();
List> mapList = new ArrayList<>(cw.getCount());
while (cw.moveToNext()) {
    Map map = new HashMap<>();
    for (int i = 0; i < colCount; i++) {
        String name = cw.getColumnName(i);
        int type = cw.getType(i);
        if (type == Cursor.FIELD_TYPE_BLOB) {
            map.put(name, cw.getBlob(i));
        }
        else {
            map.put(name, cw.getString(i));
        }
    }
    mapList.add(map);
}

PS:这里为了查看 sqlite_master 里面到底都有些什么,我故意没有加 type='table' 的判断。

在得到 mapList 后,只需要使用第三方 Log 工具类将 mapList 打印出来即可看到 sqlite_master 内部的信息:

//com.apkfuns.logutils.LogUtils
LogUtils.e(tableList);

打印结果:

java.util.ArrayList size = 425 [
    [0]:java.util.HashMap [
    name -> "userinfo"
    rootpage -> "2"
    type -> "table"
    sql -> "CREATE TABLE userinfo ( id INTEGER PRIMARY KEY, type INT, value TEXT )"
    tbl_name -> "userinfo"
    ],
    [1]:java.util.HashMap [
    name -> "userinfo2"
    rootpage -> "3"
    type -> "table"
    sql -> "CREATE TABLE userinfo2 ( sid TEXT PRIMARY KEY, type INT, value TEXT )"
    tbl_name -> "userinfo2"
    ],
    [2]:java.util.HashMap [
    name -> "TablesVersion"
    rootpage -> "5"
    type -> "table"
    sql -> "CREATE TABLE TablesVersion (  tableHash INTEGER PRIMARY KEY ,  tableSQLMD5 TEXT)"
    tbl_name -> "TablesVersion"
    ],
    [3]:java.util.HashMap [
    name -> "AddContactAntispamTicket"
    rootpage -> "6"
    type -> "table"
    sql -> "CREATE TABLE AddContactAntispamTicket (  userName TEXT,  scene INTEGER,  ticket TEXT)"
    tbl_name -> "AddContactAntispamTicket"
    ],
    [4]:java.util.HashMap [
    name -> "OpenIMAppIdInfo"
    rootpage -> "7"
    type -> "table"
    sql -> "CREATE TABLE OpenIMAppIdInfo (  appid TEXT,  language TEXT,  appRec BLOB,  updateTime LONG default '0' ,  acctTypeId TEXT)"
    tbl_name -> "OpenIMAppIdInfo"
    ],
    [5]:java.util.HashMap [
    name -> "walletcache"
    rootpage -> "8"
    type -> "table"
    sql -> "CREATE TABLE walletcache ( sid TEXT PRIMARY KEY, type INT, value TEXT )"
    tbl_name -> "walletcache"
    ],
    [6]:java.util.HashMap [
    name -> "OpenIMWordingInfo"
    rootpage -> "10"
    type -> "table"
    sql -> "CREATE TABLE OpenIMWordingInfo (  appid TEXT,  wordingId TEXT,  language TEXT,  wording TEXT,  pinyin TEXT,  quanpin TEXT,  updateTime LONG default '0' )"
    tbl_name -> "OpenIMWordingInfo"
    ],
    [7]:java.util.HashMap [
    name -> "WepkgVersion"
    rootpage -> "13"
    type -> "table"
    sql -> "CREATE TABLE WepkgVersion (  pkgId TEXT PRIMARY KEY ,  appId TEXT,  version TEXT,  pkgPath TEXT,  disableWvCache INTEGER default 'true' ,  clearPkgTime LONG,  checkIntervalTime LONG,  packMethod INTEGER,  domain TEXT,  md5 TEXT,  downloadUrl TEXT,  pkgSize INTEGER,  downloadNetType INTEGER,  nextCheckTime LONG,  createTime LONG,  accessTime LONG default '0' ,  charset TEXT default 'UTF-8' ,  bigPackageReady INTEGER default 'false' ,  preloadFilesReady INTEGER default 'false' ,  preloadFilesAtomic INTEGER default 'false' ,  autoDownloadCount INTEGER default '0' ,  disable INTEGER default 'false' ,  totalDownloadCount INTEGER default '0' ,  packageDownloadCount INTEGER default '0' ,  downloadTriggerType INTEGER default '-1' )"
    tbl_name -> "WepkgVersion"
    ],
    [8]:java.util.HashMap [
    name -> "DownloadTaskItem"
    rootpage -> "16"
    type -> "table"
    sql -> "CREATE TABLE DownloadTaskItem (  appId TEXT PRIMARY KEY ,  status INTEGER,  modifyTime LONG)"
    tbl_name -> "DownloadTaskItem"
    ],
    [9]:java.util.HashMap [
    name -> "ActiveInfo"
    rootpage -> "18"
    type -> "table"
    sql -> "CREATE TABLE ActiveInfo (  key INTEGER PRIMARY KEY  COLLATE NOCASE ,  mau INTEGER,  dau INTEGER,  useTime LONG)"
    tbl_name -> "ActiveInfo"
    ],
······ 此处省略大量数据 ······
    [414]:java.util.HashMap [
    name -> "ExdeviceRankFollowRankIdAppNameIndex"
    rootpage -> "529"
    type -> "index"
    sql -> "CREATE INDEX ExdeviceRankFollowRankIdAppNameIndex ON HardDeviceRankFollowInfo ( rankID, appusername )"
    tbl_name -> "HardDeviceRankFollowInfo"
    ],
    [415]:java.util.HashMap [
    name -> "openMsgListenerAppIdIndex"
    rootpage -> "533"
    type -> "index"
    sql -> "CREATE INDEX openMsgListenerAppIdIndex ON OpenMsgListener ( appId )"
    tbl_name -> "OpenMsgListener"
    ],
    [416]:java.util.HashMap [
    name -> "openMsgListenerStatusIndex"
    rootpage -> "535"
    type -> "index"
    sql -> "CREATE INDEX openMsgListenerStatusIndex ON OpenMsgListener ( status )"
    tbl_name -> "OpenMsgListener"
    ],
    [417]:java.util.HashMap [
    name -> "hardDeviceUsernameIndex"
    rootpage -> "541"
    type -> "index"
    sql -> "CREATE INDEX hardDeviceUsernameIndex ON HardDeviceInfo ( brandName )"
    tbl_name -> "HardDeviceInfo"
    ],
    [418]:java.util.HashMap [
    name -> "hardDeviceMacIndex"
    rootpage -> "542"
    type -> "index"
    sql -> "CREATE INDEX hardDeviceMacIndex ON HardDeviceInfo ( mac )"
    tbl_name -> "HardDeviceInfo"
    ],
    [419]:java.util.HashMap [
    name -> "functionIdIndex"
    rootpage -> "589"
    type -> "index"
    sql -> "CREATE INDEX functionIdIndex ON FunctionMsgItem(functionmsgid)"
    tbl_name -> "FunctionMsgItem"
    ],
    [420]:java.util.HashMap [
    name -> "contact_label_createtime_index"
    rootpage -> "599"
    type -> "index"
    sql -> "CREATE INDEX contact_label_createtime_index ON ContactLabel ( createTime )"
    tbl_name -> "ContactLabel"
    ],
    [421]:java.util.HashMap [
    name -> "order_flag_status_index"
    rootpage -> "628"
    type -> "index"
    sql -> "CREATE INDEX order_flag_status_index ON BizTimeLineInfo ( orderFlag,status )"
    tbl_name -> "BizTimeLineInfo"
    ],
    [422]:java.util.HashMap [
    name -> "order_flag_has_show_index"
    rootpage -> "648"
    type -> "index"
    sql -> "CREATE INDEX order_flag_has_show_index ON BizTimeLineInfo ( orderFlag,hasShow )"
    tbl_name -> "BizTimeLineInfo"
    ],
    [423]:java.util.HashMap [
    name -> "BizKFAppIdUsernameIndex"
    rootpage -> "593"
    type -> "index"
    sql -> "CREATE INDEX BizKFAppIdUsernameIndex ON BizKF ( brandUsername )"
    tbl_name -> "BizKF"
    ],
    [424]:java.util.HashMap [
    name -> "BizKFOpenIdIndex"
    rootpage -> "594"
    type -> "index"
    sql -> "CREATE INDEX BizKFOpenIdIndex ON BizKF ( openId )"
    tbl_name -> "BizKF"
    ]
]

可以看到仅 EnMicroMsg.db 一个 DB 文件就存在 425 个 tableindex,而且微信同时有很多个 DB 文件,各自功能也不一样。数量如此之庞大,对我这种很少用 DB 的人来说,确实相当震撼。

因限制,全部贴出后内容过长,无法发布,故这里去掉了中间很多内容。

因为这个 DB 文件,无法用 PC 上的可视化工具打开,因此即便得到了上面这一大串数据,对分析 DB 的帮助也没有那么明显。因此,我们可以考虑在 PC 上新建一个 DB 文件,并执行上面查到的所有 sql 语句

SQL 语句整理如下:

CREATE TABLE userinfo ( id INTEGER PRIMARY KEY, type INT, value TEXT );
CREATE TABLE userinfo2 ( sid TEXT PRIMARY KEY, type INT, value TEXT );
CREATE TABLE TablesVersion (  tableHash INTEGER PRIMARY KEY ,  tableSQLMD5 TEXT);
CREATE TABLE AddContactAntispamTicket (  userName TEXT,  scene INTEGER,  ticket TEXT);
CREATE TABLE OpenIMAppIdInfo (  appid TEXT,  language TEXT,  appRec BLOB,  updateTime LONG default '0' ,  acctTypeId TEXT);
CREATE TABLE walletcache ( sid TEXT PRIMARY KEY, type INT, value TEXT );
CREATE TABLE OpenIMWordingInfo (  appid TEXT,  wordingId TEXT,  language TEXT,  wording TEXT,  pinyin TEXT,  quanpin TEXT,  updateTime LONG default '0' );
CREATE TABLE WepkgVersion (  pkgId TEXT PRIMARY KEY ,  appId TEXT,  version TEXT,  pkgPath TEXT,  disableWvCache INTEGER default 'true' ,  clearPkgTime LONG,  checkIntervalTime LONG,  packMethod INTEGER,  domain TEXT,  md5 TEXT,  downloadUrl TEXT,  pkgSize INTEGER,  downloadNetType INTEGER,  nextCheckTime LONG,  createTime LONG,  accessTime LONG default '0' ,  charset TEXT default 'UTF-8' ,  bigPackageReady INTEGER default 'false' ,  preloadFilesReady INTEGER default 'false' ,  preloadFilesAtomic INTEGER default 'false' ,  autoDownloadCount INTEGER default '0' ,  disable INTEGER default 'false' ,  totalDownloadCount INTEGER default '0' ,  packageDownloadCount INTEGER default '0' ,  downloadTriggerType INTEGER default '-1' );
CREATE TABLE DownloadTaskItem (  appId TEXT PRIMARY KEY ,  status INTEGER,  modifyTime LONG);
CREATE TABLE ActiveInfo (  key INTEGER PRIMARY KEY  COLLATE NOCASE ,  mau INTEGER,  dau INTEGER,  useTime LONG);
CREATE TABLE OpenIMAccTypeInfo (  acctTypeId TEXT,  language TEXT,  accTypeRec BLOB,  updateTime LONG default '0' );
CREATE TABLE WidgetSafeMode (  appid TEXT PRIMARY KEY ,  jsExceptionCount INTEGER,  crashCount INTEGER,  beginTimestamp LONG,  pkgVersion INTEGER);
CREATE TABLE GameRawMessage (  msgId LONG PRIMARY KEY ,  mergerId TEXT,  gameMsgId TEXT,  msgType INTEGER,  createTime LONG default '0' ,  expireTime LONG default '0' ,  appId TEXT,  showInMsgList INTEGER default 'true' ,  isRead INTEGER default 'false' ,  label TEXT default '' ,  isHidden INTEGER default 'false' ,  weight TEXT default '' ,  rawXML TEXT default '' ,  receiveTime LONG default '0' );
CREATE TABLE PBCache (  key TEXT PRIMARY KEY ,  value BLOB);
CREATE TABLE bizchatmessage ( msgId INTEGER PRIMARY KEY, msgSvrId INTEGER , type INT, status INT, isSend INT, isShowTimer INTEGER, createTime INTEGER, talker TEXT, content TEXT, imgPath TEXT, reserved TEXT, lvbuffer BLOB, transContent TEXT, transBrandWording TEXT, bizChatId INTEGER DEFAULT -1, bizChatUserId TEXT , talkerId INTEGER, bizClientMsgId TEXT, msgSeq INTEGER, flag INT DEFAULT 0);
CREATE TABLE FileDownloadInfo (  downloadId LONG default '-1'  PRIMARY KEY ,  downloadUrl TEXT default '' ,  secondaryUrl TEXT default '' ,  fileSize LONG default '0' ,  fileName TEXT default '' ,  filePath TEXT default '' ,  fileType INTEGER default '0' ,  status INTEGER default '0' ,  md5 TEXT default '' ,  autoInstall INTEGER default 'false' ,  showNotification INTEGER default 'false' ,  sysDownloadId LONG default '-1' ,  downloaderType INTEGER default '0' ,  appId TEXT default '' ,  downloadUrlHashCode INTEGER default '0' ,  packageName TEXT default '' ,  downloadedSize LONG default '0' ,  totalSize LONG default '0' ,  autoDownload INTEGER default 'false' ,  channelId TEXT default '' ,  scene INTEGER default '0' ,  errCode INTEGER default '0' ,  startTime LONG default '0' ,  startSize LONG default '0' ,  startState INTEGER default '0' ,  fromWeApp INTEGER default 'false' ,  downloadInWifi INTEGER default 'false' ,  extInfo TEXT default '' ,  finishTime LONG default '0' ,  isSecondDownload INTEGER default 'false' ,  fromDownloadApp INTEGER default 'false' ,  updateTime LONG default '0' ,  reserveInWifi INTEGER default 'false' );
CREATE TABLE role_info ( id TEXT PRIMARY KEY, name TEXT, status INT, text_reserved1 TEXT, text_reserved2 TEXT, text_reserved3 TEXT, text_reserved4 TEXT, int_reserved1 INT, int_reserved2 INT, int_reserved3 INT, int_reserved4 INT );
CREATE TABLE GamePBCache (  key TEXT PRIMARY KEY ,  value BLOB);
CREATE TABLE FunctionMsgItem (  cgi TEXT,  cmdid INTEGER,  functionmsgid TEXT PRIMARY KEY ,  version LONG,  preVersion LONG,  retryinterval INTEGER,  reportid INTEGER,  successkey INTEGER,  failkey INTEGER,  finalfailkey INTEGER,  custombuff TEXT,  addMsg BLOB,  status INTEGER default '-1' ,  needShow INTEGER default 'false' ,  defaultContent TEXT,  actionTime LONG default '-1' ,  delayTime LONG default '-1' ,  retryCount INTEGER default '0' ,  retryCountLimit INTEGER default '0' ,  businessInfo BLOB,  opCode INTEGER default '-1' );
CREATE TABLE SportStepItem (  id INTEGER default '0'  PRIMARY KEY ,  date TEXT,  step INTEGER,  timestamp LONG);
CREATE TABLE BizTimeLineInfo (  msgId LONG PRIMARY KEY ,  msgSvrId LONG,  type INTEGER,  status INTEGER,  createTime LONG,  talker TEXT,  content TEXT default '' ,  imgPath TEXT,  lvbuffer BLOB,  talkerId INTEGER,  isExpand INTEGER,  orderFlag LONG default '0' ,  hasShow INTEGER default '1' ,  placeTop INTEGER default '1' ,  appMsgStatInfoProto BLOB,  isRead INTEGER default '0' ,  bitFlag INTEGER default '0' );
CREATE TABLE rcontact (  username TEXT default ''  PRIMARY KEY ,  alias TEXT default '' ,  conRemark TEXT default '' ,  domainList TEXT default '' ,  nickname TEXT default '' ,  pyInitial TEXT default '' ,  quanPin TEXT default '' ,  showHead INTEGER default '0' ,  type INTEGER default '0' ,  weiboFlag INTEGER default '0' ,  weiboNickname TEXT default '' ,  conRemarkPYFull TEXT default '' ,  conRemarkPYShort TEXT default '' ,  lvbuff BLOB,  verifyFlag INTEGER default '0' ,  encryptUsername TEXT default '' ,  chatroomFlag INTEGER,  deleteFlag INTEGER default '0' ,  contactLabelIds TEXT default '' ,  descWordingId TEXT default '' ,  openImAppid TEXT);
CREATE TABLE bottlecontact (  username TEXT default ''  PRIMARY KEY ,  alias TEXT default '' ,  conRemark TEXT default '' ,  domainList TEXT default '' ,  nickname TEXT default '' ,  pyInitial TEXT default '' ,  quanPin TEXT default '' ,  showHead INTEGER default '0' ,  type INTEGER default '0' ,  weiboFlag INTEGER default '0' ,  weiboNickname TEXT default '' ,  conRemarkPYFull TEXT default '' ,  conRemarkPYShort TEXT default '' ,  lvbuff BLOB,  verifyFlag INTEGER default '0' ,  encryptUsername TEXT default '' ,  chatroomFlag INTEGER,  deleteFlag INTEGER default '0' ,  contactLabelIds TEXT default '' ,  descWordingId TEXT default '' ,  openImAppid TEXT);
CREATE TABLE ContactCmdBuf (  username TEXT default ''  PRIMARY KEY ,  cmdbuf BLOB default '' );
CREATE TABLE contact ( contactID INTEGER PRIMARY KEY, sex INT, type INT, showHead INT, username VARCHAR(40), nickname VARCHAR(40), pyInitial VARCHAR(40), quanPin VARCHAR(60), reserved TEXT );
CREATE TABLE contact_ext ( username VARCHAR(40), Uin INTEGER DEFAULT 0, Email VARCHAR(128), Mobile VARCHAR(40), ShowFlag INTEGER DEFAULT 0 , ConType INTEGER DEFAULT 0 , ConRemark TEXT, ConRemark_PYShort TEXT, ConRemark_PYFull TEXT, ConQQMBlog TEXT, ConSMBlog TEXT, DomainList TEXT, reserved1 INT DEFAULT 0 , reserved2 INT DEFAULT 0 , reserved3 INT DEFAULT 0 , reserved4 INT DEFAULT 0 , reserved5 INT DEFAULT 0 , reserved6 TEXT, reserved7 TEXT, reserved8 TEXT, reserved9 TEXT, reserved10 TEXT, weiboflag  INT DEFAULT 0 ,weibonickname TEXT  );
CREATE TABLE bottlemessage ( msgId INTEGER PRIMARY KEY, msgSvrId INTEGER , type INT, status INT, isSend INT, isShowTimer INTEGER, createTime INTEGER, talker TEXT, content TEXT, imgPath TEXT, reserved TEXT, lvbuffer BLOB, transContent TEXT, transBrandWording TEXT , talkerId INTEGER, bizClientMsgId TEXT, bizChatId INTEGER DEFAULT -1, bizChatUserId TEXT, msgSeq INTEGER, flag INT DEFAULT 0);
CREATE TABLE qmessage ( msgId INTEGER PRIMARY KEY, msgSvrId INTEGER , type INT, status INT, isSend INT, isShowTimer INTEGER, createTime INTEGER, talker TEXT, content TEXT, imgPath TEXT, reserved TEXT, lvbuffer BLOB, transContent TEXT, transBrandWording TEXT , talkerId INTEGER, bizClientMsgId TEXT, bizChatId INTEGER DEFAULT -1, bizChatUserId TEXT, msgSeq INTEGER, flag INT DEFAULT 0);
CREATE TABLE tmessage ( msgId INTEGER PRIMARY KEY, msgSvrId INTEGER , type INT, status INT, isSend INT, isShowTimer INTEGER, createTime INTEGER, talker TEXT, content TEXT, imgPath TEXT, reserved TEXT, lvbuffer BLOB, transContent TEXT, transBrandWording TEXT , talkerId INTEGER, bizClientMsgId TEXT, bizChatId INTEGER DEFAULT -1, bizChatUserId TEXT, msgSeq INTEGER, flag INT DEFAULT 0);
CREATE TABLE GameSilentDownload (  appId TEXT PRIMARY KEY ,  downloadUrl TEXT,  size LONG default '0' ,  md5 TEXT,  packageName TEXT,  expireTime LONG default '0' ,  randomTime LONG default '0' ,  isFirst INTEGER default 'true' ,  nextCheckTime LONG default '0' ,  isRunning INTEGER default 'false' ,  noWifi INTEGER default 'true' ,  noSdcard INTEGER default 'true' ,  noEnoughSpace INTEGER default 'true' ,  lowBattery INTEGER default 'true' ,  continueDelay INTEGER default 'true' ,  SecondaryUrl TEXT,  downloadInWidget INTEGER);
CREATE TABLE ForceNotifyInfo (  ForcePushId TEXT,  CreateTime LONG,  ExpiredTime LONG,  Description TEXT,  UserIcon TEXT,  UserName TEXT PRIMARY KEY ,  Extinfo TEXT,  Status INTEGER default '0' );
CREATE TABLE MediaDuplication  (md5 text , size int , path text , createtime long, remuxing text, duration int, status int);
CREATE TABLE BizTimeLineSingleMsgInfo (  msgId LONG PRIMARY KEY ,  msgSvrId LONG,  type INTEGER,  status INTEGER,  createTime LONG,  talker TEXT,  content TEXT default '' ,  imgPath TEXT,  lvbuffer BLOB,  talkerId INTEGER,  isExpand INTEGER,  orderFlag LONG default '0' ,  hasShow INTEGER default '1' ,  placeTop INTEGER default '1' ,  appMsgStatInfoProto BLOB,  isRead INTEGER default '0' ,  bitFlag INTEGER default '0' );
CREATE TABLE DeletedConversationInfo ( userName TEXT  PRIMARY KEY , lastSeq LONG  , reserved1 INT  , reserved2 LONG  , reserved3 TEXT  );
CREATE TABLE BackupTempMoveTime (  sessionName TEXT default '' ,  startTime LONG default '0' ,  endTime LONG default '0' );
CREATE TABLE WePkgDiffPackage (  pkgId TEXT PRIMARY KEY ,  version TEXT,  oldVersion TEXT,  oldPath TEXT,  md5 TEXT,  downloadUrl TEXT,  pkgSize INTEGER,  downloadNetType INTEGER);
CREATE TABLE appattach (  appId TEXT,  sdkVer LONG,  mediaSvrId TEXT,  mediaId TEXT,  clientAppDataId TEXT,  type LONG,  totalLen LONG,  offset LONG,  status LONG,  isUpload INTEGER,  createTime LONG,  lastModifyTime LONG,  fileFullPath TEXT,  fullXml TEXT,  msgInfoId LONG,  netTimes LONG,  isUseCdn INTEGER,  signature TEXT,  fakeAeskey TEXT,  fakeSignature TEXT);
CREATE TABLE CdnDownloadInfo (  mediaId TEXT,  downloadUrlHashCode INTEGER PRIMARY KEY ,  downloadUrl TEXT,  httpsUrl TEXT,  filePath TEXT,  verifyHeaders TEXT,  game_package_download INTEGER,  allowMobileNetDownload INTEGER,  wifiAutoDownload INTEGER);
CREATE TABLE shakeverifymessage (  svrid LONG default '0'  PRIMARY KEY ,  status INTEGER,  type INTEGER,  scene INTEGER,  createtime LONG,  talker TEXT,  content TEXT,  sayhiuser TEXT,  sayhicontent TEXT,  imgpath TEXT,  isSend INTEGER);
CREATE TABLE LabAppInfo (  LabsAppId TEXT PRIMARY KEY ,  expId TEXT default '' ,  Type INTEGER default '0' ,  BizType INTEGER default '0' ,  Switch INTEGER default '0' ,  AllVer INTEGER default '0' ,  DetailURL TEXT,  WeAppUser TEXT,  WeAppPath TEXT,  Pos INTEGER default '0' ,  TitleKey_android TEXT,  Title_cn TEXT,  Title_hk TEXT,  Title_tw TEXT,  Title_en TEXT,  Desc_cn TEXT,  Desc_hk TEXT,  Desc_tw TEXT,  Desc_en TEXT,  Introduce_cn TEXT,  Introduce_hk TEXT,  Introduce_tw TEXT,  Introduce_en TEXT,  starttime LONG,  endtime LONG,  sequence LONG,  prioritylevel INTEGER,  status INTEGER,  ThumbUrl_cn TEXT,  ThumbUrl_hk TEXT,  ThumbUrl_tw TEXT,  ThumbUrl_en TEXT,  ImgUrl_android_cn TEXT,  ImgUrl_android_hk TEXT,  ImgUrl_android_tw TEXT,  ImgUrl_android_en TEXT,  RedPoint INTEGER,  WeAppDebugMode INTEGER,  idkey INTEGER,  idkeyValue INTEGER,  Icon TEXT,  ImgUrl_cn TEXT,  ImgUrl_hk TEXT,  ImgUrl_tw TEXT,  ImgUrl_en TEXT,  bItemFromXExpt INTEGER);
CREATE TABLE WepkgPreloadFiles (  key TEXT PRIMARY KEY ,  pkgId TEXT,  version TEXT,  filePath TEXT,  rid TEXT,  mimeType TEXT,  md5 TEXT,  downloadUrl TEXT,  size INTEGER,  downloadNetType INTEGER,  completeDownload INTEGER default 'false' ,  createTime LONG,  autoDownloadCount INTEGER default '0' ,  fileDownloadCount INTEGER default '0' );
CREATE TABLE appbrandmessage ( msgId INTEGER PRIMARY KEY, msgSvrId INTEGER , type INT, status INT, isSend INT, isShowTimer INTEGER, createTime INTEGER, talker TEXT, content TEXT, imgPath TEXT, reserved TEXT, lvbuffer BLOB, transContent TEXT, transBrandWording TEXT , talkerId INTEGER, bizClientMsgId TEXT, bizChatId INTEGER DEFAULT -1, bizChatUserId TEXT, msgSeq INTEGER, flag INT DEFAULT 0);
CREATE TABLE AppInfo (  appId TEXT default ''  PRIMARY KEY ,  appName TEXT,  appDiscription TEXT,  appIconUrl TEXT,  appStoreUrl TEXT,  appVersion INTEGER,  appWatermarkUrl TEXT,  packageName TEXT,  status INTEGER,  signature TEXT,  modifyTime LONG,  appName_en TEXT,  appName_tw TEXT,  appName_hk TEXT,  appDiscription_en TEXT,  appDiscription_tw TEXT,  appType TEXT,  openId TEXT,  authFlag INTEGER,  appInfoFlag INTEGER default '-1' ,  lvbuff BLOB,  serviceAppType INTEGER default '0' ,  serviceAppInfoFlag INTEGER default '0' ,  serviceShowFlag INTEGER default '0' ,  appSupportContentType LONG default '0' ,  svrAppSupportContentType LONG default '0' );
CREATE TABLE chatroom (  chatroomname TEXT default ''  PRIMARY KEY ,  addtime LONG,  memberlist TEXT,  displayname TEXT,  chatroomnick TEXT,  roomflag INTEGER,  roomowner TEXT,  roomdata BLOB,  isShowname INTEGER,  selfDisplayName TEXT,  style INTEGER,  chatroomdataflag INTEGER,  modifytime LONG,  chatroomnotice TEXT,  chatroomVersion INTEGER,  chatroomnoticeEditor TEXT,  chatroomnoticePublishTime LONG,  chatroomLocalVersion LONG,  chatroomStatus INTEGER default '0' ,  memberCount INTEGER default '-1' );
CREATE TABLE fmessage_msginfo (  msgContent TEXT default '' ,  isSend INTEGER default '0' ,  talker TEXT default '' ,  encryptTalker TEXT default '' ,  svrId LONG default '0' ,  type INTEGER default '0' ,  createTime LONG default '0' ,  chatroomName TEXT default '' );
CREATE TABLE BackupRecoverMsgListDataId (  msgListDataId TEXT PRIMARY KEY ,  sessionName TEXT default '' );
CREATE TABLE Music (  musicId TEXT PRIMARY KEY ,  originMusicId TEXT,  musicType INTEGER,  downloadedLength LONG,  wifiDownloadedLength LONG,  endFlag INTEGER,  wifiEndFlag INTEGER,  updateTime LONG,  songId INTEGER,  songName TEXT,  songSinger TEXT,  songAlbum TEXT,  songAlbumType INTEGER,  songAlbumUrl TEXT,  songHAlbumUrl TEXT,  songAlbumLocalPath TEXT,  songWifiUrl TEXT,  songWapLinkUrl TEXT,  songWebUrl TEXT,  appId TEXT,  songMediaId TEXT,  songSnsAlbumUser TEXT,  songSnsShareUser TEXT,  songLyric TEXT,  songBgColor INTEGER,  songLyricColor INTEGER,  songFileLength LONG,  songWifiFileLength LONG,  hideBanner INTEGER,  jsWebUrlDomain TEXT,  isBlock INTEGER,  startTime INTEGER,  mimetype TEXT,  protocol TEXT,  barBackToWebView INTEGER,  musicbar_url TEXT);
CREATE TABLE ImgInfo ( id INTEGER PRIMARY KEY, msgSvrId LONG, offset INT, totalLen INT, bigImgPath TEXT, thumbImgPath TEXT );
CREATE TABLE ImgInfo2 ( id INTEGER PRIMARY KEY, msgSvrId LONG, offset INT, totalLen INT, bigImgPath TEXT, thumbImgPath TEXT, createtime INT, msglocalid INT, status INT, nettimes INT, reserved1 int  , reserved2 int  , reserved3 text  , reserved4 text, hashdthumb int DEFAULT 0, iscomplete INT DEFAULT 1, origImgMD5 TEXT, compressType INT DEFAULT 0, midImgPath TEXT, forwardType INT DEFAULT 0, hevcPath TEXT );
CREATE TABLE RemittanceRecord (  transferId TEXT PRIMARY KEY ,  locaMsgId LONG,  receiveStatus INTEGER default '-1' ,  isSend INTEGER);
CREATE TABLE NewTipsInfo (  tipId INTEGER default '0'  PRIMARY KEY ,  tipVersion INTEGER,  tipkey TEXT,  tipType INTEGER,  isExit INTEGER,  hadRead INTEGER,  isReject INTEGER,  beginShowTime LONG,  disappearTime LONG,  overdueTime LONG,  tipsShowInfo BLOB,  extInfo TEXT,  pagestaytime LONG);
CREATE TABLE LBSVerifyMessage (  svrid LONG default '0'  PRIMARY KEY ,  status INTEGER,  type INTEGER,  scene INTEGER,  createtime LONG,  talker TEXT,  content TEXT,  sayhiuser TEXT,  sayhicontent TEXT,  imgpath TEXT,  isSend INTEGER,  sayhiencryptuser TEXT,  ticket TEXT,  flag INTEGER);
CREATE TABLE BackupMoveTime (  deviceId TEXT default '' ,  sessionName TEXT default '' ,  moveTime BLOB default '' );
CREATE TABLE PieceMusicInfo (  musicId TEXT PRIMARY KEY ,  musicUrl TEXT,  fileName TEXT,  indexBitData BLOB,  fileCacheComplete INTEGER,  pieceFileMIMEType TEXT,  removeDirtyBit INTEGER);
CREATE TABLE VoiceTransText (  msgId LONG PRIMARY KEY ,  cmsgId TEXT,  content TEXT default '' );
CREATE TABLE DelayTransferRecord (  msgId LONG PRIMARY KEY ,  transferId TEXT);
CREATE TABLE bottleinfo1 ( parentclientid text  , childcount int  , bottleid text  PRIMARY KEY , bottletype int  , msgtype int  , voicelen int  , content text  , createtime long  , reserved1 int  , reserved2 int  , reserved3 text  , reserved4 text  );
CREATE TABLE ChatroomMsgSeq (  username TEXT default ''  PRIMARY KEY ,  lastPushSeq LONG,  lastLocalSeq LONG,  lastPushCreateTime LONG,  lastLocalCreateTime LONG,  seqBlockInfo BLOB);
CREATE TABLE OfflineOrderStatus (  reqkey TEXT PRIMARY KEY ,  ack_key TEXT,  status INTEGER,  receive_time LONG);
CREATE TABLE shaketvhistory (  username TEXT default ''  PRIMARY KEY ,  deeplink TEXT default '' ,  title TEXT default '' ,  iconurl TEXT default '' ,  createtime LONG default '' );
CREATE TABLE voiceinfo ( FileName TEXT PRIMARY KEY, User TEXT, MsgId INT, NetOffset INT, FileNowSize INT, TotalLen INT, Status INT, CreateTime INT, LastModifyTime INT, ClientId TEXT, VoiceLength INT, MsgLocalId INT, Human TEXT, reserved1 INT, reserved2 TEXT, MsgSource TEXT, MsgFlag INT, MsgSeq INT, MasterBufId INT, checksum INT DEFAULT 0 );
CREATE TABLE OrderCommonMsgXml (  msgId TEXT PRIMARY KEY ,  msgContentXml TEXT,  isRead TEXT);
CREATE TABLE EmojiGroupInfo (  productID TEXT PRIMARY KEY  COLLATE NOCASE ,  packIconUrl TEXT,  packGrayIconUrl TEXT,  packCoverUrl TEXT,  packName TEXT,  packDesc TEXT,  packAuthInfo TEXT,  packPrice TEXT,  packType INTEGER,  packFlag INTEGER,  packExpire LONG,  packTimeStamp LONG,  packCopyright TEXT,  type INTEGER,  status INTEGER,  sort INTEGER default '1' ,  lastUseTime LONG,  packStatus INTEGER default '0' ,  flag INTEGER default '0' ,  recommand INTEGER default '0' ,  sync INTEGER default '0' ,  idx INTEGER default '0' ,  BigIconUrl TEXT,  MutiLanName TEXT,  recommandType INTEGER default '-1' ,  lang TEXT,  recommandWord TEXT,  buttonType INTEGER,  count INTEGER);
CREATE TABLE oplog2 ( id INTEGER PRIMARY KEY , inserTime long , cmdId int , buffer blob , reserved1 int , reserved2 long , reserved3 text , reserved4 text );
CREATE TABLE ShakeNewYearFriendInfo (  username TEXT default ''  PRIMARY KEY ,  lastshaketime INTEGER default '0' ,  isshowed INTEGER default 'false' );
CREATE TABLE ScanTranslationResult (  originMD5 TEXT PRIMARY KEY ,  resultFile TEXT,  fromLang TEXT,  toLang TEXT);
CREATE TABLE GoogleFriend (  googleid TEXT,  googlename TEXT,  googlephotourl TEXT,  googlegmail TEXT,  username TEXT,  nickname TEXT,  nicknameqp TEXT,  usernamepy TEXT,  small_url TEXT,  big_url TEXT,  ret INTEGER,  status INTEGER,  googleitemid TEXT PRIMARY KEY ,  googlecgistatus INTEGER default '2' ,  contecttype TEXT,  googlenamepy TEXT);
CREATE TABLE netstat ( id INTEGER PRIMARY KEY, peroid INT, textCountIn INT, textBytesIn INT, imageCountIn INT, imageBytesIn INT, voiceCountIn INT, voiceBytesIn INT, videoCountIn INT, videoBytesIn INT, mobileBytesIn INT, wifiBytesIn INT, sysMobileBytesIn INT, sysWifiBytesIn INT, textCountOut INT, textBytesOut INT, imageCountOut INT, imageBytesOut INT, voiceCountOut INT, voiceBytesOut INT, videoCountOut INT, videoBytesOut INT, mobileBytesOut INT, wifiBytesOut INT, sysMobileBytesOut INT, sysWifiBytesOut INT, reserved1 INT, reserved2 INT, reserved3 TEXT, realMobileBytesIn INT, realWifiBytesIn INT, realMobileBytesOut INT, realWifiBytesOut INT);
CREATE TABLE SmileyPanelConfigInfo (  key TEXT PRIMARY KEY ,  position INTEGER);
CREATE TABLE verifycontact ( id INTEGER PRIMARY KEY, username varchar(40), nickname varchar(40), fullpy varchar(60), shortpy varchar(40), imgflag int, scene int, content text, status int, reserved1 int,reserved2 int,reserved3 text,reserved4 text);
CREATE TABLE shakemessage (  svrid LONG default '0'  PRIMARY KEY ,  type INTEGER,  subtype INTEGER default '0' ,  createtime LONG,  tag TEXT,  status INTEGER,  title TEXT,  desc TEXT,  thumburl TEXT,  reserved1 TEXT,  reserved2 TEXT,  reserved3 INTEGER,  reservedBuf BLOB);
CREATE TABLE ScanHistoryItem (  productId TEXT PRIMARY KEY ,  xmlContent TEXT,  ScanTime LONG,  funcType INTEGER,  qrcodeUrl TEXT,  scene INTEGER);
CREATE TABLE invitefriendopen ( username text  PRIMARY KEY , friendtype int  , updatetime int  , reserved1 int  , reserved2 int  , reserved3 text  , reserved4 text  );
CREATE TABLE EmotionDesignerInfo (  designerIDAndType TEXT PRIMARY KEY ,  content BLOB default '' );
CREATE TABLE UserOpenIdInApp (  openId TEXT PRIMARY KEY ,  appId TEXT,  username TEXT);
CREATE TABLE message ( msgId INTEGER PRIMARY KEY, msgSvrId INTEGER , type INT, status INT, isSend INT, isShowTimer INTEGER, createTime INTEGER, talker TEXT, content TEXT, imgPath TEXT, reserved TEXT, lvbuffer BLOB, transContent TEXT,transBrandWording TEXT ,talkerId INTEGER, bizClientMsgId TEXT, bizChatId INTEGER DEFAULT -1, bizChatUserId TEXT, msgSeq INTEGER, flag INT);
CREATE TABLE shakeitem1 (  shakeItemID INTEGER default '0'  PRIMARY KEY ,  username TEXT,  nickname TEXT,  province TEXT,  city TEXT,  signature TEXT,  distance TEXT,  sex INTEGER,  imgstatus INTEGER,  hasHDImg INTEGER,  insertBatch INTEGER,  reserved1 INTEGER,  reserved2 INTEGER,  reserved3 TEXT,  reserved4 TEXT,  type INTEGER,  lvbuffer BLOB,  regionCode TEXT,  snsFlag INTEGER,  sns_bgurl TEXT);
CREATE TABLE qqlist ( qq long  PRIMARY KEY , wexinstatus int  , groupid int  , username text  , nickname text  , pyinitial text  , quanpin text  , qqnickname text  , qqpyinitial text  , qqquanpin text  , qqremark text  , qqremarkpyinitial text  , qqremarkquanpin text  , reserved1 text  , reserved2 text  , reserved3 int  , reserved4 int  );
CREATE TABLE BizAppMsgReportContext (  appMsgReportContextId LONG PRIMARY KEY ,  url TEXT,  reportTime LONG,  aScene INTEGER);
CREATE TABLE EmotionDetailInfo (  productID TEXT PRIMARY KEY ,  content BLOB default '' ,  lan TEXT default '' );
CREATE TABLE OpenMsgListener (  appId TEXT PRIMARY KEY ,  packageName TEXT,  status INTEGER default '0' ,  sceneFlag INTEGER default '0' ,  msgTypeFlag INTEGER default '0' ,  msgState INTEGER default '0' );
CREATE TABLE GetSysCmdMsgInfo (  originSvrId LONG PRIMARY KEY ,  newMsgId LONG,  fromUserName TEXT default '' ,  toUserName TEXT default '' ,  createTime LONG default '0' ,  content TEXT default '' ,  msgSource TEXT default '' ,  msgSeq INTEGER,  flag INTEGER,  reserved1 INTEGER,  reserved2 LONG,  reserved3 TEXT default '' ,  reserved4 TEXT default '' );
CREATE TABLE AAPayRecord (  payMsgId TEXT PRIMARY KEY ,  insertmsg INTEGER,  chatroom TEXT,  msgId LONG);
CREATE TABLE friend_ext ( username text  PRIMARY KEY , sex int  , personalcard int  , province text  , city text  , signature text  , reserved1 text  , reserved2 text  , reserved3 text  , reserved4 text  , reserved5 int  , reserved6 int  , reserved7 int  , reserved8 int  );
CREATE TABLE WalletRegionGreyAreaList (  wallet_region INTEGER PRIMARY KEY ,  wallet_grey_item_buf BLOB);
CREATE TABLE SafeDeviceInfo (  uid TEXT default ''  PRIMARY KEY ,  name TEXT default '' ,  devicetype TEXT default '' ,  createtime LONG default '0' );
CREATE TABLE Stranger (  encryptUsername TEXT default ''  PRIMARY KEY ,  conRemark TEXT default '' ,  contactLabels TEXT default '' ,  conDescription TEXT default '' ,  conPhone TEXT default '' );
CREATE TABLE AARecord (  billNo TEXT PRIMARY KEY ,  insertmsg INTEGER,  localMsgId LONG,  status INTEGER default '-1' );
CREATE TABLE addr_upload2 ( id int  PRIMARY KEY , md5 text  , peopleid text  , uploadtime long  , realname text  , realnamepyinitial text  , realnamequanpin text  , username text  , nickname text  , nicknamepyinitial text  , nicknamequanpin text  , type int  , moblie text  , email text  , status int  , reserved1 text  , reserved2 text  , reserved3 int  , reserved4 int , lvbuf BLOG , showhead int  );
CREATE TABLE EmotionRewardTipInfo (  prodcutID TEXT PRIMARY KEY ,  totalCount INTEGER,  continuCount INTEGER,  flag INTEGER,  modifyTime LONG,  showTipsTime LONG,  setFlagTime LONG);
CREATE TABLE LoanEntryInfo (  title TEXT PRIMARY KEY ,  loan_jump_url TEXT,  red_dot_index INTEGER,  is_show_entry INTEGER,  tips TEXT,  is_overdue INTEGER,  available_otb TEXT);
CREATE TABLE fmessage_conversation (  talker TEXT default '0'  PRIMARY KEY ,  encryptTalker TEXT default '' ,  displayName TEXT default '' ,  state INTEGER default '0' ,  lastModifiedTime LONG default '0' ,  isNew INTEGER default '0' ,  addScene INTEGER default '0' ,  fmsgSysRowId LONG default '0' ,  fmsgIsSend INTEGER default '0' ,  fmsgType INTEGER default '0' ,  fmsgContent TEXT default '' ,  recvFmsgType INTEGER default '0' ,  contentFromUsername TEXT default '' ,  contentNickname TEXT default '' ,  contentPhoneNumMD5 TEXT default '' ,  contentFullPhoneNumMD5 TEXT default '' ,  contentVerifyContent TEXT default '' );
CREATE TABLE ProfileInfo (  username TEXT PRIMARY KEY ,  originalArticleCount INTEGER default '1' ,  friendSubscribeCount INTEGER default '1' ,  allArticleWording TEXT,  historyArticlesUrl TEXT,  userRole INTEGER default '1' ,  banReason TEXT,  showRecommendArticle INTEGER default '0' ,  showService INTEGER default '0' ,  messageListStr TEXT,  serviceInfoListStr TEXT,  bizAccountListStr TEXT,  cacheTime LONG default '0' ,  decryptUserName TEXT default '' ,  hiddenAvatar INTEGER default '0' ,  hiddenButtonBeforeFocus INTEGER default '0' ,  newBanReason TEXT);
CREATE TABLE qqgroup ( grouopid int PRIMARY KEY,membernum int,weixinnum int,insert_time int,lastupdate_time int,needupdate int,updatekey text,groupname text,reserved1 text ,reserved2 text ,reserved3 int ,reserved4 int );
CREATE TABLE GetEmotionListCache (  reqType TEXT PRIMARY KEY ,  cache BLOB default '' );
CREATE TABLE WalletKindInfo (  wallet_tpa_country TEXT PRIMARY KEY ,  wallet_type INTEGER,  wallet_name TEXT,  wallet_selected INTEGER,  wallet_balance INTEGER,  wallet_tpa_country_mask INTEGER);
CREATE TABLE massendinfo ( clientid text  PRIMARY KEY , status int  , createtime long  , lastmodifytime long  , filename text  , thumbfilename text  , tolist text  , tolistcount int  , msgtype int  , mediatime int  , datanetoffset int  , datalen int  , thumbnetoffset int  , thumbtotallen int  , reserved1 int  , reserved2 int  , reserved3 text  , reserved4 text  );
CREATE TABLE rconversation (  msgCount INTEGER default '0' ,  username TEXT default ''  PRIMARY KEY ,  unReadCount INTEGER default '0' ,  chatmode INTEGER default '0' ,  status INTEGER default '0' ,  isSend INTEGER default '0' ,  conversationTime LONG default '0' ,  content TEXT default '' ,  msgType TEXT default '' ,  customNotify TEXT default '' ,  showTips INTEGER default '0' ,  flag LONG default '0' ,  digest TEXT default '' ,  digestUser TEXT default '' ,  hasTrunc INTEGER default '0' ,  parentRef TEXT,  attrflag INTEGER default '0' ,  editingMsg TEXT default '' ,  atCount INTEGER default '0' ,  sightTime LONG default '0' ,  unReadMuteCount INTEGER default '0' ,  lastSeq LONG,  UnDeliverCount INTEGER,  UnReadInvite INTEGER,  firstUnDeliverSeq LONG);
CREATE TABLE rbottleconversation (  msgCount INTEGER default '0' ,  username TEXT default ''  PRIMARY KEY ,  unReadCount INTEGER default '0' ,  chatmode INTEGER default '0' ,  status INTEGER default '0' ,  isSend INTEGER default '0' ,  conversationTime LONG default '0' ,  content TEXT default '' ,  msgType TEXT default '' ,  customNotify TEXT default '' ,  showTips INTEGER default '0' ,  flag LONG default '0' ,  digest TEXT default '' ,  digestUser TEXT default '' ,  hasTrunc INTEGER default '0' ,  parentRef TEXT,  attrflag INTEGER default '0' ,  editingMsg TEXT default '' ,  atCount INTEGER default '0' ,  sightTime LONG default '0' ,  unReadMuteCount INTEGER default '0' ,  lastSeq LONG,  UnDeliverCount INTEGER,  UnReadInvite INTEGER,  firstUnDeliverSeq LONG);
CREATE TABLE conversation ( unReadCount INTEGER, status INT, isSend INT, createTime LONG, username VARCHAR(40), content TEXT, reserved TEXT );
CREATE TABLE bottleconversation ( unReadCount INTEGER, status INT, isSend INT, createTime LONG, username VARCHAR(40), content TEXT, reserved TEXT );
CREATE TABLE ABTestInfo (  abtestkey TEXT PRIMARY KEY ,  value TEXT,  expId TEXT,  sequence LONG,  prioritylevel INTEGER,  startTime LONG,  endTime LONG,  noReport INTEGER);
CREATE TABLE facebookfriend ( fbid long  PRIMARY KEY , fbname text  , fbimgkey int  , status int  , username text  , nickname text  , nicknamepyinitial text  , nicknamequanpin text  , sex int  , personalcard int  , province text  , city text  , signature text  , alias text  , type int  , email text  );
CREATE TABLE EmojiSuggestDescInfo (  groupID TEXT,  desc TEXT);
CREATE TABLE WalletUserInfo (  uin TEXT PRIMARY KEY ,  is_reg INTEGER,  true_name TEXT,  card_num INTEGER,  isDomesticUser INTEGER,  cre_type INTEGER,  main_card_bind_serialno TEXT,  ftf_pay_url TEXT,  switchConfig INTEGER,  reset_passwd_flag TEXT,  find_passwd_url TEXT,  is_open_touch INTEGER,  lct_wording TEXT,  lct_url TEXT,  cre_name TEXT,  lqt_state INTEGER,  paymenu_use_new INTEGER,  is_show_lqb INTEGER,  is_open_lqb INTEGER,  lqb_open_url TEXT,  lqt_cell_is_show INTEGER,  lqt_cell_icon TEXT,  lqt_cell_is_open_lqt INTEGER,  lqt_cell_lqt_open_url TEXT,  lqt_cell_lqt_title TEXT,  lqt_cell_lqt_wording TEXT,  forget_passwd_url TEXT,  unipay_order_state INTEGER,  bank_priority TEXT,  wallet_balance LONG,  wallet_entrance_balance_switch_state INTEGER,  soter_pay_open_type INTEGER);
CREATE TABLE LuckyMoneyEnvelopeResource (  subtype INTEGER PRIMARY KEY ,  bubbleMd5 TEXT,  coverMd5 TEXT,  minilogoMd5 TEXT,  version INTEGER);
CREATE TABLE ABTestItem (  layerId TEXT PRIMARY KEY ,  business TEXT,  expId TEXT,  sequence LONG,  prioritylevel INTEGER default '0' ,  startTime LONG,  endTime LONG,  needReport INTEGER,  rawXML TEXT default '' );
CREATE TABLE AppSort (  flag LONG default '0' ,  appId TEXT default '' ,  sortId INTEGER default '0' );
CREATE TABLE EmotionRewardInfo (  productID TEXT PRIMARY KEY ,  content BLOB default '' );
CREATE TABLE getcontactinfov2 ( username text  PRIMARY KEY , inserttime long  , type int  , lastgettime int  , reserved1 int  , reserved2 int  , reserved3 text  , reserved4 text  );
CREATE TABLE WalletBankcard (  bindSerial TEXT PRIMARY KEY ,  cardType INTEGER,  bankcardState INTEGER,  forbidWord TEXT,  bankName TEXT,  bankcardType TEXT,  bankcardTypeName TEXT,  bankcardTag INTEGER,  bankcardTail TEXT,  supportTag INTEGER,  mobile TEXT,  trueName TEXT,  desc TEXT,  bankPhone TEXT,  bizUsername TEXT,  onceQuotaKind DOUBLE,  onceQuotaVirtual DOUBLE,  dayQuotaKind DOUBLE,  dayQuotaVirtual DOUBLE,  fetchArriveTime LONG,  fetchArriveTimeWording TEXT,  repay_url TEXT,  wxcreditState INTEGER,  bankcardClientType INTEGER,  ext_msg TEXT,  support_micropay INTEGER,  arrive_type TEXT,  avail_save_wording TEXT,  fetch_charge_rate DOUBLE,  full_fetch_charge_fee DOUBLE,  fetch_charge_info TEXT,  tips TEXT,  forbid_title TEXT,  forbid_url TEXT,  no_micro_word TEXT,  card_bottom_wording TEXT,  support_lqt_turn_in INTEGER,  support_lqt_turn_out INTEGER,  is_hightlight_pre_arrive_time_wording INTEGER,  card_state_name TEXT);
CREATE TABLE ContactLabel (  labelID INTEGER PRIMARY KEY ,  labelName TEXT,  labelPYFull TEXT,  labelPYShort TEXT,  createTime LONG,  isTemporary INTEGER);
CREATE TABLE AppMessage (  msgId LONG default '0'  PRIMARY KEY ,  xml TEXT,  appId TEXT,  title TEXT,  description TEXT,  source TEXT,  type INTEGER);
CREATE TABLE hdheadimginfo ( username text  PRIMARY KEY , imgwidth int  , imgheigth int  , imgformat text  , totallen int  , startpos int  , headimgtype int  , reserved1 text  , reserved2 text  , reserved3 int  , reserved4 int  );
CREATE TABLE EmojiInfoDesc (  md5_lang TEXT PRIMARY KEY  COLLATE NOCASE ,  md5 TEXT COLLATE NOCASE ,  lang TEXT COLLATE NOCASE ,  desc TEXT,  groupId TEXT default '' ,  click_flag INTEGER,  download_flag INTEGER);
CREATE TABLE HardDeviceRankFollowInfo (  appusername TEXT,  rankID TEXT,  username TEXT,  step INTEGER,  sort INTEGER default '0' );
CREATE TABLE WalletLuckyMoney (  mNativeUrl TEXT PRIMARY KEY ,  hbType INTEGER,  receiveAmount LONG,  receiveTime LONG,  receiveStatus INTEGER,  hbStatus INTEGER);
CREATE TABLE ContactLabelCache (  labelId TEXT,  contactName TEXT);
CREATE TABLE HoneyPayMsgRecord (  payMsgId TEXT PRIMARY KEY ,  msgId LONG);
CREATE TABLE img_flag ( username VARCHAR(40) PRIMARY KEY , imgflag int , lastupdatetime int , reserved1 text ,reserved2 text ,reserved3 int ,reserved4 int );
CREATE TABLE EmojiInfo (  md5 TEXT PRIMARY KEY  COLLATE NOCASE ,  svrid TEXT,  catalog INTEGER,  type INTEGER,  size INTEGER,  start INTEGER,  state INTEGER,  name TEXT,  content TEXT,  reserved1 TEXT,  reserved2 TEXT,  reserved3 INTEGER,  reserved4 INTEGER,  app_id TEXT,  groupId TEXT default '' ,  lastUseTime LONG,  framesInfo TEXT default '' ,  idx INTEGER default '0' ,  temp INTEGER default '0' ,  source INTEGER default '0' ,  needupload INTEGER default '0' ,  designerID TEXT,  thumbUrl TEXT,  cdnUrl TEXT,  encrypturl TEXT,  aeskey TEXT,  width INTEGER default '0' ,  height INTEGER default '0' ,  externUrl TEXT,  externMd5 TEXT,  activityid TEXT,  tpurl TEXT,  tpauthkey TEXT,  wxamMd5 TEXT,  attachedText TEXT,  captureStatus INTEGER default '0' ,  attachedEmojiMD5 BLOB default '' ,  imitateMd5 TEXT,  captureUploadErrCode INTEGER default '0' ,  captureUploadCounter INTEGER default '0' ,  captureEnterTime LONG,  lensId TEXT,  attachTextColor TEXT,  captureScene INTEGER);
CREATE TABLE HardDeviceInfo (  deviceID TEXT PRIMARY KEY ,  brandName TEXT,  mac LONG,  deviceType TEXT,  connProto TEXT,  connStrategy INTEGER,  closeStrategy INTEGER,  md5Str TEXT,  authKey TEXT,  url TEXT,  sessionKey BLOB,  sessionBuf BLOB,  authBuf BLOB,  lvbuffer BLOB);
CREATE TABLE WalletPrefInfo (  pref_key TEXT PRIMARY KEY ,  pref_title TEXT,  pref_url TEXT,  is_show INTEGER default '1' ,  pref_desc TEXT,  logo_url TEXT,  jump_type INTEGER,  tinyapp_username TEXT,  tinyapp_path TEXT);
CREATE TABLE RecordCDNInfo (  localId INTEGER PRIMARY KEY ,  recordLocalId INTEGER,  toUser TEXT default '' ,  dataId TEXT,  mediaId TEXT,  path TEXT,  cdnUrl TEXT,  cdnKey TEXT,  totalLen INTEGER default '0' ,  isThumb INTEGER default 'false' ,  offset INTEGER default '0' ,  type INTEGER default '0' ,  fileType INTEGER default '5' ,  status INTEGER default '0' ,  errCode INTEGER default '0' ,  tpaeskey TEXT,  tpauthkey TEXT,  tpdataurl TEXT);
CREATE TABLE readerappnews1 ( tweetid text  PRIMARY KEY , time long  , type int  , name text  , title text  , url text  , shorturl text  , longurl text  , pubtime long  , sourcename text  , sourceicon text  , istop int  , cover text  , digest text  , reserved1 int  , reserved2 long  , reserved3 text  , reserved4 text  );
CREATE TABLE readerappweibo ( tweetid text  PRIMARY KEY , time long  , type int  , name text  , title text  , url text  , shorturl text  , longurl text  , pubtime long  , sourcename text  , sourceicon text  , istop int  , cover text  , digest text  , reserved1 int  , reserved2 long  , reserved3 text  , reserved4 text  );
CREATE TABLE FreeWifiLog (  id TEXT PRIMARY KEY ,  protocolNumber INTEGER,  logContent TEXT,  createTime LONG);
CREATE TABLE SmileyInfo (  key TEXT PRIMARY KEY ,  cnValue TEXT,  qqValue TEXT,  twValue TEXT,  enValue TEXT,  thValue TEXT,  fileName TEXT,  eggIndex INTEGER default '-1' ,  position INTEGER default '-1' ,  flag INTEGER);
CREATE TABLE HardDeviceChampionInfo (  username TEXT,  championUrl TEXT,  championMotto TEXT);
CREATE TABLE WalletBulletin (  bulletin_scene TEXT PRIMARY KEY ,  bulletin_content TEXT,  bulletin_url TEXT);
CREATE TABLE RecordMessageInfo (  localId INTEGER PRIMARY KEY ,  msgId LONG default '-1' ,  oriMsgId LONG default '-1' ,  toUser TEXT default '' ,  title TEXT,  desc TEXT,  dataProto BLOB,  type INTEGER default '0' ,  status INTEGER default '0' ,  favFrom TEXT);
CREATE TABLE BizChatMyUserInfo (  brandUserName TEXT PRIMARY KEY ,  userId TEXT);
CREATE TABLE FreeWifiInfo (  ssidmd5 TEXT PRIMARY KEY ,  ssid TEXT,  mid TEXT,  url TEXT,  connectState INTEGER default '-1' ,  expiredTime LONG,  wifiType INTEGER default '1' ,  action INTEGER default '0' ,  showUrl TEXT,  showWordEn TEXT,  showWordCn TEXT,  showWordTw TEXT,  mac TEXT,  verifyResult INTEGER default '1' );
CREATE TABLE VideoPlayHistory ( filename text PRIMARY KEY, starttime int, playduration int, downloadway int );
CREATE TABLE HardDeviceProfileRankDetail (  appusername TEXT,  title TEXT,  score INTEGER);
CREATE TABLE WalletFunciontList (  wallet_region INTEGER PRIMARY KEY ,  function_list TEXT,  new_list TEXT,  banner_list TEXT,  type_name_list TEXT,  isShowSetting INTEGER);
CREATE TABLE PendingCardId (  cardUserId TEXT PRIMARY KEY ,  retryCount INTEGER);
CREATE TABLE BizChatConversation (  bizChatId LONG PRIMARY KEY ,  brandUserName TEXT,  unReadCount INTEGER,  newUnReadCount INTEGER,  lastMsgID LONG,  lastMsgTime LONG,  content TEXT,  digest TEXT default '' ,  digestUser TEXT default '' ,  atCount INTEGER default '0' ,  editingMsg TEXT,  chatType INTEGER,  status INTEGER default '0' ,  isSend INTEGER default '0' ,  msgType TEXT default '' ,  msgCount INTEGER default '0' ,  flag LONG default '0' );
CREATE TABLE FreeWifiConfig (  key TEXT PRIMARY KEY ,  value TEXT,  modifyTime LONG default '0' );
CREATE TABLE videoinfo2 ( filename text  PRIMARY KEY , clientid text  , msgsvrid int  , netoffset int  , filenowsize int  , totallen int  , thumbnetoffset int  , thumblen int  , status int  , createtime long  , lastmodifytime long  , downloadtime long  , videolength int  , msglocalid int  , nettimes int  , cameratype int  , user text  , human text  , reserved1 int  , reserved2 int  , reserved3 text  , reserved4 text  , videofuncflag int ,masssendid long ,masssendlist text,videomd5 text, streamvideo byte[], statextstr text, downloadscene int, mmsightextinfo byte[], preloadsize int, videoformat int );
CREATE TABLE videoinfo ( filename text  PRIMARY KEY , clientid text  , msgsvrid int  , netoffset int  , filenowsize int  , totallen int  , thumbnetoffset int  , thumblen int  , status int  , createtime long  , lastmodifytime long  , downloadtime long  , videolength int  , msglocalid int  , nettimes int  , cameratype int  , user text  , human text  , reserved1 int  , reserved2 int  , reserved3 text  , reserved4 text  , videofuncflag int ,masssendid long ,masssendlist text,videomd5 text, streamvideo byte[], statextstr text, downloadscene int, mmsightextinfo byte[], preloadsize int, videoformat int );
CREATE TABLE VideoHash  (size int , CreateTime long, hash text ,  cdnxml text, orgpath text);
CREATE TABLE HardDeviceRankInfo (  rankID TEXT,  appusername TEXT,  username TEXT,  ranknum INTEGER,  score INTEGER,  likecount INTEGER default '0' ,  selfLikeState INTEGER default '3' );
CREATE TABLE MultiTalkMember (  memberUuid LONG,  wxGroupId TEXT,  userName TEXT,  inviteUserName TEXT,  memberId LONG,  status INTEGER,  createTime LONG);
CREATE TABLE ShareCardInfo (  card_id TEXT PRIMARY KEY ,  card_tp_id TEXT,  from_username TEXT,  consumer TEXT,  app_id TEXT,  status INTEGER,  share_time LONG,  local_updateTime LONG,  updateTime LONG,  begin_time LONG,  end_time LONG,  updateSeq LONG,  block_mask LONG,  dataInfoData BLOB,  cardTpInfoData BLOB,  shareInfoData BLOB,  shopInfoData BLOB,  categoryType INTEGER default '0' ,  itemIndex INTEGER default '0' );
CREATE TABLE BizChatUserInfo (  userId TEXT PRIMARY KEY ,  userName TEXT default '' ,  userNamePY TEXT default '' ,  brandUserName TEXT default '' ,  UserVersion INTEGER default '-1' ,  needToUpdate INTEGER default 'true' ,  headImageUrl TEXT,  profileUrl TEXT,  bitFlag INTEGER default '0' ,  addMemberUrl TEXT);
CREATE TABLE SightDraftInfo (  localId INTEGER PRIMARY KEY ,  fileName TEXT,  fileNameHash INTEGER,  fileMd5 TEXT default '' ,  fileLength LONG default '0' ,  fileStatus INTEGER default '0' ,  fileDuration INTEGER default '0' ,  createTime LONG default '0' );
CREATE TABLE chattingbginfo ( username text  PRIMARY KEY , bgflag int  , path text  , reserved1 text  , reserved2 text  , reserved3 int  , reserved4 int  );
CREATE TABLE HardDeviceLikeUser (  rankID TEXT,  appusername TEXT,  username TEXT,  timestamp INTEGER default '0' ,  liketips TEXT default '' );
CREATE TABLE MultiTalkInfo (  wxGroupId TEXT PRIMARY KEY ,  groupId TEXT,  roomId INTEGER,  roomKey LONG,  routeId INTEGER,  inviteUserName TEXT,  memberCount INTEGER,  createTime LONG,  state INTEGER default '0' );
CREATE TABLE UserCardInfo (  card_id TEXT PRIMARY KEY ,  card_tp_id TEXT,  from_username TEXT,  status INTEGER,  delete_state_flag INTEGER,  local_updateTime LONG,  updateTime LONG,  updateSeq LONG,  create_time LONG,  begin_time LONG,  end_time LONG,  block_mask TEXT,  dataInfoData BLOB,  cardTpInfoData BLOB,  shareInfoData BLOB,  shopInfoData BLOB,  stickyIndex INTEGER,  stickyEndTime INTEGER,  stickyAnnouncement TEXT,  card_type INTEGER default '-1' ,  label_wording TEXT,  is_dynamic INTEGER);
CREATE TABLE BizEnterprise (  userName TEXT PRIMARY KEY ,  qyUin INTEGER,  userUin INTEGER,  userFlag INTEGER,  wwExposeTimes INTEGER,  wwMaxExposeTimes INTEGER,  wwCorpId LONG,  wwUserVid LONG,  userType INTEGER,  chatOpen INTEGER,  wwUnreadCnt INTEGER default '0' ,  show_confirm INTEGER,  use_preset_banner_tips INTEGER);
CREATE TABLE WebViewCacheAppIdOccupation (  appId TEXT PRIMARY KEY ,  occupation LONG);
CREATE TABLE packageinfo ( id int  PRIMARY KEY, version int  , name text  , size int  , packname text  , status int  , reserved1 text  , reserved2 text  , reserved3 int  , reserved4 int  );
CREATE TABLE packageinfo2 ( localId text  PRIMARY KEY , id int  , version int  , name text  , size int  , packname text  , status int  , type int  , reserved1 text  , reserved2 text  , reserved3 int  , reserved4 int  );
CREATE TABLE IPCallRecord (  phonenumber TEXT,  calltime LONG,  duration LONG,  status INTEGER,  addressId LONG default '-1' ,  phoneType INTEGER default '-1' );
CREATE TABLE ShareCardSyncItemInfo (  card_id TEXT PRIMARY KEY ,  state_flag INTEGER,  update_time LONG,  seq LONG,  retryCount INTEGER);
CREATE TABLE BizChatInfo (  bizChatLocalId LONG PRIMARY KEY ,  bizChatServId TEXT,  brandUserName TEXT default '' ,  chatType INTEGER,  headImageUrl TEXT,  chatName TEXT default '' ,  chatNamePY TEXT default '' ,  chatVersion INTEGER default '-1' ,  needToUpdate INTEGER default 'true' ,  bitFlag INTEGER default '0' ,  maxMemberCnt INTEGER default '0' ,  ownerUserId TEXT,  userList TEXT,  addMemberUrl TEXT);
CREATE TABLE WebViewCacheResConfigMap (  disable INTEGER default 'false' ,  configId TEXT PRIMARY KEY ,  configUrl TEXT,  configResources TEXT,  configCrc32 LONG,  isFromXml INTEGER default 'false' );
CREATE TABLE IPCallAddressItem (  wechatUsername TEXT,  systemAddressBookUsername TEXT,  contactId TEXT,  sortKey TEXT);
CREATE TABLE CardMsgInfo (  card_type INTEGER,  title TEXT,  description TEXT,  logo_url TEXT,  time INTEGER,  card_id TEXT,  card_tp_id TEXT,  msg_id TEXT PRIMARY KEY ,  msg_type INTEGER,  jump_type INTEGER,  url TEXT,  buttonData BLOB,  operData BLOB,  report_scene INTEGER,  read_state INTEGER default '0' ,  accept_buttons TEXT,  consumed_box_id TEXT,  jump_buttons TEXT,  logo_color TEXT,  unavailable_qr_code_list TEXT,  all_unavailable INTEGER default 'false' ,  need_pull_card_entrance INTEGER default 'false' );
CREATE TABLE BizKF (  openId TEXT PRIMARY KEY ,  brandUsername TEXT default '' ,  headImgUrl TEXT,  nickname TEXT,  kfType INTEGER,  updateTime LONG);
CREATE TABLE WebViewHistory (  recordId TEXT PRIMARY KEY ,  link TEXT,  title TEXT,  source TEXT,  imgUrl TEXT,  timeStamp LONG);
CREATE TABLE IPCallMsg (  svrId LONG PRIMARY KEY ,  isRead SHORT default '0' ,  title TEXT,  content TEXT,  pushTime LONG,  msgType INTEGER,  descUrl TEXT);
CREATE TABLE CardQrCodeDataInfo (  code_id TEXT,  card_id TEXT,  code TEXT,  status INTEGER);
CREATE TABLE bizinfo (  username TEXT PRIMARY KEY ,  appId TEXT,  brandList TEXT default '' ,  brandListVersion TEXT,  brandListContent TEXT,  brandFlag INTEGER,  extInfo TEXT,  brandInfo TEXT,  brandIconURL TEXT,  updateTime LONG,  hadAlert INTEGER,  acceptType INTEGER default '0' ,  type INTEGER default '0' ,  status INTEGER default '0' ,  enterpriseFather TEXT,  kfWorkerId TEXT,  specialType INTEGER,  attrSyncVersion TEXT,  incrementUpdateTime LONG,  bitFlag INTEGER default '0' );
CREATE TABLE JsLogBlockList (  logId INTEGER PRIMARY KEY ,  liftTime LONG);
CREATE TABLE IPCallPopularCountry (  countryCode INTEGER PRIMARY KEY ,  callTimeCount LONG,  lastCallTime LONG);
CREATE TABLE CardQrCodeConfi (  card_id TEXT PRIMARY KEY ,  lower_bound INTEGER,  need_insert_show_timestamp INTEGER default 'false' ,  show_timestamp_encrypt_key TEXT,  expire_time_interval INTEGER,  show_expire_interval INTEGER,  fetch_time LONG);
CREATE TABLE WebviewLocalData (  recordId INTEGER PRIMARY KEY ,  appId TEXT,  domin TEXT,  key TEXT,  value TEXT);
CREATE TABLE WebViewResourceCache (  urlMd5Hashcode INTEGER,  url TEXT,  appId TEXT,  domain TEXT,  version TEXT,  localPath TEXT,  contentType TEXT,  contentLength LONG,  isLatestVersion INTEGER,  createTime LONG,  accessTime LONG,  expireTime LONG default '0' ,  cacheType INTEGER,  configId TEXT,  protocol INTEGER,  packageId TEXT,  contentMd5 TEXT);
CREATE TABLE WebViewData (  appId TEXT,  appIdKey TEXT PRIMARY KEY ,  value TEXT,  weight TEXT,  expireTime LONG,  timeStamp LONG,  size LONG);
CREATE TABLE WebViewHostsFilter (  host TEXT,  expireTime LONG);
CREATE INDEX bizmessageChatIdIndex ON bizchatmessage ( bizChatId );
CREATE INDEX bizmessageSvrIdIndex ON bizchatmessage ( msgSvrId );
CREATE INDEX bizmessageTalkerIndex ON bizchatmessage ( talker );
CREATE INDEX bizmessageTalerStatusIndex ON bizchatmessage ( talker,status );
CREATE INDEX bizmessageCreateTimeIndex ON bizchatmessage ( createTime );
CREATE INDEX bizmessageCreateTaklerTimeIndex ON bizchatmessage ( talker,createTime );
CREATE INDEX bizmessageBizChatIdTypeCreateTimeIndex ON bizchatmessage ( bizChatId,type,createTime );
CREATE INDEX bizmessageSendCreateTimeIndex ON bizchatmessage ( status,isSend,createTime );
CREATE INDEX bizchatmessageTalkerTypeIndex ON bizchatmessage ( talker,type );
CREATE INDEX filedownloadinfo_appId  on FileDownloadInfo  (  appId );
CREATE INDEX filedownloadinfo_status  on FileDownloadInfo  (  status );
CREATE INDEX bmessageSvrIdIndex ON bottlemessage ( msgSvrId );
CREATE INDEX bmessageTalkerIndex ON bottlemessage ( talker );
CREATE INDEX bmessageTalerStatusIndex ON bottlemessage ( talker,status );
CREATE INDEX bmessageCreateTimeIndex ON bottlemessage ( createTime );
CREATE INDEX bmessageCreateTaklerTimeIndex ON bottlemessage ( talker,createTime );
CREATE INDEX bmessageSendCreateTimeIndex ON bottlemessage ( status,isSend,createTime );
CREATE INDEX bottlemessageTalkerTypeIndex ON bottlemessage ( talker,type );
CREATE INDEX qmessageSvrIdIndex ON qmessage ( msgSvrId );
CREATE INDEX qmessageTalkerIndex ON qmessage ( talker );
CREATE INDEX qmessageTalerStatusIndex ON qmessage ( talker,status );
CREATE INDEX qmessageCreateTimeIndex ON qmessage ( createTime );
CREATE INDEX qmessageCreateTaklerTimeIndex ON qmessage ( talker,createTime );
CREATE INDEX qmessageSendCreateTimeIndex ON qmessage ( status,isSend,createTime );
CREATE INDEX qmessageTalkerSvrIdIndex ON qmessage ( talker,msgSvrId );
CREATE INDEX qmessageTalkerTypeIndex ON qmessage ( talker,type );
CREATE INDEX tmessageSvrIdIndex ON tmessage ( msgSvrId );
CREATE INDEX tmessageTalkerIndex ON tmessage ( talker );
CREATE INDEX tmessageTalerStatusIndex ON tmessage ( talker,status );
CREATE INDEX tmessageCreateTimeIndex ON tmessage ( createTime );
CREATE INDEX tmessageCreateTaklerTimeIndex ON tmessage ( talker,createTime );
CREATE INDEX tmessageSendCreateTimeIndex ON tmessage ( status,isSend,createTime );
CREATE INDEX tmessageTalkerTypeIndex ON tmessage ( talker,type );
CREATE INDEX MD5Index ON MediaDuplication ( md5 );
CREATE INDEX createTimeIndex  ON DeletedConversationInfo ( reserved2 );
CREATE INDEX appbrandmessageSvrIdIndex ON appbrandmessage ( msgSvrId );
CREATE INDEX appbrandmessageTalkerIndex ON appbrandmessage ( talker );
CREATE INDEX appbrandmessageTalerStatusIndex ON appbrandmessage ( talker,status );
CREATE INDEX appbrandmessageCreateTimeIndex ON appbrandmessage ( createTime );
CREATE INDEX appbrandmessageCreateTaklerTimeIndex ON appbrandmessage ( talker,createTime );
CREATE INDEX appbrandmessageSendCreateTimeIndex ON appbrandmessage ( status,isSend,createTime );
CREATE INDEX appbrandmessageTalkerTypeIndex ON appbrandmessage ( talker,type );
CREATE INDEX serverImgInfoIndex ON ImgInfo2 ( msgSvrId );
CREATE INDEX serverImgInfoHdIndex ON ImgInfo2 ( reserved1 );
CREATE INDEX msgLocalIdIndex ON ImgInfo2 ( msglocalid );
CREATE INDEX iscomplete_index ON ImgInfo2 ( iscomplete );
CREATE INDEX origImgMD5_index ON ImgInfo2 ( origImgMD5 );
CREATE INDEX voiceinfomsgidindex ON voiceinfo ( MsgId );
CREATE UNIQUE INDEX voiceinfouniqueindex ON voiceinfo ( FileName );
CREATE INDEX statInfoIndex ON netstat ( peroid );
CREATE UNIQUE INDEX verifyContactIndex  ON verifycontact ( username );
CREATE INDEX groupid_index ON qqlist ( groupid );
CREATE INDEX qq_index ON qqlist ( qq );
CREATE INDEX upload_time_index ON addr_upload2 ( uploadtime );
CREATE INDEX addr_upload_user_index ON addr_upload2 ( username );
CREATE INDEX massendinfostatus_index ON massendinfo ( status );
CREATE INDEX rconversation_multi_index ON  rconversation ( unReadCount,parentRef );
CREATE INDEX rconversation_parentref_index ON  rconversation ( parentRef );
CREATE INDEX rbottleconversation_unreadcount_index ON  rbottleconversation ( unReadCount );
CREATE INDEX img_flag_small_url_index ON img_flag ( reserved2 );
CREATE INDEX emojiinfogrouptempindex  on EmojiInfo  (  groupId,temp );
CREATE INDEX emojiinfogatalogindex  on EmojiInfo  (  catalog );
CREATE INDEX readerapptime ON readerappnews1 ( time );
CREATE INDEX readerappfunctionId ON readerappnews1 ( reserved3 );
CREATE INDEX idx_FreeWifiLog_key  on FreeWifiLog  (  id );
CREATE INDEX freewifi_md5_ssid  on FreeWifiInfo  (  ssidmd5 );
CREATE INDEX idx_freewificonfig_key  on FreeWifiConfig  (  key );
CREATE INDEX video_status_index ON videoinfo2 ( status,downloadtime );
CREATE INDEX massSendIdIndex ON videoinfo2 ( masssendid );
CREATE INDEX LastModifyTimeIndex ON videoinfo2 ( lastmodifytime );
CREATE INDEX VideoHashSizeIndex ON VideoHash ( size  );
CREATE INDEX VideoHashTimeIndex ON VideoHash ( CreateTime  );
CREATE INDEX idx_MultiTalkMember  on MultiTalkMember  (  wxGroupId );
CREATE INDEX idx_MultiTalkInfo_key  on MultiTalkInfo  (  wxGroupId );
CREATE INDEX stickyIndexIndex ON UserCardInfo ( stickyIndex );
CREATE UNIQUE INDEX contact_username_unique_index ON rcontact ( username );
CREATE INDEX contact_alias_index ON rcontact ( alias );
CREATE INDEX en_username_unique_index ON rcontact ( encryptUsername );
CREATE UNIQUE INDEX bottle_username_unique_index ON bottlecontact ( username );
CREATE INDEX type_verifyFlag_index ON rcontact ( type,verifyFlag );
CREATE INDEX messageIdIndex ON message ( msgId );
CREATE INDEX messageSvrIdIndex ON message ( msgSvrId );
CREATE INDEX messageSendCreateTimeIndex ON message ( status,isSend,createTime );
CREATE INDEX messageCreateTimeIndex ON message ( createTime );
CREATE INDEX messageCreateTaklerTypeTimeIndex ON message ( talker,type,createTime );
CREATE INDEX messageTalkerStatusIndex ON message ( talker,status );
CREATE INDEX messageTalkerCreateTimeIsSendIndex ON message ( talker,isSend,createTime );
CREATE INDEX messageCreateTaklerTimeIndex ON message ( talker,createTime );
CREATE INDEX messageTalkerSvrIdIndex ON message ( talker,msgSvrId );
CREATE INDEX messageTalkerIdTypeIndex ON message ( talkerId,type );
CREATE INDEX messageTalkerTypeIndex ON message ( talker,type );
CREATE INDEX messagemessageTalkerMsgSeqIndex ON message ( talker,msgSeq );
CREATE INDEX messagemessageTalkerFlagMsgSeqIndex ON message ( talker,flag,msgSeq );
CREATE INDEX fmessageTalkerIndex ON fmessage_msginfo ( talker );
CREATE INDEX fmessageConversationTalkerIndex ON fmessage_conversation ( talker );
CREATE INDEX fmconversation_isnew_Index ON fmessage_conversation ( isNew );
CREATE INDEX lbsverifymessage_unread_index ON LBSVerifyMessage(status);
CREATE INDEX lbsverifymessage_createtimeIndex ON LBSVerifyMessage(createtime);
CREATE INDEX shakeverifymessage_unread_index ON shakeverifymessage ( status );
CREATE INDEX shakeverifymessage_statusIndex ON shakeverifymessage ( status );
CREATE INDEX shakeverifymessage_createtimeIndex ON shakeverifymessage ( createtime );
CREATE INDEX ChatroomMsgSeqTalkerIndex ON ChatroomMsgSeq ( username );
CREATE INDEX SportStepItem_date ON SportStepItem(date);
CREATE INDEX serverChatRoomUserIndex ON chatroom ( chatroomname );
CREATE INDEX SportStepItem_timestamp ON SportStepItem(timestamp);
CREATE INDEX msg_svr_id_index ON BizTimeLineInfo ( msgSvrId );
CREATE INDEX msg_id_index ON BizTimeLineInfo ( msgId );
CREATE INDEX talker_index ON BizTimeLineInfo ( talker );
CREATE INDEX order_flag_index ON BizTimeLineInfo ( orderFlag );
CREATE INDEX has_show_talker_index ON BizTimeLineInfo ( hasShow,talker );
CREATE INDEX status_talker_index ON BizTimeLineInfo ( status,talker );
CREATE INDEX has_show_place_top_index ON BizTimeLineInfo ( hasShow,placeTop );
CREATE INDEX order_flag_place_top_index ON BizTimeLineInfo ( orderFlag,placeTop );
CREATE INDEX talker_id_order_flag_index ON BizTimeLineInfo ( talkerId,orderFlag );
CREATE INDEX create_time_index ON BizTimeLineSingleMsgInfo ( createTime );
CREATE INDEX status_talker_id_index ON BizTimeLineSingleMsgInfo ( status,talkerId );
CREATE INDEX status_create_time_index ON BizTimeLineSingleMsgInfo ( status,createTime );
CREATE INDEX DeviceIdSessionIndex ON BackupMoveTime ( deviceId,sessionName );
CREATE INDEX type_username_index ON bizinfo ( type,username );
CREATE INDEX username_acceptType_index ON bizinfo ( username,acceptType );
CREATE INDEX userNameIndex ON ForceNotifyInfo(UserName);
CREATE INDEX statusIndex ON ForceNotifyInfo(Status);
CREATE INDEX expireTimeIndex ON ForceNotifyInfo(ExpiredTime);
CREATE INDEX appInfo_status_Index ON AppInfo(status);
CREATE INDEX ExdeviceRankFollowRankIdAppNameIndex ON HardDeviceRankFollowInfo ( rankID, appusername );
CREATE INDEX openMsgListenerAppIdIndex ON OpenMsgListener ( appId );
CREATE INDEX openMsgListenerStatusIndex ON OpenMsgListener ( status );
CREATE INDEX hardDeviceUsernameIndex ON HardDeviceInfo ( brandName );
CREATE INDEX hardDeviceMacIndex ON HardDeviceInfo ( mac );
CREATE INDEX functionIdIndex ON FunctionMsgItem(functionmsgid);
CREATE INDEX contact_label_createtime_index ON ContactLabel ( createTime );
CREATE INDEX order_flag_status_index ON BizTimeLineInfo ( orderFlag,status );
CREATE INDEX order_flag_has_show_index ON BizTimeLineInfo ( orderFlag,hasShow );
CREATE INDEX BizKFAppIdUsernameIndex ON BizKF ( brandUsername );
CREATE INDEX BizKFOpenIdIndex ON BizKF ( openId );

你可能感兴趣的:([SQLCipher]微信数据库 EnMicroMsg.db 的结构)