runtime.go 93 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409
  1. // Code generated by ent, DO NOT EDIT.
  2. package runtime
  3. import (
  4. "time"
  5. "wechat-api/ent/agent"
  6. "wechat-api/ent/agentbase"
  7. "wechat-api/ent/aliyunavatar"
  8. "wechat-api/ent/batchmsg"
  9. "wechat-api/ent/category"
  10. "wechat-api/ent/chatrecords"
  11. "wechat-api/ent/chatsession"
  12. "wechat-api/ent/contact"
  13. "wechat-api/ent/employee"
  14. "wechat-api/ent/employeeconfig"
  15. "wechat-api/ent/label"
  16. "wechat-api/ent/labelrelationship"
  17. "wechat-api/ent/message"
  18. "wechat-api/ent/messagerecords"
  19. "wechat-api/ent/msg"
  20. "wechat-api/ent/schema"
  21. "wechat-api/ent/server"
  22. "wechat-api/ent/sopnode"
  23. "wechat-api/ent/sopstage"
  24. "wechat-api/ent/soptask"
  25. "wechat-api/ent/token"
  26. "wechat-api/ent/tutorial"
  27. "wechat-api/ent/usagedetail"
  28. "wechat-api/ent/usagestatisticday"
  29. "wechat-api/ent/usagestatistichour"
  30. "wechat-api/ent/usagestatisticmonth"
  31. "wechat-api/ent/usagetotal"
  32. "wechat-api/ent/workexperience"
  33. "wechat-api/ent/wpchatroom"
  34. "wechat-api/ent/wpchatroommember"
  35. "wechat-api/ent/wx"
  36. "wechat-api/ent/wxcard"
  37. "wechat-api/ent/wxcarduser"
  38. "wechat-api/ent/wxcardvisit"
  39. )
  40. // The init function reads all schema descriptors with runtime code
  41. // (default values, validators, hooks and policies) and stitches it
  42. // to their package variables.
  43. func init() {
  44. agentMixin := schema.Agent{}.Mixin()
  45. agentMixinHooks1 := agentMixin[1].Hooks()
  46. agent.Hooks[0] = agentMixinHooks1[0]
  47. agentMixinInters1 := agentMixin[1].Interceptors()
  48. agent.Interceptors[0] = agentMixinInters1[0]
  49. agentMixinFields0 := agentMixin[0].Fields()
  50. _ = agentMixinFields0
  51. agentFields := schema.Agent{}.Fields()
  52. _ = agentFields
  53. // agentDescCreatedAt is the schema descriptor for created_at field.
  54. agentDescCreatedAt := agentMixinFields0[1].Descriptor()
  55. // agent.DefaultCreatedAt holds the default value on creation for the created_at field.
  56. agent.DefaultCreatedAt = agentDescCreatedAt.Default.(func() time.Time)
  57. // agentDescUpdatedAt is the schema descriptor for updated_at field.
  58. agentDescUpdatedAt := agentMixinFields0[2].Descriptor()
  59. // agent.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  60. agent.DefaultUpdatedAt = agentDescUpdatedAt.Default.(func() time.Time)
  61. // agent.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  62. agent.UpdateDefaultUpdatedAt = agentDescUpdatedAt.UpdateDefault.(func() time.Time)
  63. // agentDescName is the schema descriptor for name field.
  64. agentDescName := agentFields[0].Descriptor()
  65. // agent.NameValidator is a validator for the "name" field. It is called by the builders before save.
  66. agent.NameValidator = agentDescName.Validators[0].(func(string) error)
  67. // agentDescStatus is the schema descriptor for status field.
  68. agentDescStatus := agentFields[2].Descriptor()
  69. // agent.DefaultStatus holds the default value on creation for the status field.
  70. agent.DefaultStatus = agentDescStatus.Default.(int)
  71. // agent.StatusValidator is a validator for the "status" field. It is called by the builders before save.
  72. agent.StatusValidator = agentDescStatus.Validators[0].(func(int) error)
  73. // agentDescBackground is the schema descriptor for background field.
  74. agentDescBackground := agentFields[3].Descriptor()
  75. // agent.DefaultBackground holds the default value on creation for the background field.
  76. agent.DefaultBackground = agentDescBackground.Default.(string)
  77. // agentDescExamples is the schema descriptor for examples field.
  78. agentDescExamples := agentFields[4].Descriptor()
  79. // agent.DefaultExamples holds the default value on creation for the examples field.
  80. agent.DefaultExamples = agentDescExamples.Default.(string)
  81. // agentDescOrganizationID is the schema descriptor for organization_id field.
  82. agentDescOrganizationID := agentFields[5].Descriptor()
  83. // agent.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  84. agent.OrganizationIDValidator = agentDescOrganizationID.Validators[0].(func(uint64) error)
  85. // agentDescDatasetID is the schema descriptor for dataset_id field.
  86. agentDescDatasetID := agentFields[6].Descriptor()
  87. // agent.DefaultDatasetID holds the default value on creation for the dataset_id field.
  88. agent.DefaultDatasetID = agentDescDatasetID.Default.(string)
  89. // agent.DatasetIDValidator is a validator for the "dataset_id" field. It is called by the builders before save.
  90. agent.DatasetIDValidator = agentDescDatasetID.Validators[0].(func(string) error)
  91. // agentDescCollectionID is the schema descriptor for collection_id field.
  92. agentDescCollectionID := agentFields[7].Descriptor()
  93. // agent.DefaultCollectionID holds the default value on creation for the collection_id field.
  94. agent.DefaultCollectionID = agentDescCollectionID.Default.(string)
  95. // agent.CollectionIDValidator is a validator for the "collection_id" field. It is called by the builders before save.
  96. agent.CollectionIDValidator = agentDescCollectionID.Validators[0].(func(string) error)
  97. agentbaseFields := schema.AgentBase{}.Fields()
  98. _ = agentbaseFields
  99. // agentbaseDescQ is the schema descriptor for q field.
  100. agentbaseDescQ := agentbaseFields[1].Descriptor()
  101. // agentbase.DefaultQ holds the default value on creation for the q field.
  102. agentbase.DefaultQ = agentbaseDescQ.Default.(string)
  103. // agentbaseDescA is the schema descriptor for a field.
  104. agentbaseDescA := agentbaseFields[2].Descriptor()
  105. // agentbase.DefaultA holds the default value on creation for the a field.
  106. agentbase.DefaultA = agentbaseDescA.Default.(string)
  107. // agentbaseDescChunkIndex is the schema descriptor for chunk_index field.
  108. agentbaseDescChunkIndex := agentbaseFields[3].Descriptor()
  109. // agentbase.ChunkIndexValidator is a validator for the "chunk_index" field. It is called by the builders before save.
  110. agentbase.ChunkIndexValidator = agentbaseDescChunkIndex.Validators[0].(func(uint64) error)
  111. // agentbaseDescDatasetID is the schema descriptor for dataset_id field.
  112. agentbaseDescDatasetID := agentbaseFields[5].Descriptor()
  113. // agentbase.DefaultDatasetID holds the default value on creation for the dataset_id field.
  114. agentbase.DefaultDatasetID = agentbaseDescDatasetID.Default.(string)
  115. // agentbaseDescCollectionID is the schema descriptor for collection_id field.
  116. agentbaseDescCollectionID := agentbaseFields[6].Descriptor()
  117. // agentbase.DefaultCollectionID holds the default value on creation for the collection_id field.
  118. agentbase.DefaultCollectionID = agentbaseDescCollectionID.Default.(string)
  119. // agentbaseDescSourceName is the schema descriptor for source_name field.
  120. agentbaseDescSourceName := agentbaseFields[7].Descriptor()
  121. // agentbase.DefaultSourceName holds the default value on creation for the source_name field.
  122. agentbase.DefaultSourceName = agentbaseDescSourceName.Default.(string)
  123. aliyunavatarMixin := schema.AliyunAvatar{}.Mixin()
  124. aliyunavatarMixinHooks1 := aliyunavatarMixin[1].Hooks()
  125. aliyunavatar.Hooks[0] = aliyunavatarMixinHooks1[0]
  126. aliyunavatarMixinInters1 := aliyunavatarMixin[1].Interceptors()
  127. aliyunavatar.Interceptors[0] = aliyunavatarMixinInters1[0]
  128. aliyunavatarMixinFields0 := aliyunavatarMixin[0].Fields()
  129. _ = aliyunavatarMixinFields0
  130. aliyunavatarFields := schema.AliyunAvatar{}.Fields()
  131. _ = aliyunavatarFields
  132. // aliyunavatarDescCreatedAt is the schema descriptor for created_at field.
  133. aliyunavatarDescCreatedAt := aliyunavatarMixinFields0[1].Descriptor()
  134. // aliyunavatar.DefaultCreatedAt holds the default value on creation for the created_at field.
  135. aliyunavatar.DefaultCreatedAt = aliyunavatarDescCreatedAt.Default.(func() time.Time)
  136. // aliyunavatarDescUpdatedAt is the schema descriptor for updated_at field.
  137. aliyunavatarDescUpdatedAt := aliyunavatarMixinFields0[2].Descriptor()
  138. // aliyunavatar.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  139. aliyunavatar.DefaultUpdatedAt = aliyunavatarDescUpdatedAt.Default.(func() time.Time)
  140. // aliyunavatar.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  141. aliyunavatar.UpdateDefaultUpdatedAt = aliyunavatarDescUpdatedAt.UpdateDefault.(func() time.Time)
  142. // aliyunavatarDescToken is the schema descriptor for token field.
  143. aliyunavatarDescToken := aliyunavatarFields[7].Descriptor()
  144. // aliyunavatar.DefaultToken holds the default value on creation for the token field.
  145. aliyunavatar.DefaultToken = aliyunavatarDescToken.Default.(string)
  146. // aliyunavatarDescSessionID is the schema descriptor for session_id field.
  147. aliyunavatarDescSessionID := aliyunavatarFields[8].Descriptor()
  148. // aliyunavatar.DefaultSessionID holds the default value on creation for the session_id field.
  149. aliyunavatar.DefaultSessionID = aliyunavatarDescSessionID.Default.(string)
  150. batchmsgMixin := schema.BatchMsg{}.Mixin()
  151. batchmsgMixinHooks1 := batchmsgMixin[1].Hooks()
  152. batchmsg.Hooks[0] = batchmsgMixinHooks1[0]
  153. batchmsgMixinInters1 := batchmsgMixin[1].Interceptors()
  154. batchmsg.Interceptors[0] = batchmsgMixinInters1[0]
  155. batchmsgMixinFields0 := batchmsgMixin[0].Fields()
  156. _ = batchmsgMixinFields0
  157. batchmsgFields := schema.BatchMsg{}.Fields()
  158. _ = batchmsgFields
  159. // batchmsgDescCreatedAt is the schema descriptor for created_at field.
  160. batchmsgDescCreatedAt := batchmsgMixinFields0[1].Descriptor()
  161. // batchmsg.DefaultCreatedAt holds the default value on creation for the created_at field.
  162. batchmsg.DefaultCreatedAt = batchmsgDescCreatedAt.Default.(func() time.Time)
  163. // batchmsgDescUpdatedAt is the schema descriptor for updated_at field.
  164. batchmsgDescUpdatedAt := batchmsgMixinFields0[2].Descriptor()
  165. // batchmsg.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  166. batchmsg.DefaultUpdatedAt = batchmsgDescUpdatedAt.Default.(func() time.Time)
  167. // batchmsg.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  168. batchmsg.UpdateDefaultUpdatedAt = batchmsgDescUpdatedAt.UpdateDefault.(func() time.Time)
  169. // batchmsgDescTaskName is the schema descriptor for task_name field.
  170. batchmsgDescTaskName := batchmsgFields[2].Descriptor()
  171. // batchmsg.DefaultTaskName holds the default value on creation for the task_name field.
  172. batchmsg.DefaultTaskName = batchmsgDescTaskName.Default.(string)
  173. // batchmsgDescOrganizationID is the schema descriptor for organization_id field.
  174. batchmsgDescOrganizationID := batchmsgFields[14].Descriptor()
  175. // batchmsg.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  176. batchmsg.OrganizationIDValidator = batchmsgDescOrganizationID.Validators[0].(func(uint64) error)
  177. categoryMixin := schema.Category{}.Mixin()
  178. categoryMixinHooks1 := categoryMixin[1].Hooks()
  179. category.Hooks[0] = categoryMixinHooks1[0]
  180. categoryMixinInters1 := categoryMixin[1].Interceptors()
  181. category.Interceptors[0] = categoryMixinInters1[0]
  182. categoryMixinFields0 := categoryMixin[0].Fields()
  183. _ = categoryMixinFields0
  184. categoryFields := schema.Category{}.Fields()
  185. _ = categoryFields
  186. // categoryDescCreatedAt is the schema descriptor for created_at field.
  187. categoryDescCreatedAt := categoryMixinFields0[1].Descriptor()
  188. // category.DefaultCreatedAt holds the default value on creation for the created_at field.
  189. category.DefaultCreatedAt = categoryDescCreatedAt.Default.(func() time.Time)
  190. // categoryDescUpdatedAt is the schema descriptor for updated_at field.
  191. categoryDescUpdatedAt := categoryMixinFields0[2].Descriptor()
  192. // category.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  193. category.DefaultUpdatedAt = categoryDescUpdatedAt.Default.(func() time.Time)
  194. // category.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  195. category.UpdateDefaultUpdatedAt = categoryDescUpdatedAt.UpdateDefault.(func() time.Time)
  196. // categoryDescName is the schema descriptor for name field.
  197. categoryDescName := categoryFields[0].Descriptor()
  198. // category.NameValidator is a validator for the "name" field. It is called by the builders before save.
  199. category.NameValidator = categoryDescName.Validators[0].(func(string) error)
  200. // categoryDescOrganizationID is the schema descriptor for organization_id field.
  201. categoryDescOrganizationID := categoryFields[1].Descriptor()
  202. // category.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  203. category.OrganizationIDValidator = categoryDescOrganizationID.Validators[0].(func(uint64) error)
  204. chatrecordsMixin := schema.ChatRecords{}.Mixin()
  205. chatrecordsMixinHooks1 := chatrecordsMixin[1].Hooks()
  206. chatrecords.Hooks[0] = chatrecordsMixinHooks1[0]
  207. chatrecordsMixinInters1 := chatrecordsMixin[1].Interceptors()
  208. chatrecords.Interceptors[0] = chatrecordsMixinInters1[0]
  209. chatrecordsMixinFields0 := chatrecordsMixin[0].Fields()
  210. _ = chatrecordsMixinFields0
  211. chatrecordsFields := schema.ChatRecords{}.Fields()
  212. _ = chatrecordsFields
  213. // chatrecordsDescCreatedAt is the schema descriptor for created_at field.
  214. chatrecordsDescCreatedAt := chatrecordsMixinFields0[1].Descriptor()
  215. // chatrecords.DefaultCreatedAt holds the default value on creation for the created_at field.
  216. chatrecords.DefaultCreatedAt = chatrecordsDescCreatedAt.Default.(func() time.Time)
  217. // chatrecordsDescUpdatedAt is the schema descriptor for updated_at field.
  218. chatrecordsDescUpdatedAt := chatrecordsMixinFields0[2].Descriptor()
  219. // chatrecords.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  220. chatrecords.DefaultUpdatedAt = chatrecordsDescUpdatedAt.Default.(func() time.Time)
  221. // chatrecords.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  222. chatrecords.UpdateDefaultUpdatedAt = chatrecordsDescUpdatedAt.UpdateDefault.(func() time.Time)
  223. // chatrecordsDescContent is the schema descriptor for content field.
  224. chatrecordsDescContent := chatrecordsFields[0].Descriptor()
  225. // chatrecords.DefaultContent holds the default value on creation for the content field.
  226. chatrecords.DefaultContent = chatrecordsDescContent.Default.(string)
  227. // chatrecordsDescContentType is the schema descriptor for content_type field.
  228. chatrecordsDescContentType := chatrecordsFields[1].Descriptor()
  229. // chatrecords.DefaultContentType holds the default value on creation for the content_type field.
  230. chatrecords.DefaultContentType = chatrecordsDescContentType.Default.(uint8)
  231. // chatrecordsDescSessionID is the schema descriptor for session_id field.
  232. chatrecordsDescSessionID := chatrecordsFields[2].Descriptor()
  233. // chatrecords.DefaultSessionID holds the default value on creation for the session_id field.
  234. chatrecords.DefaultSessionID = chatrecordsDescSessionID.Default.(uint64)
  235. // chatrecordsDescUserID is the schema descriptor for user_id field.
  236. chatrecordsDescUserID := chatrecordsFields[3].Descriptor()
  237. // chatrecords.DefaultUserID holds the default value on creation for the user_id field.
  238. chatrecords.DefaultUserID = chatrecordsDescUserID.Default.(uint64)
  239. // chatrecordsDescBotID is the schema descriptor for bot_id field.
  240. chatrecordsDescBotID := chatrecordsFields[4].Descriptor()
  241. // chatrecords.DefaultBotID holds the default value on creation for the bot_id field.
  242. chatrecords.DefaultBotID = chatrecordsDescBotID.Default.(uint64)
  243. // chatrecordsDescBotType is the schema descriptor for bot_type field.
  244. chatrecordsDescBotType := chatrecordsFields[5].Descriptor()
  245. // chatrecords.DefaultBotType holds the default value on creation for the bot_type field.
  246. chatrecords.DefaultBotType = chatrecordsDescBotType.Default.(uint8)
  247. chatsessionMixin := schema.ChatSession{}.Mixin()
  248. chatsessionMixinHooks1 := chatsessionMixin[1].Hooks()
  249. chatsession.Hooks[0] = chatsessionMixinHooks1[0]
  250. chatsessionMixinInters1 := chatsessionMixin[1].Interceptors()
  251. chatsession.Interceptors[0] = chatsessionMixinInters1[0]
  252. chatsessionMixinFields0 := chatsessionMixin[0].Fields()
  253. _ = chatsessionMixinFields0
  254. chatsessionFields := schema.ChatSession{}.Fields()
  255. _ = chatsessionFields
  256. // chatsessionDescCreatedAt is the schema descriptor for created_at field.
  257. chatsessionDescCreatedAt := chatsessionMixinFields0[1].Descriptor()
  258. // chatsession.DefaultCreatedAt holds the default value on creation for the created_at field.
  259. chatsession.DefaultCreatedAt = chatsessionDescCreatedAt.Default.(func() time.Time)
  260. // chatsessionDescUpdatedAt is the schema descriptor for updated_at field.
  261. chatsessionDescUpdatedAt := chatsessionMixinFields0[2].Descriptor()
  262. // chatsession.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  263. chatsession.DefaultUpdatedAt = chatsessionDescUpdatedAt.Default.(func() time.Time)
  264. // chatsession.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  265. chatsession.UpdateDefaultUpdatedAt = chatsessionDescUpdatedAt.UpdateDefault.(func() time.Time)
  266. // chatsessionDescName is the schema descriptor for name field.
  267. chatsessionDescName := chatsessionFields[0].Descriptor()
  268. // chatsession.DefaultName holds the default value on creation for the name field.
  269. chatsession.DefaultName = chatsessionDescName.Default.(string)
  270. // chatsessionDescUserID is the schema descriptor for user_id field.
  271. chatsessionDescUserID := chatsessionFields[1].Descriptor()
  272. // chatsession.DefaultUserID holds the default value on creation for the user_id field.
  273. chatsession.DefaultUserID = chatsessionDescUserID.Default.(uint64)
  274. // chatsessionDescBotID is the schema descriptor for bot_id field.
  275. chatsessionDescBotID := chatsessionFields[2].Descriptor()
  276. // chatsession.DefaultBotID holds the default value on creation for the bot_id field.
  277. chatsession.DefaultBotID = chatsessionDescBotID.Default.(uint64)
  278. // chatsessionDescBotType is the schema descriptor for bot_type field.
  279. chatsessionDescBotType := chatsessionFields[3].Descriptor()
  280. // chatsession.DefaultBotType holds the default value on creation for the bot_type field.
  281. chatsession.DefaultBotType = chatsessionDescBotType.Default.(uint8)
  282. contactMixin := schema.Contact{}.Mixin()
  283. contactMixinHooks2 := contactMixin[2].Hooks()
  284. contact.Hooks[0] = contactMixinHooks2[0]
  285. contactMixinInters2 := contactMixin[2].Interceptors()
  286. contact.Interceptors[0] = contactMixinInters2[0]
  287. contactMixinFields0 := contactMixin[0].Fields()
  288. _ = contactMixinFields0
  289. contactMixinFields1 := contactMixin[1].Fields()
  290. _ = contactMixinFields1
  291. contactFields := schema.Contact{}.Fields()
  292. _ = contactFields
  293. // contactDescCreatedAt is the schema descriptor for created_at field.
  294. contactDescCreatedAt := contactMixinFields0[1].Descriptor()
  295. // contact.DefaultCreatedAt holds the default value on creation for the created_at field.
  296. contact.DefaultCreatedAt = contactDescCreatedAt.Default.(func() time.Time)
  297. // contactDescUpdatedAt is the schema descriptor for updated_at field.
  298. contactDescUpdatedAt := contactMixinFields0[2].Descriptor()
  299. // contact.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  300. contact.DefaultUpdatedAt = contactDescUpdatedAt.Default.(func() time.Time)
  301. // contact.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  302. contact.UpdateDefaultUpdatedAt = contactDescUpdatedAt.UpdateDefault.(func() time.Time)
  303. // contactDescStatus is the schema descriptor for status field.
  304. contactDescStatus := contactMixinFields1[0].Descriptor()
  305. // contact.DefaultStatus holds the default value on creation for the status field.
  306. contact.DefaultStatus = contactDescStatus.Default.(uint8)
  307. // contactDescWxWxid is the schema descriptor for wx_wxid field.
  308. contactDescWxWxid := contactFields[0].Descriptor()
  309. // contact.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  310. contact.DefaultWxWxid = contactDescWxWxid.Default.(string)
  311. // contactDescType is the schema descriptor for type field.
  312. contactDescType := contactFields[1].Descriptor()
  313. // contact.DefaultType holds the default value on creation for the type field.
  314. contact.DefaultType = contactDescType.Default.(int)
  315. // contactDescWxid is the schema descriptor for wxid field.
  316. contactDescWxid := contactFields[2].Descriptor()
  317. // contact.DefaultWxid holds the default value on creation for the wxid field.
  318. contact.DefaultWxid = contactDescWxid.Default.(string)
  319. // contactDescAccount is the schema descriptor for account field.
  320. contactDescAccount := contactFields[3].Descriptor()
  321. // contact.DefaultAccount holds the default value on creation for the account field.
  322. contact.DefaultAccount = contactDescAccount.Default.(string)
  323. // contactDescNickname is the schema descriptor for nickname field.
  324. contactDescNickname := contactFields[4].Descriptor()
  325. // contact.DefaultNickname holds the default value on creation for the nickname field.
  326. contact.DefaultNickname = contactDescNickname.Default.(string)
  327. // contactDescMarkname is the schema descriptor for markname field.
  328. contactDescMarkname := contactFields[5].Descriptor()
  329. // contact.DefaultMarkname holds the default value on creation for the markname field.
  330. contact.DefaultMarkname = contactDescMarkname.Default.(string)
  331. // contactDescHeadimg is the schema descriptor for headimg field.
  332. contactDescHeadimg := contactFields[6].Descriptor()
  333. // contact.DefaultHeadimg holds the default value on creation for the headimg field.
  334. contact.DefaultHeadimg = contactDescHeadimg.Default.(string)
  335. // contactDescSex is the schema descriptor for sex field.
  336. contactDescSex := contactFields[7].Descriptor()
  337. // contact.DefaultSex holds the default value on creation for the sex field.
  338. contact.DefaultSex = contactDescSex.Default.(int)
  339. // contactDescStarrole is the schema descriptor for starrole field.
  340. contactDescStarrole := contactFields[8].Descriptor()
  341. // contact.DefaultStarrole holds the default value on creation for the starrole field.
  342. contact.DefaultStarrole = contactDescStarrole.Default.(string)
  343. // contactDescDontseeit is the schema descriptor for dontseeit field.
  344. contactDescDontseeit := contactFields[9].Descriptor()
  345. // contact.DefaultDontseeit holds the default value on creation for the dontseeit field.
  346. contact.DefaultDontseeit = contactDescDontseeit.Default.(int)
  347. // contactDescDontseeme is the schema descriptor for dontseeme field.
  348. contactDescDontseeme := contactFields[10].Descriptor()
  349. // contact.DefaultDontseeme holds the default value on creation for the dontseeme field.
  350. contact.DefaultDontseeme = contactDescDontseeme.Default.(int)
  351. // contactDescLag is the schema descriptor for lag field.
  352. contactDescLag := contactFields[11].Descriptor()
  353. // contact.DefaultLag holds the default value on creation for the lag field.
  354. contact.DefaultLag = contactDescLag.Default.(string)
  355. // contactDescGid is the schema descriptor for gid field.
  356. contactDescGid := contactFields[12].Descriptor()
  357. // contact.DefaultGid holds the default value on creation for the gid field.
  358. contact.DefaultGid = contactDescGid.Default.(string)
  359. // contactDescGname is the schema descriptor for gname field.
  360. contactDescGname := contactFields[13].Descriptor()
  361. // contact.DefaultGname holds the default value on creation for the gname field.
  362. contact.DefaultGname = contactDescGname.Default.(string)
  363. // contactDescV3 is the schema descriptor for v3 field.
  364. contactDescV3 := contactFields[14].Descriptor()
  365. // contact.DefaultV3 holds the default value on creation for the v3 field.
  366. contact.DefaultV3 = contactDescV3.Default.(string)
  367. // contactDescOrganizationID is the schema descriptor for organization_id field.
  368. contactDescOrganizationID := contactFields[15].Descriptor()
  369. // contact.DefaultOrganizationID holds the default value on creation for the organization_id field.
  370. contact.DefaultOrganizationID = contactDescOrganizationID.Default.(uint64)
  371. employeeMixin := schema.Employee{}.Mixin()
  372. employeeMixinHooks1 := employeeMixin[1].Hooks()
  373. employee.Hooks[0] = employeeMixinHooks1[0]
  374. employeeMixinInters1 := employeeMixin[1].Interceptors()
  375. employee.Interceptors[0] = employeeMixinInters1[0]
  376. employeeMixinFields0 := employeeMixin[0].Fields()
  377. _ = employeeMixinFields0
  378. employeeFields := schema.Employee{}.Fields()
  379. _ = employeeFields
  380. // employeeDescCreatedAt is the schema descriptor for created_at field.
  381. employeeDescCreatedAt := employeeMixinFields0[1].Descriptor()
  382. // employee.DefaultCreatedAt holds the default value on creation for the created_at field.
  383. employee.DefaultCreatedAt = employeeDescCreatedAt.Default.(func() time.Time)
  384. // employeeDescUpdatedAt is the schema descriptor for updated_at field.
  385. employeeDescUpdatedAt := employeeMixinFields0[2].Descriptor()
  386. // employee.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  387. employee.DefaultUpdatedAt = employeeDescUpdatedAt.Default.(func() time.Time)
  388. // employee.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  389. employee.UpdateDefaultUpdatedAt = employeeDescUpdatedAt.UpdateDefault.(func() time.Time)
  390. // employeeDescTitle is the schema descriptor for title field.
  391. employeeDescTitle := employeeFields[0].Descriptor()
  392. // employee.TitleValidator is a validator for the "title" field. It is called by the builders before save.
  393. employee.TitleValidator = employeeDescTitle.Validators[0].(func(string) error)
  394. // employeeDescHireCount is the schema descriptor for hire_count field.
  395. employeeDescHireCount := employeeFields[3].Descriptor()
  396. // employee.DefaultHireCount holds the default value on creation for the hire_count field.
  397. employee.DefaultHireCount = employeeDescHireCount.Default.(int)
  398. // employee.HireCountValidator is a validator for the "hire_count" field. It is called by the builders before save.
  399. employee.HireCountValidator = employeeDescHireCount.Validators[0].(func(int) error)
  400. // employeeDescServiceCount is the schema descriptor for service_count field.
  401. employeeDescServiceCount := employeeFields[4].Descriptor()
  402. // employee.DefaultServiceCount holds the default value on creation for the service_count field.
  403. employee.DefaultServiceCount = employeeDescServiceCount.Default.(int)
  404. // employee.ServiceCountValidator is a validator for the "service_count" field. It is called by the builders before save.
  405. employee.ServiceCountValidator = employeeDescServiceCount.Validators[0].(func(int) error)
  406. // employeeDescAchievementCount is the schema descriptor for achievement_count field.
  407. employeeDescAchievementCount := employeeFields[5].Descriptor()
  408. // employee.DefaultAchievementCount holds the default value on creation for the achievement_count field.
  409. employee.DefaultAchievementCount = employeeDescAchievementCount.Default.(int)
  410. // employee.AchievementCountValidator is a validator for the "achievement_count" field. It is called by the builders before save.
  411. employee.AchievementCountValidator = employeeDescAchievementCount.Validators[0].(func(int) error)
  412. // employeeDescIntro is the schema descriptor for intro field.
  413. employeeDescIntro := employeeFields[6].Descriptor()
  414. // employee.DefaultIntro holds the default value on creation for the intro field.
  415. employee.DefaultIntro = employeeDescIntro.Default.(string)
  416. // employeeDescEstimate is the schema descriptor for estimate field.
  417. employeeDescEstimate := employeeFields[7].Descriptor()
  418. // employee.DefaultEstimate holds the default value on creation for the estimate field.
  419. employee.DefaultEstimate = employeeDescEstimate.Default.(string)
  420. // employeeDescSkill is the schema descriptor for skill field.
  421. employeeDescSkill := employeeFields[8].Descriptor()
  422. // employee.DefaultSkill holds the default value on creation for the skill field.
  423. employee.DefaultSkill = employeeDescSkill.Default.(string)
  424. // employeeDescAbilityType is the schema descriptor for ability_type field.
  425. employeeDescAbilityType := employeeFields[9].Descriptor()
  426. // employee.DefaultAbilityType holds the default value on creation for the ability_type field.
  427. employee.DefaultAbilityType = employeeDescAbilityType.Default.(string)
  428. // employeeDescScene is the schema descriptor for scene field.
  429. employeeDescScene := employeeFields[10].Descriptor()
  430. // employee.DefaultScene holds the default value on creation for the scene field.
  431. employee.DefaultScene = employeeDescScene.Default.(string)
  432. // employeeDescSwitchIn is the schema descriptor for switch_in field.
  433. employeeDescSwitchIn := employeeFields[11].Descriptor()
  434. // employee.DefaultSwitchIn holds the default value on creation for the switch_in field.
  435. employee.DefaultSwitchIn = employeeDescSwitchIn.Default.(string)
  436. // employeeDescVideoURL is the schema descriptor for video_url field.
  437. employeeDescVideoURL := employeeFields[12].Descriptor()
  438. // employee.DefaultVideoURL holds the default value on creation for the video_url field.
  439. employee.DefaultVideoURL = employeeDescVideoURL.Default.(string)
  440. // employeeDescOrganizationID is the schema descriptor for organization_id field.
  441. employeeDescOrganizationID := employeeFields[13].Descriptor()
  442. // employee.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  443. employee.OrganizationIDValidator = employeeDescOrganizationID.Validators[0].(func(uint64) error)
  444. // employeeDescCategoryID is the schema descriptor for category_id field.
  445. employeeDescCategoryID := employeeFields[14].Descriptor()
  446. // employee.CategoryIDValidator is a validator for the "category_id" field. It is called by the builders before save.
  447. employee.CategoryIDValidator = employeeDescCategoryID.Validators[0].(func(uint64) error)
  448. // employeeDescAPIBase is the schema descriptor for api_base field.
  449. employeeDescAPIBase := employeeFields[15].Descriptor()
  450. // employee.DefaultAPIBase holds the default value on creation for the api_base field.
  451. employee.DefaultAPIBase = employeeDescAPIBase.Default.(string)
  452. // employeeDescAPIKey is the schema descriptor for api_key field.
  453. employeeDescAPIKey := employeeFields[16].Descriptor()
  454. // employee.DefaultAPIKey holds the default value on creation for the api_key field.
  455. employee.DefaultAPIKey = employeeDescAPIKey.Default.(string)
  456. // employeeDescIsVip is the schema descriptor for is_vip field.
  457. employeeDescIsVip := employeeFields[18].Descriptor()
  458. // employee.DefaultIsVip holds the default value on creation for the is_vip field.
  459. employee.DefaultIsVip = employeeDescIsVip.Default.(int)
  460. employeeconfigMixin := schema.EmployeeConfig{}.Mixin()
  461. employeeconfigMixinHooks1 := employeeconfigMixin[1].Hooks()
  462. employeeconfig.Hooks[0] = employeeconfigMixinHooks1[0]
  463. employeeconfigMixinInters1 := employeeconfigMixin[1].Interceptors()
  464. employeeconfig.Interceptors[0] = employeeconfigMixinInters1[0]
  465. employeeconfigMixinFields0 := employeeconfigMixin[0].Fields()
  466. _ = employeeconfigMixinFields0
  467. employeeconfigFields := schema.EmployeeConfig{}.Fields()
  468. _ = employeeconfigFields
  469. // employeeconfigDescCreatedAt is the schema descriptor for created_at field.
  470. employeeconfigDescCreatedAt := employeeconfigMixinFields0[1].Descriptor()
  471. // employeeconfig.DefaultCreatedAt holds the default value on creation for the created_at field.
  472. employeeconfig.DefaultCreatedAt = employeeconfigDescCreatedAt.Default.(func() time.Time)
  473. // employeeconfigDescUpdatedAt is the schema descriptor for updated_at field.
  474. employeeconfigDescUpdatedAt := employeeconfigMixinFields0[2].Descriptor()
  475. // employeeconfig.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  476. employeeconfig.DefaultUpdatedAt = employeeconfigDescUpdatedAt.Default.(func() time.Time)
  477. // employeeconfig.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  478. employeeconfig.UpdateDefaultUpdatedAt = employeeconfigDescUpdatedAt.UpdateDefault.(func() time.Time)
  479. // employeeconfigDescStype is the schema descriptor for stype field.
  480. employeeconfigDescStype := employeeconfigFields[0].Descriptor()
  481. // employeeconfig.DefaultStype holds the default value on creation for the stype field.
  482. employeeconfig.DefaultStype = employeeconfigDescStype.Default.(string)
  483. // employeeconfigDescTitle is the schema descriptor for title field.
  484. employeeconfigDescTitle := employeeconfigFields[1].Descriptor()
  485. // employeeconfig.DefaultTitle holds the default value on creation for the title field.
  486. employeeconfig.DefaultTitle = employeeconfigDescTitle.Default.(string)
  487. // employeeconfigDescPhoto is the schema descriptor for photo field.
  488. employeeconfigDescPhoto := employeeconfigFields[2].Descriptor()
  489. // employeeconfig.DefaultPhoto holds the default value on creation for the photo field.
  490. employeeconfig.DefaultPhoto = employeeconfigDescPhoto.Default.(string)
  491. // employeeconfigDescOrganizationID is the schema descriptor for organization_id field.
  492. employeeconfigDescOrganizationID := employeeconfigFields[3].Descriptor()
  493. // employeeconfig.DefaultOrganizationID holds the default value on creation for the organization_id field.
  494. employeeconfig.DefaultOrganizationID = employeeconfigDescOrganizationID.Default.(uint64)
  495. labelMixin := schema.Label{}.Mixin()
  496. labelMixinFields0 := labelMixin[0].Fields()
  497. _ = labelMixinFields0
  498. labelMixinFields1 := labelMixin[1].Fields()
  499. _ = labelMixinFields1
  500. labelFields := schema.Label{}.Fields()
  501. _ = labelFields
  502. // labelDescCreatedAt is the schema descriptor for created_at field.
  503. labelDescCreatedAt := labelMixinFields0[1].Descriptor()
  504. // label.DefaultCreatedAt holds the default value on creation for the created_at field.
  505. label.DefaultCreatedAt = labelDescCreatedAt.Default.(func() time.Time)
  506. // labelDescUpdatedAt is the schema descriptor for updated_at field.
  507. labelDescUpdatedAt := labelMixinFields0[2].Descriptor()
  508. // label.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  509. label.DefaultUpdatedAt = labelDescUpdatedAt.Default.(func() time.Time)
  510. // label.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  511. label.UpdateDefaultUpdatedAt = labelDescUpdatedAt.UpdateDefault.(func() time.Time)
  512. // labelDescStatus is the schema descriptor for status field.
  513. labelDescStatus := labelMixinFields1[0].Descriptor()
  514. // label.DefaultStatus holds the default value on creation for the status field.
  515. label.DefaultStatus = labelDescStatus.Default.(uint8)
  516. // labelDescType is the schema descriptor for type field.
  517. labelDescType := labelFields[0].Descriptor()
  518. // label.DefaultType holds the default value on creation for the type field.
  519. label.DefaultType = labelDescType.Default.(int)
  520. // labelDescName is the schema descriptor for name field.
  521. labelDescName := labelFields[1].Descriptor()
  522. // label.DefaultName holds the default value on creation for the name field.
  523. label.DefaultName = labelDescName.Default.(string)
  524. // labelDescFrom is the schema descriptor for from field.
  525. labelDescFrom := labelFields[2].Descriptor()
  526. // label.DefaultFrom holds the default value on creation for the from field.
  527. label.DefaultFrom = labelDescFrom.Default.(int)
  528. // labelDescMode is the schema descriptor for mode field.
  529. labelDescMode := labelFields[3].Descriptor()
  530. // label.DefaultMode holds the default value on creation for the mode field.
  531. label.DefaultMode = labelDescMode.Default.(int)
  532. // labelDescConditions is the schema descriptor for conditions field.
  533. labelDescConditions := labelFields[4].Descriptor()
  534. // label.DefaultConditions holds the default value on creation for the conditions field.
  535. label.DefaultConditions = labelDescConditions.Default.(string)
  536. // labelDescOrganizationID is the schema descriptor for organization_id field.
  537. labelDescOrganizationID := labelFields[5].Descriptor()
  538. // label.DefaultOrganizationID holds the default value on creation for the organization_id field.
  539. label.DefaultOrganizationID = labelDescOrganizationID.Default.(uint64)
  540. labelrelationshipMixin := schema.LabelRelationship{}.Mixin()
  541. labelrelationshipMixinFields0 := labelrelationshipMixin[0].Fields()
  542. _ = labelrelationshipMixinFields0
  543. labelrelationshipMixinFields1 := labelrelationshipMixin[1].Fields()
  544. _ = labelrelationshipMixinFields1
  545. labelrelationshipFields := schema.LabelRelationship{}.Fields()
  546. _ = labelrelationshipFields
  547. // labelrelationshipDescCreatedAt is the schema descriptor for created_at field.
  548. labelrelationshipDescCreatedAt := labelrelationshipMixinFields0[1].Descriptor()
  549. // labelrelationship.DefaultCreatedAt holds the default value on creation for the created_at field.
  550. labelrelationship.DefaultCreatedAt = labelrelationshipDescCreatedAt.Default.(func() time.Time)
  551. // labelrelationshipDescUpdatedAt is the schema descriptor for updated_at field.
  552. labelrelationshipDescUpdatedAt := labelrelationshipMixinFields0[2].Descriptor()
  553. // labelrelationship.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  554. labelrelationship.DefaultUpdatedAt = labelrelationshipDescUpdatedAt.Default.(func() time.Time)
  555. // labelrelationship.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  556. labelrelationship.UpdateDefaultUpdatedAt = labelrelationshipDescUpdatedAt.UpdateDefault.(func() time.Time)
  557. // labelrelationshipDescStatus is the schema descriptor for status field.
  558. labelrelationshipDescStatus := labelrelationshipMixinFields1[0].Descriptor()
  559. // labelrelationship.DefaultStatus holds the default value on creation for the status field.
  560. labelrelationship.DefaultStatus = labelrelationshipDescStatus.Default.(uint8)
  561. // labelrelationshipDescLabelID is the schema descriptor for label_id field.
  562. labelrelationshipDescLabelID := labelrelationshipFields[0].Descriptor()
  563. // labelrelationship.DefaultLabelID holds the default value on creation for the label_id field.
  564. labelrelationship.DefaultLabelID = labelrelationshipDescLabelID.Default.(uint64)
  565. // labelrelationshipDescContactID is the schema descriptor for contact_id field.
  566. labelrelationshipDescContactID := labelrelationshipFields[1].Descriptor()
  567. // labelrelationship.DefaultContactID holds the default value on creation for the contact_id field.
  568. labelrelationship.DefaultContactID = labelrelationshipDescContactID.Default.(uint64)
  569. // labelrelationshipDescOrganizationID is the schema descriptor for organization_id field.
  570. labelrelationshipDescOrganizationID := labelrelationshipFields[2].Descriptor()
  571. // labelrelationship.DefaultOrganizationID holds the default value on creation for the organization_id field.
  572. labelrelationship.DefaultOrganizationID = labelrelationshipDescOrganizationID.Default.(uint64)
  573. messageFields := schema.Message{}.Fields()
  574. _ = messageFields
  575. // messageDescWxWxid is the schema descriptor for wx_wxid field.
  576. messageDescWxWxid := messageFields[0].Descriptor()
  577. // message.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  578. message.DefaultWxWxid = messageDescWxWxid.Default.(string)
  579. // messageDescWxid is the schema descriptor for wxid field.
  580. messageDescWxid := messageFields[1].Descriptor()
  581. // message.DefaultWxid holds the default value on creation for the wxid field.
  582. message.DefaultWxid = messageDescWxid.Default.(string)
  583. // messageDescContent is the schema descriptor for content field.
  584. messageDescContent := messageFields[2].Descriptor()
  585. // message.DefaultContent holds the default value on creation for the content field.
  586. message.DefaultContent = messageDescContent.Default.(string)
  587. messagerecordsMixin := schema.MessageRecords{}.Mixin()
  588. messagerecordsMixinFields0 := messagerecordsMixin[0].Fields()
  589. _ = messagerecordsMixinFields0
  590. messagerecordsMixinFields1 := messagerecordsMixin[1].Fields()
  591. _ = messagerecordsMixinFields1
  592. messagerecordsFields := schema.MessageRecords{}.Fields()
  593. _ = messagerecordsFields
  594. // messagerecordsDescCreatedAt is the schema descriptor for created_at field.
  595. messagerecordsDescCreatedAt := messagerecordsMixinFields0[1].Descriptor()
  596. // messagerecords.DefaultCreatedAt holds the default value on creation for the created_at field.
  597. messagerecords.DefaultCreatedAt = messagerecordsDescCreatedAt.Default.(func() time.Time)
  598. // messagerecordsDescUpdatedAt is the schema descriptor for updated_at field.
  599. messagerecordsDescUpdatedAt := messagerecordsMixinFields0[2].Descriptor()
  600. // messagerecords.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  601. messagerecords.DefaultUpdatedAt = messagerecordsDescUpdatedAt.Default.(func() time.Time)
  602. // messagerecords.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  603. messagerecords.UpdateDefaultUpdatedAt = messagerecordsDescUpdatedAt.UpdateDefault.(func() time.Time)
  604. // messagerecordsDescStatus is the schema descriptor for status field.
  605. messagerecordsDescStatus := messagerecordsMixinFields1[0].Descriptor()
  606. // messagerecords.DefaultStatus holds the default value on creation for the status field.
  607. messagerecords.DefaultStatus = messagerecordsDescStatus.Default.(uint8)
  608. // messagerecordsDescContactType is the schema descriptor for contact_type field.
  609. messagerecordsDescContactType := messagerecordsFields[2].Descriptor()
  610. // messagerecords.DefaultContactType holds the default value on creation for the contact_type field.
  611. messagerecords.DefaultContactType = messagerecordsDescContactType.Default.(int)
  612. // messagerecordsDescContactWxid is the schema descriptor for contact_wxid field.
  613. messagerecordsDescContactWxid := messagerecordsFields[3].Descriptor()
  614. // messagerecords.DefaultContactWxid holds the default value on creation for the contact_wxid field.
  615. messagerecords.DefaultContactWxid = messagerecordsDescContactWxid.Default.(string)
  616. // messagerecordsDescContentType is the schema descriptor for content_type field.
  617. messagerecordsDescContentType := messagerecordsFields[4].Descriptor()
  618. // messagerecords.DefaultContentType holds the default value on creation for the content_type field.
  619. messagerecords.DefaultContentType = messagerecordsDescContentType.Default.(int)
  620. // messagerecordsDescContent is the schema descriptor for content field.
  621. messagerecordsDescContent := messagerecordsFields[5].Descriptor()
  622. // messagerecords.DefaultContent holds the default value on creation for the content field.
  623. messagerecords.DefaultContent = messagerecordsDescContent.Default.(string)
  624. // messagerecordsDescErrorDetail is the schema descriptor for error_detail field.
  625. messagerecordsDescErrorDetail := messagerecordsFields[7].Descriptor()
  626. // messagerecords.DefaultErrorDetail holds the default value on creation for the error_detail field.
  627. messagerecords.DefaultErrorDetail = messagerecordsDescErrorDetail.Default.(string)
  628. // messagerecordsDescSourceType is the schema descriptor for source_type field.
  629. messagerecordsDescSourceType := messagerecordsFields[9].Descriptor()
  630. // messagerecords.DefaultSourceType holds the default value on creation for the source_type field.
  631. messagerecords.DefaultSourceType = messagerecordsDescSourceType.Default.(int)
  632. // messagerecordsDescSourceID is the schema descriptor for source_id field.
  633. messagerecordsDescSourceID := messagerecordsFields[10].Descriptor()
  634. // messagerecords.DefaultSourceID holds the default value on creation for the source_id field.
  635. messagerecords.DefaultSourceID = messagerecordsDescSourceID.Default.(uint64)
  636. // messagerecordsDescSubSourceID is the schema descriptor for sub_source_id field.
  637. messagerecordsDescSubSourceID := messagerecordsFields[11].Descriptor()
  638. // messagerecords.DefaultSubSourceID holds the default value on creation for the sub_source_id field.
  639. messagerecords.DefaultSubSourceID = messagerecordsDescSubSourceID.Default.(uint64)
  640. // messagerecordsDescOrganizationID is the schema descriptor for organization_id field.
  641. messagerecordsDescOrganizationID := messagerecordsFields[12].Descriptor()
  642. // messagerecords.DefaultOrganizationID holds the default value on creation for the organization_id field.
  643. messagerecords.DefaultOrganizationID = messagerecordsDescOrganizationID.Default.(uint64)
  644. msgMixin := schema.Msg{}.Mixin()
  645. msgMixinHooks1 := msgMixin[1].Hooks()
  646. msg.Hooks[0] = msgMixinHooks1[0]
  647. msgMixinInters1 := msgMixin[1].Interceptors()
  648. msg.Interceptors[0] = msgMixinInters1[0]
  649. msgMixinFields0 := msgMixin[0].Fields()
  650. _ = msgMixinFields0
  651. msgFields := schema.Msg{}.Fields()
  652. _ = msgFields
  653. // msgDescCreatedAt is the schema descriptor for created_at field.
  654. msgDescCreatedAt := msgMixinFields0[1].Descriptor()
  655. // msg.DefaultCreatedAt holds the default value on creation for the created_at field.
  656. msg.DefaultCreatedAt = msgDescCreatedAt.Default.(func() time.Time)
  657. // msgDescUpdatedAt is the schema descriptor for updated_at field.
  658. msgDescUpdatedAt := msgMixinFields0[2].Descriptor()
  659. // msg.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  660. msg.DefaultUpdatedAt = msgDescUpdatedAt.Default.(func() time.Time)
  661. // msg.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  662. msg.UpdateDefaultUpdatedAt = msgDescUpdatedAt.UpdateDefault.(func() time.Time)
  663. serverMixin := schema.Server{}.Mixin()
  664. serverMixinHooks2 := serverMixin[2].Hooks()
  665. server.Hooks[0] = serverMixinHooks2[0]
  666. serverMixinInters2 := serverMixin[2].Interceptors()
  667. server.Interceptors[0] = serverMixinInters2[0]
  668. serverMixinFields0 := serverMixin[0].Fields()
  669. _ = serverMixinFields0
  670. serverMixinFields1 := serverMixin[1].Fields()
  671. _ = serverMixinFields1
  672. serverFields := schema.Server{}.Fields()
  673. _ = serverFields
  674. // serverDescCreatedAt is the schema descriptor for created_at field.
  675. serverDescCreatedAt := serverMixinFields0[1].Descriptor()
  676. // server.DefaultCreatedAt holds the default value on creation for the created_at field.
  677. server.DefaultCreatedAt = serverDescCreatedAt.Default.(func() time.Time)
  678. // serverDescUpdatedAt is the schema descriptor for updated_at field.
  679. serverDescUpdatedAt := serverMixinFields0[2].Descriptor()
  680. // server.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  681. server.DefaultUpdatedAt = serverDescUpdatedAt.Default.(func() time.Time)
  682. // server.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  683. server.UpdateDefaultUpdatedAt = serverDescUpdatedAt.UpdateDefault.(func() time.Time)
  684. // serverDescStatus is the schema descriptor for status field.
  685. serverDescStatus := serverMixinFields1[0].Descriptor()
  686. // server.DefaultStatus holds the default value on creation for the status field.
  687. server.DefaultStatus = serverDescStatus.Default.(uint8)
  688. sopnodeMixin := schema.SopNode{}.Mixin()
  689. sopnodeMixinHooks2 := sopnodeMixin[2].Hooks()
  690. sopnode.Hooks[0] = sopnodeMixinHooks2[0]
  691. sopnodeMixinInters2 := sopnodeMixin[2].Interceptors()
  692. sopnode.Interceptors[0] = sopnodeMixinInters2[0]
  693. sopnodeMixinFields0 := sopnodeMixin[0].Fields()
  694. _ = sopnodeMixinFields0
  695. sopnodeMixinFields1 := sopnodeMixin[1].Fields()
  696. _ = sopnodeMixinFields1
  697. sopnodeFields := schema.SopNode{}.Fields()
  698. _ = sopnodeFields
  699. // sopnodeDescCreatedAt is the schema descriptor for created_at field.
  700. sopnodeDescCreatedAt := sopnodeMixinFields0[1].Descriptor()
  701. // sopnode.DefaultCreatedAt holds the default value on creation for the created_at field.
  702. sopnode.DefaultCreatedAt = sopnodeDescCreatedAt.Default.(func() time.Time)
  703. // sopnodeDescUpdatedAt is the schema descriptor for updated_at field.
  704. sopnodeDescUpdatedAt := sopnodeMixinFields0[2].Descriptor()
  705. // sopnode.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  706. sopnode.DefaultUpdatedAt = sopnodeDescUpdatedAt.Default.(func() time.Time)
  707. // sopnode.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  708. sopnode.UpdateDefaultUpdatedAt = sopnodeDescUpdatedAt.UpdateDefault.(func() time.Time)
  709. // sopnodeDescStatus is the schema descriptor for status field.
  710. sopnodeDescStatus := sopnodeMixinFields1[0].Descriptor()
  711. // sopnode.DefaultStatus holds the default value on creation for the status field.
  712. sopnode.DefaultStatus = sopnodeDescStatus.Default.(uint8)
  713. // sopnodeDescName is the schema descriptor for name field.
  714. sopnodeDescName := sopnodeFields[2].Descriptor()
  715. // sopnode.DefaultName holds the default value on creation for the name field.
  716. sopnode.DefaultName = sopnodeDescName.Default.(string)
  717. // sopnodeDescConditionType is the schema descriptor for condition_type field.
  718. sopnodeDescConditionType := sopnodeFields[3].Descriptor()
  719. // sopnode.DefaultConditionType holds the default value on creation for the condition_type field.
  720. sopnode.DefaultConditionType = sopnodeDescConditionType.Default.(int)
  721. // sopnodeDescNoReplyCondition is the schema descriptor for no_reply_condition field.
  722. sopnodeDescNoReplyCondition := sopnodeFields[5].Descriptor()
  723. // sopnode.DefaultNoReplyCondition holds the default value on creation for the no_reply_condition field.
  724. sopnode.DefaultNoReplyCondition = sopnodeDescNoReplyCondition.Default.(uint64)
  725. // sopnodeDescNoReplyUnit is the schema descriptor for no_reply_unit field.
  726. sopnodeDescNoReplyUnit := sopnodeFields[6].Descriptor()
  727. // sopnode.DefaultNoReplyUnit holds the default value on creation for the no_reply_unit field.
  728. sopnode.DefaultNoReplyUnit = sopnodeDescNoReplyUnit.Default.(string)
  729. sopstageMixin := schema.SopStage{}.Mixin()
  730. sopstageMixinHooks2 := sopstageMixin[2].Hooks()
  731. sopstage.Hooks[0] = sopstageMixinHooks2[0]
  732. sopstageMixinInters2 := sopstageMixin[2].Interceptors()
  733. sopstage.Interceptors[0] = sopstageMixinInters2[0]
  734. sopstageMixinFields0 := sopstageMixin[0].Fields()
  735. _ = sopstageMixinFields0
  736. sopstageMixinFields1 := sopstageMixin[1].Fields()
  737. _ = sopstageMixinFields1
  738. sopstageFields := schema.SopStage{}.Fields()
  739. _ = sopstageFields
  740. // sopstageDescCreatedAt is the schema descriptor for created_at field.
  741. sopstageDescCreatedAt := sopstageMixinFields0[1].Descriptor()
  742. // sopstage.DefaultCreatedAt holds the default value on creation for the created_at field.
  743. sopstage.DefaultCreatedAt = sopstageDescCreatedAt.Default.(func() time.Time)
  744. // sopstageDescUpdatedAt is the schema descriptor for updated_at field.
  745. sopstageDescUpdatedAt := sopstageMixinFields0[2].Descriptor()
  746. // sopstage.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  747. sopstage.DefaultUpdatedAt = sopstageDescUpdatedAt.Default.(func() time.Time)
  748. // sopstage.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  749. sopstage.UpdateDefaultUpdatedAt = sopstageDescUpdatedAt.UpdateDefault.(func() time.Time)
  750. // sopstageDescStatus is the schema descriptor for status field.
  751. sopstageDescStatus := sopstageMixinFields1[0].Descriptor()
  752. // sopstage.DefaultStatus holds the default value on creation for the status field.
  753. sopstage.DefaultStatus = sopstageDescStatus.Default.(uint8)
  754. // sopstageDescName is the schema descriptor for name field.
  755. sopstageDescName := sopstageFields[1].Descriptor()
  756. // sopstage.DefaultName holds the default value on creation for the name field.
  757. sopstage.DefaultName = sopstageDescName.Default.(string)
  758. // sopstageDescConditionType is the schema descriptor for condition_type field.
  759. sopstageDescConditionType := sopstageFields[2].Descriptor()
  760. // sopstage.DefaultConditionType holds the default value on creation for the condition_type field.
  761. sopstage.DefaultConditionType = sopstageDescConditionType.Default.(int)
  762. // sopstageDescConditionOperator is the schema descriptor for condition_operator field.
  763. sopstageDescConditionOperator := sopstageFields[3].Descriptor()
  764. // sopstage.DefaultConditionOperator holds the default value on creation for the condition_operator field.
  765. sopstage.DefaultConditionOperator = sopstageDescConditionOperator.Default.(int)
  766. // sopstageDescIndexSort is the schema descriptor for index_sort field.
  767. sopstageDescIndexSort := sopstageFields[9].Descriptor()
  768. // sopstage.DefaultIndexSort holds the default value on creation for the index_sort field.
  769. sopstage.DefaultIndexSort = sopstageDescIndexSort.Default.(int)
  770. soptaskMixin := schema.SopTask{}.Mixin()
  771. soptaskMixinHooks2 := soptaskMixin[2].Hooks()
  772. soptask.Hooks[0] = soptaskMixinHooks2[0]
  773. soptaskMixinInters2 := soptaskMixin[2].Interceptors()
  774. soptask.Interceptors[0] = soptaskMixinInters2[0]
  775. soptaskMixinFields0 := soptaskMixin[0].Fields()
  776. _ = soptaskMixinFields0
  777. soptaskMixinFields1 := soptaskMixin[1].Fields()
  778. _ = soptaskMixinFields1
  779. soptaskFields := schema.SopTask{}.Fields()
  780. _ = soptaskFields
  781. // soptaskDescCreatedAt is the schema descriptor for created_at field.
  782. soptaskDescCreatedAt := soptaskMixinFields0[1].Descriptor()
  783. // soptask.DefaultCreatedAt holds the default value on creation for the created_at field.
  784. soptask.DefaultCreatedAt = soptaskDescCreatedAt.Default.(func() time.Time)
  785. // soptaskDescUpdatedAt is the schema descriptor for updated_at field.
  786. soptaskDescUpdatedAt := soptaskMixinFields0[2].Descriptor()
  787. // soptask.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  788. soptask.DefaultUpdatedAt = soptaskDescUpdatedAt.Default.(func() time.Time)
  789. // soptask.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  790. soptask.UpdateDefaultUpdatedAt = soptaskDescUpdatedAt.UpdateDefault.(func() time.Time)
  791. // soptaskDescStatus is the schema descriptor for status field.
  792. soptaskDescStatus := soptaskMixinFields1[0].Descriptor()
  793. // soptask.DefaultStatus holds the default value on creation for the status field.
  794. soptask.DefaultStatus = soptaskDescStatus.Default.(uint8)
  795. // soptaskDescName is the schema descriptor for name field.
  796. soptaskDescName := soptaskFields[0].Descriptor()
  797. // soptask.NameValidator is a validator for the "name" field. It is called by the builders before save.
  798. soptask.NameValidator = soptaskDescName.Validators[0].(func(string) error)
  799. // soptaskDescType is the schema descriptor for type field.
  800. soptaskDescType := soptaskFields[2].Descriptor()
  801. // soptask.DefaultType holds the default value on creation for the type field.
  802. soptask.DefaultType = soptaskDescType.Default.(int)
  803. // soptaskDescOrganizationID is the schema descriptor for organization_id field.
  804. soptaskDescOrganizationID := soptaskFields[6].Descriptor()
  805. // soptask.DefaultOrganizationID holds the default value on creation for the organization_id field.
  806. soptask.DefaultOrganizationID = soptaskDescOrganizationID.Default.(uint64)
  807. tokenMixin := schema.Token{}.Mixin()
  808. tokenMixinHooks1 := tokenMixin[1].Hooks()
  809. token.Hooks[0] = tokenMixinHooks1[0]
  810. tokenMixinInters1 := tokenMixin[1].Interceptors()
  811. token.Interceptors[0] = tokenMixinInters1[0]
  812. tokenMixinFields0 := tokenMixin[0].Fields()
  813. _ = tokenMixinFields0
  814. tokenFields := schema.Token{}.Fields()
  815. _ = tokenFields
  816. // tokenDescCreatedAt is the schema descriptor for created_at field.
  817. tokenDescCreatedAt := tokenMixinFields0[1].Descriptor()
  818. // token.DefaultCreatedAt holds the default value on creation for the created_at field.
  819. token.DefaultCreatedAt = tokenDescCreatedAt.Default.(func() time.Time)
  820. // tokenDescUpdatedAt is the schema descriptor for updated_at field.
  821. tokenDescUpdatedAt := tokenMixinFields0[2].Descriptor()
  822. // token.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  823. token.DefaultUpdatedAt = tokenDescUpdatedAt.Default.(func() time.Time)
  824. // token.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  825. token.UpdateDefaultUpdatedAt = tokenDescUpdatedAt.UpdateDefault.(func() time.Time)
  826. // tokenDescToken is the schema descriptor for token field.
  827. tokenDescToken := tokenFields[1].Descriptor()
  828. // token.DefaultToken holds the default value on creation for the token field.
  829. token.DefaultToken = tokenDescToken.Default.(string)
  830. // tokenDescMAC is the schema descriptor for mac field.
  831. tokenDescMAC := tokenFields[2].Descriptor()
  832. // token.DefaultMAC holds the default value on creation for the mac field.
  833. token.DefaultMAC = tokenDescMAC.Default.(string)
  834. // tokenDescOrganizationID is the schema descriptor for organization_id field.
  835. tokenDescOrganizationID := tokenFields[3].Descriptor()
  836. // token.DefaultOrganizationID holds the default value on creation for the organization_id field.
  837. token.DefaultOrganizationID = tokenDescOrganizationID.Default.(uint64)
  838. // tokenDescAgentID is the schema descriptor for agent_id field.
  839. tokenDescAgentID := tokenFields[4].Descriptor()
  840. // token.DefaultAgentID holds the default value on creation for the agent_id field.
  841. token.DefaultAgentID = tokenDescAgentID.Default.(uint64)
  842. // tokenDescCustomAgentBase is the schema descriptor for custom_agent_base field.
  843. tokenDescCustomAgentBase := tokenFields[5].Descriptor()
  844. // token.DefaultCustomAgentBase holds the default value on creation for the custom_agent_base field.
  845. token.DefaultCustomAgentBase = tokenDescCustomAgentBase.Default.(string)
  846. // tokenDescCustomAgentKey is the schema descriptor for custom_agent_key field.
  847. tokenDescCustomAgentKey := tokenFields[6].Descriptor()
  848. // token.DefaultCustomAgentKey holds the default value on creation for the custom_agent_key field.
  849. token.DefaultCustomAgentKey = tokenDescCustomAgentKey.Default.(string)
  850. // tokenDescOpenaiBase is the schema descriptor for openai_base field.
  851. tokenDescOpenaiBase := tokenFields[7].Descriptor()
  852. // token.DefaultOpenaiBase holds the default value on creation for the openai_base field.
  853. token.DefaultOpenaiBase = tokenDescOpenaiBase.Default.(string)
  854. // tokenDescOpenaiKey is the schema descriptor for openai_key field.
  855. tokenDescOpenaiKey := tokenFields[8].Descriptor()
  856. // token.DefaultOpenaiKey holds the default value on creation for the openai_key field.
  857. token.DefaultOpenaiKey = tokenDescOpenaiKey.Default.(string)
  858. tutorialMixin := schema.Tutorial{}.Mixin()
  859. tutorialMixinHooks1 := tutorialMixin[1].Hooks()
  860. tutorial.Hooks[0] = tutorialMixinHooks1[0]
  861. tutorialMixinInters1 := tutorialMixin[1].Interceptors()
  862. tutorial.Interceptors[0] = tutorialMixinInters1[0]
  863. tutorialMixinFields0 := tutorialMixin[0].Fields()
  864. _ = tutorialMixinFields0
  865. tutorialFields := schema.Tutorial{}.Fields()
  866. _ = tutorialFields
  867. // tutorialDescCreatedAt is the schema descriptor for created_at field.
  868. tutorialDescCreatedAt := tutorialMixinFields0[1].Descriptor()
  869. // tutorial.DefaultCreatedAt holds the default value on creation for the created_at field.
  870. tutorial.DefaultCreatedAt = tutorialDescCreatedAt.Default.(func() time.Time)
  871. // tutorialDescUpdatedAt is the schema descriptor for updated_at field.
  872. tutorialDescUpdatedAt := tutorialMixinFields0[2].Descriptor()
  873. // tutorial.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  874. tutorial.DefaultUpdatedAt = tutorialDescUpdatedAt.Default.(func() time.Time)
  875. // tutorial.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  876. tutorial.UpdateDefaultUpdatedAt = tutorialDescUpdatedAt.UpdateDefault.(func() time.Time)
  877. // tutorialDescEmployeeID is the schema descriptor for employee_id field.
  878. tutorialDescEmployeeID := tutorialFields[0].Descriptor()
  879. // tutorial.EmployeeIDValidator is a validator for the "employee_id" field. It is called by the builders before save.
  880. tutorial.EmployeeIDValidator = tutorialDescEmployeeID.Validators[0].(func(uint64) error)
  881. // tutorialDescOrganizationID is the schema descriptor for organization_id field.
  882. tutorialDescOrganizationID := tutorialFields[4].Descriptor()
  883. // tutorial.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  884. tutorial.OrganizationIDValidator = tutorialDescOrganizationID.Validators[0].(func(uint64) error)
  885. usagedetailMixin := schema.UsageDetail{}.Mixin()
  886. usagedetailMixinFields0 := usagedetailMixin[0].Fields()
  887. _ = usagedetailMixinFields0
  888. usagedetailMixinFields1 := usagedetailMixin[1].Fields()
  889. _ = usagedetailMixinFields1
  890. usagedetailFields := schema.UsageDetail{}.Fields()
  891. _ = usagedetailFields
  892. // usagedetailDescCreatedAt is the schema descriptor for created_at field.
  893. usagedetailDescCreatedAt := usagedetailMixinFields0[1].Descriptor()
  894. // usagedetail.DefaultCreatedAt holds the default value on creation for the created_at field.
  895. usagedetail.DefaultCreatedAt = usagedetailDescCreatedAt.Default.(func() time.Time)
  896. // usagedetailDescUpdatedAt is the schema descriptor for updated_at field.
  897. usagedetailDescUpdatedAt := usagedetailMixinFields0[2].Descriptor()
  898. // usagedetail.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  899. usagedetail.DefaultUpdatedAt = usagedetailDescUpdatedAt.Default.(func() time.Time)
  900. // usagedetail.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  901. usagedetail.UpdateDefaultUpdatedAt = usagedetailDescUpdatedAt.UpdateDefault.(func() time.Time)
  902. // usagedetailDescStatus is the schema descriptor for status field.
  903. usagedetailDescStatus := usagedetailMixinFields1[0].Descriptor()
  904. // usagedetail.DefaultStatus holds the default value on creation for the status field.
  905. usagedetail.DefaultStatus = usagedetailDescStatus.Default.(uint8)
  906. // usagedetailDescType is the schema descriptor for type field.
  907. usagedetailDescType := usagedetailFields[0].Descriptor()
  908. // usagedetail.DefaultType holds the default value on creation for the type field.
  909. usagedetail.DefaultType = usagedetailDescType.Default.(int)
  910. // usagedetailDescBotID is the schema descriptor for bot_id field.
  911. usagedetailDescBotID := usagedetailFields[1].Descriptor()
  912. // usagedetail.DefaultBotID holds the default value on creation for the bot_id field.
  913. usagedetail.DefaultBotID = usagedetailDescBotID.Default.(string)
  914. // usagedetailDescReceiverID is the schema descriptor for receiver_id field.
  915. usagedetailDescReceiverID := usagedetailFields[2].Descriptor()
  916. // usagedetail.DefaultReceiverID holds the default value on creation for the receiver_id field.
  917. usagedetail.DefaultReceiverID = usagedetailDescReceiverID.Default.(string)
  918. // usagedetailDescApp is the schema descriptor for app field.
  919. usagedetailDescApp := usagedetailFields[3].Descriptor()
  920. // usagedetail.DefaultApp holds the default value on creation for the app field.
  921. usagedetail.DefaultApp = usagedetailDescApp.Default.(int)
  922. // usagedetailDescSessionID is the schema descriptor for session_id field.
  923. usagedetailDescSessionID := usagedetailFields[4].Descriptor()
  924. // usagedetail.DefaultSessionID holds the default value on creation for the session_id field.
  925. usagedetail.DefaultSessionID = usagedetailDescSessionID.Default.(uint64)
  926. // usagedetailDescRequest is the schema descriptor for request field.
  927. usagedetailDescRequest := usagedetailFields[5].Descriptor()
  928. // usagedetail.DefaultRequest holds the default value on creation for the request field.
  929. usagedetail.DefaultRequest = usagedetailDescRequest.Default.(string)
  930. // usagedetailDescResponse is the schema descriptor for response field.
  931. usagedetailDescResponse := usagedetailFields[6].Descriptor()
  932. // usagedetail.DefaultResponse holds the default value on creation for the response field.
  933. usagedetail.DefaultResponse = usagedetailDescResponse.Default.(string)
  934. // usagedetailDescTotalTokens is the schema descriptor for total_tokens field.
  935. usagedetailDescTotalTokens := usagedetailFields[7].Descriptor()
  936. // usagedetail.DefaultTotalTokens holds the default value on creation for the total_tokens field.
  937. usagedetail.DefaultTotalTokens = usagedetailDescTotalTokens.Default.(uint64)
  938. // usagedetailDescPromptTokens is the schema descriptor for prompt_tokens field.
  939. usagedetailDescPromptTokens := usagedetailFields[8].Descriptor()
  940. // usagedetail.DefaultPromptTokens holds the default value on creation for the prompt_tokens field.
  941. usagedetail.DefaultPromptTokens = usagedetailDescPromptTokens.Default.(uint64)
  942. // usagedetailDescCompletionTokens is the schema descriptor for completion_tokens field.
  943. usagedetailDescCompletionTokens := usagedetailFields[9].Descriptor()
  944. // usagedetail.DefaultCompletionTokens holds the default value on creation for the completion_tokens field.
  945. usagedetail.DefaultCompletionTokens = usagedetailDescCompletionTokens.Default.(uint64)
  946. // usagedetailDescOrganizationID is the schema descriptor for organization_id field.
  947. usagedetailDescOrganizationID := usagedetailFields[10].Descriptor()
  948. // usagedetail.DefaultOrganizationID holds the default value on creation for the organization_id field.
  949. usagedetail.DefaultOrganizationID = usagedetailDescOrganizationID.Default.(uint64)
  950. usagestatisticdayMixin := schema.UsageStatisticDay{}.Mixin()
  951. usagestatisticdayMixinHooks2 := usagestatisticdayMixin[2].Hooks()
  952. usagestatisticday.Hooks[0] = usagestatisticdayMixinHooks2[0]
  953. usagestatisticdayMixinInters2 := usagestatisticdayMixin[2].Interceptors()
  954. usagestatisticday.Interceptors[0] = usagestatisticdayMixinInters2[0]
  955. usagestatisticdayMixinFields0 := usagestatisticdayMixin[0].Fields()
  956. _ = usagestatisticdayMixinFields0
  957. usagestatisticdayMixinFields1 := usagestatisticdayMixin[1].Fields()
  958. _ = usagestatisticdayMixinFields1
  959. usagestatisticdayFields := schema.UsageStatisticDay{}.Fields()
  960. _ = usagestatisticdayFields
  961. // usagestatisticdayDescCreatedAt is the schema descriptor for created_at field.
  962. usagestatisticdayDescCreatedAt := usagestatisticdayMixinFields0[1].Descriptor()
  963. // usagestatisticday.DefaultCreatedAt holds the default value on creation for the created_at field.
  964. usagestatisticday.DefaultCreatedAt = usagestatisticdayDescCreatedAt.Default.(func() time.Time)
  965. // usagestatisticdayDescUpdatedAt is the schema descriptor for updated_at field.
  966. usagestatisticdayDescUpdatedAt := usagestatisticdayMixinFields0[2].Descriptor()
  967. // usagestatisticday.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  968. usagestatisticday.DefaultUpdatedAt = usagestatisticdayDescUpdatedAt.Default.(func() time.Time)
  969. // usagestatisticday.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  970. usagestatisticday.UpdateDefaultUpdatedAt = usagestatisticdayDescUpdatedAt.UpdateDefault.(func() time.Time)
  971. // usagestatisticdayDescStatus is the schema descriptor for status field.
  972. usagestatisticdayDescStatus := usagestatisticdayMixinFields1[0].Descriptor()
  973. // usagestatisticday.DefaultStatus holds the default value on creation for the status field.
  974. usagestatisticday.DefaultStatus = usagestatisticdayDescStatus.Default.(uint8)
  975. usagestatistichourMixin := schema.UsageStatisticHour{}.Mixin()
  976. usagestatistichourMixinHooks2 := usagestatistichourMixin[2].Hooks()
  977. usagestatistichour.Hooks[0] = usagestatistichourMixinHooks2[0]
  978. usagestatistichourMixinInters2 := usagestatistichourMixin[2].Interceptors()
  979. usagestatistichour.Interceptors[0] = usagestatistichourMixinInters2[0]
  980. usagestatistichourMixinFields0 := usagestatistichourMixin[0].Fields()
  981. _ = usagestatistichourMixinFields0
  982. usagestatistichourMixinFields1 := usagestatistichourMixin[1].Fields()
  983. _ = usagestatistichourMixinFields1
  984. usagestatistichourFields := schema.UsageStatisticHour{}.Fields()
  985. _ = usagestatistichourFields
  986. // usagestatistichourDescCreatedAt is the schema descriptor for created_at field.
  987. usagestatistichourDescCreatedAt := usagestatistichourMixinFields0[1].Descriptor()
  988. // usagestatistichour.DefaultCreatedAt holds the default value on creation for the created_at field.
  989. usagestatistichour.DefaultCreatedAt = usagestatistichourDescCreatedAt.Default.(func() time.Time)
  990. // usagestatistichourDescUpdatedAt is the schema descriptor for updated_at field.
  991. usagestatistichourDescUpdatedAt := usagestatistichourMixinFields0[2].Descriptor()
  992. // usagestatistichour.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  993. usagestatistichour.DefaultUpdatedAt = usagestatistichourDescUpdatedAt.Default.(func() time.Time)
  994. // usagestatistichour.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  995. usagestatistichour.UpdateDefaultUpdatedAt = usagestatistichourDescUpdatedAt.UpdateDefault.(func() time.Time)
  996. // usagestatistichourDescStatus is the schema descriptor for status field.
  997. usagestatistichourDescStatus := usagestatistichourMixinFields1[0].Descriptor()
  998. // usagestatistichour.DefaultStatus holds the default value on creation for the status field.
  999. usagestatistichour.DefaultStatus = usagestatistichourDescStatus.Default.(uint8)
  1000. usagestatisticmonthMixin := schema.UsageStatisticMonth{}.Mixin()
  1001. usagestatisticmonthMixinHooks2 := usagestatisticmonthMixin[2].Hooks()
  1002. usagestatisticmonth.Hooks[0] = usagestatisticmonthMixinHooks2[0]
  1003. usagestatisticmonthMixinInters2 := usagestatisticmonthMixin[2].Interceptors()
  1004. usagestatisticmonth.Interceptors[0] = usagestatisticmonthMixinInters2[0]
  1005. usagestatisticmonthMixinFields0 := usagestatisticmonthMixin[0].Fields()
  1006. _ = usagestatisticmonthMixinFields0
  1007. usagestatisticmonthMixinFields1 := usagestatisticmonthMixin[1].Fields()
  1008. _ = usagestatisticmonthMixinFields1
  1009. usagestatisticmonthFields := schema.UsageStatisticMonth{}.Fields()
  1010. _ = usagestatisticmonthFields
  1011. // usagestatisticmonthDescCreatedAt is the schema descriptor for created_at field.
  1012. usagestatisticmonthDescCreatedAt := usagestatisticmonthMixinFields0[1].Descriptor()
  1013. // usagestatisticmonth.DefaultCreatedAt holds the default value on creation for the created_at field.
  1014. usagestatisticmonth.DefaultCreatedAt = usagestatisticmonthDescCreatedAt.Default.(func() time.Time)
  1015. // usagestatisticmonthDescUpdatedAt is the schema descriptor for updated_at field.
  1016. usagestatisticmonthDescUpdatedAt := usagestatisticmonthMixinFields0[2].Descriptor()
  1017. // usagestatisticmonth.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1018. usagestatisticmonth.DefaultUpdatedAt = usagestatisticmonthDescUpdatedAt.Default.(func() time.Time)
  1019. // usagestatisticmonth.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1020. usagestatisticmonth.UpdateDefaultUpdatedAt = usagestatisticmonthDescUpdatedAt.UpdateDefault.(func() time.Time)
  1021. // usagestatisticmonthDescStatus is the schema descriptor for status field.
  1022. usagestatisticmonthDescStatus := usagestatisticmonthMixinFields1[0].Descriptor()
  1023. // usagestatisticmonth.DefaultStatus holds the default value on creation for the status field.
  1024. usagestatisticmonth.DefaultStatus = usagestatisticmonthDescStatus.Default.(uint8)
  1025. usagetotalMixin := schema.UsageTotal{}.Mixin()
  1026. usagetotalMixinFields0 := usagetotalMixin[0].Fields()
  1027. _ = usagetotalMixinFields0
  1028. usagetotalMixinFields1 := usagetotalMixin[1].Fields()
  1029. _ = usagetotalMixinFields1
  1030. usagetotalFields := schema.UsageTotal{}.Fields()
  1031. _ = usagetotalFields
  1032. // usagetotalDescCreatedAt is the schema descriptor for created_at field.
  1033. usagetotalDescCreatedAt := usagetotalMixinFields0[1].Descriptor()
  1034. // usagetotal.DefaultCreatedAt holds the default value on creation for the created_at field.
  1035. usagetotal.DefaultCreatedAt = usagetotalDescCreatedAt.Default.(func() time.Time)
  1036. // usagetotalDescUpdatedAt is the schema descriptor for updated_at field.
  1037. usagetotalDescUpdatedAt := usagetotalMixinFields0[2].Descriptor()
  1038. // usagetotal.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1039. usagetotal.DefaultUpdatedAt = usagetotalDescUpdatedAt.Default.(func() time.Time)
  1040. // usagetotal.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1041. usagetotal.UpdateDefaultUpdatedAt = usagetotalDescUpdatedAt.UpdateDefault.(func() time.Time)
  1042. // usagetotalDescStatus is the schema descriptor for status field.
  1043. usagetotalDescStatus := usagetotalMixinFields1[0].Descriptor()
  1044. // usagetotal.DefaultStatus holds the default value on creation for the status field.
  1045. usagetotal.DefaultStatus = usagetotalDescStatus.Default.(uint8)
  1046. // usagetotalDescType is the schema descriptor for type field.
  1047. usagetotalDescType := usagetotalFields[0].Descriptor()
  1048. // usagetotal.DefaultType holds the default value on creation for the type field.
  1049. usagetotal.DefaultType = usagetotalDescType.Default.(int)
  1050. // usagetotalDescBotID is the schema descriptor for bot_id field.
  1051. usagetotalDescBotID := usagetotalFields[1].Descriptor()
  1052. // usagetotal.DefaultBotID holds the default value on creation for the bot_id field.
  1053. usagetotal.DefaultBotID = usagetotalDescBotID.Default.(string)
  1054. // usagetotalDescTotalTokens is the schema descriptor for total_tokens field.
  1055. usagetotalDescTotalTokens := usagetotalFields[2].Descriptor()
  1056. // usagetotal.DefaultTotalTokens holds the default value on creation for the total_tokens field.
  1057. usagetotal.DefaultTotalTokens = usagetotalDescTotalTokens.Default.(uint64)
  1058. // usagetotalDescStartIndex is the schema descriptor for start_index field.
  1059. usagetotalDescStartIndex := usagetotalFields[3].Descriptor()
  1060. // usagetotal.DefaultStartIndex holds the default value on creation for the start_index field.
  1061. usagetotal.DefaultStartIndex = usagetotalDescStartIndex.Default.(uint64)
  1062. // usagetotalDescEndIndex is the schema descriptor for end_index field.
  1063. usagetotalDescEndIndex := usagetotalFields[4].Descriptor()
  1064. // usagetotal.DefaultEndIndex holds the default value on creation for the end_index field.
  1065. usagetotal.DefaultEndIndex = usagetotalDescEndIndex.Default.(uint64)
  1066. // usagetotalDescOrganizationID is the schema descriptor for organization_id field.
  1067. usagetotalDescOrganizationID := usagetotalFields[5].Descriptor()
  1068. // usagetotal.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1069. usagetotal.DefaultOrganizationID = usagetotalDescOrganizationID.Default.(uint64)
  1070. workexperienceMixin := schema.WorkExperience{}.Mixin()
  1071. workexperienceMixinHooks1 := workexperienceMixin[1].Hooks()
  1072. workexperience.Hooks[0] = workexperienceMixinHooks1[0]
  1073. workexperienceMixinInters1 := workexperienceMixin[1].Interceptors()
  1074. workexperience.Interceptors[0] = workexperienceMixinInters1[0]
  1075. workexperienceMixinFields0 := workexperienceMixin[0].Fields()
  1076. _ = workexperienceMixinFields0
  1077. workexperienceFields := schema.WorkExperience{}.Fields()
  1078. _ = workexperienceFields
  1079. // workexperienceDescCreatedAt is the schema descriptor for created_at field.
  1080. workexperienceDescCreatedAt := workexperienceMixinFields0[1].Descriptor()
  1081. // workexperience.DefaultCreatedAt holds the default value on creation for the created_at field.
  1082. workexperience.DefaultCreatedAt = workexperienceDescCreatedAt.Default.(func() time.Time)
  1083. // workexperienceDescUpdatedAt is the schema descriptor for updated_at field.
  1084. workexperienceDescUpdatedAt := workexperienceMixinFields0[2].Descriptor()
  1085. // workexperience.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1086. workexperience.DefaultUpdatedAt = workexperienceDescUpdatedAt.Default.(func() time.Time)
  1087. // workexperience.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1088. workexperience.UpdateDefaultUpdatedAt = workexperienceDescUpdatedAt.UpdateDefault.(func() time.Time)
  1089. wpchatroomMixin := schema.WpChatroom{}.Mixin()
  1090. wpchatroomMixinFields0 := wpchatroomMixin[0].Fields()
  1091. _ = wpchatroomMixinFields0
  1092. wpchatroomMixinFields1 := wpchatroomMixin[1].Fields()
  1093. _ = wpchatroomMixinFields1
  1094. wpchatroomFields := schema.WpChatroom{}.Fields()
  1095. _ = wpchatroomFields
  1096. // wpchatroomDescCreatedAt is the schema descriptor for created_at field.
  1097. wpchatroomDescCreatedAt := wpchatroomMixinFields0[1].Descriptor()
  1098. // wpchatroom.DefaultCreatedAt holds the default value on creation for the created_at field.
  1099. wpchatroom.DefaultCreatedAt = wpchatroomDescCreatedAt.Default.(func() time.Time)
  1100. // wpchatroomDescUpdatedAt is the schema descriptor for updated_at field.
  1101. wpchatroomDescUpdatedAt := wpchatroomMixinFields0[2].Descriptor()
  1102. // wpchatroom.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1103. wpchatroom.DefaultUpdatedAt = wpchatroomDescUpdatedAt.Default.(func() time.Time)
  1104. // wpchatroom.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1105. wpchatroom.UpdateDefaultUpdatedAt = wpchatroomDescUpdatedAt.UpdateDefault.(func() time.Time)
  1106. // wpchatroomDescStatus is the schema descriptor for status field.
  1107. wpchatroomDescStatus := wpchatroomMixinFields1[0].Descriptor()
  1108. // wpchatroom.DefaultStatus holds the default value on creation for the status field.
  1109. wpchatroom.DefaultStatus = wpchatroomDescStatus.Default.(uint8)
  1110. // wpchatroomDescWxWxid is the schema descriptor for wx_wxid field.
  1111. wpchatroomDescWxWxid := wpchatroomFields[0].Descriptor()
  1112. // wpchatroom.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  1113. wpchatroom.DefaultWxWxid = wpchatroomDescWxWxid.Default.(string)
  1114. // wpchatroomDescChatroomID is the schema descriptor for chatroom_id field.
  1115. wpchatroomDescChatroomID := wpchatroomFields[1].Descriptor()
  1116. // wpchatroom.DefaultChatroomID holds the default value on creation for the chatroom_id field.
  1117. wpchatroom.DefaultChatroomID = wpchatroomDescChatroomID.Default.(string)
  1118. // wpchatroomDescNickname is the schema descriptor for nickname field.
  1119. wpchatroomDescNickname := wpchatroomFields[2].Descriptor()
  1120. // wpchatroom.DefaultNickname holds the default value on creation for the nickname field.
  1121. wpchatroom.DefaultNickname = wpchatroomDescNickname.Default.(string)
  1122. // wpchatroomDescOwner is the schema descriptor for owner field.
  1123. wpchatroomDescOwner := wpchatroomFields[3].Descriptor()
  1124. // wpchatroom.DefaultOwner holds the default value on creation for the owner field.
  1125. wpchatroom.DefaultOwner = wpchatroomDescOwner.Default.(string)
  1126. // wpchatroomDescAvatar is the schema descriptor for avatar field.
  1127. wpchatroomDescAvatar := wpchatroomFields[4].Descriptor()
  1128. // wpchatroom.DefaultAvatar holds the default value on creation for the avatar field.
  1129. wpchatroom.DefaultAvatar = wpchatroomDescAvatar.Default.(string)
  1130. wpchatroommemberMixin := schema.WpChatroomMember{}.Mixin()
  1131. wpchatroommemberMixinFields0 := wpchatroommemberMixin[0].Fields()
  1132. _ = wpchatroommemberMixinFields0
  1133. wpchatroommemberMixinFields1 := wpchatroommemberMixin[1].Fields()
  1134. _ = wpchatroommemberMixinFields1
  1135. wpchatroommemberFields := schema.WpChatroomMember{}.Fields()
  1136. _ = wpchatroommemberFields
  1137. // wpchatroommemberDescCreatedAt is the schema descriptor for created_at field.
  1138. wpchatroommemberDescCreatedAt := wpchatroommemberMixinFields0[1].Descriptor()
  1139. // wpchatroommember.DefaultCreatedAt holds the default value on creation for the created_at field.
  1140. wpchatroommember.DefaultCreatedAt = wpchatroommemberDescCreatedAt.Default.(func() time.Time)
  1141. // wpchatroommemberDescUpdatedAt is the schema descriptor for updated_at field.
  1142. wpchatroommemberDescUpdatedAt := wpchatroommemberMixinFields0[2].Descriptor()
  1143. // wpchatroommember.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1144. wpchatroommember.DefaultUpdatedAt = wpchatroommemberDescUpdatedAt.Default.(func() time.Time)
  1145. // wpchatroommember.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1146. wpchatroommember.UpdateDefaultUpdatedAt = wpchatroommemberDescUpdatedAt.UpdateDefault.(func() time.Time)
  1147. // wpchatroommemberDescStatus is the schema descriptor for status field.
  1148. wpchatroommemberDescStatus := wpchatroommemberMixinFields1[0].Descriptor()
  1149. // wpchatroommember.DefaultStatus holds the default value on creation for the status field.
  1150. wpchatroommember.DefaultStatus = wpchatroommemberDescStatus.Default.(uint8)
  1151. // wpchatroommemberDescWxWxid is the schema descriptor for wx_wxid field.
  1152. wpchatroommemberDescWxWxid := wpchatroommemberFields[0].Descriptor()
  1153. // wpchatroommember.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  1154. wpchatroommember.DefaultWxWxid = wpchatroommemberDescWxWxid.Default.(string)
  1155. // wpchatroommemberDescWxid is the schema descriptor for wxid field.
  1156. wpchatroommemberDescWxid := wpchatroommemberFields[1].Descriptor()
  1157. // wpchatroommember.DefaultWxid holds the default value on creation for the wxid field.
  1158. wpchatroommember.DefaultWxid = wpchatroommemberDescWxid.Default.(string)
  1159. // wpchatroommemberDescNickname is the schema descriptor for nickname field.
  1160. wpchatroommemberDescNickname := wpchatroommemberFields[2].Descriptor()
  1161. // wpchatroommember.DefaultNickname holds the default value on creation for the nickname field.
  1162. wpchatroommember.DefaultNickname = wpchatroommemberDescNickname.Default.(string)
  1163. // wpchatroommemberDescAvatar is the schema descriptor for avatar field.
  1164. wpchatroommemberDescAvatar := wpchatroommemberFields[3].Descriptor()
  1165. // wpchatroommember.DefaultAvatar holds the default value on creation for the avatar field.
  1166. wpchatroommember.DefaultAvatar = wpchatroommemberDescAvatar.Default.(string)
  1167. wxMixin := schema.Wx{}.Mixin()
  1168. wxMixinHooks2 := wxMixin[2].Hooks()
  1169. wx.Hooks[0] = wxMixinHooks2[0]
  1170. wxMixinInters2 := wxMixin[2].Interceptors()
  1171. wx.Interceptors[0] = wxMixinInters2[0]
  1172. wxMixinFields0 := wxMixin[0].Fields()
  1173. _ = wxMixinFields0
  1174. wxMixinFields1 := wxMixin[1].Fields()
  1175. _ = wxMixinFields1
  1176. wxFields := schema.Wx{}.Fields()
  1177. _ = wxFields
  1178. // wxDescCreatedAt is the schema descriptor for created_at field.
  1179. wxDescCreatedAt := wxMixinFields0[1].Descriptor()
  1180. // wx.DefaultCreatedAt holds the default value on creation for the created_at field.
  1181. wx.DefaultCreatedAt = wxDescCreatedAt.Default.(func() time.Time)
  1182. // wxDescUpdatedAt is the schema descriptor for updated_at field.
  1183. wxDescUpdatedAt := wxMixinFields0[2].Descriptor()
  1184. // wx.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1185. wx.DefaultUpdatedAt = wxDescUpdatedAt.Default.(func() time.Time)
  1186. // wx.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1187. wx.UpdateDefaultUpdatedAt = wxDescUpdatedAt.UpdateDefault.(func() time.Time)
  1188. // wxDescStatus is the schema descriptor for status field.
  1189. wxDescStatus := wxMixinFields1[0].Descriptor()
  1190. // wx.DefaultStatus holds the default value on creation for the status field.
  1191. wx.DefaultStatus = wxDescStatus.Default.(uint8)
  1192. // wxDescServerID is the schema descriptor for server_id field.
  1193. wxDescServerID := wxFields[0].Descriptor()
  1194. // wx.DefaultServerID holds the default value on creation for the server_id field.
  1195. wx.DefaultServerID = wxDescServerID.Default.(uint64)
  1196. // wxDescPort is the schema descriptor for port field.
  1197. wxDescPort := wxFields[1].Descriptor()
  1198. // wx.DefaultPort holds the default value on creation for the port field.
  1199. wx.DefaultPort = wxDescPort.Default.(string)
  1200. // wxDescProcessID is the schema descriptor for process_id field.
  1201. wxDescProcessID := wxFields[2].Descriptor()
  1202. // wx.DefaultProcessID holds the default value on creation for the process_id field.
  1203. wx.DefaultProcessID = wxDescProcessID.Default.(string)
  1204. // wxDescCallback is the schema descriptor for callback field.
  1205. wxDescCallback := wxFields[3].Descriptor()
  1206. // wx.DefaultCallback holds the default value on creation for the callback field.
  1207. wx.DefaultCallback = wxDescCallback.Default.(string)
  1208. // wxDescWxid is the schema descriptor for wxid field.
  1209. wxDescWxid := wxFields[4].Descriptor()
  1210. // wx.DefaultWxid holds the default value on creation for the wxid field.
  1211. wx.DefaultWxid = wxDescWxid.Default.(string)
  1212. // wxDescAccount is the schema descriptor for account field.
  1213. wxDescAccount := wxFields[5].Descriptor()
  1214. // wx.DefaultAccount holds the default value on creation for the account field.
  1215. wx.DefaultAccount = wxDescAccount.Default.(string)
  1216. // wxDescNickname is the schema descriptor for nickname field.
  1217. wxDescNickname := wxFields[6].Descriptor()
  1218. // wx.DefaultNickname holds the default value on creation for the nickname field.
  1219. wx.DefaultNickname = wxDescNickname.Default.(string)
  1220. // wxDescTel is the schema descriptor for tel field.
  1221. wxDescTel := wxFields[7].Descriptor()
  1222. // wx.DefaultTel holds the default value on creation for the tel field.
  1223. wx.DefaultTel = wxDescTel.Default.(string)
  1224. // wxDescHeadBig is the schema descriptor for head_big field.
  1225. wxDescHeadBig := wxFields[8].Descriptor()
  1226. // wx.DefaultHeadBig holds the default value on creation for the head_big field.
  1227. wx.DefaultHeadBig = wxDescHeadBig.Default.(string)
  1228. // wxDescOrganizationID is the schema descriptor for organization_id field.
  1229. wxDescOrganizationID := wxFields[9].Descriptor()
  1230. // wx.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1231. wx.DefaultOrganizationID = wxDescOrganizationID.Default.(uint64)
  1232. // wxDescAgentID is the schema descriptor for agent_id field.
  1233. wxDescAgentID := wxFields[10].Descriptor()
  1234. // wx.DefaultAgentID holds the default value on creation for the agent_id field.
  1235. wx.DefaultAgentID = wxDescAgentID.Default.(uint64)
  1236. // wxDescAPIBase is the schema descriptor for api_base field.
  1237. wxDescAPIBase := wxFields[11].Descriptor()
  1238. // wx.DefaultAPIBase holds the default value on creation for the api_base field.
  1239. wx.DefaultAPIBase = wxDescAPIBase.Default.(string)
  1240. // wxDescAPIKey is the schema descriptor for api_key field.
  1241. wxDescAPIKey := wxFields[12].Descriptor()
  1242. // wx.DefaultAPIKey holds the default value on creation for the api_key field.
  1243. wx.DefaultAPIKey = wxDescAPIKey.Default.(string)
  1244. wxcardMixin := schema.WxCard{}.Mixin()
  1245. wxcardMixinHooks1 := wxcardMixin[1].Hooks()
  1246. wxcard.Hooks[0] = wxcardMixinHooks1[0]
  1247. wxcardMixinInters1 := wxcardMixin[1].Interceptors()
  1248. wxcard.Interceptors[0] = wxcardMixinInters1[0]
  1249. wxcardMixinFields0 := wxcardMixin[0].Fields()
  1250. _ = wxcardMixinFields0
  1251. wxcardFields := schema.WxCard{}.Fields()
  1252. _ = wxcardFields
  1253. // wxcardDescCreatedAt is the schema descriptor for created_at field.
  1254. wxcardDescCreatedAt := wxcardMixinFields0[1].Descriptor()
  1255. // wxcard.DefaultCreatedAt holds the default value on creation for the created_at field.
  1256. wxcard.DefaultCreatedAt = wxcardDescCreatedAt.Default.(func() time.Time)
  1257. // wxcardDescUpdatedAt is the schema descriptor for updated_at field.
  1258. wxcardDescUpdatedAt := wxcardMixinFields0[2].Descriptor()
  1259. // wxcard.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1260. wxcard.DefaultUpdatedAt = wxcardDescUpdatedAt.Default.(func() time.Time)
  1261. // wxcard.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1262. wxcard.UpdateDefaultUpdatedAt = wxcardDescUpdatedAt.UpdateDefault.(func() time.Time)
  1263. // wxcardDescUserID is the schema descriptor for user_id field.
  1264. wxcardDescUserID := wxcardFields[0].Descriptor()
  1265. // wxcard.DefaultUserID holds the default value on creation for the user_id field.
  1266. wxcard.DefaultUserID = wxcardDescUserID.Default.(uint64)
  1267. // wxcardDescWxUserID is the schema descriptor for wx_user_id field.
  1268. wxcardDescWxUserID := wxcardFields[1].Descriptor()
  1269. // wxcard.DefaultWxUserID holds the default value on creation for the wx_user_id field.
  1270. wxcard.DefaultWxUserID = wxcardDescWxUserID.Default.(uint64)
  1271. // wxcardDescAvatar is the schema descriptor for avatar field.
  1272. wxcardDescAvatar := wxcardFields[2].Descriptor()
  1273. // wxcard.DefaultAvatar holds the default value on creation for the avatar field.
  1274. wxcard.DefaultAvatar = wxcardDescAvatar.Default.(string)
  1275. // wxcardDescLogo is the schema descriptor for logo field.
  1276. wxcardDescLogo := wxcardFields[3].Descriptor()
  1277. // wxcard.DefaultLogo holds the default value on creation for the logo field.
  1278. wxcard.DefaultLogo = wxcardDescLogo.Default.(string)
  1279. // wxcardDescName is the schema descriptor for name field.
  1280. wxcardDescName := wxcardFields[4].Descriptor()
  1281. // wxcard.DefaultName holds the default value on creation for the name field.
  1282. wxcard.DefaultName = wxcardDescName.Default.(string)
  1283. // wxcardDescCompany is the schema descriptor for company field.
  1284. wxcardDescCompany := wxcardFields[5].Descriptor()
  1285. // wxcard.DefaultCompany holds the default value on creation for the company field.
  1286. wxcard.DefaultCompany = wxcardDescCompany.Default.(string)
  1287. // wxcardDescAddress is the schema descriptor for address field.
  1288. wxcardDescAddress := wxcardFields[6].Descriptor()
  1289. // wxcard.DefaultAddress holds the default value on creation for the address field.
  1290. wxcard.DefaultAddress = wxcardDescAddress.Default.(string)
  1291. // wxcardDescPhone is the schema descriptor for phone field.
  1292. wxcardDescPhone := wxcardFields[7].Descriptor()
  1293. // wxcard.DefaultPhone holds the default value on creation for the phone field.
  1294. wxcard.DefaultPhone = wxcardDescPhone.Default.(string)
  1295. // wxcardDescOfficialAccount is the schema descriptor for official_account field.
  1296. wxcardDescOfficialAccount := wxcardFields[8].Descriptor()
  1297. // wxcard.DefaultOfficialAccount holds the default value on creation for the official_account field.
  1298. wxcard.DefaultOfficialAccount = wxcardDescOfficialAccount.Default.(string)
  1299. // wxcardDescWechatAccount is the schema descriptor for wechat_account field.
  1300. wxcardDescWechatAccount := wxcardFields[9].Descriptor()
  1301. // wxcard.DefaultWechatAccount holds the default value on creation for the wechat_account field.
  1302. wxcard.DefaultWechatAccount = wxcardDescWechatAccount.Default.(string)
  1303. // wxcardDescEmail is the schema descriptor for email field.
  1304. wxcardDescEmail := wxcardFields[10].Descriptor()
  1305. // wxcard.DefaultEmail holds the default value on creation for the email field.
  1306. wxcard.DefaultEmail = wxcardDescEmail.Default.(string)
  1307. // wxcardDescIntro is the schema descriptor for intro field.
  1308. wxcardDescIntro := wxcardFields[14].Descriptor()
  1309. // wxcard.DefaultIntro holds the default value on creation for the intro field.
  1310. wxcard.DefaultIntro = wxcardDescIntro.Default.(string)
  1311. wxcarduserMixin := schema.WxCardUser{}.Mixin()
  1312. wxcarduserMixinHooks1 := wxcarduserMixin[1].Hooks()
  1313. wxcarduser.Hooks[0] = wxcarduserMixinHooks1[0]
  1314. wxcarduserMixinInters1 := wxcarduserMixin[1].Interceptors()
  1315. wxcarduser.Interceptors[0] = wxcarduserMixinInters1[0]
  1316. wxcarduserMixinFields0 := wxcarduserMixin[0].Fields()
  1317. _ = wxcarduserMixinFields0
  1318. wxcarduserFields := schema.WxCardUser{}.Fields()
  1319. _ = wxcarduserFields
  1320. // wxcarduserDescCreatedAt is the schema descriptor for created_at field.
  1321. wxcarduserDescCreatedAt := wxcarduserMixinFields0[1].Descriptor()
  1322. // wxcarduser.DefaultCreatedAt holds the default value on creation for the created_at field.
  1323. wxcarduser.DefaultCreatedAt = wxcarduserDescCreatedAt.Default.(func() time.Time)
  1324. // wxcarduserDescUpdatedAt is the schema descriptor for updated_at field.
  1325. wxcarduserDescUpdatedAt := wxcarduserMixinFields0[2].Descriptor()
  1326. // wxcarduser.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1327. wxcarduser.DefaultUpdatedAt = wxcarduserDescUpdatedAt.Default.(func() time.Time)
  1328. // wxcarduser.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1329. wxcarduser.UpdateDefaultUpdatedAt = wxcarduserDescUpdatedAt.UpdateDefault.(func() time.Time)
  1330. // wxcarduserDescWxid is the schema descriptor for wxid field.
  1331. wxcarduserDescWxid := wxcarduserFields[0].Descriptor()
  1332. // wxcarduser.DefaultWxid holds the default value on creation for the wxid field.
  1333. wxcarduser.DefaultWxid = wxcarduserDescWxid.Default.(string)
  1334. // wxcarduserDescAccount is the schema descriptor for account field.
  1335. wxcarduserDescAccount := wxcarduserFields[1].Descriptor()
  1336. // wxcarduser.DefaultAccount holds the default value on creation for the account field.
  1337. wxcarduser.DefaultAccount = wxcarduserDescAccount.Default.(string)
  1338. // wxcarduserDescAvatar is the schema descriptor for avatar field.
  1339. wxcarduserDescAvatar := wxcarduserFields[2].Descriptor()
  1340. // wxcarduser.DefaultAvatar holds the default value on creation for the avatar field.
  1341. wxcarduser.DefaultAvatar = wxcarduserDescAvatar.Default.(string)
  1342. // wxcarduserDescNickname is the schema descriptor for nickname field.
  1343. wxcarduserDescNickname := wxcarduserFields[3].Descriptor()
  1344. // wxcarduser.DefaultNickname holds the default value on creation for the nickname field.
  1345. wxcarduser.DefaultNickname = wxcarduserDescNickname.Default.(string)
  1346. // wxcarduserDescRemark is the schema descriptor for remark field.
  1347. wxcarduserDescRemark := wxcarduserFields[4].Descriptor()
  1348. // wxcarduser.DefaultRemark holds the default value on creation for the remark field.
  1349. wxcarduser.DefaultRemark = wxcarduserDescRemark.Default.(string)
  1350. // wxcarduserDescPhone is the schema descriptor for phone field.
  1351. wxcarduserDescPhone := wxcarduserFields[5].Descriptor()
  1352. // wxcarduser.DefaultPhone holds the default value on creation for the phone field.
  1353. wxcarduser.DefaultPhone = wxcarduserDescPhone.Default.(string)
  1354. // wxcarduserDescOpenID is the schema descriptor for open_id field.
  1355. wxcarduserDescOpenID := wxcarduserFields[6].Descriptor()
  1356. // wxcarduser.DefaultOpenID holds the default value on creation for the open_id field.
  1357. wxcarduser.DefaultOpenID = wxcarduserDescOpenID.Default.(string)
  1358. // wxcarduserDescUnionID is the schema descriptor for union_id field.
  1359. wxcarduserDescUnionID := wxcarduserFields[7].Descriptor()
  1360. // wxcarduser.DefaultUnionID holds the default value on creation for the union_id field.
  1361. wxcarduser.DefaultUnionID = wxcarduserDescUnionID.Default.(string)
  1362. // wxcarduserDescSessionKey is the schema descriptor for session_key field.
  1363. wxcarduserDescSessionKey := wxcarduserFields[8].Descriptor()
  1364. // wxcarduser.DefaultSessionKey holds the default value on creation for the session_key field.
  1365. wxcarduser.DefaultSessionKey = wxcarduserDescSessionKey.Default.(string)
  1366. // wxcarduserDescIsVip is the schema descriptor for is_vip field.
  1367. wxcarduserDescIsVip := wxcarduserFields[9].Descriptor()
  1368. // wxcarduser.DefaultIsVip holds the default value on creation for the is_vip field.
  1369. wxcarduser.DefaultIsVip = wxcarduserDescIsVip.Default.(int)
  1370. wxcardvisitMixin := schema.WxCardVisit{}.Mixin()
  1371. wxcardvisitMixinHooks1 := wxcardvisitMixin[1].Hooks()
  1372. wxcardvisit.Hooks[0] = wxcardvisitMixinHooks1[0]
  1373. wxcardvisitMixinInters1 := wxcardvisitMixin[1].Interceptors()
  1374. wxcardvisit.Interceptors[0] = wxcardvisitMixinInters1[0]
  1375. wxcardvisitMixinFields0 := wxcardvisitMixin[0].Fields()
  1376. _ = wxcardvisitMixinFields0
  1377. wxcardvisitFields := schema.WxCardVisit{}.Fields()
  1378. _ = wxcardvisitFields
  1379. // wxcardvisitDescCreatedAt is the schema descriptor for created_at field.
  1380. wxcardvisitDescCreatedAt := wxcardvisitMixinFields0[1].Descriptor()
  1381. // wxcardvisit.DefaultCreatedAt holds the default value on creation for the created_at field.
  1382. wxcardvisit.DefaultCreatedAt = wxcardvisitDescCreatedAt.Default.(func() time.Time)
  1383. // wxcardvisitDescUpdatedAt is the schema descriptor for updated_at field.
  1384. wxcardvisitDescUpdatedAt := wxcardvisitMixinFields0[2].Descriptor()
  1385. // wxcardvisit.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1386. wxcardvisit.DefaultUpdatedAt = wxcardvisitDescUpdatedAt.Default.(func() time.Time)
  1387. // wxcardvisit.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1388. wxcardvisit.UpdateDefaultUpdatedAt = wxcardvisitDescUpdatedAt.UpdateDefault.(func() time.Time)
  1389. // wxcardvisitDescUserID is the schema descriptor for user_id field.
  1390. wxcardvisitDescUserID := wxcardvisitFields[0].Descriptor()
  1391. // wxcardvisit.DefaultUserID holds the default value on creation for the user_id field.
  1392. wxcardvisit.DefaultUserID = wxcardvisitDescUserID.Default.(uint64)
  1393. // wxcardvisitDescBotID is the schema descriptor for bot_id field.
  1394. wxcardvisitDescBotID := wxcardvisitFields[1].Descriptor()
  1395. // wxcardvisit.DefaultBotID holds the default value on creation for the bot_id field.
  1396. wxcardvisit.DefaultBotID = wxcardvisitDescBotID.Default.(uint64)
  1397. // wxcardvisitDescBotType is the schema descriptor for bot_type field.
  1398. wxcardvisitDescBotType := wxcardvisitFields[2].Descriptor()
  1399. // wxcardvisit.DefaultBotType holds the default value on creation for the bot_type field.
  1400. wxcardvisit.DefaultBotType = wxcardvisitDescBotType.Default.(uint8)
  1401. }
  1402. const (
  1403. Version = "v0.13.1" // Version of ent codegen.
  1404. Sum = "h1:uD8QwN1h6SNphdCCzmkMN3feSUzNnVvV/WIkHKMbzOE=" // Sum of ent codegen.
  1405. )