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.

924 lines
27 KiB

  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 11,
  5. "identityHash": "d0a6171ec8d9a64a1c65e8c7e5d0348a",
  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, `signature` 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": "signature",
  156. "columnName": "signature",
  157. "affinity": "TEXT",
  158. "notNull": false
  159. },
  160. {
  161. "fieldPath": "host",
  162. "columnName": "host",
  163. "affinity": "TEXT",
  164. "notNull": true
  165. },
  166. {
  167. "fieldPath": "port",
  168. "columnName": "port",
  169. "affinity": "INTEGER",
  170. "notNull": true
  171. },
  172. {
  173. "fieldPath": "user",
  174. "columnName": "user",
  175. "affinity": "TEXT",
  176. "notNull": true
  177. },
  178. {
  179. "fieldPath": "password",
  180. "columnName": "password",
  181. "affinity": "TEXT",
  182. "notNull": true
  183. },
  184. {
  185. "fieldPath": "auth_type",
  186. "columnName": "auth_type",
  187. "affinity": "INTEGER",
  188. "notNull": true
  189. },
  190. {
  191. "fieldPath": "primary",
  192. "columnName": "primary",
  193. "affinity": "INTEGER",
  194. "notNull": true
  195. },
  196. {
  197. "fieldPath": "synchronize",
  198. "columnName": "synchronize",
  199. "affinity": "INTEGER",
  200. "notNull": true
  201. },
  202. {
  203. "fieldPath": "store_sent",
  204. "columnName": "store_sent",
  205. "affinity": "INTEGER",
  206. "notNull": true
  207. },
  208. {
  209. "fieldPath": "poll_interval",
  210. "columnName": "poll_interval",
  211. "affinity": "INTEGER",
  212. "notNull": true
  213. },
  214. {
  215. "fieldPath": "seen_until",
  216. "columnName": "seen_until",
  217. "affinity": "INTEGER",
  218. "notNull": false
  219. },
  220. {
  221. "fieldPath": "state",
  222. "columnName": "state",
  223. "affinity": "TEXT",
  224. "notNull": false
  225. },
  226. {
  227. "fieldPath": "error",
  228. "columnName": "error",
  229. "affinity": "TEXT",
  230. "notNull": false
  231. }
  232. ],
  233. "primaryKey": {
  234. "columnNames": [
  235. "id"
  236. ],
  237. "autoGenerate": true
  238. },
  239. "indices": [],
  240. "foreignKeys": []
  241. },
  242. {
  243. "tableName": "folder",
  244. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `account` INTEGER, `name` TEXT NOT NULL, `type` TEXT NOT NULL, `unified` INTEGER 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 )",
  245. "fields": [
  246. {
  247. "fieldPath": "id",
  248. "columnName": "id",
  249. "affinity": "INTEGER",
  250. "notNull": false
  251. },
  252. {
  253. "fieldPath": "account",
  254. "columnName": "account",
  255. "affinity": "INTEGER",
  256. "notNull": false
  257. },
  258. {
  259. "fieldPath": "name",
  260. "columnName": "name",
  261. "affinity": "TEXT",
  262. "notNull": true
  263. },
  264. {
  265. "fieldPath": "type",
  266. "columnName": "type",
  267. "affinity": "TEXT",
  268. "notNull": true
  269. },
  270. {
  271. "fieldPath": "unified",
  272. "columnName": "unified",
  273. "affinity": "INTEGER",
  274. "notNull": true
  275. },
  276. {
  277. "fieldPath": "synchronize",
  278. "columnName": "synchronize",
  279. "affinity": "INTEGER",
  280. "notNull": true
  281. },
  282. {
  283. "fieldPath": "after",
  284. "columnName": "after",
  285. "affinity": "INTEGER",
  286. "notNull": true
  287. },
  288. {
  289. "fieldPath": "state",
  290. "columnName": "state",
  291. "affinity": "TEXT",
  292. "notNull": false
  293. },
  294. {
  295. "fieldPath": "error",
  296. "columnName": "error",
  297. "affinity": "TEXT",
  298. "notNull": false
  299. }
  300. ],
  301. "primaryKey": {
  302. "columnNames": [
  303. "id"
  304. ],
  305. "autoGenerate": true
  306. },
  307. "indices": [
  308. {
  309. "name": "index_folder_account_name",
  310. "unique": true,
  311. "columnNames": [
  312. "account",
  313. "name"
  314. ],
  315. "createSql": "CREATE UNIQUE INDEX `index_folder_account_name` ON `${TABLE_NAME}` (`account`, `name`)"
  316. },
  317. {
  318. "name": "index_folder_account",
  319. "unique": false,
  320. "columnNames": [
  321. "account"
  322. ],
  323. "createSql": "CREATE INDEX `index_folder_account` ON `${TABLE_NAME}` (`account`)"
  324. },
  325. {
  326. "name": "index_folder_name",
  327. "unique": false,
  328. "columnNames": [
  329. "name"
  330. ],
  331. "createSql": "CREATE INDEX `index_folder_name` ON `${TABLE_NAME}` (`name`)"
  332. },
  333. {
  334. "name": "index_folder_type",
  335. "unique": false,
  336. "columnNames": [
  337. "type"
  338. ],
  339. "createSql": "CREATE INDEX `index_folder_type` ON `${TABLE_NAME}` (`type`)"
  340. },
  341. {
  342. "name": "index_folder_unified",
  343. "unique": false,
  344. "columnNames": [
  345. "unified"
  346. ],
  347. "createSql": "CREATE INDEX `index_folder_unified` ON `${TABLE_NAME}` (`unified`)"
  348. }
  349. ],
  350. "foreignKeys": [
  351. {
  352. "table": "account",
  353. "onDelete": "CASCADE",
  354. "onUpdate": "NO ACTION",
  355. "columns": [
  356. "account"
  357. ],
  358. "referencedColumns": [
  359. "id"
  360. ]
  361. }
  362. ]
  363. },
  364. {
  365. "tableName": "message",
  366. "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, `headers` 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, `ui_found` 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 )",
  367. "fields": [
  368. {
  369. "fieldPath": "id",
  370. "columnName": "id",
  371. "affinity": "INTEGER",
  372. "notNull": false
  373. },
  374. {
  375. "fieldPath": "account",
  376. "columnName": "account",
  377. "affinity": "INTEGER",
  378. "notNull": false
  379. },
  380. {
  381. "fieldPath": "folder",
  382. "columnName": "folder",
  383. "affinity": "INTEGER",
  384. "notNull": true
  385. },
  386. {
  387. "fieldPath": "identity",
  388. "columnName": "identity",
  389. "affinity": "INTEGER",
  390. "notNull": false
  391. },
  392. {
  393. "fieldPath": "replying",
  394. "columnName": "replying",
  395. "affinity": "INTEGER",
  396. "notNull": false
  397. },
  398. {
  399. "fieldPath": "uid",
  400. "columnName": "uid",
  401. "affinity": "INTEGER",
  402. "notNull": false
  403. },
  404. {
  405. "fieldPath": "msgid",
  406. "columnName": "msgid",
  407. "affinity": "TEXT",
  408. "notNull": false
  409. },
  410. {
  411. "fieldPath": "references",
  412. "columnName": "references",
  413. "affinity": "TEXT",
  414. "notNull": false
  415. },
  416. {
  417. "fieldPath": "inreplyto",
  418. "columnName": "inreplyto",
  419. "affinity": "TEXT",
  420. "notNull": false
  421. },
  422. {
  423. "fieldPath": "thread",
  424. "columnName": "thread",
  425. "affinity": "TEXT",
  426. "notNull": false
  427. },
  428. {
  429. "fieldPath": "from",
  430. "columnName": "from",
  431. "affinity": "TEXT",
  432. "notNull": false
  433. },
  434. {
  435. "fieldPath": "to",
  436. "columnName": "to",
  437. "affinity": "TEXT",
  438. "notNull": false
  439. },
  440. {
  441. "fieldPath": "cc",
  442. "columnName": "cc",
  443. "affinity": "TEXT",
  444. "notNull": false
  445. },
  446. {
  447. "fieldPath": "bcc",
  448. "columnName": "bcc",
  449. "affinity": "TEXT",
  450. "notNull": false
  451. },
  452. {
  453. "fieldPath": "reply",
  454. "columnName": "reply",
  455. "affinity": "TEXT",
  456. "notNull": false
  457. },
  458. {
  459. "fieldPath": "headers",
  460. "columnName": "headers",
  461. "affinity": "TEXT",
  462. "notNull": false
  463. },
  464. {
  465. "fieldPath": "subject",
  466. "columnName": "subject",
  467. "affinity": "TEXT",
  468. "notNull": false
  469. },
  470. {
  471. "fieldPath": "sent",
  472. "columnName": "sent",
  473. "affinity": "INTEGER",
  474. "notNull": false
  475. },
  476. {
  477. "fieldPath": "received",
  478. "columnName": "received",
  479. "affinity": "INTEGER",
  480. "notNull": true
  481. },
  482. {
  483. "fieldPath": "stored",
  484. "columnName": "stored",
  485. "affinity": "INTEGER",
  486. "notNull": true
  487. },
  488. {
  489. "fieldPath": "seen",
  490. "columnName": "seen",
  491. "affinity": "INTEGER",
  492. "notNull": true
  493. },
  494. {
  495. "fieldPath": "ui_seen",
  496. "columnName": "ui_seen",
  497. "affinity": "INTEGER",
  498. "notNull": true
  499. },
  500. {
  501. "fieldPath": "ui_hide",
  502. "columnName": "ui_hide",
  503. "affinity": "INTEGER",
  504. "notNull": true
  505. },
  506. {
  507. "fieldPath": "ui_found",
  508. "columnName": "ui_found",
  509. "affinity": "INTEGER",
  510. "notNull": true
  511. },
  512. {
  513. "fieldPath": "error",
  514. "columnName": "error",
  515. "affinity": "TEXT",
  516. "notNull": false
  517. }
  518. ],
  519. "primaryKey": {
  520. "columnNames": [
  521. "id"
  522. ],
  523. "autoGenerate": true
  524. },
  525. "indices": [
  526. {
  527. "name": "index_message_account",
  528. "unique": false,
  529. "columnNames": [
  530. "account"
  531. ],
  532. "createSql": "CREATE INDEX `index_message_account` ON `${TABLE_NAME}` (`account`)"
  533. },
  534. {
  535. "name": "index_message_folder",
  536. "unique": false,
  537. "columnNames": [
  538. "folder"
  539. ],
  540. "createSql": "CREATE INDEX `index_message_folder` ON `${TABLE_NAME}` (`folder`)"
  541. },
  542. {
  543. "name": "index_message_identity",
  544. "unique": false,
  545. "columnNames": [
  546. "identity"
  547. ],
  548. "createSql": "CREATE INDEX `index_message_identity` ON `${TABLE_NAME}` (`identity`)"
  549. },
  550. {
  551. "name": "index_message_replying",
  552. "unique": false,
  553. "columnNames": [
  554. "replying"
  555. ],
  556. "createSql": "CREATE INDEX `index_message_replying` ON `${TABLE_NAME}` (`replying`)"
  557. },
  558. {
  559. "name": "index_message_folder_uid",
  560. "unique": true,
  561. "columnNames": [
  562. "folder",
  563. "uid"
  564. ],
  565. "createSql": "CREATE UNIQUE INDEX `index_message_folder_uid` ON `${TABLE_NAME}` (`folder`, `uid`)"
  566. },
  567. {
  568. "name": "index_message_msgid_folder",
  569. "unique": true,
  570. "columnNames": [
  571. "msgid",
  572. "folder"
  573. ],
  574. "createSql": "CREATE UNIQUE INDEX `index_message_msgid_folder` ON `${TABLE_NAME}` (`msgid`, `folder`)"
  575. },
  576. {
  577. "name": "index_message_thread",
  578. "unique": false,
  579. "columnNames": [
  580. "thread"
  581. ],
  582. "createSql": "CREATE INDEX `index_message_thread` ON `${TABLE_NAME}` (`thread`)"
  583. },
  584. {
  585. "name": "index_message_received",
  586. "unique": false,
  587. "columnNames": [
  588. "received"
  589. ],
  590. "createSql": "CREATE INDEX `index_message_received` ON `${TABLE_NAME}` (`received`)"
  591. },
  592. {
  593. "name": "index_message_ui_seen",
  594. "unique": false,
  595. "columnNames": [
  596. "ui_seen"
  597. ],
  598. "createSql": "CREATE INDEX `index_message_ui_seen` ON `${TABLE_NAME}` (`ui_seen`)"
  599. },
  600. {
  601. "name": "index_message_ui_hide",
  602. "unique": false,
  603. "columnNames": [
  604. "ui_hide"
  605. ],
  606. "createSql": "CREATE INDEX `index_message_ui_hide` ON `${TABLE_NAME}` (`ui_hide`)"
  607. },
  608. {
  609. "name": "index_message_ui_found",
  610. "unique": false,
  611. "columnNames": [
  612. "ui_found"
  613. ],
  614. "createSql": "CREATE INDEX `index_message_ui_found` ON `${TABLE_NAME}` (`ui_found`)"
  615. }
  616. ],
  617. "foreignKeys": [
  618. {
  619. "table": "account",
  620. "onDelete": "CASCADE",
  621. "onUpdate": "NO ACTION",
  622. "columns": [
  623. "account"
  624. ],
  625. "referencedColumns": [
  626. "id"
  627. ]
  628. },
  629. {
  630. "table": "folder",
  631. "onDelete": "CASCADE",
  632. "onUpdate": "NO ACTION",
  633. "columns": [
  634. "folder"
  635. ],
  636. "referencedColumns": [
  637. "id"
  638. ]
  639. },
  640. {
  641. "table": "identity",
  642. "onDelete": "CASCADE",
  643. "onUpdate": "NO ACTION",
  644. "columns": [
  645. "identity"
  646. ],
  647. "referencedColumns": [
  648. "id"
  649. ]
  650. },
  651. {
  652. "table": "message",
  653. "onDelete": "CASCADE",
  654. "onUpdate": "NO ACTION",
  655. "columns": [
  656. "replying"
  657. ],
  658. "referencedColumns": [
  659. "id"
  660. ]
  661. }
  662. ]
  663. },
  664. {
  665. "tableName": "attachment",
  666. "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 )",
  667. "fields": [
  668. {
  669. "fieldPath": "id",
  670. "columnName": "id",
  671. "affinity": "INTEGER",
  672. "notNull": false
  673. },
  674. {
  675. "fieldPath": "message",
  676. "columnName": "message",
  677. "affinity": "INTEGER",
  678. "notNull": true
  679. },
  680. {
  681. "fieldPath": "sequence",
  682. "columnName": "sequence",
  683. "affinity": "INTEGER",
  684. "notNull": true
  685. },
  686. {
  687. "fieldPath": "name",
  688. "columnName": "name",
  689. "affinity": "TEXT",
  690. "notNull": false
  691. },
  692. {
  693. "fieldPath": "type",
  694. "columnName": "type",
  695. "affinity": "TEXT",
  696. "notNull": true
  697. },
  698. {
  699. "fieldPath": "size",
  700. "columnName": "size",
  701. "affinity": "INTEGER",
  702. "notNull": false
  703. },
  704. {
  705. "fieldPath": "progress",
  706. "columnName": "progress",
  707. "affinity": "INTEGER",
  708. "notNull": false
  709. },
  710. {
  711. "fieldPath": "available",
  712. "columnName": "available",
  713. "affinity": "INTEGER",
  714. "notNull": true
  715. }
  716. ],
  717. "primaryKey": {
  718. "columnNames": [
  719. "id"
  720. ],
  721. "autoGenerate": true
  722. },
  723. "indices": [
  724. {
  725. "name": "index_attachment_message",
  726. "unique": false,
  727. "columnNames": [
  728. "message"
  729. ],
  730. "createSql": "CREATE INDEX `index_attachment_message` ON `${TABLE_NAME}` (`message`)"
  731. },
  732. {
  733. "name": "index_attachment_message_sequence",
  734. "unique": true,
  735. "columnNames": [
  736. "message",
  737. "sequence"
  738. ],
  739. "createSql": "CREATE UNIQUE INDEX `index_attachment_message_sequence` ON `${TABLE_NAME}` (`message`, `sequence`)"
  740. }
  741. ],
  742. "foreignKeys": [
  743. {
  744. "table": "message",
  745. "onDelete": "CASCADE",
  746. "onUpdate": "NO ACTION",
  747. "columns": [
  748. "message"
  749. ],
  750. "referencedColumns": [
  751. "id"
  752. ]
  753. }
  754. ]
  755. },
  756. {
  757. "tableName": "operation",
  758. "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 )",
  759. "fields": [
  760. {
  761. "fieldPath": "id",
  762. "columnName": "id",
  763. "affinity": "INTEGER",
  764. "notNull": false
  765. },
  766. {
  767. "fieldPath": "folder",
  768. "columnName": "folder",
  769. "affinity": "INTEGER",
  770. "notNull": true
  771. },
  772. {
  773. "fieldPath": "message",
  774. "columnName": "message",
  775. "affinity": "INTEGER",
  776. "notNull": true
  777. },
  778. {
  779. "fieldPath": "name",
  780. "columnName": "name",
  781. "affinity": "TEXT",
  782. "notNull": true
  783. },
  784. {
  785. "fieldPath": "args",
  786. "columnName": "args",
  787. "affinity": "TEXT",
  788. "notNull": true
  789. },
  790. {
  791. "fieldPath": "created",
  792. "columnName": "created",
  793. "affinity": "INTEGER",
  794. "notNull": true
  795. }
  796. ],
  797. "primaryKey": {
  798. "columnNames": [
  799. "id"
  800. ],
  801. "autoGenerate": true
  802. },
  803. "indices": [
  804. {
  805. "name": "index_operation_folder",
  806. "unique": false,
  807. "columnNames": [
  808. "folder"
  809. ],
  810. "createSql": "CREATE INDEX `index_operation_folder` ON `${TABLE_NAME}` (`folder`)"
  811. },
  812. {
  813. "name": "index_operation_message",
  814. "unique": false,
  815. "columnNames": [
  816. "message"
  817. ],
  818. "createSql": "CREATE INDEX `index_operation_message` ON `${TABLE_NAME}` (`message`)"
  819. }
  820. ],
  821. "foreignKeys": [
  822. {
  823. "table": "folder",
  824. "onDelete": "CASCADE",
  825. "onUpdate": "NO ACTION",
  826. "columns": [
  827. "folder"
  828. ],
  829. "referencedColumns": [
  830. "id"
  831. ]
  832. },
  833. {
  834. "table": "message",
  835. "onDelete": "CASCADE",
  836. "onUpdate": "NO ACTION",
  837. "columns": [
  838. "message"
  839. ],
  840. "referencedColumns": [
  841. "id"
  842. ]
  843. }
  844. ]
  845. },
  846. {
  847. "tableName": "answer",
  848. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `name` TEXT NOT NULL, `text` TEXT NOT NULL)",
  849. "fields": [
  850. {
  851. "fieldPath": "id",
  852. "columnName": "id",
  853. "affinity": "INTEGER",
  854. "notNull": false
  855. },
  856. {
  857. "fieldPath": "name",
  858. "columnName": "name",
  859. "affinity": "TEXT",
  860. "notNull": true
  861. },
  862. {
  863. "fieldPath": "text",
  864. "columnName": "text",
  865. "affinity": "TEXT",
  866. "notNull": true
  867. }
  868. ],
  869. "primaryKey": {
  870. "columnNames": [
  871. "id"
  872. ],
  873. "autoGenerate": true
  874. },
  875. "indices": [],
  876. "foreignKeys": []
  877. },
  878. {
  879. "tableName": "log",
  880. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `time` INTEGER NOT NULL, `data` TEXT NOT NULL)",
  881. "fields": [
  882. {
  883. "fieldPath": "id",
  884. "columnName": "id",
  885. "affinity": "INTEGER",
  886. "notNull": false
  887. },
  888. {
  889. "fieldPath": "time",
  890. "columnName": "time",
  891. "affinity": "INTEGER",
  892. "notNull": true
  893. },
  894. {
  895. "fieldPath": "data",
  896. "columnName": "data",
  897. "affinity": "TEXT",
  898. "notNull": true
  899. }
  900. ],
  901. "primaryKey": {
  902. "columnNames": [
  903. "id"
  904. ],
  905. "autoGenerate": true
  906. },
  907. "indices": [
  908. {
  909. "name": "index_log_time",
  910. "unique": false,
  911. "columnNames": [
  912. "time"
  913. ],
  914. "createSql": "CREATE INDEX `index_log_time` ON `${TABLE_NAME}` (`time`)"
  915. }
  916. ],
  917. "foreignKeys": []
  918. }
  919. ],
  920. "setupQueries": [
  921. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  922. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, \"d0a6171ec8d9a64a1c65e8c7e5d0348a\")"
  923. ]
  924. }
  925. }