runtime.go 132 KB

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