Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

843 lines
25 KiB

  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 5,
  5. "identityHash": "df70f524a0c744041e89eea7e7052e73",
  6. "entities": [
  7. {
  8. "tableName": "identity",
  9. "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, `auth_type` INTEGER NOT NULL, `primary` INTEGER NOT NULL, `synchronize` INTEGER NOT NULL, `store_sent` INTEGER NOT NULL, `state` TEXT, `error` TEXT, FOREIGN KEY(`account`) REFERENCES `account`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
  10. "fields": [
  11. {
  12. "fieldPath": "id",
  13. "columnName": "id",
  14. "affinity": "INTEGER",
  15. "notNull": false
  16. },
  17. {
  18. "fieldPath": "name",
  19. "columnName": "name",
  20. "affinity": "TEXT",
  21. "notNull": true
  22. },
  23. {
  24. "fieldPath": "email",
  25. "columnName": "email",
  26. "affinity": "TEXT",
  27. "notNull": true
  28. },
  29. {
  30. "fieldPath": "replyto",
  31. "columnName": "replyto",
  32. "affinity": "TEXT",
  33. "notNull": false
  34. },
  35. {
  36. "fieldPath": "account",
  37. "columnName": "account",
  38. "affinity": "INTEGER",
  39. "notNull": true
  40. },
  41. {
  42. "fieldPath": "host",
  43. "columnName": "host",
  44. "affinity": "TEXT",
  45. "notNull": true
  46. },
  47. {
  48. "fieldPath": "port",
  49. "columnName": "port",
  50. "affinity": "INTEGER",
  51. "notNull": true
  52. },
  53. {
  54. "fieldPath": "starttls",
  55. "columnName": "starttls",
  56. "affinity": "INTEGER",
  57. "notNull": true
  58. },
  59. {
  60. "fieldPath": "user",
  61. "columnName": "user",
  62. "affinity": "TEXT",
  63. "notNull": true
  64. },
  65. {
  66. "fieldPath": "password",
  67. "columnName": "password",
  68. "affinity": "TEXT",
  69. "notNull": true
  70. },
  71. {
  72. "fieldPath": "auth_type",
  73. "columnName": "auth_type",
  74. "affinity": "INTEGER",
  75. "notNull": true
  76. },
  77. {
  78. "fieldPath": "primary",
  79. "columnName": "primary",
  80. "affinity": "INTEGER",
  81. "notNull": true
  82. },
  83. {
  84. "fieldPath": "synchronize",
  85. "columnName": "synchronize",
  86. "affinity": "INTEGER",
  87. "notNull": true
  88. },
  89. {
  90. "fieldPath": "store_sent",
  91. "columnName": "store_sent",
  92. "affinity": "INTEGER",
  93. "notNull": true
  94. },
  95. {
  96. "fieldPath": "state",
  97. "columnName": "state",
  98. "affinity": "TEXT",
  99. "notNull": false
  100. },
  101. {
  102. "fieldPath": "error",
  103. "columnName": "error",
  104. "affinity": "TEXT",
  105. "notNull": false
  106. }
  107. ],
  108. "primaryKey": {
  109. "columnNames": [
  110. "id"
  111. ],
  112. "autoGenerate": true
  113. },
  114. "indices": [
  115. {
  116. "name": "index_identity_account",
  117. "unique": false,
  118. "columnNames": [
  119. "account"
  120. ],
  121. "createSql": "CREATE INDEX `index_identity_account` ON `${TABLE_NAME}` (`account`)"
  122. }
  123. ],
  124. "foreignKeys": [
  125. {
  126. "table": "account",
  127. "onDelete": "CASCADE",
  128. "onUpdate": "NO ACTION",
  129. "columns": [
  130. "account"
  131. ],
  132. "referencedColumns": [
  133. "id"
  134. ]
  135. }
  136. ]
  137. },
  138. {
  139. "tableName": "account",
  140. "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, `auth_type` INTEGER NOT NULL, `primary` INTEGER NOT NULL, `synchronize` INTEGER NOT NULL, `store_sent` INTEGER NOT NULL, `poll_interval` INTEGER NOT NULL, `seen_until` INTEGER, `state` TEXT, `error` TEXT)",
  141. "fields": [
  142. {
  143. "fieldPath": "id",
  144. "columnName": "id",
  145. "affinity": "INTEGER",
  146. "notNull": false
  147. },
  148. {
  149. "fieldPath": "name",
  150. "columnName": "name",
  151. "affinity": "TEXT",
  152. "notNull": false
  153. },
  154. {
  155. "fieldPath": "host",
  156. "columnName": "host",
  157. "affinity": "TEXT",
  158. "notNull": true
  159. },
  160. {
  161. "fieldPath": "port",
  162. "columnName": "port",
  163. "affinity": "INTEGER",
  164. "notNull": true
  165. },
  166. {
  167. "fieldPath": "user",
  168. "columnName": "user",
  169. "affinity": "TEXT",
  170. "notNull": true
  171. },
  172. {
  173. "fieldPath": "password",
  174. "columnName": "password",
  175. "affinity": "TEXT",
  176. "notNull": true
  177. },
  178. {
  179. "fieldPath": "auth_type",
  180. "columnName": "auth_type",
  181. "affinity": "INTEGER",
  182. "notNull": true
  183. },
  184. {
  185. "fieldPath": "primary",
  186. "columnName": "primary",
  187. "affinity": "INTEGER",
  188. "notNull": true
  189. },
  190. {
  191. "fieldPath": "synchronize",
  192. "columnName": "synchronize",
  193. "affinity": "INTEGER",
  194. "notNull": true
  195. },
  196. {
  197. "fieldPath": "store_sent",
  198. "columnName": "store_sent",
  199. "affinity": "INTEGER",
  200. "notNull": true
  201. },
  202. {
  203. "fieldPath": "poll_interval",
  204. "columnName": "poll_interval",
  205. "affinity": "INTEGER",
  206. "notNull": true
  207. },
  208. {
  209. "fieldPath": "seen_until",
  210. "columnName": "seen_until",
  211. "affinity": "INTEGER",
  212. "notNull": false
  213. },
  214. {
  215. "fieldPath": "state",
  216. "columnName": "state",
  217. "affinity": "TEXT",
  218. "notNull": false
  219. },
  220. {
  221. "fieldPath": "error",
  222. "columnName": "error",
  223. "affinity": "TEXT",
  224. "notNull": false
  225. }
  226. ],
  227. "primaryKey": {
  228. "columnNames": [
  229. "id"
  230. ],
  231. "autoGenerate": true
  232. },
  233. "indices": [],
  234. "foreignKeys": []
  235. },
  236. {
  237. "tableName": "folder",
  238. "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, `state` TEXT, `error` TEXT, FOREIGN KEY(`account`) REFERENCES `account`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
  239. "fields": [
  240. {
  241. "fieldPath": "id",
  242. "columnName": "id",
  243. "affinity": "INTEGER",
  244. "notNull": false
  245. },
  246. {
  247. "fieldPath": "account",
  248. "columnName": "account",
  249. "affinity": "INTEGER",
  250. "notNull": false
  251. },
  252. {
  253. "fieldPath": "name",
  254. "columnName": "name",
  255. "affinity": "TEXT",
  256. "notNull": true
  257. },
  258. {
  259. "fieldPath": "type",
  260. "columnName": "type",
  261. "affinity": "TEXT",
  262. "notNull": true
  263. },
  264. {
  265. "fieldPath": "synchronize",
  266. "columnName": "synchronize",
  267. "affinity": "INTEGER",
  268. "notNull": true
  269. },
  270. {
  271. "fieldPath": "after",
  272. "columnName": "after",
  273. "affinity": "INTEGER",
  274. "notNull": true
  275. },
  276. {
  277. "fieldPath": "state",
  278. "columnName": "state",
  279. "affinity": "TEXT",
  280. "notNull": false
  281. },
  282. {
  283. "fieldPath": "error",
  284. "columnName": "error",
  285. "affinity": "TEXT",
  286. "notNull": false
  287. }
  288. ],
  289. "primaryKey": {
  290. "columnNames": [
  291. "id"
  292. ],
  293. "autoGenerate": true
  294. },
  295. "indices": [
  296. {
  297. "name": "index_folder_account_name",
  298. "unique": true,
  299. "columnNames": [
  300. "account",
  301. "name"
  302. ],
  303. "createSql": "CREATE UNIQUE INDEX `index_folder_account_name` ON `${TABLE_NAME}` (`account`, `name`)"
  304. },
  305. {
  306. "name": "index_folder_account",
  307. "unique": false,
  308. "columnNames": [
  309. "account"
  310. ],
  311. "createSql": "CREATE INDEX `index_folder_account` ON `${TABLE_NAME}` (`account`)"
  312. },
  313. {
  314. "name": "index_folder_name",
  315. "unique": false,
  316. "columnNames": [
  317. "name"
  318. ],
  319. "createSql": "CREATE INDEX `index_folder_name` ON `${TABLE_NAME}` (`name`)"
  320. },
  321. {
  322. "name": "index_folder_type",
  323. "unique": false,
  324. "columnNames": [
  325. "type"
  326. ],
  327. "createSql": "CREATE INDEX `index_folder_type` ON `${TABLE_NAME}` (`type`)"
  328. }
  329. ],
  330. "foreignKeys": [
  331. {
  332. "table": "account",
  333. "onDelete": "CASCADE",
  334. "onUpdate": "NO ACTION",
  335. "columns": [
  336. "account"
  337. ],
  338. "referencedColumns": [
  339. "id"
  340. ]
  341. }
  342. ]
  343. },
  344. {
  345. "tableName": "message",
  346. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `account` INTEGER, `folder` INTEGER NOT NULL, `identity` INTEGER, `replying` INTEGER, `uid` INTEGER, `msgid` TEXT, `references` TEXT, `inreplyto` TEXT, `thread` TEXT, `from` TEXT, `to` TEXT, `cc` TEXT, `bcc` TEXT, `reply` TEXT, `subject` TEXT, `sent` INTEGER, `received` INTEGER NOT NULL, `stored` INTEGER NOT NULL, `seen` INTEGER NOT NULL, `ui_seen` INTEGER NOT NULL, `ui_hide` INTEGER NOT NULL, `error` TEXT, FOREIGN KEY(`account`) REFERENCES `account`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`folder`) REFERENCES `folder`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`identity`) REFERENCES `identity`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`replying`) REFERENCES `message`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
  347. "fields": [
  348. {
  349. "fieldPath": "id",
  350. "columnName": "id",
  351. "affinity": "INTEGER",
  352. "notNull": false
  353. },
  354. {
  355. "fieldPath": "account",
  356. "columnName": "account",
  357. "affinity": "INTEGER",
  358. "notNull": false
  359. },
  360. {
  361. "fieldPath": "folder",
  362. "columnName": "folder",
  363. "affinity": "INTEGER",
  364. "notNull": true
  365. },
  366. {
  367. "fieldPath": "identity",
  368. "columnName": "identity",
  369. "affinity": "INTEGER",
  370. "notNull": false
  371. },
  372. {
  373. "fieldPath": "replying",
  374. "columnName": "replying",
  375. "affinity": "INTEGER",
  376. "notNull": false
  377. },
  378. {
  379. "fieldPath": "uid",
  380. "columnName": "uid",
  381. "affinity": "INTEGER",
  382. "notNull": false
  383. },
  384. {
  385. "fieldPath": "msgid",
  386. "columnName": "msgid",
  387. "affinity": "TEXT",
  388. "notNull": false
  389. },
  390. {
  391. "fieldPath": "references",
  392. "columnName": "references",
  393. "affinity": "TEXT",
  394. "notNull": false
  395. },
  396. {
  397. "fieldPath": "inreplyto",
  398. "columnName": "inreplyto",
  399. "affinity": "TEXT",
  400. "notNull": false
  401. },
  402. {
  403. "fieldPath": "thread",
  404. "columnName": "thread",
  405. "affinity": "TEXT",
  406. "notNull": false
  407. },
  408. {
  409. "fieldPath": "from",
  410. "columnName": "from",
  411. "affinity": "TEXT",
  412. "notNull": false
  413. },
  414. {
  415. "fieldPath": "to",
  416. "columnName": "to",
  417. "affinity": "TEXT",
  418. "notNull": false
  419. },
  420. {
  421. "fieldPath": "cc",
  422. "columnName": "cc",
  423. "affinity": "TEXT",
  424. "notNull": false
  425. },
  426. {
  427. "fieldPath": "bcc",
  428. "columnName": "bcc",
  429. "affinity": "TEXT",
  430. "notNull": false
  431. },
  432. {
  433. "fieldPath": "reply",
  434. "columnName": "reply",
  435. "affinity": "TEXT",
  436. "notNull": false
  437. },
  438. {
  439. "fieldPath": "subject",
  440. "columnName": "subject",
  441. "affinity": "TEXT",
  442. "notNull": false
  443. },
  444. {
  445. "fieldPath": "sent",
  446. "columnName": "sent",
  447. "affinity": "INTEGER",
  448. "notNull": false
  449. },
  450. {
  451. "fieldPath": "received",
  452. "columnName": "received",
  453. "affinity": "INTEGER",
  454. "notNull": true
  455. },
  456. {
  457. "fieldPath": "stored",
  458. "columnName": "stored",
  459. "affinity": "INTEGER",
  460. "notNull": true
  461. },
  462. {
  463. "fieldPath": "seen",
  464. "columnName": "seen",
  465. "affinity": "INTEGER",
  466. "notNull": true
  467. },
  468. {
  469. "fieldPath": "ui_seen",
  470. "columnName": "ui_seen",
  471. "affinity": "INTEGER",
  472. "notNull": true
  473. },
  474. {
  475. "fieldPath": "ui_hide",
  476. "columnName": "ui_hide",
  477. "affinity": "INTEGER",
  478. "notNull": true
  479. },
  480. {
  481. "fieldPath": "error",
  482. "columnName": "error",
  483. "affinity": "TEXT",
  484. "notNull": false
  485. }
  486. ],
  487. "primaryKey": {
  488. "columnNames": [
  489. "id"
  490. ],
  491. "autoGenerate": true
  492. },
  493. "indices": [
  494. {
  495. "name": "index_message_account",
  496. "unique": false,
  497. "columnNames": [
  498. "account"
  499. ],
  500. "createSql": "CREATE INDEX `index_message_account` ON `${TABLE_NAME}` (`account`)"
  501. },
  502. {
  503. "name": "index_message_folder",
  504. "unique": false,
  505. "columnNames": [
  506. "folder"
  507. ],
  508. "createSql": "CREATE INDEX `index_message_folder` ON `${TABLE_NAME}` (`folder`)"
  509. },
  510. {
  511. "name": "index_message_identity",
  512. "unique": false,
  513. "columnNames": [
  514. "identity"
  515. ],
  516. "createSql": "CREATE INDEX `index_message_identity` ON `${TABLE_NAME}` (`identity`)"
  517. },
  518. {
  519. "name": "index_message_replying",
  520. "unique": false,
  521. "columnNames": [
  522. "replying"
  523. ],
  524. "createSql": "CREATE INDEX `index_message_replying` ON `${TABLE_NAME}` (`replying`)"
  525. },
  526. {
  527. "name": "index_message_folder_uid",
  528. "unique": true,
  529. "columnNames": [
  530. "folder",
  531. "uid"
  532. ],
  533. "createSql": "CREATE UNIQUE INDEX `index_message_folder_uid` ON `${TABLE_NAME}` (`folder`, `uid`)"
  534. },
  535. {
  536. "name": "index_message_msgid_folder",
  537. "unique": true,
  538. "columnNames": [
  539. "msgid",
  540. "folder"
  541. ],
  542. "createSql": "CREATE UNIQUE INDEX `index_message_msgid_folder` ON `${TABLE_NAME}` (`msgid`, `folder`)"
  543. },
  544. {
  545. "name": "index_message_thread",
  546. "unique": false,
  547. "columnNames": [
  548. "thread"
  549. ],
  550. "createSql": "CREATE INDEX `index_message_thread` ON `${TABLE_NAME}` (`thread`)"
  551. },
  552. {
  553. "name": "index_message_received",
  554. "unique": false,
  555. "columnNames": [
  556. "received"
  557. ],
  558. "createSql": "CREATE INDEX `index_message_received` ON `${TABLE_NAME}` (`received`)"
  559. },
  560. {
  561. "name": "index_message_ui_seen",
  562. "unique": false,
  563. "columnNames": [
  564. "ui_seen"
  565. ],
  566. "createSql": "CREATE INDEX `index_message_ui_seen` ON `${TABLE_NAME}` (`ui_seen`)"
  567. },
  568. {
  569. "name": "index_message_ui_hide",
  570. "unique": false,
  571. "columnNames": [
  572. "ui_hide"
  573. ],
  574. "createSql": "CREATE INDEX `index_message_ui_hide` ON `${TABLE_NAME}` (`ui_hide`)"
  575. }
  576. ],
  577. "foreignKeys": [
  578. {
  579. "table": "account",
  580. "onDelete": "CASCADE",
  581. "onUpdate": "NO ACTION",
  582. "columns": [
  583. "account"
  584. ],
  585. "referencedColumns": [
  586. "id"
  587. ]
  588. },
  589. {
  590. "table": "folder",
  591. "onDelete": "CASCADE",
  592. "onUpdate": "NO ACTION",
  593. "columns": [
  594. "folder"
  595. ],
  596. "referencedColumns": [
  597. "id"
  598. ]
  599. },
  600. {
  601. "table": "identity",
  602. "onDelete": "CASCADE",
  603. "onUpdate": "NO ACTION",
  604. "columns": [
  605. "identity"
  606. ],
  607. "referencedColumns": [
  608. "id"
  609. ]
  610. },
  611. {
  612. "table": "message",
  613. "onDelete": "CASCADE",
  614. "onUpdate": "NO ACTION",
  615. "columns": [
  616. "replying"
  617. ],
  618. "referencedColumns": [
  619. "id"
  620. ]
  621. }
  622. ]
  623. },
  624. {
  625. "tableName": "attachment",
  626. "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, `available` INTEGER NOT NULL, FOREIGN KEY(`message`) REFERENCES `message`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )",
  627. "fields": [
  628. {
  629. "fieldPath": "id",
  630. "columnName": "id",
  631. "affinity": "INTEGER",
  632. "notNull": false
  633. },
  634. {
  635. "fieldPath": "message",
  636. "columnName": "message",
  637. "affinity": "INTEGER",
  638. "notNull": true
  639. },
  640. {
  641. "fieldPath": "sequence",
  642. "columnName": "sequence",
  643. "affinity": "INTEGER",
  644. "notNull": true
  645. },
  646. {
  647. "fieldPath": "name",
  648. "columnName": "name",
  649. "affinity": "TEXT",
  650. "notNull": false
  651. },
  652. {
  653. "fieldPath": "type",
  654. "columnName": "type",
  655. "affinity": "TEXT",
  656. "notNull": true
  657. },
  658. {
  659. "fieldPath": "size",
  660. "columnName": "size",
  661. "affinity": "INTEGER",
  662. "notNull": false
  663. },
  664. {
  665. "fieldPath": "progress",
  666. "columnName": "progress",
  667. "affinity": "INTEGER",
  668. "notNull": false
  669. },
  670. {
  671. "fieldPath": "available",
  672. "columnName": "available",
  673. "affinity": "INTEGER",
  674. "notNull": true
  675. }
  676. ],
  677. "primaryKey": {
  678. "columnNames": [
  679. "id"
  680. ],
  681. "autoGenerate": true
  682. },
  683. "indices": [
  684. {
  685. "name": "index_attachment_message",
  686. "unique": false,
  687. "columnNames": [
  688. "message"
  689. ],
  690. "createSql": "CREATE INDEX `index_attachment_message` ON `${TABLE_NAME}` (`message`)"
  691. },
  692. {
  693. "name": "index_attachment_message_sequence",
  694. "unique": true,
  695. "columnNames": [
  696. "message",
  697. "sequence"
  698. ],
  699. "createSql": "CREATE UNIQUE INDEX `index_attachment_message_sequence` ON `${TABLE_NAME}` (`message`, `sequence`)"
  700. }
  701. ],
  702. "foreignKeys": [
  703. {
  704. "table": "message",
  705. "onDelete": "CASCADE",
  706. "onUpdate": "NO ACTION",
  707. "columns": [
  708. "message"
  709. ],
  710. "referencedColumns": [
  711. "id"
  712. ]
  713. }
  714. ]
  715. },
  716. {
  717. "tableName": "operation",
  718. "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, `created` INTEGER NOT NULL, 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 )",
  719. "fields": [
  720. {
  721. "fieldPath": "id",
  722. "columnName": "id",
  723. "affinity": "INTEGER",
  724. "notNull": false
  725. },
  726. {
  727. "fieldPath": "folder",
  728. "columnName": "folder",
  729. "affinity": "INTEGER",
  730. "notNull": true
  731. },
  732. {
  733. "fieldPath": "message",
  734. "columnName": "message",
  735. "affinity": "INTEGER",
  736. "notNull": true
  737. },
  738. {
  739. "fieldPath": "name",
  740. "columnName": "name",
  741. "affinity": "TEXT",
  742. "notNull": true
  743. },
  744. {
  745. "fieldPath": "args",
  746. "columnName": "args",
  747. "affinity": "TEXT",
  748. "notNull": true
  749. },
  750. {
  751. "fieldPath": "created",
  752. "columnName": "created",
  753. "affinity": "INTEGER",
  754. "notNull": true
  755. }
  756. ],
  757. "primaryKey": {
  758. "columnNames": [
  759. "id"
  760. ],
  761. "autoGenerate": true
  762. },
  763. "indices": [
  764. {
  765. "name": "index_operation_folder",
  766. "unique": false,
  767. "columnNames": [
  768. "folder"
  769. ],
  770. "createSql": "CREATE INDEX `index_operation_folder` ON `${TABLE_NAME}` (`folder`)"
  771. },
  772. {
  773. "name": "index_operation_message",
  774. "unique": false,
  775. "columnNames": [
  776. "message"
  777. ],
  778. "createSql": "CREATE INDEX `index_operation_message` ON `${TABLE_NAME}` (`message`)"
  779. }
  780. ],
  781. "foreignKeys": [
  782. {
  783. "table": "folder",
  784. "onDelete": "CASCADE",
  785. "onUpdate": "NO ACTION",
  786. "columns": [
  787. "folder"
  788. ],
  789. "referencedColumns": [
  790. "id"
  791. ]
  792. },
  793. {
  794. "table": "message",
  795. "onDelete": "CASCADE",
  796. "onUpdate": "NO ACTION",
  797. "columns": [
  798. "message"
  799. ],
  800. "referencedColumns": [
  801. "id"
  802. ]
  803. }
  804. ]
  805. },
  806. {
  807. "tableName": "answer",
  808. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `name` TEXT NOT NULL, `text` TEXT NOT NULL)",
  809. "fields": [
  810. {
  811. "fieldPath": "id",
  812. "columnName": "id",
  813. "affinity": "INTEGER",
  814. "notNull": false
  815. },
  816. {
  817. "fieldPath": "name",
  818. "columnName": "name",
  819. "affinity": "TEXT",
  820. "notNull": true
  821. },
  822. {
  823. "fieldPath": "text",
  824. "columnName": "text",
  825. "affinity": "TEXT",
  826. "notNull": true
  827. }
  828. ],
  829. "primaryKey": {
  830. "columnNames": [
  831. "id"
  832. ],
  833. "autoGenerate": true
  834. },
  835. "indices": [],
  836. "foreignKeys": []
  837. }
  838. ],
  839. "setupQueries": [
  840. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  841. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, \"df70f524a0c744041e89eea7e7052e73\")"
  842. ]
  843. }
  844. }