schema.rs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. grid_block_index_table (row_id) {
  17. row_id -> Text,
  18. block_id -> Text,
  19. }
  20. }
  21. table! {
  22. grid_meta_rev_table (id) {
  23. id -> Integer,
  24. object_id -> Text,
  25. base_rev_id -> BigInt,
  26. rev_id -> BigInt,
  27. data -> Binary,
  28. state -> Integer,
  29. }
  30. }
  31. table! {
  32. grid_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_view_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. kv_table (key) {
  53. key -> Text,
  54. value -> Binary,
  55. }
  56. }
  57. table! {
  58. rev_snapshot (id) {
  59. id -> Integer,
  60. object_id -> Text,
  61. rev_id -> BigInt,
  62. data -> Binary,
  63. }
  64. }
  65. table! {
  66. rev_table (id) {
  67. id -> Integer,
  68. doc_id -> Text,
  69. base_rev_id -> BigInt,
  70. rev_id -> BigInt,
  71. data -> Binary,
  72. state -> Integer,
  73. ty -> Integer,
  74. }
  75. }
  76. table! {
  77. trash_table (id) {
  78. id -> Text,
  79. name -> Text,
  80. desc -> Text,
  81. modified_time -> BigInt,
  82. create_time -> BigInt,
  83. ty -> Integer,
  84. }
  85. }
  86. table! {
  87. user_table (id) {
  88. id -> Text,
  89. name -> Text,
  90. token -> Text,
  91. email -> Text,
  92. workspace -> Text,
  93. icon_url -> Text,
  94. }
  95. }
  96. table! {
  97. view_table (id) {
  98. id -> Text,
  99. belong_to_id -> Text,
  100. name -> Text,
  101. desc -> Text,
  102. modified_time -> BigInt,
  103. create_time -> BigInt,
  104. thumbnail -> Text,
  105. view_type -> Integer,
  106. version -> BigInt,
  107. is_trash -> Bool,
  108. ext_data -> Text,
  109. }
  110. }
  111. table! {
  112. workspace_table (id) {
  113. id -> Text,
  114. name -> Text,
  115. desc -> Text,
  116. modified_time -> BigInt,
  117. create_time -> BigInt,
  118. user_id -> Text,
  119. version -> BigInt,
  120. }
  121. }
  122. allow_tables_to_appear_in_same_query!(
  123. app_table,
  124. grid_block_index_table,
  125. grid_meta_rev_table,
  126. grid_rev_table,
  127. grid_view_rev_table,
  128. kv_table,
  129. rev_snapshot,
  130. rev_table,
  131. trash_table,
  132. user_table,
  133. view_table,
  134. workspace_table,
  135. );