runtime.go 136 KB

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