runtime.go 123 KB

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