schema.rs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. // @generated automatically by Diesel CLI.
  2. diesel::table! {
  3. app_table (id) {
  4. id -> Text,
  5. workspace_id -> Text,
  6. name -> Text,
  7. desc -> Text,
  8. color_style -> Binary,
  9. last_view_id -> Nullable<Text>,
  10. modified_time -> BigInt,
  11. create_time -> BigInt,
  12. version -> BigInt,
  13. is_trash -> Bool,
  14. }
  15. }
  16. diesel::table! {
  17. database_refs (ref_id) {
  18. ref_id -> Text,
  19. name -> Text,
  20. is_base -> Bool,
  21. view_id -> Text,
  22. database_id -> Text,
  23. }
  24. }
  25. diesel::table! {
  26. document_rev_snapshot (snapshot_id) {
  27. snapshot_id -> Text,
  28. object_id -> Text,
  29. rev_id -> BigInt,
  30. base_rev_id -> BigInt,
  31. timestamp -> BigInt,
  32. data -> Binary,
  33. }
  34. }
  35. diesel::table! {
  36. document_rev_table (id) {
  37. id -> Integer,
  38. document_id -> Text,
  39. base_rev_id -> BigInt,
  40. rev_id -> BigInt,
  41. data -> Binary,
  42. state -> Integer,
  43. }
  44. }
  45. diesel::table! {
  46. folder_rev_snapshot (snapshot_id) {
  47. snapshot_id -> Text,
  48. object_id -> Text,
  49. rev_id -> BigInt,
  50. base_rev_id -> BigInt,
  51. timestamp -> BigInt,
  52. data -> Binary,
  53. }
  54. }
  55. diesel::table! {
  56. grid_block_index_table (row_id) {
  57. row_id -> Text,
  58. block_id -> Text,
  59. }
  60. }
  61. diesel::table! {
  62. grid_meta_rev_table (id) {
  63. id -> Integer,
  64. object_id -> Text,
  65. base_rev_id -> BigInt,
  66. rev_id -> BigInt,
  67. data -> Binary,
  68. state -> Integer,
  69. }
  70. }
  71. diesel::table! {
  72. grid_rev_snapshot (snapshot_id) {
  73. snapshot_id -> Text,
  74. object_id -> Text,
  75. rev_id -> BigInt,
  76. base_rev_id -> BigInt,
  77. timestamp -> BigInt,
  78. data -> Binary,
  79. }
  80. }
  81. diesel::table! {
  82. grid_rev_table (id) {
  83. id -> Integer,
  84. object_id -> Text,
  85. base_rev_id -> BigInt,
  86. rev_id -> BigInt,
  87. data -> Binary,
  88. state -> Integer,
  89. }
  90. }
  91. diesel::table! {
  92. grid_view_rev_table (id) {
  93. id -> Integer,
  94. object_id -> Text,
  95. base_rev_id -> BigInt,
  96. rev_id -> BigInt,
  97. data -> Binary,
  98. state -> Integer,
  99. }
  100. }
  101. diesel::table! {
  102. kv_table (key) {
  103. key -> Text,
  104. value -> Binary,
  105. }
  106. }
  107. diesel::table! {
  108. rev_snapshot (id) {
  109. id -> Integer,
  110. object_id -> Text,
  111. rev_id -> BigInt,
  112. data -> Binary,
  113. }
  114. }
  115. diesel::table! {
  116. rev_table (id) {
  117. id -> Integer,
  118. doc_id -> Text,
  119. base_rev_id -> BigInt,
  120. rev_id -> BigInt,
  121. data -> Binary,
  122. state -> Integer,
  123. ty -> Integer,
  124. }
  125. }
  126. diesel::table! {
  127. trash_table (id) {
  128. id -> Text,
  129. name -> Text,
  130. desc -> Text,
  131. modified_time -> BigInt,
  132. create_time -> BigInt,
  133. ty -> Integer,
  134. }
  135. }
  136. diesel::table! {
  137. user_table (id) {
  138. id -> Text,
  139. name -> Text,
  140. token -> Text,
  141. email -> Text,
  142. workspace -> Text,
  143. icon_url -> Text,
  144. openai_key -> Text,
  145. }
  146. }
  147. diesel::table! {
  148. view_table (id) {
  149. id -> Text,
  150. belong_to_id -> Text,
  151. name -> Text,
  152. desc -> Text,
  153. modified_time -> BigInt,
  154. create_time -> BigInt,
  155. thumbnail -> Text,
  156. view_type -> Integer,
  157. version -> BigInt,
  158. is_trash -> Bool,
  159. ext_data -> Text,
  160. }
  161. }
  162. diesel::table! {
  163. workspace_table (id) {
  164. id -> Text,
  165. name -> Text,
  166. desc -> Text,
  167. modified_time -> BigInt,
  168. create_time -> BigInt,
  169. user_id -> Text,
  170. version -> BigInt,
  171. }
  172. }
  173. diesel::allow_tables_to_appear_in_same_query!(
  174. app_table,
  175. database_refs,
  176. document_rev_snapshot,
  177. document_rev_table,
  178. folder_rev_snapshot,
  179. grid_block_index_table,
  180. grid_meta_rev_table,
  181. grid_rev_snapshot,
  182. grid_rev_table,
  183. grid_view_rev_table,
  184. kv_table,
  185. rev_snapshot,
  186. rev_table,
  187. trash_table,
  188. user_table,
  189. view_table,
  190. workspace_table,
  191. );