schema.rs 2.3 KB

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