"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `domain` TEXT NOT NULL, `accessToken` TEXT NOT NULL, `isActive` INTEGER NOT NULL, `accountId` TEXT NOT NULL, `username` TEXT NOT NULL, `displayName` TEXT NOT NULL, `profilePictureUrl` TEXT NOT NULL, `notificationsEnabled` INTEGER NOT NULL, `notificationsStreamingEnabled` INTEGER NOT NULL, `notificationsMentioned` INTEGER NOT NULL, `notificationsFollowed` INTEGER NOT NULL, `notificationsFollowRequested` INTEGER NOT NULL, `notificationsReblogged` INTEGER NOT NULL, `notificationsFavorited` INTEGER NOT NULL, `notificationsPolls` INTEGER NOT NULL, `notificationsEmojiReactions` INTEGER NOT NULL, `notificationsChatMessages` INTEGER NOT NULL, `notificationSound` INTEGER NOT NULL, `notificationVibration` INTEGER NOT NULL, `notificationLight` INTEGER NOT NULL, `defaultPostPrivacy` INTEGER NOT NULL, `defaultMediaSensitivity` INTEGER NOT NULL, `alwaysShowSensitiveMedia` INTEGER NOT NULL, `alwaysOpenSpoiler` INTEGER NOT NULL, `mediaPreviewEnabled` INTEGER NOT NULL, `lastNotificationId` TEXT NOT NULL, `activeNotifications` TEXT NOT NULL, `emojis` TEXT NOT NULL, `tabPreferences` TEXT NOT NULL, `notificationsFilter` TEXT NOT NULL, `defaultFormattingSyntax` TEXT NOT NULL)",
"createSql":"CREATE INDEX IF NOT EXISTS `index_TimelineStatusEntity_authorServerId_timelineUserId` ON `${TABLE_NAME}` (`authorServerId`, `timelineUserId`)"
}
],
"foreignKeys":[
{
"table":"TimelineAccountEntity",
"onDelete":"NO ACTION",
"onUpdate":"NO ACTION",
"columns":[
"authorServerId",
"timelineUserId"
],
"referencedColumns":[
"serverId",
"timelineUserId"
]
}
]
},
{
"tableName":"TimelineAccountEntity",
"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`serverId` TEXT NOT NULL, `timelineUserId` INTEGER NOT NULL, `localUsername` TEXT NOT NULL, `username` TEXT NOT NULL, `displayName` TEXT NOT NULL, `url` TEXT NOT NULL, `avatar` TEXT NOT NULL, `emojis` TEXT NOT NULL, `bot` INTEGER NOT NULL, PRIMARY KEY(`serverId`, `timelineUserId`))",
"fields":[
{
"fieldPath":"serverId",
"columnName":"serverId",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"timelineUserId",
"columnName":"timelineUserId",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"localUsername",
"columnName":"localUsername",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"username",
"columnName":"username",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"displayName",
"columnName":"displayName",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"url",
"columnName":"url",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"avatar",
"columnName":"avatar",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"emojis",
"columnName":"emojis",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"bot",
"columnName":"bot",
"affinity":"INTEGER",
"notNull":true
}
],
"primaryKey":{
"columnNames":[
"serverId",
"timelineUserId"
],
"autoGenerate":false
},
"indices":[],
"foreignKeys":[]
},
{
"tableName":"ConversationEntity",
"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`accountId` INTEGER NOT NULL, `id` TEXT NOT NULL, `accounts` TEXT NOT NULL, `unread` INTEGER NOT NULL, `s_id` TEXT NOT NULL, `s_url` TEXT, `s_inReplyToId` TEXT, `s_inReplyToAccountId` TEXT, `s_account` TEXT NOT NULL, `s_content` TEXT NOT NULL, `s_createdAt` INTEGER NOT NULL, `s_emojis` TEXT NOT NULL, `s_favouritesCount` INTEGER NOT NULL, `s_favourited` INTEGER NOT NULL, `s_bookmarked` INTEGER NOT NULL, `s_sensitive` INTEGER NOT NULL, `s_spoilerText` TEXT NOT NULL, `s_attachments` TEXT NOT NULL, `s_mentions` TEXT NOT NULL, `s_showingHiddenContent` INTEGER NOT NULL, `s_expanded` INTEGER NOT NULL, `s_collapsible` INTEGER NOT NULL, `s_collapsed` INTEGER NOT NULL, `s_poll` TEXT, PRIMARY KEY(`id`, `accountId`))",
"fields":[
{
"fieldPath":"accountId",
"columnName":"accountId",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"id",
"columnName":"id",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"accounts",
"columnName":"accounts",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"unread",
"columnName":"unread",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"lastStatus.id",
"columnName":"s_id",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"lastStatus.url",
"columnName":"s_url",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"lastStatus.inReplyToId",
"columnName":"s_inReplyToId",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"lastStatus.inReplyToAccountId",
"columnName":"s_inReplyToAccountId",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"lastStatus.account",
"columnName":"s_account",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"lastStatus.content",
"columnName":"s_content",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"lastStatus.createdAt",
"columnName":"s_createdAt",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"lastStatus.emojis",
"columnName":"s_emojis",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"lastStatus.favouritesCount",
"columnName":"s_favouritesCount",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"lastStatus.favourited",
"columnName":"s_favourited",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"lastStatus.bookmarked",
"columnName":"s_bookmarked",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"lastStatus.sensitive",
"columnName":"s_sensitive",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"lastStatus.spoilerText",
"columnName":"s_spoilerText",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"lastStatus.attachments",
"columnName":"s_attachments",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"lastStatus.mentions",
"columnName":"s_mentions",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"lastStatus.showingHiddenContent",
"columnName":"s_showingHiddenContent",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"lastStatus.expanded",
"columnName":"s_expanded",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"lastStatus.collapsible",
"columnName":"s_collapsible",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"lastStatus.collapsed",
"columnName":"s_collapsed",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"lastStatus.poll",
"columnName":"s_poll",
"affinity":"TEXT",
"notNull":false
}
],
"primaryKey":{
"columnNames":[
"id",
"accountId"
],
"autoGenerate":false
},
"indices":[],
"foreignKeys":[]
},
{
"tableName":"ChatEntity",
"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`localId` INTEGER NOT NULL, `chatId` TEXT NOT NULL, `accountId` TEXT NOT NULL, `unread` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, `lastMessageId` TEXT, PRIMARY KEY(`localId`, `chatId`))",
"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`localId` INTEGER NOT NULL, `messageId` TEXT NOT NULL, `content` TEXT, `chatId` TEXT NOT NULL, `accountId` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, `attachment` TEXT, `emojis` TEXT NOT NULL, PRIMARY KEY(`localId`, `messageId`))",