2022-01-18 14:28:48 -05:00
{
"formatVersion" : 1 ,
"database" : {
"version" : 7 ,
2022-01-28 10:19:12 -05:00
"identityHash" : "f8551fac095d795a83ba7a95277e3f0f" ,
2022-01-18 14:28:48 -05:00
"entities" : [
{
"tableName" : "Subscription" ,
2022-01-27 19:57:43 -05:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `baseUrl` TEXT NOT NULL, `topic` TEXT NOT NULL, `instant` INTEGER NOT NULL, `mutedUntil` INTEGER NOT NULL, `authUserId` INTEGER, `upAppId` TEXT, `upConnectorToken` TEXT, PRIMARY KEY(`id`))" ,
2022-01-18 14:28:48 -05:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "baseUrl" ,
"columnName" : "baseUrl" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "topic" ,
"columnName" : "topic" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "instant" ,
"columnName" : "instant" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "mutedUntil" ,
"columnName" : "mutedUntil" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
2022-01-27 19:57:43 -05:00
{
"fieldPath" : "authUserId" ,
"columnName" : "authUserId" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
2022-01-18 14:28:48 -05:00
{
"fieldPath" : "upAppId" ,
"columnName" : "upAppId" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "upConnectorToken" ,
"columnName" : "upConnectorToken" ,
"affinity" : "TEXT" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : false
} ,
"indices" : [
{
"name" : "index_Subscription_baseUrl_topic" ,
"unique" : true ,
"columnNames" : [
"baseUrl" ,
"topic"
] ,
2022-01-27 19:57:43 -05:00
"orders" : [ ] ,
2022-01-18 14:28:48 -05:00
"createSql" : "CREATE UNIQUE INDEX IF NOT EXISTS `index_Subscription_baseUrl_topic` ON `${TABLE_NAME}` (`baseUrl`, `topic`)"
} ,
{
"name" : "index_Subscription_upConnectorToken" ,
"unique" : true ,
"columnNames" : [
"upConnectorToken"
] ,
2022-01-27 19:57:43 -05:00
"orders" : [ ] ,
2022-01-18 14:28:48 -05:00
"createSql" : "CREATE UNIQUE INDEX IF NOT EXISTS `index_Subscription_upConnectorToken` ON `${TABLE_NAME}` (`upConnectorToken`)"
}
] ,
"foreignKeys" : [ ]
} ,
{
"tableName" : "Notification" ,
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `subscriptionId` INTEGER NOT NULL, `timestamp` INTEGER NOT NULL, `title` TEXT NOT NULL, `message` TEXT NOT NULL, `notificationId` INTEGER NOT NULL, `priority` INTEGER NOT NULL DEFAULT 3, `tags` TEXT NOT NULL, `click` TEXT NOT NULL, `deleted` INTEGER NOT NULL, `attachment_name` TEXT, `attachment_type` TEXT, `attachment_size` INTEGER, `attachment_expires` INTEGER, `attachment_url` TEXT, `attachment_contentUri` TEXT, `attachment_progress` INTEGER, PRIMARY KEY(`id`, `subscriptionId`))" ,
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "subscriptionId" ,
"columnName" : "subscriptionId" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "title" ,
"columnName" : "title" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "message" ,
"columnName" : "message" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "notificationId" ,
"columnName" : "notificationId" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "priority" ,
"columnName" : "priority" ,
"affinity" : "INTEGER" ,
"notNull" : true ,
"defaultValue" : "3"
} ,
{
"fieldPath" : "tags" ,
"columnName" : "tags" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "click" ,
"columnName" : "click" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "deleted" ,
"columnName" : "deleted" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "attachment.name" ,
"columnName" : "attachment_name" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "attachment.type" ,
"columnName" : "attachment_type" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "attachment.size" ,
"columnName" : "attachment_size" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "attachment.expires" ,
"columnName" : "attachment_expires" ,
"affinity" : "INTEGER" ,
"notNull" : false
} ,
{
"fieldPath" : "attachment.url" ,
"columnName" : "attachment_url" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "attachment.contentUri" ,
"columnName" : "attachment_contentUri" ,
"affinity" : "TEXT" ,
"notNull" : false
} ,
{
"fieldPath" : "attachment.progress" ,
"columnName" : "attachment_progress" ,
"affinity" : "INTEGER" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id" ,
"subscriptionId"
] ,
"autoGenerate" : false
} ,
"indices" : [ ] ,
"foreignKeys" : [ ]
} ,
2022-01-27 19:57:43 -05:00
{
"tableName" : "User" ,
2022-01-28 10:19:12 -05:00
"createSql" : "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `baseUrl` TEXT NOT NULL, `username` TEXT NOT NULL, `password` TEXT NOT NULL)" ,
2022-01-27 19:57:43 -05:00
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
2022-01-28 10:19:12 -05:00
{
"fieldPath" : "baseUrl" ,
"columnName" : "baseUrl" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
2022-01-27 19:57:43 -05:00
{
"fieldPath" : "username" ,
"columnName" : "username" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "password" ,
"columnName" : "password" ,
"affinity" : "TEXT" ,
"notNull" : true
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [ ] ,
"foreignKeys" : [ ]
} ,
2022-01-18 14:28:48 -05:00
{
"tableName" : "Log" ,
"createSql" : " C R E A T E T A B L E I F N O T E X I S T S ` $ { T A B L E _ N A M E } ` ( ` i d ` I N T E G E R P R I M A R Y K E Y A U T O I N C R E M E N T N O T N U L L , ` t i m e s t a m p ` I N T E G E R N O T N U L L , ` t a g ` T E X T N O T N U L L , ` l e v e l ` I N T E G E R N O T N U L L , ` m e s s a g e ` T E X T N O T N U L L , ` e x c e p t i o n ` T E X T ) " ,
"fields" : [
{
"fieldPath" : "id" ,
"columnName" : "id" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "timestamp" ,
"columnName" : "timestamp" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "tag" ,
"columnName" : "tag" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "level" ,
"columnName" : "level" ,
"affinity" : "INTEGER" ,
"notNull" : true
} ,
{
"fieldPath" : "message" ,
"columnName" : "message" ,
"affinity" : "TEXT" ,
"notNull" : true
} ,
{
"fieldPath" : "exception" ,
"columnName" : "exception" ,
"affinity" : "TEXT" ,
"notNull" : false
}
] ,
"primaryKey" : {
"columnNames" : [
"id"
] ,
"autoGenerate" : true
} ,
"indices" : [ ] ,
"foreignKeys" : [ ]
}
] ,
"views" : [ ] ,
"setupQueries" : [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)" ,
2022-01-28 10:19:12 -05:00
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'f8551fac095d795a83ba7a95277e3f0f')"
2022-01-18 14:28:48 -05:00
]
}
}