1325 lines
43 KiB
JSON
1325 lines
43 KiB
JSON
|
{
|
||
|
"formatVersion": 1,
|
||
|
"database": {
|
||
|
"version": 60,
|
||
|
"identityHash": "1f8ec0c172cc1cae16313d737f6f8e34",
|
||
|
"entities": [
|
||
|
{
|
||
|
"tableName": "DraftEntity",
|
||
|
"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, `failedToSendNew` INTEGER NOT NULL, `scheduledAt` TEXT, `language` TEXT, `statusId` TEXT)",
|
||
|
"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
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "failedToSendNew",
|
||
|
"columnName": "failedToSendNew",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "scheduledAt",
|
||
|
"columnName": "scheduledAt",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "language",
|
||
|
"columnName": "language",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "statusId",
|
||
|
"columnName": "statusId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"autoGenerate": true,
|
||
|
"columnNames": [
|
||
|
"id"
|
||
|
]
|
||
|
},
|
||
|
"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, `clientId` TEXT, `clientSecret` TEXT, `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, `notificationsReports` INTEGER NOT NULL, `notificationSound` INTEGER NOT NULL, `notificationVibration` INTEGER NOT NULL, `notificationLight` INTEGER NOT NULL, `defaultPostPrivacy` INTEGER NOT NULL, `defaultMediaSensitivity` INTEGER NOT NULL, `defaultPostLanguage` TEXT NOT NULL, `alwaysShowSensitiveMedia` INTEGER NOT NULL, `alwaysOpenSpoiler` INTEGER NOT NULL, `mediaPreviewEnabled` INTEGER NOT NULL, `lastNotificationId` TEXT NOT NULL, `notificationMarkerId` TEXT NOT NULL DEFAULT '0', `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, `lastVisibleHomeTimelineStatusId` TEXT, `locked` INTEGER NOT NULL DEFAULT 0, `hasDirectMessageBadge` INTEGER NOT NULL DEFAULT 0, `isShowHomeBoosts` INTEGER NOT NULL, `isShowHomeReplies` INTEGER NOT NULL, `isShowHomeSelfBoosts` INTEGER 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": "clientId",
|
||
|
"columnName": "clientId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "clientSecret",
|
||
|
"columnName": "clientSecret",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"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": "notificationsReports",
|
||
|
"columnName": "notificationsReports",
|
||
|
"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": "defaultPostLanguage",
|
||
|
"columnName": "defaultPostLanguage",
|
||
|
"affinity": "TEXT",
|
||
|
"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": "notificationMarkerId",
|
||
|
"columnName": "notificationMarkerId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true,
|
||
|
"defaultValue": "'0'"
|
||
|
},
|
||
|
{
|
||
|
"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
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "lastVisibleHomeTimelineStatusId",
|
||
|
"columnName": "lastVisibleHomeTimelineStatusId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "locked",
|
||
|
"columnName": "locked",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true,
|
||
|
"defaultValue": "0"
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "hasDirectMessageBadge",
|
||
|
"columnName": "hasDirectMessageBadge",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true,
|
||
|
"defaultValue": "0"
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "isShowHomeBoosts",
|
||
|
"columnName": "isShowHomeBoosts",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "isShowHomeReplies",
|
||
|
"columnName": "isShowHomeReplies",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "isShowHomeSelfBoosts",
|
||
|
"columnName": "isShowHomeSelfBoosts",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"autoGenerate": true,
|
||
|
"columnNames": [
|
||
|
"id"
|
||
|
]
|
||
|
},
|
||
|
"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, `videoSizeLimit` INTEGER, `imageSizeLimit` INTEGER, `imageMatrixLimit` INTEGER, `maxMediaAttachments` INTEGER, `maxFields` INTEGER, `maxFieldNameLength` INTEGER, `maxFieldValueLength` INTEGER, `translationEnabled` INTEGER, 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
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "videoSizeLimit",
|
||
|
"columnName": "videoSizeLimit",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "imageSizeLimit",
|
||
|
"columnName": "imageSizeLimit",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "imageMatrixLimit",
|
||
|
"columnName": "imageMatrixLimit",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "maxMediaAttachments",
|
||
|
"columnName": "maxMediaAttachments",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "maxFields",
|
||
|
"columnName": "maxFields",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "maxFieldNameLength",
|
||
|
"columnName": "maxFieldNameLength",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "maxFieldValueLength",
|
||
|
"columnName": "maxFieldValueLength",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "translationEnabled",
|
||
|
"columnName": "translationEnabled",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": false
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"autoGenerate": false,
|
||
|
"columnNames": [
|
||
|
"instance"
|
||
|
]
|
||
|
},
|
||
|
"indices": [],
|
||
|
"foreignKeys": []
|
||
|
},
|
||
|
{
|
||
|
"tableName": "TimelineStatusEntity",
|
||
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`serverId` TEXT NOT NULL, `url` TEXT, `tuskyAccountId` INTEGER NOT NULL, `authorServerId` TEXT NOT NULL, `inReplyToId` TEXT, `inReplyToAccountId` TEXT, `content` TEXT NOT NULL, `createdAt` INTEGER NOT NULL, `editedAt` INTEGER, `emojis` TEXT NOT NULL, `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 NOT NULL, `mentions` TEXT NOT NULL, `tags` TEXT NOT NULL, `application` TEXT, `poll` TEXT, `muted` INTEGER NOT NULL, `expanded` INTEGER NOT NULL, `contentCollapsed` INTEGER NOT NULL, `contentShowing` INTEGER NOT NULL, `pinned` INTEGER NOT NULL, `card` TEXT, `language` TEXT, `filtered` TEXT NOT NULL, PRIMARY KEY(`serverId`, `tuskyAccountId`), FOREIGN KEY(`authorServerId`, `tuskyAccountId`) REFERENCES `TimelineAccountEntity`(`serverId`, `tuskyAccountId`) ON UPDATE NO ACTION ON DELETE NO ACTION )",
|
||
|
"fields": [
|
||
|
{
|
||
|
"fieldPath": "serverId",
|
||
|
"columnName": "serverId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "url",
|
||
|
"columnName": "url",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "tuskyAccountId",
|
||
|
"columnName": "tuskyAccountId",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "authorServerId",
|
||
|
"columnName": "authorServerId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "inReplyToId",
|
||
|
"columnName": "inReplyToId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "inReplyToAccountId",
|
||
|
"columnName": "inReplyToAccountId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "content",
|
||
|
"columnName": "content",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "createdAt",
|
||
|
"columnName": "createdAt",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "editedAt",
|
||
|
"columnName": "editedAt",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "emojis",
|
||
|
"columnName": "emojis",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "reblogsCount",
|
||
|
"columnName": "reblogsCount",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "favouritesCount",
|
||
|
"columnName": "favouritesCount",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "repliesCount",
|
||
|
"columnName": "repliesCount",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "reblogged",
|
||
|
"columnName": "reblogged",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "bookmarked",
|
||
|
"columnName": "bookmarked",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "favourited",
|
||
|
"columnName": "favourited",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "sensitive",
|
||
|
"columnName": "sensitive",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "spoilerText",
|
||
|
"columnName": "spoilerText",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "visibility",
|
||
|
"columnName": "visibility",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "attachments",
|
||
|
"columnName": "attachments",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "mentions",
|
||
|
"columnName": "mentions",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "tags",
|
||
|
"columnName": "tags",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "application",
|
||
|
"columnName": "application",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "poll",
|
||
|
"columnName": "poll",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "muted",
|
||
|
"columnName": "muted",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "expanded",
|
||
|
"columnName": "expanded",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "contentCollapsed",
|
||
|
"columnName": "contentCollapsed",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "contentShowing",
|
||
|
"columnName": "contentShowing",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "pinned",
|
||
|
"columnName": "pinned",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "card",
|
||
|
"columnName": "card",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "language",
|
||
|
"columnName": "language",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "filtered",
|
||
|
"columnName": "filtered",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"autoGenerate": false,
|
||
|
"columnNames": [
|
||
|
"serverId",
|
||
|
"tuskyAccountId"
|
||
|
]
|
||
|
},
|
||
|
"indices": [
|
||
|
{
|
||
|
"name": "index_TimelineStatusEntity_authorServerId_tuskyAccountId",
|
||
|
"unique": false,
|
||
|
"columnNames": [
|
||
|
"authorServerId",
|
||
|
"tuskyAccountId"
|
||
|
],
|
||
|
"orders": [],
|
||
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_TimelineStatusEntity_authorServerId_tuskyAccountId` ON `${TABLE_NAME}` (`authorServerId`, `tuskyAccountId`)"
|
||
|
}
|
||
|
],
|
||
|
"foreignKeys": [
|
||
|
{
|
||
|
"table": "TimelineAccountEntity",
|
||
|
"onDelete": "NO ACTION",
|
||
|
"onUpdate": "NO ACTION",
|
||
|
"columns": [
|
||
|
"authorServerId",
|
||
|
"tuskyAccountId"
|
||
|
],
|
||
|
"referencedColumns": [
|
||
|
"serverId",
|
||
|
"tuskyAccountId"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"tableName": "TimelineAccountEntity",
|
||
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`serverId` TEXT NOT NULL, `tuskyAccountId` 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`, `tuskyAccountId`))",
|
||
|
"fields": [
|
||
|
{
|
||
|
"fieldPath": "serverId",
|
||
|
"columnName": "serverId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "tuskyAccountId",
|
||
|
"columnName": "tuskyAccountId",
|
||
|
"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": {
|
||
|
"autoGenerate": false,
|
||
|
"columnNames": [
|
||
|
"serverId",
|
||
|
"tuskyAccountId"
|
||
|
]
|
||
|
},
|
||
|
"indices": [],
|
||
|
"foreignKeys": []
|
||
|
},
|
||
|
{
|
||
|
"tableName": "ConversationEntity",
|
||
|
"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_editedAt` INTEGER, `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, `s_language` TEXT, PRIMARY KEY(`id`, `accountId`))",
|
||
|
"fields": [
|
||
|
{
|
||
|
"fieldPath": "accountId",
|
||
|
"columnName": "accountId",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "id",
|
||
|
"columnName": "id",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "order",
|
||
|
"columnName": "order",
|
||
|
"affinity": "INTEGER",
|
||
|
"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.editedAt",
|
||
|
"columnName": "s_editedAt",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "lastStatus.emojis",
|
||
|
"columnName": "s_emojis",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "lastStatus.favouritesCount",
|
||
|
"columnName": "s_favouritesCount",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "lastStatus.repliesCount",
|
||
|
"columnName": "s_repliesCount",
|
||
|
"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.tags",
|
||
|
"columnName": "s_tags",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "lastStatus.showingHiddenContent",
|
||
|
"columnName": "s_showingHiddenContent",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "lastStatus.expanded",
|
||
|
"columnName": "s_expanded",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "lastStatus.collapsed",
|
||
|
"columnName": "s_collapsed",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "lastStatus.muted",
|
||
|
"columnName": "s_muted",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "lastStatus.poll",
|
||
|
"columnName": "s_poll",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "lastStatus.language",
|
||
|
"columnName": "s_language",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"autoGenerate": false,
|
||
|
"columnNames": [
|
||
|
"id",
|
||
|
"accountId"
|
||
|
]
|
||
|
},
|
||
|
"indices": [],
|
||
|
"foreignKeys": []
|
||
|
},
|
||
|
{
|
||
|
"tableName": "NotificationEntity",
|
||
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`tuskyAccountId` INTEGER NOT NULL, `type` TEXT, `id` TEXT NOT NULL, `accountId` TEXT, `statusId` TEXT, `reportId` TEXT, `loading` INTEGER NOT NULL, PRIMARY KEY(`id`, `tuskyAccountId`), FOREIGN KEY(`accountId`, `tuskyAccountId`) REFERENCES `TimelineAccountEntity`(`serverId`, `tuskyAccountId`) ON UPDATE NO ACTION ON DELETE NO ACTION , FOREIGN KEY(`statusId`, `tuskyAccountId`) REFERENCES `TimelineStatusEntity`(`serverId`, `tuskyAccountId`) ON UPDATE NO ACTION ON DELETE NO ACTION , FOREIGN KEY(`reportId`, `tuskyAccountId`) REFERENCES `NotificationReportEntity`(`serverId`, `tuskyAccountId`) ON UPDATE NO ACTION ON DELETE NO ACTION )",
|
||
|
"fields": [
|
||
|
{
|
||
|
"fieldPath": "tuskyAccountId",
|
||
|
"columnName": "tuskyAccountId",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "type",
|
||
|
"columnName": "type",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "id",
|
||
|
"columnName": "id",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "accountId",
|
||
|
"columnName": "accountId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "statusId",
|
||
|
"columnName": "statusId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "reportId",
|
||
|
"columnName": "reportId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "loading",
|
||
|
"columnName": "loading",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"autoGenerate": false,
|
||
|
"columnNames": [
|
||
|
"id",
|
||
|
"tuskyAccountId"
|
||
|
]
|
||
|
},
|
||
|
"indices": [
|
||
|
{
|
||
|
"name": "index_NotificationEntity_accountId_tuskyAccountId",
|
||
|
"unique": false,
|
||
|
"columnNames": [
|
||
|
"accountId",
|
||
|
"tuskyAccountId"
|
||
|
],
|
||
|
"orders": [],
|
||
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_NotificationEntity_accountId_tuskyAccountId` ON `${TABLE_NAME}` (`accountId`, `tuskyAccountId`)"
|
||
|
},
|
||
|
{
|
||
|
"name": "index_NotificationEntity_statusId_tuskyAccountId",
|
||
|
"unique": false,
|
||
|
"columnNames": [
|
||
|
"statusId",
|
||
|
"tuskyAccountId"
|
||
|
],
|
||
|
"orders": [],
|
||
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_NotificationEntity_statusId_tuskyAccountId` ON `${TABLE_NAME}` (`statusId`, `tuskyAccountId`)"
|
||
|
},
|
||
|
{
|
||
|
"name": "index_NotificationEntity_reportId_tuskyAccountId",
|
||
|
"unique": false,
|
||
|
"columnNames": [
|
||
|
"reportId",
|
||
|
"tuskyAccountId"
|
||
|
],
|
||
|
"orders": [],
|
||
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_NotificationEntity_reportId_tuskyAccountId` ON `${TABLE_NAME}` (`reportId`, `tuskyAccountId`)"
|
||
|
}
|
||
|
],
|
||
|
"foreignKeys": [
|
||
|
{
|
||
|
"table": "TimelineAccountEntity",
|
||
|
"onDelete": "NO ACTION",
|
||
|
"onUpdate": "NO ACTION",
|
||
|
"columns": [
|
||
|
"accountId",
|
||
|
"tuskyAccountId"
|
||
|
],
|
||
|
"referencedColumns": [
|
||
|
"serverId",
|
||
|
"tuskyAccountId"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"table": "TimelineStatusEntity",
|
||
|
"onDelete": "NO ACTION",
|
||
|
"onUpdate": "NO ACTION",
|
||
|
"columns": [
|
||
|
"statusId",
|
||
|
"tuskyAccountId"
|
||
|
],
|
||
|
"referencedColumns": [
|
||
|
"serverId",
|
||
|
"tuskyAccountId"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"table": "NotificationReportEntity",
|
||
|
"onDelete": "NO ACTION",
|
||
|
"onUpdate": "NO ACTION",
|
||
|
"columns": [
|
||
|
"reportId",
|
||
|
"tuskyAccountId"
|
||
|
],
|
||
|
"referencedColumns": [
|
||
|
"serverId",
|
||
|
"tuskyAccountId"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"tableName": "NotificationReportEntity",
|
||
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`tuskyAccountId` INTEGER NOT NULL, `serverId` TEXT NOT NULL, `category` TEXT NOT NULL, `statusIds` TEXT, `createdAt` INTEGER NOT NULL, `targetAccountId` TEXT, PRIMARY KEY(`serverId`, `tuskyAccountId`), FOREIGN KEY(`targetAccountId`, `tuskyAccountId`) REFERENCES `TimelineAccountEntity`(`serverId`, `tuskyAccountId`) ON UPDATE NO ACTION ON DELETE NO ACTION )",
|
||
|
"fields": [
|
||
|
{
|
||
|
"fieldPath": "tuskyAccountId",
|
||
|
"columnName": "tuskyAccountId",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "serverId",
|
||
|
"columnName": "serverId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "category",
|
||
|
"columnName": "category",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "statusIds",
|
||
|
"columnName": "statusIds",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "createdAt",
|
||
|
"columnName": "createdAt",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "targetAccountId",
|
||
|
"columnName": "targetAccountId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"autoGenerate": false,
|
||
|
"columnNames": [
|
||
|
"serverId",
|
||
|
"tuskyAccountId"
|
||
|
]
|
||
|
},
|
||
|
"indices": [
|
||
|
{
|
||
|
"name": "index_NotificationReportEntity_targetAccountId_tuskyAccountId",
|
||
|
"unique": false,
|
||
|
"columnNames": [
|
||
|
"targetAccountId",
|
||
|
"tuskyAccountId"
|
||
|
],
|
||
|
"orders": [],
|
||
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_NotificationReportEntity_targetAccountId_tuskyAccountId` ON `${TABLE_NAME}` (`targetAccountId`, `tuskyAccountId`)"
|
||
|
}
|
||
|
],
|
||
|
"foreignKeys": [
|
||
|
{
|
||
|
"table": "TimelineAccountEntity",
|
||
|
"onDelete": "NO ACTION",
|
||
|
"onUpdate": "NO ACTION",
|
||
|
"columns": [
|
||
|
"targetAccountId",
|
||
|
"tuskyAccountId"
|
||
|
],
|
||
|
"referencedColumns": [
|
||
|
"serverId",
|
||
|
"tuskyAccountId"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"tableName": "HomeTimelineEntity",
|
||
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`tuskyAccountId` INTEGER NOT NULL, `id` TEXT NOT NULL, `statusId` TEXT, `reblogAccountId` TEXT, `loading` INTEGER NOT NULL, PRIMARY KEY(`id`, `tuskyAccountId`), FOREIGN KEY(`statusId`, `tuskyAccountId`) REFERENCES `TimelineStatusEntity`(`serverId`, `tuskyAccountId`) ON UPDATE NO ACTION ON DELETE NO ACTION , FOREIGN KEY(`reblogAccountId`, `tuskyAccountId`) REFERENCES `TimelineAccountEntity`(`serverId`, `tuskyAccountId`) ON UPDATE NO ACTION ON DELETE NO ACTION )",
|
||
|
"fields": [
|
||
|
{
|
||
|
"fieldPath": "tuskyAccountId",
|
||
|
"columnName": "tuskyAccountId",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "id",
|
||
|
"columnName": "id",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": true
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "statusId",
|
||
|
"columnName": "statusId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "reblogAccountId",
|
||
|
"columnName": "reblogAccountId",
|
||
|
"affinity": "TEXT",
|
||
|
"notNull": false
|
||
|
},
|
||
|
{
|
||
|
"fieldPath": "loading",
|
||
|
"columnName": "loading",
|
||
|
"affinity": "INTEGER",
|
||
|
"notNull": true
|
||
|
}
|
||
|
],
|
||
|
"primaryKey": {
|
||
|
"autoGenerate": false,
|
||
|
"columnNames": [
|
||
|
"id",
|
||
|
"tuskyAccountId"
|
||
|
]
|
||
|
},
|
||
|
"indices": [
|
||
|
{
|
||
|
"name": "index_HomeTimelineEntity_statusId_tuskyAccountId",
|
||
|
"unique": false,
|
||
|
"columnNames": [
|
||
|
"statusId",
|
||
|
"tuskyAccountId"
|
||
|
],
|
||
|
"orders": [],
|
||
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_HomeTimelineEntity_statusId_tuskyAccountId` ON `${TABLE_NAME}` (`statusId`, `tuskyAccountId`)"
|
||
|
},
|
||
|
{
|
||
|
"name": "index_HomeTimelineEntity_reblogAccountId_tuskyAccountId",
|
||
|
"unique": false,
|
||
|
"columnNames": [
|
||
|
"reblogAccountId",
|
||
|
"tuskyAccountId"
|
||
|
],
|
||
|
"orders": [],
|
||
|
"createSql": "CREATE INDEX IF NOT EXISTS `index_HomeTimelineEntity_reblogAccountId_tuskyAccountId` ON `${TABLE_NAME}` (`reblogAccountId`, `tuskyAccountId`)"
|
||
|
}
|
||
|
],
|
||
|
"foreignKeys": [
|
||
|
{
|
||
|
"table": "TimelineStatusEntity",
|
||
|
"onDelete": "NO ACTION",
|
||
|
"onUpdate": "NO ACTION",
|
||
|
"columns": [
|
||
|
"statusId",
|
||
|
"tuskyAccountId"
|
||
|
],
|
||
|
"referencedColumns": [
|
||
|
"serverId",
|
||
|
"tuskyAccountId"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"table": "TimelineAccountEntity",
|
||
|
"onDelete": "NO ACTION",
|
||
|
"onUpdate": "NO ACTION",
|
||
|
"columns": [
|
||
|
"reblogAccountId",
|
||
|
"tuskyAccountId"
|
||
|
],
|
||
|
"referencedColumns": [
|
||
|
"serverId",
|
||
|
"tuskyAccountId"
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"views": [],
|
||
|
"setupQueries": [
|
||
|
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
|
||
|
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '1f8ec0c172cc1cae16313d737f6f8e34')"
|
||
|
]
|
||
|
}
|
||
|
}
|