runtime.go 147 KB

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