schema.rs 3.8 KB

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