runtime.go 134 KB

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