runtime.go 90 KB

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