schema.rs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. table! {
  2. app_table (id) {
  3. id -> Text,
  4. workspace_id -> Text,
  5. name -> Text,
  6. desc -> Text,
  7. color_style -> Binary,
  8. last_view_id -> Nullable<Text>,
  9. modified_time -> BigInt,
  10. create_time -> BigInt,
  11. version -> BigInt,
  12. is_trash -> Bool,
  13. }
  14. }
  15. table! {
  16. document_rev_table (id) {
  17. id -> Integer,
  18. document_id -> Text,
  19. base_rev_id -> BigInt,
  20. rev_id -> BigInt,
  21. data -> Binary,
  22. state -> Integer,
  23. }
  24. }
  25. table! {
  26. grid_block_index_table (row_id) {
  27. row_id -> Text,
  28. block_id -> Text,
  29. }
  30. }
  31. table! {
  32. grid_meta_rev_table (id) {
  33. id -> Integer,
  34. object_id -> Text,
  35. base_rev_id -> BigInt,
  36. rev_id -> BigInt,
  37. data -> Binary,
  38. state -> Integer,
  39. }
  40. }
  41. table! {
  42. grid_rev_table (id) {
  43. id -> Integer,
  44. object_id -> Text,
  45. base_rev_id -> BigInt,
  46. rev_id -> BigInt,
  47. data -> Binary,
  48. state -> Integer,
  49. }
  50. }
  51. table! {
  52. grid_view_rev_table (id) {
  53. id -> Integer,
  54. object_id -> Text,
  55. base_rev_id -> BigInt,
  56. rev_id -> BigInt,
  57. data -> Binary,
  58. state -> Integer,
  59. }
  60. }
  61. table! {
  62. kv_table (key) {
  63. key -> Text,
  64. value -> Binary,
  65. }
  66. }
  67. table! {
  68. rev_snapshot (id) {
  69. id -> Integer,
  70. object_id -> Text,
  71. rev_id -> BigInt,
  72. data -> Binary,
  73. }
  74. }
  75. table! {
  76. rev_table (id) {
  77. id -> Integer,
  78. doc_id -> Text,
  79. base_rev_id -> BigInt,
  80. rev_id -> BigInt,
  81. data -> Binary,
  82. state -> Integer,
  83. ty -> Integer,
  84. }
  85. }
  86. table! {
  87. trash_table (id) {
  88. id -> Text,
  89. name -> Text,
  90. desc -> Text,
  91. modified_time -> BigInt,
  92. create_time -> BigInt,
  93. ty -> Integer,
  94. }
  95. }
  96. table! {
  97. user_table (id) {
  98. id -> Text,
  99. name -> Text,
  100. token -> Text,
  101. email -> Text,
  102. workspace -> Text,
  103. icon_url -> Text,
  104. }
  105. }
  106. table! {
  107. view_table (id) {
  108. id -> Text,
  109. belong_to_id -> Text,
  110. name -> Text,
  111. desc -> Text,
  112. modified_time -> BigInt,
  113. create_time -> BigInt,
  114. thumbnail -> Text,
  115. view_type -> Integer,
  116. version -> BigInt,
  117. is_trash -> Bool,
  118. ext_data -> Text,
  119. }
  120. }
  121. table! {
  122. workspace_table (id) {
  123. id -> Text,
  124. name -> Text,
  125. desc -> Text,
  126. modified_time -> BigInt,
  127. create_time -> BigInt,
  128. user_id -> Text,
  129. version -> BigInt,
  130. }
  131. }
  132. allow_tables_to_appear_in_same_query!(
  133. app_table,
  134. document_rev_table,
  135. grid_block_index_table,
  136. grid_meta_rev_table,
  137. grid_rev_table,
  138. grid_view_rev_table,
  139. kv_table,
  140. rev_snapshot,
  141. rev_table,
  142. trash_table,
  143. user_table,
  144. view_table,
  145. workspace_table,
  146. );