runtime.go 127 KB

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