runtime.go 139 KB

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