schema.rs 3.2 KB

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