schema.rs 2.2 KB

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