runtime.go 128 KB

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