schema.prisma 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. generator client {
  2. provider = "prisma-client-js"
  3. }
  4. datasource db {
  5. provider = "mysql"
  6. url = env("DATABASE_URL")
  7. }
  8. model AWS_Policy_Role {
  9. id String @id @db.VarChar(36)
  10. assistant_id String? @db.VarChar(36)
  11. agent_bedrock_policy String? @db.LongText
  12. agent_kb_schema_policy String? @db.LongText
  13. kb_bedrock_policy String? @db.LongText
  14. kb_aoss_policy String? @db.LongText
  15. kb_s3_policy String? @db.LongText
  16. agent_role_name String? @db.Text
  17. kb_role_name String? @db.Text
  18. createtime DateTime? @db.DateTime(0)
  19. }
  20. model Ai_Agent_Assistants {
  21. id String @id @db.VarChar(36)
  22. userId String? @db.VarChar(255)
  23. username String? @db.VarChar(255)
  24. agent_sort String? @db.VarChar(255)
  25. agent_tag String? @db.VarChar(255)
  26. assistantName String? @db.VarChar(255)
  27. description String? @db.LongText
  28. prologue String? @db.LongText
  29. headUrl String? @db.LongText
  30. instructions String? @db.LongText
  31. isRetrieval Boolean?
  32. isCode Boolean?
  33. isGoogle Boolean?
  34. isDalleImage Boolean?
  35. functionNames String? @db.LongText
  36. functionContents String? @db.LongText
  37. assistant_id String? @db.Text
  38. thread_id String? @db.Text
  39. file_ids String? @db.LongText
  40. file_names String? @db.LongText
  41. isPublish Boolean?
  42. organize_id String? @db.LongText
  43. vector_store_id String? @db.Text
  44. modelType String? @db.VarChar(255)
  45. createtime DateTime? @db.DateTime(0)
  46. updatetime DateTime? @db.DateTime(0)
  47. a String? @db.Text
  48. }
  49. model Ai_Agent_Threads {
  50. id String @id @db.VarChar(36)
  51. userId String? @db.VarChar(255)
  52. assistant_id String? @db.Text
  53. thread_id String? @db.Text
  54. createtime DateTime? @db.DateTime(0)
  55. session_name String @default("") @db.VarChar(255)
  56. }
  57. model Assistant {
  58. id String @id @db.VarChar(36)
  59. uid String? @db.VarChar(36)
  60. assistant_id String? @db.Text
  61. thread_id String? @db.Text
  62. file_ids String? @db.Text
  63. vector_store_id String? @db.Text
  64. createtime DateTime? @db.DateTime(0)
  65. }
  66. model Chat {
  67. id String @id @default("") @db.VarChar(36)
  68. groupid String? @db.VarChar(36)
  69. userid String? @db.VarChar(36)
  70. username String? @db.VarChar(255)
  71. answer String? @db.Text
  72. problem String? @db.LongText
  73. createtime DateTime? @db.DateTime(0)
  74. fileid String? @db.VarChar(36)
  75. isMindMap Int?
  76. filename String? @db.VarChar(255)
  77. session_name String @default("") @db.VarChar(255)
  78. scene String? @db.VarChar(255)
  79. @@index([createtime], map: "createtime")
  80. @@index([fileid], map: "fileid")
  81. @@index([groupid], map: "groupid")
  82. @@index([userid], map: "userid")
  83. }
  84. model Disposition {
  85. id String @id @db.VarChar(36)
  86. module String? @db.VarChar(255)
  87. disposition_class String? @db.VarChar(255)
  88. disposition_type String? @db.VarChar(255)
  89. disposition_style String? @db.VarChar(255)
  90. disposition_theme String? @db.VarChar(255)
  91. user_id String? @db.VarChar(36)
  92. create_time DateTime? @db.DateTime(0)
  93. }
  94. model Group {
  95. id String @id @db.VarChar(36)
  96. name String? @db.VarChar(255)
  97. userid String? @db.VarChar(36)
  98. createtime DateTime? @db.DateTime(0)
  99. }
  100. model GroupFile {
  101. id String @id @db.VarChar(36)
  102. userid String? @db.VarChar(36)
  103. fileurl String? @db.Text
  104. filename String? @db.Text
  105. groupid String? @db.VarChar(36)
  106. abstract String? @db.Text
  107. assistantFileId String? @db.VarChar(36)
  108. modelType String? @db.VarChar(36)
  109. createtime DateTime? @db.DateTime(0)
  110. @@index([createtime], map: "createtime")
  111. @@index([groupid], map: "groupid")
  112. }
  113. model InvitationCode {
  114. id String @id @db.VarChar(36)
  115. cid String? @db.VarChar(36)
  116. themeId String? @db.VarChar(36)
  117. type Int?
  118. invitationCode String? @db.VarChar(36)
  119. createtime DateTime? @db.DateTime(0)
  120. }
  121. model ai_agent_park_session {
  122. id String @id @db.VarChar(36)
  123. session_name String? @db.VarChar(255)
  124. user_id String? @db.VarChar(255)
  125. isCocoNote Int? @db.TinyInt
  126. createtime DateTime? @db.DateTime(0)
  127. work_area_text String? @db.LongText
  128. scene String? @db.VarChar(255)
  129. }
  130. model classroom_ob_comment {
  131. id String @id @db.VarChar(255)
  132. module_id String @db.VarChar(255)
  133. module_name String? @db.VarChar(255)
  134. nickname String? @db.VarChar(255)
  135. commentContent String? @db.LongText
  136. audit_status Int @default(0)
  137. t_id String? @db.VarChar(36)
  138. create_time DateTime? @db.DateTime(0)
  139. @@index([audit_status, t_id], map: "tid_status")
  140. }
  141. model classroom_observation {
  142. id String @id @db.VarChar(36)
  143. jsonData String? @db.LongText
  144. Type Int?
  145. tIndex Int?
  146. tId String? @db.VarChar(36)
  147. createtime DateTime? @db.DateTime(0)
  148. like_num Int @default(0)
  149. like_data String? @db.LongText
  150. userid String? @db.VarChar(255)
  151. isdel Int? @default(0)
  152. limitData String? @db.LongText
  153. @@index([Type], map: "Type")
  154. @@index([createtime], map: "createtime")
  155. @@index([tIndex], map: "tIndex")
  156. @@index([Type, tId], map: "type_tid")
  157. }
  158. model course_resource {
  159. id String @id @db.VarChar(36)
  160. subject String? @db.VarChar(255)
  161. grade String? @db.VarChar(255)
  162. textbook String? @db.VarChar(255)
  163. book_type String? @db.VarChar(255)
  164. unit String? @db.VarChar(255)
  165. period String? @db.VarChar(255)
  166. unit_content String? @db.LongText
  167. course_content String? @db.LongText
  168. }
  169. model knowledge_construction_doc {
  170. id String @id @db.VarChar(255)
  171. muti_id String? @db.VarChar(255)
  172. user_id String? @db.VarChar(255)
  173. session_id String? @db.VarChar(255)
  174. content String? @db.LongText
  175. create_time DateTime? @db.DateTime(0)
  176. }
  177. model meeting_trick {
  178. id String @id @db.VarChar(36)
  179. createtime DateTime? @db.DateTime(0)
  180. userid String? @db.VarChar(255)
  181. meeting_name String? @db.VarChar(255)
  182. meeting_original String? @db.LongText
  183. meeting_minutes String? @db.LongText
  184. audio_url String? @db.VarChar(255)
  185. duration String? @db.VarChar(255)
  186. ab String? @db.LongText
  187. @@index([userid], map: "get_meeting_trick")
  188. }
  189. model meeting_trick_chat {
  190. id String @id @db.VarChar(36)
  191. meeting_id String? @db.VarChar(36)
  192. createtime DateTime? @db.DateTime(0)
  193. user_content String? @db.Text
  194. ai_content String? @db.Text
  195. @@index([meeting_id], map: "get_meeting_trick_chat")
  196. }
  197. model muti_agent_list {
  198. id String @id @db.VarChar(255)
  199. userid String? @db.VarChar(255)
  200. username String? @db.VarChar(255)
  201. muti_name String? @db.VarChar(255)
  202. description String? @db.LongText
  203. isPublish Boolean?
  204. organizeid String? @db.LongText
  205. content String? @db.LongText
  206. create_time DateTime? @db.DateTime(0)
  207. knowledge_construction Int?
  208. @@index([id], map: "index_id")
  209. }
  210. model park_chat_file_list {
  211. id String @id @db.VarChar(255)
  212. user_id String? @db.VarChar(255)
  213. file_names String @db.LongText
  214. file_ids String @db.LongText
  215. create_time DateTime? @db.DateTime(0)
  216. file_urls String? @db.LongText
  217. }
  218. model token {
  219. id String @id @db.VarChar(255)
  220. schoolId String? @db.VarChar(255)
  221. key String? @db.VarChar(255)
  222. createUsername String? @db.VarChar(255)
  223. createtime DateTime? @db.DateTime(0)
  224. }