2019-05-19 11:29:02 +00:00
{
"formatVersion" : 1 ,
"database" : {
"version" : 2 ,
2019-05-20 19:16:06 +00:00
"identityHash" : "2409c873b47ccd635ed7d10e4d8604f8" ,
2019-05-19 11:29:02 +00:00
"entities" : [
{
"tableName" : "messages" ,
2019-05-20 19:16:06 +00:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageID` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `jid` TEXT, `senderJid` TEXT, `timestamp` INTEGER NOT NULL, `text` TEXT, `isSent` INTEGER NOT NULL, `isRead` INTEGER NOT NULL)" ,
2019-05-19 11:29:02 +00:00
"fields" : [
{
"fieldPath" : "messageID" ,
"columnName" : "messageID" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
2019-05-20 19:16:06 +00:00
"fieldPath" : "jid" ,
"columnName" : "jid" ,
2019-05-19 11:29:02 +00:00
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
2019-05-20 19:16:06 +00:00
"fieldPath" : "senderJid" ,
"columnName" : "senderJid" ,
2019-05-19 11:29:02 +00:00
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "text" ,
"columnName" : "text" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "isSent" ,
"columnName" : "isSent" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "isRead" ,
"columnName" : "isRead" ,
"affinity" : "INTEGER" ,
"notNull" : true
}
] ,
"primaryKey" : {
"columnNames" : [
"messageID"
] ,
2019-05-20 19:16:06 +00:00
"autoGenerate" : true
2019-05-19 11:29:02 +00:00
} ,
"indices" : [ ] ,
"foreignKeys" : [ ]
} ,
{
"tableName" : "chats" ,
2019-05-20 19:16:06 +00:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`jid` TEXT NOT NULL, `chatName` TEXT, `users` TEXT, `unreadMessagesCount` INTEGER NOT NULL, PRIMARY KEY(`jid`))" ,
2019-05-19 11:29:02 +00:00
"fields" : [
{
2019-05-20 19:16:06 +00:00
"fieldPath" : "jid" ,
"columnName" : "jid" ,
2019-05-19 11:29:02 +00:00
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
2019-05-20 19:16:06 +00:00
"fieldPath" : "chatName" ,
"columnName" : "chatName" ,
2019-05-19 11:29:02 +00:00
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
2019-05-20 19:16:06 +00:00
"fieldPath" : "users" ,
"columnName" : "users" ,
2019-05-19 11:29:02 +00:00
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
2019-05-20 19:16:06 +00:00
"fieldPath" : "unreadMessagesCount" ,
"columnName" : "unreadMessagesCount" ,
2019-05-19 11:29:02 +00:00
"affinity" : "INTEGER" ,
"notNull" : true
}
] ,
"primaryKey" : {
"columnNames" : [
2019-05-20 19:16:06 +00:00
"jid"
2019-05-19 11:29:02 +00:00
] ,
"autoGenerate" : false
} ,
"indices" : [ ] ,
"foreignKeys" : [ ]
}
] ,
"views" : [ ] ,
"setupQueries" : [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)" ,
2019-05-20 19:16:06 +00:00
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, \"2409c873b47ccd635ed7d10e4d8604f8\")"
2019-05-19 11:29:02 +00:00
]
}
}