schema.rs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. kv_table (key) {
  43. key -> Text,
  44. value -> Binary,
  45. }
  46. }
  47. table! {
  48. rev_snapshot (id) {
  49. id -> Integer,
  50. object_id -> Text,
  51. rev_id -> BigInt,
  52. data -> Binary,
  53. }
  54. }
  55. table! {
  56. rev_table (id) {
  57. id -> Integer,
  58. doc_id -> Text,
  59. base_rev_id -> BigInt,
  60. rev_id -> BigInt,
  61. data -> Binary,
  62. state -> Integer,
  63. ty -> Integer,
  64. }
  65. }
  66. table! {
  67. trash_table (id) {
  68. id -> Text,
  69. name -> Text,
  70. desc -> Text,
  71. modified_time -> BigInt,
  72. create_time -> BigInt,
  73. ty -> Integer,
  74. }
  75. }
  76. table! {
  77. user_table (id) {
  78. id -> Text,
  79. name -> Text,
  80. token -> Text,
  81. email -> Text,
  82. icon -> Text,
  83. workspace -> Text,
  84. }
  85. }
  86. table! {
  87. view_table (id) {
  88. id -> Text,
  89. belong_to_id -> Text,
  90. name -> Text,
  91. desc -> Text,
  92. modified_time -> BigInt,
  93. create_time -> BigInt,
  94. thumbnail -> Text,
  95. view_type -> Integer,
  96. version -> BigInt,
  97. is_trash -> Bool,
  98. ext_data -> Text,
  99. }
  100. }
  101. table! {
  102. workspace_table (id) {
  103. id -> Text,
  104. name -> Text,
  105. desc -> Text,
  106. modified_time -> BigInt,
  107. create_time -> BigInt,
  108. user_id -> Text,
  109. version -> BigInt,
  110. }
  111. }
  112. allow_tables_to_appear_in_same_query!(
  113. app_table,
  114. grid_block_index_table,
  115. grid_meta_rev_table,
  116. grid_rev_table,
  117. kv_table,
  118. rev_snapshot,
  119. rev_table,
  120. trash_table,
  121. user_table,
  122. view_table,
  123. workspace_table,
  124. );