runtime.go 125 KB

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