runtime.go 127 KB

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