schema.prisma 7.9 KB

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