schema.rs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. rev_table (id) {
  24. id -> Integer,
  25. doc_id -> Text,
  26. base_rev_id -> BigInt,
  27. rev_id -> BigInt,
  28. data -> Binary,
  29. state -> Integer,
  30. ty -> Integer,
  31. }
  32. }
  33. table! {
  34. trash_table (id) {
  35. id -> Text,
  36. name -> Text,
  37. desc -> Text,
  38. modified_time -> BigInt,
  39. create_time -> BigInt,
  40. ty -> Integer,
  41. }
  42. }
  43. table! {
  44. user_table (id) {
  45. id -> Text,
  46. name -> Text,
  47. token -> Text,
  48. email -> Text,
  49. workspace -> Text,
  50. }
  51. }
  52. table! {
  53. view_table (id) {
  54. id -> Text,
  55. belong_to_id -> Text,
  56. name -> Text,
  57. desc -> Text,
  58. modified_time -> BigInt,
  59. create_time -> BigInt,
  60. thumbnail -> Text,
  61. view_type -> Integer,
  62. version -> BigInt,
  63. is_trash -> Bool,
  64. }
  65. }
  66. table! {
  67. workspace_table (id) {
  68. id -> Text,
  69. name -> Text,
  70. desc -> Text,
  71. modified_time -> BigInt,
  72. create_time -> BigInt,
  73. user_id -> Text,
  74. version -> BigInt,
  75. }
  76. }
  77. allow_tables_to_appear_in_same_query!(
  78. app_table,
  79. doc_table,
  80. rev_table,
  81. trash_table,
  82. user_table,
  83. view_table,
  84. workspace_table,
  85. );