schema.rs 2.5 KB

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