runtime.go 111 KB

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