"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `name` TEXT NOT NULL, `email` TEXT NOT NULL, `replyto` TEXT, `account` INTEGER NOT NULL, `host` TEXT NOT NULL, `port` INTEGER NOT NULL, `starttls` INTEGER NOT NULL, `user` TEXT NOT NULL, `password` TEXT NOT NULL, `primary` INTEGER NOT NULL, `synchronize` INTEGER NOT NULL, FOREIGN KEY(`account`) REFERENCES `account`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields":[
{
"fieldPath":"id",
"columnName":"id",
"affinity":"INTEGER",
"notNull":false
},
{
"fieldPath":"name",
"columnName":"name",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"email",
"columnName":"email",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"replyto",
"columnName":"replyto",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"account",
"columnName":"account",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"host",
"columnName":"host",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"port",
"columnName":"port",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"starttls",
"columnName":"starttls",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"user",
"columnName":"user",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"password",
"columnName":"password",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"primary",
"columnName":"primary",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"synchronize",
"columnName":"synchronize",
"affinity":"INTEGER",
"notNull":true
}
],
"primaryKey":{
"columnNames":[
"id"
],
"autoGenerate":true
},
"indices":[
{
"name":"index_identity_account",
"unique":false,
"columnNames":[
"account"
],
"createSql":"CREATE INDEX `index_identity_account` ON `${TABLE_NAME}` (`account`)"
"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `name` TEXT, `host` TEXT NOT NULL, `port` INTEGER NOT NULL, `user` TEXT NOT NULL, `password` TEXT NOT NULL, `primary` INTEGER NOT NULL, `synchronize` INTEGER NOT NULL, `seen_until` INTEGER, `error` TEXT)",
"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `account` INTEGER, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `synchronize` INTEGER NOT NULL, `after` INTEGER NOT NULL, `error` TEXT, FOREIGN KEY(`account`) REFERENCES `account`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"createSql":"CREATE INDEX `index_message_thread` ON `${TABLE_NAME}` (`thread`)"
},
{
"name":"index_message_received",
"unique":false,
"columnNames":[
"received"
],
"createSql":"CREATE INDEX `index_message_received` ON `${TABLE_NAME}` (`received`)"
},
{
"name":"index_message_ui_seen",
"unique":false,
"columnNames":[
"ui_seen"
],
"createSql":"CREATE INDEX `index_message_ui_seen` ON `${TABLE_NAME}` (`ui_seen`)"
},
{
"name":"index_message_ui_hide",
"unique":false,
"columnNames":[
"ui_hide"
],
"createSql":"CREATE INDEX `index_message_ui_hide` ON `${TABLE_NAME}` (`ui_hide`)"
}
],
"foreignKeys":[
{
"table":"account",
"onDelete":"CASCADE",
"onUpdate":"NO ACTION",
"columns":[
"account"
],
"referencedColumns":[
"id"
]
},
{
"table":"folder",
"onDelete":"CASCADE",
"onUpdate":"NO ACTION",
"columns":[
"folder"
],
"referencedColumns":[
"id"
]
},
{
"table":"identity",
"onDelete":"CASCADE",
"onUpdate":"NO ACTION",
"columns":[
"identity"
],
"referencedColumns":[
"id"
]
},
{
"table":"message",
"onDelete":"CASCADE",
"onUpdate":"NO ACTION",
"columns":[
"replying"
],
"referencedColumns":[
"id"
]
}
]
},
{
"tableName":"attachment",
"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `message` INTEGER NOT NULL, `sequence` INTEGER NOT NULL, `name` TEXT, `type` TEXT NOT NULL, `size` INTEGER, `progress` INTEGER, `content` BLOB, FOREIGN KEY(`message`) REFERENCES `message`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
"fields":[
{
"fieldPath":"id",
"columnName":"id",
"affinity":"INTEGER",
"notNull":false
},
{
"fieldPath":"message",
"columnName":"message",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"sequence",
"columnName":"sequence",
"affinity":"INTEGER",
"notNull":true
},
{
"fieldPath":"name",
"columnName":"name",
"affinity":"TEXT",
"notNull":false
},
{
"fieldPath":"type",
"columnName":"type",
"affinity":"TEXT",
"notNull":true
},
{
"fieldPath":"size",
"columnName":"size",
"affinity":"INTEGER",
"notNull":false
},
{
"fieldPath":"progress",
"columnName":"progress",
"affinity":"INTEGER",
"notNull":false
},
{
"fieldPath":"content",
"columnName":"content",
"affinity":"BLOB",
"notNull":false
}
],
"primaryKey":{
"columnNames":[
"id"
],
"autoGenerate":true
},
"indices":[
{
"name":"index_attachment_message",
"unique":false,
"columnNames":[
"message"
],
"createSql":"CREATE INDEX `index_attachment_message` ON `${TABLE_NAME}` (`message`)"
},
{
"name":"index_attachment_message_sequence",
"unique":true,
"columnNames":[
"message",
"sequence"
],
"createSql":"CREATE UNIQUE INDEX `index_attachment_message_sequence` ON `${TABLE_NAME}` (`message`, `sequence`)"
"createSql":"CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `folder` INTEGER NOT NULL, `message` INTEGER NOT NULL, `name` TEXT NOT NULL, `args` TEXT NOT NULL, `error` TEXT, FOREIGN KEY(`folder`) REFERENCES `folder`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`message`) REFERENCES `message`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",