runtime.go 121 KB

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