2023-05-26 14:58:14 +02:00
{
"formatVersion" : 1 ,
"database" : {
"version" : 1 ,
2023-08-03 13:15:42 +02:00
"identityHash" : "7142188e25ce489eb233aed8fb76e4cc" ,
2023-05-26 14:58:14 +02:00
"entities" : [
{
2023-08-03 13:15:42 +02:00
"tableName" : "patch_bundles" ,
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`uid` INTEGER NOT NULL, `name` TEXT NOT NULL, `source` TEXT NOT NULL, `auto_update` INTEGER NOT NULL, `version` TEXT, `integrations_version` TEXT, PRIMARY KEY(`uid`))" ,
2023-05-26 14:58:14 +02:00
"fields" : [
{
"fieldPath" : "uid" ,
"columnName" : "uid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "name" ,
"columnName" : "name" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
2023-08-03 13:15:42 +02:00
"fieldPath" : "source" ,
"columnName" : "source" ,
2023-05-26 14:58:14 +02:00
"affinity" : "TEXT" ,
"notNull" : true
} ,
2023-08-03 13:15:42 +02:00
{
"fieldPath" : "autoUpdate" ,
"columnName" : "auto_update" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
2023-05-26 14:58:14 +02:00
{
"fieldPath" : "versionInfo.patches" ,
"columnName" : "version" ,
"affinity" : "TEXT" ,
2023-08-03 13:15:42 +02:00
"notNull" : false
2023-05-26 14:58:14 +02:00
} ,
{
"fieldPath" : "versionInfo.integrations" ,
"columnName" : "integrations_version" ,
"affinity" : "TEXT" ,
2023-08-03 13:15:42 +02:00
"notNull" : false
2023-05-26 14:58:14 +02:00
}
] ,
"primaryKey" : {
"autoGenerate" : false ,
"columnNames" : [
"uid"
]
} ,
"indices" : [
{
2023-08-03 13:15:42 +02:00
"name" : "index_patch_bundles_name" ,
2023-05-26 14:58:14 +02:00
"unique" : true ,
"columnNames" : [
"name"
] ,
"orders" : [ ] ,
2023-08-03 13:15:42 +02:00
"createSql" : "CREATE UNIQUE INDEX IF NOT EXISTS `index_patch_bundles_name` ON `${TABLE_NAME}` (`name`)"
2023-05-26 14:58:14 +02:00
}
] ,
"foreignKeys" : [ ]
2023-06-22 12:20:30 +02:00
} ,
{
"tableName" : "patch_selections" ,
2023-08-03 13:15:42 +02:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`uid` INTEGER NOT NULL, `patch_bundle` INTEGER NOT NULL, `package_name` TEXT NOT NULL, PRIMARY KEY(`uid`), FOREIGN KEY(`patch_bundle`) REFERENCES `patch_bundles`(`uid`) ON UPDATE NO ACTION ON DELETE CASCADE )" ,
2023-06-22 12:20:30 +02:00
"fields" : [
{
"fieldPath" : "uid" ,
"columnName" : "uid" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
2023-08-03 13:15:42 +02:00
"fieldPath" : "patchBundle" ,
"columnName" : "patch_bundle" ,
2023-06-22 12:20:30 +02:00
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "packageName" ,
"columnName" : "package_name" ,
"affinity" : "TEXT" ,
"notNull" : true
}
] ,
"primaryKey" : {
"autoGenerate" : false ,
"columnNames" : [
"uid"
]
} ,
"indices" : [
{
2023-08-03 13:15:42 +02:00
"name" : "index_patch_selections_patch_bundle_package_name" ,
2023-06-22 12:20:30 +02:00
"unique" : true ,
"columnNames" : [
2023-08-03 13:15:42 +02:00
"patch_bundle" ,
2023-06-22 12:20:30 +02:00
"package_name"
] ,
"orders" : [ ] ,
2023-08-03 13:15:42 +02:00
"createSql" : "CREATE UNIQUE INDEX IF NOT EXISTS `index_patch_selections_patch_bundle_package_name` ON `${TABLE_NAME}` (`patch_bundle`, `package_name`)"
2023-06-22 12:20:30 +02:00
}
] ,
"foreignKeys" : [
{
2023-08-03 13:15:42 +02:00
"table" : "patch_bundles" ,
2023-06-22 12:20:30 +02:00
"onDelete" : "CASCADE" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
2023-08-03 13:15:42 +02:00
"patch_bundle"
2023-06-22 12:20:30 +02:00
] ,
"referencedColumns" : [
"uid"
]
}
]
} ,
{
"tableName" : "selected_patches" ,
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`selection` INTEGER NOT NULL, `patch_name` TEXT NOT NULL, PRIMARY KEY(`selection`, `patch_name`), FOREIGN KEY(`selection`) REFERENCES `patch_selections`(`uid`) ON UPDATE NO ACTION ON DELETE CASCADE )" ,
"fields" : [
{
"fieldPath" : "selection" ,
"columnName" : "selection" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "patchName" ,
"columnName" : "patch_name" ,
"affinity" : "TEXT" ,
"notNull" : true
}
] ,
"primaryKey" : {
"autoGenerate" : false ,
"columnNames" : [
"selection" ,
"patch_name"
]
} ,
"indices" : [ ] ,
"foreignKeys" : [
{
"table" : "patch_selections" ,
"onDelete" : "CASCADE" ,
"onUpdate" : "NO ACTION" ,
"columns" : [
"selection"
] ,
"referencedColumns" : [
"uid"
]
}
]
2023-07-14 10:54:42 +02:00
} ,
{
"tableName" : "downloaded_app" ,
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`package_name` TEXT NOT NULL, `version` TEXT NOT NULL, `file` TEXT NOT NULL, PRIMARY KEY(`package_name`, `version`))" ,
"fields" : [
{
"fieldPath" : "packageName" ,
"columnName" : "package_name" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "version" ,
"columnName" : "version" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "file" ,
"columnName" : "file" ,
"affinity" : "TEXT" ,
"notNull" : true
}
] ,
"primaryKey" : {
"autoGenerate" : false ,
"columnNames" : [
"package_name" ,
"version"
]
} ,
"indices" : [ ] ,
"foreignKeys" : [ ]
2023-05-26 14:58:14 +02:00
}
] ,
"views" : [ ] ,
"setupQueries" : [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)" ,
2023-08-03 13:15:42 +02:00
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '7142188e25ce489eb233aed8fb76e4cc')"
2023-05-26 14:58:14 +02:00
]
}
}