761 lines
25 KiB
JSON
761 lines
25 KiB
JSON
{
|
|
"formatVersion": 1,
|
|
"database": {
|
|
"version": 39,
|
|
"identityHash": "71dab0c694d243e067f4087932cf1c3d",
|
|
"entities": [
|
|
{
|
|
"tableName": "folder_backup",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`accountName` TEXT NOT NULL, `behavior` TEXT NOT NULL, `sourcePath` TEXT NOT NULL, `uploadPath` TEXT NOT NULL, `wifiOnly` INTEGER NOT NULL, `chargingOnly` INTEGER NOT NULL, `name` TEXT NOT NULL, `lastSyncTimestamp` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "accountName",
|
|
"columnName": "accountName",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "behavior",
|
|
"columnName": "behavior",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "sourcePath",
|
|
"columnName": "sourcePath",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "uploadPath",
|
|
"columnName": "uploadPath",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "wifiOnly",
|
|
"columnName": "wifiOnly",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "chargingOnly",
|
|
"columnName": "chargingOnly",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "name",
|
|
"columnName": "name",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "lastSyncTimestamp",
|
|
"columnName": "lastSyncTimestamp",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "id",
|
|
"columnName": "id",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"columnNames": [
|
|
"id"
|
|
],
|
|
"autoGenerate": true
|
|
},
|
|
"indices": [],
|
|
"foreignKeys": []
|
|
},
|
|
{
|
|
"tableName": "capabilities",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`account` TEXT, `version_mayor` INTEGER NOT NULL, `version_minor` INTEGER NOT NULL, `version_micro` INTEGER NOT NULL, `version_string` TEXT, `version_edition` TEXT, `core_pollinterval` INTEGER NOT NULL, `dav_chunking_version` TEXT NOT NULL, `sharing_api_enabled` INTEGER NOT NULL DEFAULT -1, `sharing_public_enabled` INTEGER NOT NULL DEFAULT -1, `sharing_public_password_enforced` INTEGER NOT NULL DEFAULT -1, `sharing_public_password_enforced_read_only` INTEGER NOT NULL DEFAULT -1, `sharing_public_password_enforced_read_write` INTEGER NOT NULL DEFAULT -1, `sharing_public_password_enforced_public_only` INTEGER NOT NULL DEFAULT -1, `sharing_public_expire_date_enabled` INTEGER NOT NULL DEFAULT -1, `sharing_public_expire_date_days` INTEGER NOT NULL, `sharing_public_expire_date_enforced` INTEGER NOT NULL DEFAULT -1, `sharing_public_upload` INTEGER NOT NULL DEFAULT -1, `sharing_public_multiple` INTEGER NOT NULL DEFAULT -1, `supports_upload_only` INTEGER NOT NULL DEFAULT -1, `sharing_resharing` INTEGER NOT NULL DEFAULT -1, `sharing_federation_outgoing` INTEGER NOT NULL DEFAULT -1, `sharing_federation_incoming` INTEGER NOT NULL DEFAULT -1, `sharing_user_profile_picture` INTEGER NOT NULL DEFAULT -1, `files_bigfilechunking` INTEGER NOT NULL DEFAULT -1, `files_undelete` INTEGER NOT NULL DEFAULT -1, `files_versioning` INTEGER NOT NULL DEFAULT -1, `files_private_links` INTEGER NOT NULL DEFAULT -1, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `enabled` INTEGER, `version` TEXT, `appsUrl` TEXT, `openUrl` TEXT, `openWebUrl` TEXT, `newUrl` TEXT)",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "accountName",
|
|
"columnName": "account",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "versionMayor",
|
|
"columnName": "version_mayor",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "versionMinor",
|
|
"columnName": "version_minor",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "versionMicro",
|
|
"columnName": "version_micro",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "versionString",
|
|
"columnName": "version_string",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "versionEdition",
|
|
"columnName": "version_edition",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "corePollInterval",
|
|
"columnName": "core_pollinterval",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "davChunkingVersion",
|
|
"columnName": "dav_chunking_version",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingApiEnabled",
|
|
"columnName": "sharing_api_enabled",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingPublicEnabled",
|
|
"columnName": "sharing_public_enabled",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingPublicPasswordEnforced",
|
|
"columnName": "sharing_public_password_enforced",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingPublicPasswordEnforcedReadOnly",
|
|
"columnName": "sharing_public_password_enforced_read_only",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingPublicPasswordEnforcedReadWrite",
|
|
"columnName": "sharing_public_password_enforced_read_write",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingPublicPasswordEnforcedUploadOnly",
|
|
"columnName": "sharing_public_password_enforced_public_only",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingPublicExpireDateEnabled",
|
|
"columnName": "sharing_public_expire_date_enabled",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingPublicExpireDateDays",
|
|
"columnName": "sharing_public_expire_date_days",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingPublicExpireDateEnforced",
|
|
"columnName": "sharing_public_expire_date_enforced",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingPublicUpload",
|
|
"columnName": "sharing_public_upload",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingPublicMultiple",
|
|
"columnName": "sharing_public_multiple",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingPublicSupportsUploadOnly",
|
|
"columnName": "supports_upload_only",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingResharing",
|
|
"columnName": "sharing_resharing",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingFederationOutgoing",
|
|
"columnName": "sharing_federation_outgoing",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingFederationIncoming",
|
|
"columnName": "sharing_federation_incoming",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesSharingUserProfilePicture",
|
|
"columnName": "sharing_user_profile_picture",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesBigFileChunking",
|
|
"columnName": "files_bigfilechunking",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesUndelete",
|
|
"columnName": "files_undelete",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesVersioning",
|
|
"columnName": "files_versioning",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "filesPrivateLinks",
|
|
"columnName": "files_private_links",
|
|
"affinity": "INTEGER",
|
|
"notNull": true,
|
|
"defaultValue": "-1"
|
|
},
|
|
{
|
|
"fieldPath": "id",
|
|
"columnName": "id",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "appProvider.enabled",
|
|
"columnName": "enabled",
|
|
"affinity": "INTEGER",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "appProvider.version",
|
|
"columnName": "version",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "appProvider.appsUrl",
|
|
"columnName": "appsUrl",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "appProvider.openUrl",
|
|
"columnName": "openUrl",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "appProvider.openWebUrl",
|
|
"columnName": "openWebUrl",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "appProvider.newUrl",
|
|
"columnName": "newUrl",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"columnNames": [
|
|
"id"
|
|
],
|
|
"autoGenerate": true
|
|
},
|
|
"indices": [],
|
|
"foreignKeys": []
|
|
},
|
|
{
|
|
"tableName": "files",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`parentId` INTEGER, `owner` TEXT NOT NULL, `remotePath` TEXT NOT NULL, `remoteId` TEXT, `length` INTEGER NOT NULL, `creationTimestamp` INTEGER, `modificationTimestamp` INTEGER NOT NULL, `mimeType` TEXT NOT NULL, `etag` TEXT, `permissions` TEXT, `privateLink` TEXT, `storagePath` TEXT, `name` TEXT, `treeEtag` TEXT, `keepInSync` INTEGER, `lastSyncDateForData` INTEGER, `fileShareViaLink` INTEGER, `lastSyncDateForProperties` INTEGER, `needsToUpdateThumbnail` INTEGER NOT NULL, `modifiedAtLastSyncForData` INTEGER, `etagInConflict` TEXT, `fileIsDownloading` INTEGER, `sharedWithSharee` INTEGER, `sharedByLink` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "parentId",
|
|
"columnName": "parentId",
|
|
"affinity": "INTEGER",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "owner",
|
|
"columnName": "owner",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "remotePath",
|
|
"columnName": "remotePath",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "remoteId",
|
|
"columnName": "remoteId",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "length",
|
|
"columnName": "length",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "creationTimestamp",
|
|
"columnName": "creationTimestamp",
|
|
"affinity": "INTEGER",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "modificationTimestamp",
|
|
"columnName": "modificationTimestamp",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "mimeType",
|
|
"columnName": "mimeType",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "etag",
|
|
"columnName": "etag",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "permissions",
|
|
"columnName": "permissions",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "privateLink",
|
|
"columnName": "privateLink",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "storagePath",
|
|
"columnName": "storagePath",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "name",
|
|
"columnName": "name",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "treeEtag",
|
|
"columnName": "treeEtag",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "availableOfflineStatus",
|
|
"columnName": "keepInSync",
|
|
"affinity": "INTEGER",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "lastSyncDateForData",
|
|
"columnName": "lastSyncDateForData",
|
|
"affinity": "INTEGER",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "fileShareViaLink",
|
|
"columnName": "fileShareViaLink",
|
|
"affinity": "INTEGER",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "lastSyncDateForProperties",
|
|
"columnName": "lastSyncDateForProperties",
|
|
"affinity": "INTEGER",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "needsToUpdateThumbnail",
|
|
"columnName": "needsToUpdateThumbnail",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "modifiedAtLastSyncForData",
|
|
"columnName": "modifiedAtLastSyncForData",
|
|
"affinity": "INTEGER",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "etagInConflict",
|
|
"columnName": "etagInConflict",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "fileIsDownloading",
|
|
"columnName": "fileIsDownloading",
|
|
"affinity": "INTEGER",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "sharedWithSharee",
|
|
"columnName": "sharedWithSharee",
|
|
"affinity": "INTEGER",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "sharedByLink",
|
|
"columnName": "sharedByLink",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "id",
|
|
"columnName": "id",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"columnNames": [
|
|
"id"
|
|
],
|
|
"autoGenerate": true
|
|
},
|
|
"indices": [],
|
|
"foreignKeys": []
|
|
},
|
|
{
|
|
"tableName": "files_sync",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`fileId` INTEGER NOT NULL, `uploadWorkerUuid` BLOB, `downloadWorkerUuid` BLOB, `isSynchronizing` INTEGER NOT NULL, PRIMARY KEY(`fileId`), FOREIGN KEY(`fileId`) REFERENCES `files`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "fileId",
|
|
"columnName": "fileId",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "uploadWorkerUuid",
|
|
"columnName": "uploadWorkerUuid",
|
|
"affinity": "BLOB",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "downloadWorkerUuid",
|
|
"columnName": "downloadWorkerUuid",
|
|
"affinity": "BLOB",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "isSynchronizing",
|
|
"columnName": "isSynchronizing",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"columnNames": [
|
|
"fileId"
|
|
],
|
|
"autoGenerate": false
|
|
},
|
|
"indices": [],
|
|
"foreignKeys": [
|
|
{
|
|
"table": "files",
|
|
"onDelete": "CASCADE",
|
|
"onUpdate": "NO ACTION",
|
|
"columns": [
|
|
"fileId"
|
|
],
|
|
"referencedColumns": [
|
|
"id"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"tableName": "ocshares",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`share_type` INTEGER NOT NULL, `share_with` TEXT, `path` TEXT NOT NULL, `permissions` INTEGER NOT NULL, `shared_date` INTEGER NOT NULL, `expiration_date` INTEGER NOT NULL, `token` TEXT, `shared_with_display_name` TEXT, `share_with_additional_info` TEXT, `is_directory` INTEGER NOT NULL, `id_remote_shared` TEXT NOT NULL, `owner_share` TEXT NOT NULL, `name` TEXT, `url` TEXT, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "shareType",
|
|
"columnName": "share_type",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "shareWith",
|
|
"columnName": "share_with",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "path",
|
|
"columnName": "path",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "permissions",
|
|
"columnName": "permissions",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "sharedDate",
|
|
"columnName": "shared_date",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "expirationDate",
|
|
"columnName": "expiration_date",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "token",
|
|
"columnName": "token",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "sharedWithDisplayName",
|
|
"columnName": "shared_with_display_name",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "sharedWithAdditionalInfo",
|
|
"columnName": "share_with_additional_info",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "isFolder",
|
|
"columnName": "is_directory",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "remoteId",
|
|
"columnName": "id_remote_shared",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "accountOwner",
|
|
"columnName": "owner_share",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "name",
|
|
"columnName": "name",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "shareLink",
|
|
"columnName": "url",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "id",
|
|
"columnName": "id",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"columnNames": [
|
|
"id"
|
|
],
|
|
"autoGenerate": true
|
|
},
|
|
"indices": [],
|
|
"foreignKeys": []
|
|
},
|
|
{
|
|
"tableName": "user_quotas",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`accountName` TEXT NOT NULL, `used` INTEGER NOT NULL, `available` INTEGER NOT NULL, PRIMARY KEY(`accountName`))",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "accountName",
|
|
"columnName": "accountName",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "used",
|
|
"columnName": "used",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "available",
|
|
"columnName": "available",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"columnNames": [
|
|
"accountName"
|
|
],
|
|
"autoGenerate": false
|
|
},
|
|
"indices": [],
|
|
"foreignKeys": []
|
|
},
|
|
{
|
|
"tableName": "transfers",
|
|
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`localPath` TEXT NOT NULL, `remotePath` TEXT NOT NULL, `accountName` TEXT NOT NULL, `fileSize` INTEGER NOT NULL, `status` INTEGER NOT NULL, `localBehaviour` INTEGER NOT NULL, `forceOverwrite` INTEGER NOT NULL, `transferEndTimestamp` INTEGER, `lastResult` INTEGER, `createdBy` INTEGER NOT NULL, `transferId` TEXT, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
|
|
"fields": [
|
|
{
|
|
"fieldPath": "localPath",
|
|
"columnName": "localPath",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "remotePath",
|
|
"columnName": "remotePath",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "accountName",
|
|
"columnName": "accountName",
|
|
"affinity": "TEXT",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "fileSize",
|
|
"columnName": "fileSize",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "status",
|
|
"columnName": "status",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "localBehaviour",
|
|
"columnName": "localBehaviour",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "forceOverwrite",
|
|
"columnName": "forceOverwrite",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "transferEndTimestamp",
|
|
"columnName": "transferEndTimestamp",
|
|
"affinity": "INTEGER",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "lastResult",
|
|
"columnName": "lastResult",
|
|
"affinity": "INTEGER",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "createdBy",
|
|
"columnName": "createdBy",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
},
|
|
{
|
|
"fieldPath": "transferId",
|
|
"columnName": "transferId",
|
|
"affinity": "TEXT",
|
|
"notNull": false
|
|
},
|
|
{
|
|
"fieldPath": "id",
|
|
"columnName": "id",
|
|
"affinity": "INTEGER",
|
|
"notNull": true
|
|
}
|
|
],
|
|
"primaryKey": {
|
|
"columnNames": [
|
|
"id"
|
|
],
|
|
"autoGenerate": true
|
|
},
|
|
"indices": [],
|
|
"foreignKeys": []
|
|
}
|
|
],
|
|
"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, '71dab0c694d243e067f4087932cf1c3d')"
|
|
]
|
|
}
|
|
} |