"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `accountId` INTEGER NOT NULL, `inReplyToId` TEXT, `content` TEXT, `contentWarning` TEXT, `sensitive` INTEGER NOT NULL, `visibility` INTEGER NOT NULL, `attachments` TEXT NOT NULL, `poll` TEXT, `failedToSend` INTEGER NOT NULL)",
"fields":[
{
"fieldPath":"id",
"columnName":"id",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"accountId",
"columnName":"accountId",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"inReplyToId",
"columnName":"inReplyToId",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"content",
"columnName":"content",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"contentWarning",
"columnName":"contentWarning",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"sensitive",
"columnName":"sensitive",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"visibility",
"columnName":"visibility",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"attachments",
"columnName":"attachments",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"poll",
"columnName":"poll",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"failedToSend",
"columnName":"failedToSend",
"affinity":"INTEGER",
"notNull":true
}
],
"primaryKey":{
"columnNames":[
"id"
],
"autoGenerate":true
},
"indices":[],
"foreignKeys":[]
},
{
"tableName":"AccountEntity",
"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, `notificationsMentioned` INTEGER NOT NULL, `notificationsFollowed` INTEGER NOT NULL, `notificationsFollowRequested` INTEGER NOT NULL, `notificationsReblogged` INTEGER NOT NULL, `notificationsFavorited` INTEGER NOT NULL, `notificationsPolls` INTEGER NOT NULL, `notificationsSubscriptions` INTEGER NOT NULL, `notificationsSignUps` INTEGER NOT NULL, `notificationsUpdates` 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, `oauthScopes` TEXT NOT NULL, `unifiedPushUrl` TEXT NOT NULL, `pushPubKey` TEXT NOT NULL, `pushPrivKey` TEXT NOT NULL, `pushAuth` TEXT NOT NULL, `pushServerKey` TEXT NOT NULL)",
"fields":[
{
"fieldPath":"id",
"columnName":"id",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"domain",
"columnName":"domain",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"accessToken",
"columnName":"accessToken",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"isActive",
"columnName":"isActive",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"accountId",
"columnName":"accountId",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"username",
"columnName":"username",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"displayName",
"columnName":"displayName",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"profilePictureUrl",
"columnName":"profilePictureUrl",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"notificationsEnabled",
"columnName":"notificationsEnabled",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"notificationsMentioned",
"columnName":"notificationsMentioned",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"notificationsFollowed",
"columnName":"notificationsFollowed",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"notificationsFollowRequested",
"columnName":"notificationsFollowRequested",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"notificationsReblogged",
"columnName":"notificationsReblogged",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"notificationsFavorited",
"columnName":"notificationsFavorited",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"notificationsPolls",
"columnName":"notificationsPolls",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"notificationsSubscriptions",
"columnName":"notificationsSubscriptions",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"notificationsSignUps",
"columnName":"notificationsSignUps",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"notificationsUpdates",
"columnName":"notificationsUpdates",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"notificationSound",
"columnName":"notificationSound",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"notificationVibration",
"columnName":"notificationVibration",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"notificationLight",
"columnName":"notificationLight",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"defaultPostPrivacy",
"columnName":"defaultPostPrivacy",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"defaultMediaSensitivity",
"columnName":"defaultMediaSensitivity",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"alwaysShowSensitiveMedia",
"columnName":"alwaysShowSensitiveMedia",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"alwaysOpenSpoiler",
"columnName":"alwaysOpenSpoiler",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"mediaPreviewEnabled",
"columnName":"mediaPreviewEnabled",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"lastNotificationId",
"columnName":"lastNotificationId",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"activeNotifications",
"columnName":"activeNotifications",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"emojis",
"columnName":"emojis",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"tabPreferences",
"columnName":"tabPreferences",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"notificationsFilter",
"columnName":"notificationsFilter",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"oauthScopes",
"columnName":"oauthScopes",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"unifiedPushUrl",
"columnName":"unifiedPushUrl",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"pushPubKey",
"columnName":"pushPubKey",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"pushPrivKey",
"columnName":"pushPrivKey",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"pushAuth",
"columnName":"pushAuth",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"pushServerKey",
"columnName":"pushServerKey",
"affinity":"TEXT",
"notNull":true
}
],
"primaryKey":{
"columnNames":[
"id"
],
"autoGenerate":true
},
"indices":[
{
"name":"index_AccountEntity_domain_accountId",
"unique":true,
"columnNames":[
"domain",
"accountId"
],
"orders":[],
"createSql":"CREATE UNIQUE INDEX IF NOT EXISTS `index_AccountEntity_domain_accountId` ON `${TABLE_NAME}` (`domain`, `accountId`)"
}
],
"foreignKeys":[]
},
{
"tableName":"InstanceEntity",
"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`instance` TEXT NOT NULL, `emojiList` TEXT, `maximumTootCharacters` INTEGER, `maxPollOptions` INTEGER, `maxPollOptionLength` INTEGER, `minPollDuration` INTEGER, `maxPollDuration` INTEGER, `charactersReservedPerUrl` INTEGER, `version` TEXT, PRIMARY KEY(`instance`))",
"fields":[
{
"fieldPath":"instance",
"columnName":"instance",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"emojiList",
"columnName":"emojiList",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"maximumTootCharacters",
"columnName":"maximumTootCharacters",
"affinity":"INTEGER",
"notNull":false
},
{
"fieldPath":"maxPollOptions",
"columnName":"maxPollOptions",
"affinity":"INTEGER",
"notNull":false
},
{
"fieldPath":"maxPollOptionLength",
"columnName":"maxPollOptionLength",
"affinity":"INTEGER",
"notNull":false
},
{
"fieldPath":"minPollDuration",
"columnName":"minPollDuration",
"affinity":"INTEGER",
"notNull":false
},
{
"fieldPath":"maxPollDuration",
"columnName":"maxPollDuration",
"affinity":"INTEGER",
"notNull":false
},
{
"fieldPath":"charactersReservedPerUrl",
"columnName":"charactersReservedPerUrl",
"affinity":"INTEGER",
"notNull":false
},
{
"fieldPath":"version",
"columnName":"version",
"affinity":"TEXT",
"notNull":false
}
],
"primaryKey":{
"columnNames":[
"instance"
],
"autoGenerate":false
},
"indices":[],
"foreignKeys":[]
},
{
"tableName":"TimelineStatusEntity",
"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`serverId` TEXT NOT NULL, `url` TEXT, `timelineUserId` INTEGER NOT NULL, `authorServerId` TEXT, `inReplyToId` TEXT, `inReplyToAccountId` TEXT, `content` TEXT, `createdAt` INTEGER NOT NULL, `emojis` TEXT, `reblogsCount` INTEGER NOT NULL, `favouritesCount` INTEGER NOT NULL, `repliesCount` INTEGER NOT NULL, `reblogged` INTEGER NOT NULL, `bookmarked` INTEGER NOT NULL, `favourited` INTEGER NOT NULL, `sensitive` INTEGER NOT NULL, `spoilerText` TEXT NOT NULL, `visibility` INTEGER NOT NULL, `attachments` TEXT, `mentions` TEXT, `tags` TEXT, `application` TEXT, `reblogServerId` TEXT, `reblogAccountId` TEXT, `poll` TEXT, `muted` INTEGER, `expanded` INTEGER NOT NULL, `contentCollapsed` INTEGER NOT NULL, `contentShowing` INTEGER NOT NULL, `pinned` INTEGER NOT NULL, `card` TEXT, PRIMARY KEY(`serverId`, `timelineUserId`), FOREIGN KEY(`authorServerId`, `timelineUserId`) REFERENCES `TimelineAccountEntity`(`serverId`, `timelineUserId`) ON UPDATE NO ACTION ON DELETE NO ACTION )",
"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`))",
"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`accountId` INTEGER NOT NULL, `id` TEXT NOT NULL, `order` INTEGER 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_repliesCount` 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_tags` TEXT, `s_showingHiddenContent` INTEGER NOT NULL, `s_expanded` INTEGER NOT NULL, `s_collapsed` INTEGER NOT NULL, `s_muted` INTEGER NOT NULL, `s_poll` TEXT, PRIMARY KEY(`id`, `accountId`))",