runtime.go 129 KB

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