runtime.go 89 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369
  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/batchmsg"
  9. "wechat-api/ent/category"
  10. "wechat-api/ent/chatrecords"
  11. "wechat-api/ent/chatsession"
  12. "wechat-api/ent/contact"
  13. "wechat-api/ent/employee"
  14. "wechat-api/ent/employeeconfig"
  15. "wechat-api/ent/label"
  16. "wechat-api/ent/labelrelationship"
  17. "wechat-api/ent/labeltagging"
  18. "wechat-api/ent/message"
  19. "wechat-api/ent/messagerecords"
  20. "wechat-api/ent/msg"
  21. "wechat-api/ent/schema"
  22. "wechat-api/ent/server"
  23. "wechat-api/ent/sopnode"
  24. "wechat-api/ent/sopstage"
  25. "wechat-api/ent/soptask"
  26. "wechat-api/ent/token"
  27. "wechat-api/ent/tutorial"
  28. "wechat-api/ent/usagedetail"
  29. "wechat-api/ent/usagetotal"
  30. "wechat-api/ent/workexperience"
  31. "wechat-api/ent/wpchatroom"
  32. "wechat-api/ent/wpchatroommember"
  33. "wechat-api/ent/wx"
  34. "wechat-api/ent/wxcard"
  35. "wechat-api/ent/wxcarduser"
  36. "wechat-api/ent/wxcardvisit"
  37. )
  38. // The init function reads all schema descriptors with runtime code
  39. // (default values, validators, hooks and policies) and stitches it
  40. // to their package variables.
  41. func init() {
  42. agentMixin := schema.Agent{}.Mixin()
  43. agentMixinHooks1 := agentMixin[1].Hooks()
  44. agent.Hooks[0] = agentMixinHooks1[0]
  45. agentMixinInters1 := agentMixin[1].Interceptors()
  46. agent.Interceptors[0] = agentMixinInters1[0]
  47. agentMixinFields0 := agentMixin[0].Fields()
  48. _ = agentMixinFields0
  49. agentFields := schema.Agent{}.Fields()
  50. _ = agentFields
  51. // agentDescCreatedAt is the schema descriptor for created_at field.
  52. agentDescCreatedAt := agentMixinFields0[1].Descriptor()
  53. // agent.DefaultCreatedAt holds the default value on creation for the created_at field.
  54. agent.DefaultCreatedAt = agentDescCreatedAt.Default.(func() time.Time)
  55. // agentDescUpdatedAt is the schema descriptor for updated_at field.
  56. agentDescUpdatedAt := agentMixinFields0[2].Descriptor()
  57. // agent.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  58. agent.DefaultUpdatedAt = agentDescUpdatedAt.Default.(func() time.Time)
  59. // agent.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  60. agent.UpdateDefaultUpdatedAt = agentDescUpdatedAt.UpdateDefault.(func() time.Time)
  61. // agentDescName is the schema descriptor for name field.
  62. agentDescName := agentFields[0].Descriptor()
  63. // agent.NameValidator is a validator for the "name" field. It is called by the builders before save.
  64. agent.NameValidator = agentDescName.Validators[0].(func(string) error)
  65. // agentDescStatus is the schema descriptor for status field.
  66. agentDescStatus := agentFields[2].Descriptor()
  67. // agent.DefaultStatus holds the default value on creation for the status field.
  68. agent.DefaultStatus = agentDescStatus.Default.(int)
  69. // agent.StatusValidator is a validator for the "status" field. It is called by the builders before save.
  70. agent.StatusValidator = agentDescStatus.Validators[0].(func(int) error)
  71. // agentDescBackground is the schema descriptor for background field.
  72. agentDescBackground := agentFields[3].Descriptor()
  73. // agent.DefaultBackground holds the default value on creation for the background field.
  74. agent.DefaultBackground = agentDescBackground.Default.(string)
  75. // agentDescExamples is the schema descriptor for examples field.
  76. agentDescExamples := agentFields[4].Descriptor()
  77. // agent.DefaultExamples holds the default value on creation for the examples field.
  78. agent.DefaultExamples = agentDescExamples.Default.(string)
  79. // agentDescOrganizationID is the schema descriptor for organization_id field.
  80. agentDescOrganizationID := agentFields[5].Descriptor()
  81. // agent.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  82. agent.OrganizationIDValidator = agentDescOrganizationID.Validators[0].(func(uint64) error)
  83. // agentDescDatasetID is the schema descriptor for dataset_id field.
  84. agentDescDatasetID := agentFields[6].Descriptor()
  85. // agent.DefaultDatasetID holds the default value on creation for the dataset_id field.
  86. agent.DefaultDatasetID = agentDescDatasetID.Default.(string)
  87. // agent.DatasetIDValidator is a validator for the "dataset_id" field. It is called by the builders before save.
  88. agent.DatasetIDValidator = agentDescDatasetID.Validators[0].(func(string) error)
  89. // agentDescCollectionID is the schema descriptor for collection_id field.
  90. agentDescCollectionID := agentFields[7].Descriptor()
  91. // agent.DefaultCollectionID holds the default value on creation for the collection_id field.
  92. agent.DefaultCollectionID = agentDescCollectionID.Default.(string)
  93. // agent.CollectionIDValidator is a validator for the "collection_id" field. It is called by the builders before save.
  94. agent.CollectionIDValidator = agentDescCollectionID.Validators[0].(func(string) error)
  95. agentbaseFields := schema.AgentBase{}.Fields()
  96. _ = agentbaseFields
  97. // agentbaseDescQ is the schema descriptor for q field.
  98. agentbaseDescQ := agentbaseFields[1].Descriptor()
  99. // agentbase.DefaultQ holds the default value on creation for the q field.
  100. agentbase.DefaultQ = agentbaseDescQ.Default.(string)
  101. // agentbaseDescA is the schema descriptor for a field.
  102. agentbaseDescA := agentbaseFields[2].Descriptor()
  103. // agentbase.DefaultA holds the default value on creation for the a field.
  104. agentbase.DefaultA = agentbaseDescA.Default.(string)
  105. // agentbaseDescChunkIndex is the schema descriptor for chunk_index field.
  106. agentbaseDescChunkIndex := agentbaseFields[3].Descriptor()
  107. // agentbase.ChunkIndexValidator is a validator for the "chunk_index" field. It is called by the builders before save.
  108. agentbase.ChunkIndexValidator = agentbaseDescChunkIndex.Validators[0].(func(uint64) error)
  109. // agentbaseDescDatasetID is the schema descriptor for dataset_id field.
  110. agentbaseDescDatasetID := agentbaseFields[5].Descriptor()
  111. // agentbase.DefaultDatasetID holds the default value on creation for the dataset_id field.
  112. agentbase.DefaultDatasetID = agentbaseDescDatasetID.Default.(string)
  113. // agentbaseDescCollectionID is the schema descriptor for collection_id field.
  114. agentbaseDescCollectionID := agentbaseFields[6].Descriptor()
  115. // agentbase.DefaultCollectionID holds the default value on creation for the collection_id field.
  116. agentbase.DefaultCollectionID = agentbaseDescCollectionID.Default.(string)
  117. // agentbaseDescSourceName is the schema descriptor for source_name field.
  118. agentbaseDescSourceName := agentbaseFields[7].Descriptor()
  119. // agentbase.DefaultSourceName holds the default value on creation for the source_name field.
  120. agentbase.DefaultSourceName = agentbaseDescSourceName.Default.(string)
  121. aliyunavatarMixin := schema.AliyunAvatar{}.Mixin()
  122. aliyunavatarMixinHooks1 := aliyunavatarMixin[1].Hooks()
  123. aliyunavatar.Hooks[0] = aliyunavatarMixinHooks1[0]
  124. aliyunavatarMixinInters1 := aliyunavatarMixin[1].Interceptors()
  125. aliyunavatar.Interceptors[0] = aliyunavatarMixinInters1[0]
  126. aliyunavatarMixinFields0 := aliyunavatarMixin[0].Fields()
  127. _ = aliyunavatarMixinFields0
  128. aliyunavatarFields := schema.AliyunAvatar{}.Fields()
  129. _ = aliyunavatarFields
  130. // aliyunavatarDescCreatedAt is the schema descriptor for created_at field.
  131. aliyunavatarDescCreatedAt := aliyunavatarMixinFields0[1].Descriptor()
  132. // aliyunavatar.DefaultCreatedAt holds the default value on creation for the created_at field.
  133. aliyunavatar.DefaultCreatedAt = aliyunavatarDescCreatedAt.Default.(func() time.Time)
  134. // aliyunavatarDescUpdatedAt is the schema descriptor for updated_at field.
  135. aliyunavatarDescUpdatedAt := aliyunavatarMixinFields0[2].Descriptor()
  136. // aliyunavatar.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  137. aliyunavatar.DefaultUpdatedAt = aliyunavatarDescUpdatedAt.Default.(func() time.Time)
  138. // aliyunavatar.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  139. aliyunavatar.UpdateDefaultUpdatedAt = aliyunavatarDescUpdatedAt.UpdateDefault.(func() time.Time)
  140. // aliyunavatarDescToken is the schema descriptor for token field.
  141. aliyunavatarDescToken := aliyunavatarFields[7].Descriptor()
  142. // aliyunavatar.DefaultToken holds the default value on creation for the token field.
  143. aliyunavatar.DefaultToken = aliyunavatarDescToken.Default.(string)
  144. // aliyunavatarDescSessionID is the schema descriptor for session_id field.
  145. aliyunavatarDescSessionID := aliyunavatarFields[8].Descriptor()
  146. // aliyunavatar.DefaultSessionID holds the default value on creation for the session_id field.
  147. aliyunavatar.DefaultSessionID = aliyunavatarDescSessionID.Default.(string)
  148. batchmsgMixin := schema.BatchMsg{}.Mixin()
  149. batchmsgMixinHooks1 := batchmsgMixin[1].Hooks()
  150. batchmsg.Hooks[0] = batchmsgMixinHooks1[0]
  151. batchmsgMixinInters1 := batchmsgMixin[1].Interceptors()
  152. batchmsg.Interceptors[0] = batchmsgMixinInters1[0]
  153. batchmsgMixinFields0 := batchmsgMixin[0].Fields()
  154. _ = batchmsgMixinFields0
  155. batchmsgFields := schema.BatchMsg{}.Fields()
  156. _ = batchmsgFields
  157. // batchmsgDescCreatedAt is the schema descriptor for created_at field.
  158. batchmsgDescCreatedAt := batchmsgMixinFields0[1].Descriptor()
  159. // batchmsg.DefaultCreatedAt holds the default value on creation for the created_at field.
  160. batchmsg.DefaultCreatedAt = batchmsgDescCreatedAt.Default.(func() time.Time)
  161. // batchmsgDescUpdatedAt is the schema descriptor for updated_at field.
  162. batchmsgDescUpdatedAt := batchmsgMixinFields0[2].Descriptor()
  163. // batchmsg.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  164. batchmsg.DefaultUpdatedAt = batchmsgDescUpdatedAt.Default.(func() time.Time)
  165. // batchmsg.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  166. batchmsg.UpdateDefaultUpdatedAt = batchmsgDescUpdatedAt.UpdateDefault.(func() time.Time)
  167. // batchmsgDescTaskName is the schema descriptor for task_name field.
  168. batchmsgDescTaskName := batchmsgFields[2].Descriptor()
  169. // batchmsg.DefaultTaskName holds the default value on creation for the task_name field.
  170. batchmsg.DefaultTaskName = batchmsgDescTaskName.Default.(string)
  171. // batchmsgDescOrganizationID is the schema descriptor for organization_id field.
  172. batchmsgDescOrganizationID := batchmsgFields[14].Descriptor()
  173. // batchmsg.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  174. batchmsg.OrganizationIDValidator = batchmsgDescOrganizationID.Validators[0].(func(uint64) error)
  175. categoryMixin := schema.Category{}.Mixin()
  176. categoryMixinHooks1 := categoryMixin[1].Hooks()
  177. category.Hooks[0] = categoryMixinHooks1[0]
  178. categoryMixinInters1 := categoryMixin[1].Interceptors()
  179. category.Interceptors[0] = categoryMixinInters1[0]
  180. categoryMixinFields0 := categoryMixin[0].Fields()
  181. _ = categoryMixinFields0
  182. categoryFields := schema.Category{}.Fields()
  183. _ = categoryFields
  184. // categoryDescCreatedAt is the schema descriptor for created_at field.
  185. categoryDescCreatedAt := categoryMixinFields0[1].Descriptor()
  186. // category.DefaultCreatedAt holds the default value on creation for the created_at field.
  187. category.DefaultCreatedAt = categoryDescCreatedAt.Default.(func() time.Time)
  188. // categoryDescUpdatedAt is the schema descriptor for updated_at field.
  189. categoryDescUpdatedAt := categoryMixinFields0[2].Descriptor()
  190. // category.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  191. category.DefaultUpdatedAt = categoryDescUpdatedAt.Default.(func() time.Time)
  192. // category.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  193. category.UpdateDefaultUpdatedAt = categoryDescUpdatedAt.UpdateDefault.(func() time.Time)
  194. // categoryDescName is the schema descriptor for name field.
  195. categoryDescName := categoryFields[0].Descriptor()
  196. // category.NameValidator is a validator for the "name" field. It is called by the builders before save.
  197. category.NameValidator = categoryDescName.Validators[0].(func(string) error)
  198. // categoryDescOrganizationID is the schema descriptor for organization_id field.
  199. categoryDescOrganizationID := categoryFields[1].Descriptor()
  200. // category.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  201. category.OrganizationIDValidator = categoryDescOrganizationID.Validators[0].(func(uint64) error)
  202. chatrecordsMixin := schema.ChatRecords{}.Mixin()
  203. chatrecordsMixinHooks1 := chatrecordsMixin[1].Hooks()
  204. chatrecords.Hooks[0] = chatrecordsMixinHooks1[0]
  205. chatrecordsMixinInters1 := chatrecordsMixin[1].Interceptors()
  206. chatrecords.Interceptors[0] = chatrecordsMixinInters1[0]
  207. chatrecordsMixinFields0 := chatrecordsMixin[0].Fields()
  208. _ = chatrecordsMixinFields0
  209. chatrecordsFields := schema.ChatRecords{}.Fields()
  210. _ = chatrecordsFields
  211. // chatrecordsDescCreatedAt is the schema descriptor for created_at field.
  212. chatrecordsDescCreatedAt := chatrecordsMixinFields0[1].Descriptor()
  213. // chatrecords.DefaultCreatedAt holds the default value on creation for the created_at field.
  214. chatrecords.DefaultCreatedAt = chatrecordsDescCreatedAt.Default.(func() time.Time)
  215. // chatrecordsDescUpdatedAt is the schema descriptor for updated_at field.
  216. chatrecordsDescUpdatedAt := chatrecordsMixinFields0[2].Descriptor()
  217. // chatrecords.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  218. chatrecords.DefaultUpdatedAt = chatrecordsDescUpdatedAt.Default.(func() time.Time)
  219. // chatrecords.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  220. chatrecords.UpdateDefaultUpdatedAt = chatrecordsDescUpdatedAt.UpdateDefault.(func() time.Time)
  221. // chatrecordsDescContent is the schema descriptor for content field.
  222. chatrecordsDescContent := chatrecordsFields[0].Descriptor()
  223. // chatrecords.DefaultContent holds the default value on creation for the content field.
  224. chatrecords.DefaultContent = chatrecordsDescContent.Default.(string)
  225. // chatrecordsDescContentType is the schema descriptor for content_type field.
  226. chatrecordsDescContentType := chatrecordsFields[1].Descriptor()
  227. // chatrecords.DefaultContentType holds the default value on creation for the content_type field.
  228. chatrecords.DefaultContentType = chatrecordsDescContentType.Default.(uint8)
  229. // chatrecordsDescSessionID is the schema descriptor for session_id field.
  230. chatrecordsDescSessionID := chatrecordsFields[2].Descriptor()
  231. // chatrecords.DefaultSessionID holds the default value on creation for the session_id field.
  232. chatrecords.DefaultSessionID = chatrecordsDescSessionID.Default.(uint64)
  233. // chatrecordsDescUserID is the schema descriptor for user_id field.
  234. chatrecordsDescUserID := chatrecordsFields[3].Descriptor()
  235. // chatrecords.DefaultUserID holds the default value on creation for the user_id field.
  236. chatrecords.DefaultUserID = chatrecordsDescUserID.Default.(uint64)
  237. // chatrecordsDescBotID is the schema descriptor for bot_id field.
  238. chatrecordsDescBotID := chatrecordsFields[4].Descriptor()
  239. // chatrecords.DefaultBotID holds the default value on creation for the bot_id field.
  240. chatrecords.DefaultBotID = chatrecordsDescBotID.Default.(uint64)
  241. // chatrecordsDescBotType is the schema descriptor for bot_type field.
  242. chatrecordsDescBotType := chatrecordsFields[5].Descriptor()
  243. // chatrecords.DefaultBotType holds the default value on creation for the bot_type field.
  244. chatrecords.DefaultBotType = chatrecordsDescBotType.Default.(uint8)
  245. chatsessionMixin := schema.ChatSession{}.Mixin()
  246. chatsessionMixinHooks1 := chatsessionMixin[1].Hooks()
  247. chatsession.Hooks[0] = chatsessionMixinHooks1[0]
  248. chatsessionMixinInters1 := chatsessionMixin[1].Interceptors()
  249. chatsession.Interceptors[0] = chatsessionMixinInters1[0]
  250. chatsessionMixinFields0 := chatsessionMixin[0].Fields()
  251. _ = chatsessionMixinFields0
  252. chatsessionFields := schema.ChatSession{}.Fields()
  253. _ = chatsessionFields
  254. // chatsessionDescCreatedAt is the schema descriptor for created_at field.
  255. chatsessionDescCreatedAt := chatsessionMixinFields0[1].Descriptor()
  256. // chatsession.DefaultCreatedAt holds the default value on creation for the created_at field.
  257. chatsession.DefaultCreatedAt = chatsessionDescCreatedAt.Default.(func() time.Time)
  258. // chatsessionDescUpdatedAt is the schema descriptor for updated_at field.
  259. chatsessionDescUpdatedAt := chatsessionMixinFields0[2].Descriptor()
  260. // chatsession.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  261. chatsession.DefaultUpdatedAt = chatsessionDescUpdatedAt.Default.(func() time.Time)
  262. // chatsession.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  263. chatsession.UpdateDefaultUpdatedAt = chatsessionDescUpdatedAt.UpdateDefault.(func() time.Time)
  264. // chatsessionDescName is the schema descriptor for name field.
  265. chatsessionDescName := chatsessionFields[0].Descriptor()
  266. // chatsession.DefaultName holds the default value on creation for the name field.
  267. chatsession.DefaultName = chatsessionDescName.Default.(string)
  268. // chatsessionDescUserID is the schema descriptor for user_id field.
  269. chatsessionDescUserID := chatsessionFields[1].Descriptor()
  270. // chatsession.DefaultUserID holds the default value on creation for the user_id field.
  271. chatsession.DefaultUserID = chatsessionDescUserID.Default.(uint64)
  272. // chatsessionDescBotID is the schema descriptor for bot_id field.
  273. chatsessionDescBotID := chatsessionFields[2].Descriptor()
  274. // chatsession.DefaultBotID holds the default value on creation for the bot_id field.
  275. chatsession.DefaultBotID = chatsessionDescBotID.Default.(uint64)
  276. // chatsessionDescBotType is the schema descriptor for bot_type field.
  277. chatsessionDescBotType := chatsessionFields[3].Descriptor()
  278. // chatsession.DefaultBotType holds the default value on creation for the bot_type field.
  279. chatsession.DefaultBotType = chatsessionDescBotType.Default.(uint8)
  280. contactMixin := schema.Contact{}.Mixin()
  281. contactMixinHooks2 := contactMixin[2].Hooks()
  282. contact.Hooks[0] = contactMixinHooks2[0]
  283. contactMixinInters2 := contactMixin[2].Interceptors()
  284. contact.Interceptors[0] = contactMixinInters2[0]
  285. contactMixinFields0 := contactMixin[0].Fields()
  286. _ = contactMixinFields0
  287. contactMixinFields1 := contactMixin[1].Fields()
  288. _ = contactMixinFields1
  289. contactFields := schema.Contact{}.Fields()
  290. _ = contactFields
  291. // contactDescCreatedAt is the schema descriptor for created_at field.
  292. contactDescCreatedAt := contactMixinFields0[1].Descriptor()
  293. // contact.DefaultCreatedAt holds the default value on creation for the created_at field.
  294. contact.DefaultCreatedAt = contactDescCreatedAt.Default.(func() time.Time)
  295. // contactDescUpdatedAt is the schema descriptor for updated_at field.
  296. contactDescUpdatedAt := contactMixinFields0[2].Descriptor()
  297. // contact.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  298. contact.DefaultUpdatedAt = contactDescUpdatedAt.Default.(func() time.Time)
  299. // contact.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  300. contact.UpdateDefaultUpdatedAt = contactDescUpdatedAt.UpdateDefault.(func() time.Time)
  301. // contactDescStatus is the schema descriptor for status field.
  302. contactDescStatus := contactMixinFields1[0].Descriptor()
  303. // contact.DefaultStatus holds the default value on creation for the status field.
  304. contact.DefaultStatus = contactDescStatus.Default.(uint8)
  305. // contactDescWxWxid is the schema descriptor for wx_wxid field.
  306. contactDescWxWxid := contactFields[0].Descriptor()
  307. // contact.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  308. contact.DefaultWxWxid = contactDescWxWxid.Default.(string)
  309. // contactDescType is the schema descriptor for type field.
  310. contactDescType := contactFields[1].Descriptor()
  311. // contact.DefaultType holds the default value on creation for the type field.
  312. contact.DefaultType = contactDescType.Default.(int)
  313. // contactDescWxid is the schema descriptor for wxid field.
  314. contactDescWxid := contactFields[2].Descriptor()
  315. // contact.DefaultWxid holds the default value on creation for the wxid field.
  316. contact.DefaultWxid = contactDescWxid.Default.(string)
  317. // contactDescAccount is the schema descriptor for account field.
  318. contactDescAccount := contactFields[3].Descriptor()
  319. // contact.DefaultAccount holds the default value on creation for the account field.
  320. contact.DefaultAccount = contactDescAccount.Default.(string)
  321. // contactDescNickname is the schema descriptor for nickname field.
  322. contactDescNickname := contactFields[4].Descriptor()
  323. // contact.DefaultNickname holds the default value on creation for the nickname field.
  324. contact.DefaultNickname = contactDescNickname.Default.(string)
  325. // contactDescMarkname is the schema descriptor for markname field.
  326. contactDescMarkname := contactFields[5].Descriptor()
  327. // contact.DefaultMarkname holds the default value on creation for the markname field.
  328. contact.DefaultMarkname = contactDescMarkname.Default.(string)
  329. // contactDescHeadimg is the schema descriptor for headimg field.
  330. contactDescHeadimg := contactFields[6].Descriptor()
  331. // contact.DefaultHeadimg holds the default value on creation for the headimg field.
  332. contact.DefaultHeadimg = contactDescHeadimg.Default.(string)
  333. // contactDescSex is the schema descriptor for sex field.
  334. contactDescSex := contactFields[7].Descriptor()
  335. // contact.DefaultSex holds the default value on creation for the sex field.
  336. contact.DefaultSex = contactDescSex.Default.(int)
  337. // contactDescStarrole is the schema descriptor for starrole field.
  338. contactDescStarrole := contactFields[8].Descriptor()
  339. // contact.DefaultStarrole holds the default value on creation for the starrole field.
  340. contact.DefaultStarrole = contactDescStarrole.Default.(string)
  341. // contactDescDontseeit is the schema descriptor for dontseeit field.
  342. contactDescDontseeit := contactFields[9].Descriptor()
  343. // contact.DefaultDontseeit holds the default value on creation for the dontseeit field.
  344. contact.DefaultDontseeit = contactDescDontseeit.Default.(int)
  345. // contactDescDontseeme is the schema descriptor for dontseeme field.
  346. contactDescDontseeme := contactFields[10].Descriptor()
  347. // contact.DefaultDontseeme holds the default value on creation for the dontseeme field.
  348. contact.DefaultDontseeme = contactDescDontseeme.Default.(int)
  349. // contactDescLag is the schema descriptor for lag field.
  350. contactDescLag := contactFields[11].Descriptor()
  351. // contact.DefaultLag holds the default value on creation for the lag field.
  352. contact.DefaultLag = contactDescLag.Default.(string)
  353. // contactDescGid is the schema descriptor for gid field.
  354. contactDescGid := contactFields[12].Descriptor()
  355. // contact.DefaultGid holds the default value on creation for the gid field.
  356. contact.DefaultGid = contactDescGid.Default.(string)
  357. // contactDescGname is the schema descriptor for gname field.
  358. contactDescGname := contactFields[13].Descriptor()
  359. // contact.DefaultGname holds the default value on creation for the gname field.
  360. contact.DefaultGname = contactDescGname.Default.(string)
  361. // contactDescV3 is the schema descriptor for v3 field.
  362. contactDescV3 := contactFields[14].Descriptor()
  363. // contact.DefaultV3 holds the default value on creation for the v3 field.
  364. contact.DefaultV3 = contactDescV3.Default.(string)
  365. // contactDescOrganizationID is the schema descriptor for organization_id field.
  366. contactDescOrganizationID := contactFields[15].Descriptor()
  367. // contact.DefaultOrganizationID holds the default value on creation for the organization_id field.
  368. contact.DefaultOrganizationID = contactDescOrganizationID.Default.(uint64)
  369. employeeMixin := schema.Employee{}.Mixin()
  370. employeeMixinHooks1 := employeeMixin[1].Hooks()
  371. employee.Hooks[0] = employeeMixinHooks1[0]
  372. employeeMixinInters1 := employeeMixin[1].Interceptors()
  373. employee.Interceptors[0] = employeeMixinInters1[0]
  374. employeeMixinFields0 := employeeMixin[0].Fields()
  375. _ = employeeMixinFields0
  376. employeeFields := schema.Employee{}.Fields()
  377. _ = employeeFields
  378. // employeeDescCreatedAt is the schema descriptor for created_at field.
  379. employeeDescCreatedAt := employeeMixinFields0[1].Descriptor()
  380. // employee.DefaultCreatedAt holds the default value on creation for the created_at field.
  381. employee.DefaultCreatedAt = employeeDescCreatedAt.Default.(func() time.Time)
  382. // employeeDescUpdatedAt is the schema descriptor for updated_at field.
  383. employeeDescUpdatedAt := employeeMixinFields0[2].Descriptor()
  384. // employee.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  385. employee.DefaultUpdatedAt = employeeDescUpdatedAt.Default.(func() time.Time)
  386. // employee.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  387. employee.UpdateDefaultUpdatedAt = employeeDescUpdatedAt.UpdateDefault.(func() time.Time)
  388. // employeeDescTitle is the schema descriptor for title field.
  389. employeeDescTitle := employeeFields[0].Descriptor()
  390. // employee.TitleValidator is a validator for the "title" field. It is called by the builders before save.
  391. employee.TitleValidator = employeeDescTitle.Validators[0].(func(string) error)
  392. // employeeDescHireCount is the schema descriptor for hire_count field.
  393. employeeDescHireCount := employeeFields[3].Descriptor()
  394. // employee.DefaultHireCount holds the default value on creation for the hire_count field.
  395. employee.DefaultHireCount = employeeDescHireCount.Default.(int)
  396. // employee.HireCountValidator is a validator for the "hire_count" field. It is called by the builders before save.
  397. employee.HireCountValidator = employeeDescHireCount.Validators[0].(func(int) error)
  398. // employeeDescServiceCount is the schema descriptor for service_count field.
  399. employeeDescServiceCount := employeeFields[4].Descriptor()
  400. // employee.DefaultServiceCount holds the default value on creation for the service_count field.
  401. employee.DefaultServiceCount = employeeDescServiceCount.Default.(int)
  402. // employee.ServiceCountValidator is a validator for the "service_count" field. It is called by the builders before save.
  403. employee.ServiceCountValidator = employeeDescServiceCount.Validators[0].(func(int) error)
  404. // employeeDescAchievementCount is the schema descriptor for achievement_count field.
  405. employeeDescAchievementCount := employeeFields[5].Descriptor()
  406. // employee.DefaultAchievementCount holds the default value on creation for the achievement_count field.
  407. employee.DefaultAchievementCount = employeeDescAchievementCount.Default.(int)
  408. // employee.AchievementCountValidator is a validator for the "achievement_count" field. It is called by the builders before save.
  409. employee.AchievementCountValidator = employeeDescAchievementCount.Validators[0].(func(int) error)
  410. // employeeDescIntro is the schema descriptor for intro field.
  411. employeeDescIntro := employeeFields[6].Descriptor()
  412. // employee.DefaultIntro holds the default value on creation for the intro field.
  413. employee.DefaultIntro = employeeDescIntro.Default.(string)
  414. // employeeDescEstimate is the schema descriptor for estimate field.
  415. employeeDescEstimate := employeeFields[7].Descriptor()
  416. // employee.DefaultEstimate holds the default value on creation for the estimate field.
  417. employee.DefaultEstimate = employeeDescEstimate.Default.(string)
  418. // employeeDescSkill is the schema descriptor for skill field.
  419. employeeDescSkill := employeeFields[8].Descriptor()
  420. // employee.DefaultSkill holds the default value on creation for the skill field.
  421. employee.DefaultSkill = employeeDescSkill.Default.(string)
  422. // employeeDescAbilityType is the schema descriptor for ability_type field.
  423. employeeDescAbilityType := employeeFields[9].Descriptor()
  424. // employee.DefaultAbilityType holds the default value on creation for the ability_type field.
  425. employee.DefaultAbilityType = employeeDescAbilityType.Default.(string)
  426. // employeeDescScene is the schema descriptor for scene field.
  427. employeeDescScene := employeeFields[10].Descriptor()
  428. // employee.DefaultScene holds the default value on creation for the scene field.
  429. employee.DefaultScene = employeeDescScene.Default.(string)
  430. // employeeDescSwitchIn is the schema descriptor for switch_in field.
  431. employeeDescSwitchIn := employeeFields[11].Descriptor()
  432. // employee.DefaultSwitchIn holds the default value on creation for the switch_in field.
  433. employee.DefaultSwitchIn = employeeDescSwitchIn.Default.(string)
  434. // employeeDescVideoURL is the schema descriptor for video_url field.
  435. employeeDescVideoURL := employeeFields[12].Descriptor()
  436. // employee.DefaultVideoURL holds the default value on creation for the video_url field.
  437. employee.DefaultVideoURL = employeeDescVideoURL.Default.(string)
  438. // employeeDescOrganizationID is the schema descriptor for organization_id field.
  439. employeeDescOrganizationID := employeeFields[13].Descriptor()
  440. // employee.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  441. employee.OrganizationIDValidator = employeeDescOrganizationID.Validators[0].(func(uint64) error)
  442. // employeeDescCategoryID is the schema descriptor for category_id field.
  443. employeeDescCategoryID := employeeFields[14].Descriptor()
  444. // employee.CategoryIDValidator is a validator for the "category_id" field. It is called by the builders before save.
  445. employee.CategoryIDValidator = employeeDescCategoryID.Validators[0].(func(uint64) error)
  446. // employeeDescAPIBase is the schema descriptor for api_base field.
  447. employeeDescAPIBase := employeeFields[15].Descriptor()
  448. // employee.DefaultAPIBase holds the default value on creation for the api_base field.
  449. employee.DefaultAPIBase = employeeDescAPIBase.Default.(string)
  450. // employeeDescAPIKey is the schema descriptor for api_key field.
  451. employeeDescAPIKey := employeeFields[16].Descriptor()
  452. // employee.DefaultAPIKey holds the default value on creation for the api_key field.
  453. employee.DefaultAPIKey = employeeDescAPIKey.Default.(string)
  454. // employeeDescIsVip is the schema descriptor for is_vip field.
  455. employeeDescIsVip := employeeFields[18].Descriptor()
  456. // employee.DefaultIsVip holds the default value on creation for the is_vip field.
  457. employee.DefaultIsVip = employeeDescIsVip.Default.(int)
  458. employeeconfigMixin := schema.EmployeeConfig{}.Mixin()
  459. employeeconfigMixinHooks1 := employeeconfigMixin[1].Hooks()
  460. employeeconfig.Hooks[0] = employeeconfigMixinHooks1[0]
  461. employeeconfigMixinInters1 := employeeconfigMixin[1].Interceptors()
  462. employeeconfig.Interceptors[0] = employeeconfigMixinInters1[0]
  463. employeeconfigMixinFields0 := employeeconfigMixin[0].Fields()
  464. _ = employeeconfigMixinFields0
  465. employeeconfigFields := schema.EmployeeConfig{}.Fields()
  466. _ = employeeconfigFields
  467. // employeeconfigDescCreatedAt is the schema descriptor for created_at field.
  468. employeeconfigDescCreatedAt := employeeconfigMixinFields0[1].Descriptor()
  469. // employeeconfig.DefaultCreatedAt holds the default value on creation for the created_at field.
  470. employeeconfig.DefaultCreatedAt = employeeconfigDescCreatedAt.Default.(func() time.Time)
  471. // employeeconfigDescUpdatedAt is the schema descriptor for updated_at field.
  472. employeeconfigDescUpdatedAt := employeeconfigMixinFields0[2].Descriptor()
  473. // employeeconfig.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  474. employeeconfig.DefaultUpdatedAt = employeeconfigDescUpdatedAt.Default.(func() time.Time)
  475. // employeeconfig.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  476. employeeconfig.UpdateDefaultUpdatedAt = employeeconfigDescUpdatedAt.UpdateDefault.(func() time.Time)
  477. // employeeconfigDescStype is the schema descriptor for stype field.
  478. employeeconfigDescStype := employeeconfigFields[0].Descriptor()
  479. // employeeconfig.DefaultStype holds the default value on creation for the stype field.
  480. employeeconfig.DefaultStype = employeeconfigDescStype.Default.(string)
  481. // employeeconfigDescTitle is the schema descriptor for title field.
  482. employeeconfigDescTitle := employeeconfigFields[1].Descriptor()
  483. // employeeconfig.DefaultTitle holds the default value on creation for the title field.
  484. employeeconfig.DefaultTitle = employeeconfigDescTitle.Default.(string)
  485. // employeeconfigDescPhoto is the schema descriptor for photo field.
  486. employeeconfigDescPhoto := employeeconfigFields[2].Descriptor()
  487. // employeeconfig.DefaultPhoto holds the default value on creation for the photo field.
  488. employeeconfig.DefaultPhoto = employeeconfigDescPhoto.Default.(string)
  489. // employeeconfigDescOrganizationID is the schema descriptor for organization_id field.
  490. employeeconfigDescOrganizationID := employeeconfigFields[3].Descriptor()
  491. // employeeconfig.DefaultOrganizationID holds the default value on creation for the organization_id field.
  492. employeeconfig.DefaultOrganizationID = employeeconfigDescOrganizationID.Default.(uint64)
  493. labelMixin := schema.Label{}.Mixin()
  494. labelMixinFields0 := labelMixin[0].Fields()
  495. _ = labelMixinFields0
  496. labelMixinFields1 := labelMixin[1].Fields()
  497. _ = labelMixinFields1
  498. labelFields := schema.Label{}.Fields()
  499. _ = labelFields
  500. // labelDescCreatedAt is the schema descriptor for created_at field.
  501. labelDescCreatedAt := labelMixinFields0[1].Descriptor()
  502. // label.DefaultCreatedAt holds the default value on creation for the created_at field.
  503. label.DefaultCreatedAt = labelDescCreatedAt.Default.(func() time.Time)
  504. // labelDescUpdatedAt is the schema descriptor for updated_at field.
  505. labelDescUpdatedAt := labelMixinFields0[2].Descriptor()
  506. // label.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  507. label.DefaultUpdatedAt = labelDescUpdatedAt.Default.(func() time.Time)
  508. // label.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  509. label.UpdateDefaultUpdatedAt = labelDescUpdatedAt.UpdateDefault.(func() time.Time)
  510. // labelDescStatus is the schema descriptor for status field.
  511. labelDescStatus := labelMixinFields1[0].Descriptor()
  512. // label.DefaultStatus holds the default value on creation for the status field.
  513. label.DefaultStatus = labelDescStatus.Default.(uint8)
  514. // labelDescType is the schema descriptor for type field.
  515. labelDescType := labelFields[0].Descriptor()
  516. // label.DefaultType holds the default value on creation for the type field.
  517. label.DefaultType = labelDescType.Default.(int)
  518. // labelDescName is the schema descriptor for name field.
  519. labelDescName := labelFields[1].Descriptor()
  520. // label.DefaultName holds the default value on creation for the name field.
  521. label.DefaultName = labelDescName.Default.(string)
  522. // labelDescFrom is the schema descriptor for from field.
  523. labelDescFrom := labelFields[2].Descriptor()
  524. // label.DefaultFrom holds the default value on creation for the from field.
  525. label.DefaultFrom = labelDescFrom.Default.(int)
  526. // labelDescMode is the schema descriptor for mode field.
  527. labelDescMode := labelFields[3].Descriptor()
  528. // label.DefaultMode holds the default value on creation for the mode field.
  529. label.DefaultMode = labelDescMode.Default.(int)
  530. // labelDescConditions is the schema descriptor for conditions field.
  531. labelDescConditions := labelFields[4].Descriptor()
  532. // label.DefaultConditions holds the default value on creation for the conditions field.
  533. label.DefaultConditions = labelDescConditions.Default.(string)
  534. // labelDescOrganizationID is the schema descriptor for organization_id field.
  535. labelDescOrganizationID := labelFields[5].Descriptor()
  536. // label.DefaultOrganizationID holds the default value on creation for the organization_id field.
  537. label.DefaultOrganizationID = labelDescOrganizationID.Default.(uint64)
  538. labelrelationshipMixin := schema.LabelRelationship{}.Mixin()
  539. labelrelationshipMixinHooks2 := labelrelationshipMixin[2].Hooks()
  540. labelrelationship.Hooks[0] = labelrelationshipMixinHooks2[0]
  541. labelrelationshipMixinInters2 := labelrelationshipMixin[2].Interceptors()
  542. labelrelationship.Interceptors[0] = labelrelationshipMixinInters2[0]
  543. labelrelationshipMixinFields0 := labelrelationshipMixin[0].Fields()
  544. _ = labelrelationshipMixinFields0
  545. labelrelationshipMixinFields1 := labelrelationshipMixin[1].Fields()
  546. _ = labelrelationshipMixinFields1
  547. labelrelationshipFields := schema.LabelRelationship{}.Fields()
  548. _ = labelrelationshipFields
  549. // labelrelationshipDescCreatedAt is the schema descriptor for created_at field.
  550. labelrelationshipDescCreatedAt := labelrelationshipMixinFields0[1].Descriptor()
  551. // labelrelationship.DefaultCreatedAt holds the default value on creation for the created_at field.
  552. labelrelationship.DefaultCreatedAt = labelrelationshipDescCreatedAt.Default.(func() time.Time)
  553. // labelrelationshipDescUpdatedAt is the schema descriptor for updated_at field.
  554. labelrelationshipDescUpdatedAt := labelrelationshipMixinFields0[2].Descriptor()
  555. // labelrelationship.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  556. labelrelationship.DefaultUpdatedAt = labelrelationshipDescUpdatedAt.Default.(func() time.Time)
  557. // labelrelationship.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  558. labelrelationship.UpdateDefaultUpdatedAt = labelrelationshipDescUpdatedAt.UpdateDefault.(func() time.Time)
  559. // labelrelationshipDescStatus is the schema descriptor for status field.
  560. labelrelationshipDescStatus := labelrelationshipMixinFields1[0].Descriptor()
  561. // labelrelationship.DefaultStatus holds the default value on creation for the status field.
  562. labelrelationship.DefaultStatus = labelrelationshipDescStatus.Default.(uint8)
  563. // labelrelationshipDescLabelID is the schema descriptor for label_id field.
  564. labelrelationshipDescLabelID := labelrelationshipFields[0].Descriptor()
  565. // labelrelationship.DefaultLabelID holds the default value on creation for the label_id field.
  566. labelrelationship.DefaultLabelID = labelrelationshipDescLabelID.Default.(uint64)
  567. // labelrelationshipDescContactID is the schema descriptor for contact_id field.
  568. labelrelationshipDescContactID := labelrelationshipFields[1].Descriptor()
  569. // labelrelationship.DefaultContactID holds the default value on creation for the contact_id field.
  570. labelrelationship.DefaultContactID = labelrelationshipDescContactID.Default.(uint64)
  571. // labelrelationshipDescOrganizationID is the schema descriptor for organization_id field.
  572. labelrelationshipDescOrganizationID := labelrelationshipFields[2].Descriptor()
  573. // labelrelationship.DefaultOrganizationID holds the default value on creation for the organization_id field.
  574. labelrelationship.DefaultOrganizationID = labelrelationshipDescOrganizationID.Default.(uint64)
  575. labeltaggingMixin := schema.LabelTagging{}.Mixin()
  576. labeltaggingMixinHooks2 := labeltaggingMixin[2].Hooks()
  577. labeltagging.Hooks[0] = labeltaggingMixinHooks2[0]
  578. labeltaggingMixinInters2 := labeltaggingMixin[2].Interceptors()
  579. labeltagging.Interceptors[0] = labeltaggingMixinInters2[0]
  580. labeltaggingMixinFields0 := labeltaggingMixin[0].Fields()
  581. _ = labeltaggingMixinFields0
  582. labeltaggingMixinFields1 := labeltaggingMixin[1].Fields()
  583. _ = labeltaggingMixinFields1
  584. labeltaggingFields := schema.LabelTagging{}.Fields()
  585. _ = labeltaggingFields
  586. // labeltaggingDescCreatedAt is the schema descriptor for created_at field.
  587. labeltaggingDescCreatedAt := labeltaggingMixinFields0[1].Descriptor()
  588. // labeltagging.DefaultCreatedAt holds the default value on creation for the created_at field.
  589. labeltagging.DefaultCreatedAt = labeltaggingDescCreatedAt.Default.(func() time.Time)
  590. // labeltaggingDescUpdatedAt is the schema descriptor for updated_at field.
  591. labeltaggingDescUpdatedAt := labeltaggingMixinFields0[2].Descriptor()
  592. // labeltagging.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  593. labeltagging.DefaultUpdatedAt = labeltaggingDescUpdatedAt.Default.(func() time.Time)
  594. // labeltagging.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  595. labeltagging.UpdateDefaultUpdatedAt = labeltaggingDescUpdatedAt.UpdateDefault.(func() time.Time)
  596. // labeltaggingDescStatus is the schema descriptor for status field.
  597. labeltaggingDescStatus := labeltaggingMixinFields1[0].Descriptor()
  598. // labeltagging.DefaultStatus holds the default value on creation for the status field.
  599. labeltagging.DefaultStatus = labeltaggingDescStatus.Default.(uint8)
  600. // labeltaggingDescOrganizationID is the schema descriptor for organization_id field.
  601. labeltaggingDescOrganizationID := labeltaggingFields[0].Descriptor()
  602. // labeltagging.DefaultOrganizationID holds the default value on creation for the organization_id field.
  603. labeltagging.DefaultOrganizationID = labeltaggingDescOrganizationID.Default.(uint64)
  604. // labeltaggingDescType is the schema descriptor for type field.
  605. labeltaggingDescType := labeltaggingFields[1].Descriptor()
  606. // labeltagging.DefaultType holds the default value on creation for the type field.
  607. labeltagging.DefaultType = labeltaggingDescType.Default.(int)
  608. messageFields := schema.Message{}.Fields()
  609. _ = messageFields
  610. // messageDescWxWxid is the schema descriptor for wx_wxid field.
  611. messageDescWxWxid := messageFields[0].Descriptor()
  612. // message.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  613. message.DefaultWxWxid = messageDescWxWxid.Default.(string)
  614. // messageDescWxid is the schema descriptor for wxid field.
  615. messageDescWxid := messageFields[1].Descriptor()
  616. // message.DefaultWxid holds the default value on creation for the wxid field.
  617. message.DefaultWxid = messageDescWxid.Default.(string)
  618. // messageDescContent is the schema descriptor for content field.
  619. messageDescContent := messageFields[2].Descriptor()
  620. // message.DefaultContent holds the default value on creation for the content field.
  621. message.DefaultContent = messageDescContent.Default.(string)
  622. messagerecordsMixin := schema.MessageRecords{}.Mixin()
  623. messagerecordsMixinFields0 := messagerecordsMixin[0].Fields()
  624. _ = messagerecordsMixinFields0
  625. messagerecordsMixinFields1 := messagerecordsMixin[1].Fields()
  626. _ = messagerecordsMixinFields1
  627. messagerecordsFields := schema.MessageRecords{}.Fields()
  628. _ = messagerecordsFields
  629. // messagerecordsDescCreatedAt is the schema descriptor for created_at field.
  630. messagerecordsDescCreatedAt := messagerecordsMixinFields0[1].Descriptor()
  631. // messagerecords.DefaultCreatedAt holds the default value on creation for the created_at field.
  632. messagerecords.DefaultCreatedAt = messagerecordsDescCreatedAt.Default.(func() time.Time)
  633. // messagerecordsDescUpdatedAt is the schema descriptor for updated_at field.
  634. messagerecordsDescUpdatedAt := messagerecordsMixinFields0[2].Descriptor()
  635. // messagerecords.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  636. messagerecords.DefaultUpdatedAt = messagerecordsDescUpdatedAt.Default.(func() time.Time)
  637. // messagerecords.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  638. messagerecords.UpdateDefaultUpdatedAt = messagerecordsDescUpdatedAt.UpdateDefault.(func() time.Time)
  639. // messagerecordsDescStatus is the schema descriptor for status field.
  640. messagerecordsDescStatus := messagerecordsMixinFields1[0].Descriptor()
  641. // messagerecords.DefaultStatus holds the default value on creation for the status field.
  642. messagerecords.DefaultStatus = messagerecordsDescStatus.Default.(uint8)
  643. // messagerecordsDescContactType is the schema descriptor for contact_type field.
  644. messagerecordsDescContactType := messagerecordsFields[2].Descriptor()
  645. // messagerecords.DefaultContactType holds the default value on creation for the contact_type field.
  646. messagerecords.DefaultContactType = messagerecordsDescContactType.Default.(int)
  647. // messagerecordsDescContactWxid is the schema descriptor for contact_wxid field.
  648. messagerecordsDescContactWxid := messagerecordsFields[3].Descriptor()
  649. // messagerecords.DefaultContactWxid holds the default value on creation for the contact_wxid field.
  650. messagerecords.DefaultContactWxid = messagerecordsDescContactWxid.Default.(string)
  651. // messagerecordsDescContentType is the schema descriptor for content_type field.
  652. messagerecordsDescContentType := messagerecordsFields[4].Descriptor()
  653. // messagerecords.DefaultContentType holds the default value on creation for the content_type field.
  654. messagerecords.DefaultContentType = messagerecordsDescContentType.Default.(int)
  655. // messagerecordsDescContent is the schema descriptor for content field.
  656. messagerecordsDescContent := messagerecordsFields[5].Descriptor()
  657. // messagerecords.DefaultContent holds the default value on creation for the content field.
  658. messagerecords.DefaultContent = messagerecordsDescContent.Default.(string)
  659. // messagerecordsDescErrorDetail is the schema descriptor for error_detail field.
  660. messagerecordsDescErrorDetail := messagerecordsFields[7].Descriptor()
  661. // messagerecords.DefaultErrorDetail holds the default value on creation for the error_detail field.
  662. messagerecords.DefaultErrorDetail = messagerecordsDescErrorDetail.Default.(string)
  663. // messagerecordsDescSourceType is the schema descriptor for source_type field.
  664. messagerecordsDescSourceType := messagerecordsFields[9].Descriptor()
  665. // messagerecords.DefaultSourceType holds the default value on creation for the source_type field.
  666. messagerecords.DefaultSourceType = messagerecordsDescSourceType.Default.(int)
  667. // messagerecordsDescSourceID is the schema descriptor for source_id field.
  668. messagerecordsDescSourceID := messagerecordsFields[10].Descriptor()
  669. // messagerecords.DefaultSourceID holds the default value on creation for the source_id field.
  670. messagerecords.DefaultSourceID = messagerecordsDescSourceID.Default.(uint64)
  671. // messagerecordsDescSubSourceID is the schema descriptor for sub_source_id field.
  672. messagerecordsDescSubSourceID := messagerecordsFields[11].Descriptor()
  673. // messagerecords.DefaultSubSourceID holds the default value on creation for the sub_source_id field.
  674. messagerecords.DefaultSubSourceID = messagerecordsDescSubSourceID.Default.(uint64)
  675. // messagerecordsDescOrganizationID is the schema descriptor for organization_id field.
  676. messagerecordsDescOrganizationID := messagerecordsFields[12].Descriptor()
  677. // messagerecords.DefaultOrganizationID holds the default value on creation for the organization_id field.
  678. messagerecords.DefaultOrganizationID = messagerecordsDescOrganizationID.Default.(uint64)
  679. msgMixin := schema.Msg{}.Mixin()
  680. msgMixinHooks1 := msgMixin[1].Hooks()
  681. msg.Hooks[0] = msgMixinHooks1[0]
  682. msgMixinInters1 := msgMixin[1].Interceptors()
  683. msg.Interceptors[0] = msgMixinInters1[0]
  684. msgMixinFields0 := msgMixin[0].Fields()
  685. _ = msgMixinFields0
  686. msgFields := schema.Msg{}.Fields()
  687. _ = msgFields
  688. // msgDescCreatedAt is the schema descriptor for created_at field.
  689. msgDescCreatedAt := msgMixinFields0[1].Descriptor()
  690. // msg.DefaultCreatedAt holds the default value on creation for the created_at field.
  691. msg.DefaultCreatedAt = msgDescCreatedAt.Default.(func() time.Time)
  692. // msgDescUpdatedAt is the schema descriptor for updated_at field.
  693. msgDescUpdatedAt := msgMixinFields0[2].Descriptor()
  694. // msg.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  695. msg.DefaultUpdatedAt = msgDescUpdatedAt.Default.(func() time.Time)
  696. // msg.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  697. msg.UpdateDefaultUpdatedAt = msgDescUpdatedAt.UpdateDefault.(func() time.Time)
  698. serverMixin := schema.Server{}.Mixin()
  699. serverMixinHooks2 := serverMixin[2].Hooks()
  700. server.Hooks[0] = serverMixinHooks2[0]
  701. serverMixinInters2 := serverMixin[2].Interceptors()
  702. server.Interceptors[0] = serverMixinInters2[0]
  703. serverMixinFields0 := serverMixin[0].Fields()
  704. _ = serverMixinFields0
  705. serverMixinFields1 := serverMixin[1].Fields()
  706. _ = serverMixinFields1
  707. serverFields := schema.Server{}.Fields()
  708. _ = serverFields
  709. // serverDescCreatedAt is the schema descriptor for created_at field.
  710. serverDescCreatedAt := serverMixinFields0[1].Descriptor()
  711. // server.DefaultCreatedAt holds the default value on creation for the created_at field.
  712. server.DefaultCreatedAt = serverDescCreatedAt.Default.(func() time.Time)
  713. // serverDescUpdatedAt is the schema descriptor for updated_at field.
  714. serverDescUpdatedAt := serverMixinFields0[2].Descriptor()
  715. // server.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  716. server.DefaultUpdatedAt = serverDescUpdatedAt.Default.(func() time.Time)
  717. // server.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  718. server.UpdateDefaultUpdatedAt = serverDescUpdatedAt.UpdateDefault.(func() time.Time)
  719. // serverDescStatus is the schema descriptor for status field.
  720. serverDescStatus := serverMixinFields1[0].Descriptor()
  721. // server.DefaultStatus holds the default value on creation for the status field.
  722. server.DefaultStatus = serverDescStatus.Default.(uint8)
  723. sopnodeMixin := schema.SopNode{}.Mixin()
  724. sopnodeMixinHooks2 := sopnodeMixin[2].Hooks()
  725. sopnode.Hooks[0] = sopnodeMixinHooks2[0]
  726. sopnodeMixinInters2 := sopnodeMixin[2].Interceptors()
  727. sopnode.Interceptors[0] = sopnodeMixinInters2[0]
  728. sopnodeMixinFields0 := sopnodeMixin[0].Fields()
  729. _ = sopnodeMixinFields0
  730. sopnodeMixinFields1 := sopnodeMixin[1].Fields()
  731. _ = sopnodeMixinFields1
  732. sopnodeFields := schema.SopNode{}.Fields()
  733. _ = sopnodeFields
  734. // sopnodeDescCreatedAt is the schema descriptor for created_at field.
  735. sopnodeDescCreatedAt := sopnodeMixinFields0[1].Descriptor()
  736. // sopnode.DefaultCreatedAt holds the default value on creation for the created_at field.
  737. sopnode.DefaultCreatedAt = sopnodeDescCreatedAt.Default.(func() time.Time)
  738. // sopnodeDescUpdatedAt is the schema descriptor for updated_at field.
  739. sopnodeDescUpdatedAt := sopnodeMixinFields0[2].Descriptor()
  740. // sopnode.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  741. sopnode.DefaultUpdatedAt = sopnodeDescUpdatedAt.Default.(func() time.Time)
  742. // sopnode.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  743. sopnode.UpdateDefaultUpdatedAt = sopnodeDescUpdatedAt.UpdateDefault.(func() time.Time)
  744. // sopnodeDescStatus is the schema descriptor for status field.
  745. sopnodeDescStatus := sopnodeMixinFields1[0].Descriptor()
  746. // sopnode.DefaultStatus holds the default value on creation for the status field.
  747. sopnode.DefaultStatus = sopnodeDescStatus.Default.(uint8)
  748. // sopnodeDescName is the schema descriptor for name field.
  749. sopnodeDescName := sopnodeFields[2].Descriptor()
  750. // sopnode.DefaultName holds the default value on creation for the name field.
  751. sopnode.DefaultName = sopnodeDescName.Default.(string)
  752. // sopnodeDescConditionType is the schema descriptor for condition_type field.
  753. sopnodeDescConditionType := sopnodeFields[3].Descriptor()
  754. // sopnode.DefaultConditionType holds the default value on creation for the condition_type field.
  755. sopnode.DefaultConditionType = sopnodeDescConditionType.Default.(int)
  756. // sopnodeDescNoReplyCondition is the schema descriptor for no_reply_condition field.
  757. sopnodeDescNoReplyCondition := sopnodeFields[5].Descriptor()
  758. // sopnode.DefaultNoReplyCondition holds the default value on creation for the no_reply_condition field.
  759. sopnode.DefaultNoReplyCondition = sopnodeDescNoReplyCondition.Default.(uint64)
  760. // sopnodeDescNoReplyUnit is the schema descriptor for no_reply_unit field.
  761. sopnodeDescNoReplyUnit := sopnodeFields[6].Descriptor()
  762. // sopnode.DefaultNoReplyUnit holds the default value on creation for the no_reply_unit field.
  763. sopnode.DefaultNoReplyUnit = sopnodeDescNoReplyUnit.Default.(string)
  764. sopstageMixin := schema.SopStage{}.Mixin()
  765. sopstageMixinHooks2 := sopstageMixin[2].Hooks()
  766. sopstage.Hooks[0] = sopstageMixinHooks2[0]
  767. sopstageMixinInters2 := sopstageMixin[2].Interceptors()
  768. sopstage.Interceptors[0] = sopstageMixinInters2[0]
  769. sopstageMixinFields0 := sopstageMixin[0].Fields()
  770. _ = sopstageMixinFields0
  771. sopstageMixinFields1 := sopstageMixin[1].Fields()
  772. _ = sopstageMixinFields1
  773. sopstageFields := schema.SopStage{}.Fields()
  774. _ = sopstageFields
  775. // sopstageDescCreatedAt is the schema descriptor for created_at field.
  776. sopstageDescCreatedAt := sopstageMixinFields0[1].Descriptor()
  777. // sopstage.DefaultCreatedAt holds the default value on creation for the created_at field.
  778. sopstage.DefaultCreatedAt = sopstageDescCreatedAt.Default.(func() time.Time)
  779. // sopstageDescUpdatedAt is the schema descriptor for updated_at field.
  780. sopstageDescUpdatedAt := sopstageMixinFields0[2].Descriptor()
  781. // sopstage.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  782. sopstage.DefaultUpdatedAt = sopstageDescUpdatedAt.Default.(func() time.Time)
  783. // sopstage.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  784. sopstage.UpdateDefaultUpdatedAt = sopstageDescUpdatedAt.UpdateDefault.(func() time.Time)
  785. // sopstageDescStatus is the schema descriptor for status field.
  786. sopstageDescStatus := sopstageMixinFields1[0].Descriptor()
  787. // sopstage.DefaultStatus holds the default value on creation for the status field.
  788. sopstage.DefaultStatus = sopstageDescStatus.Default.(uint8)
  789. // sopstageDescName is the schema descriptor for name field.
  790. sopstageDescName := sopstageFields[1].Descriptor()
  791. // sopstage.DefaultName holds the default value on creation for the name field.
  792. sopstage.DefaultName = sopstageDescName.Default.(string)
  793. // sopstageDescConditionType is the schema descriptor for condition_type field.
  794. sopstageDescConditionType := sopstageFields[2].Descriptor()
  795. // sopstage.DefaultConditionType holds the default value on creation for the condition_type field.
  796. sopstage.DefaultConditionType = sopstageDescConditionType.Default.(int)
  797. // sopstageDescConditionOperator is the schema descriptor for condition_operator field.
  798. sopstageDescConditionOperator := sopstageFields[3].Descriptor()
  799. // sopstage.DefaultConditionOperator holds the default value on creation for the condition_operator field.
  800. sopstage.DefaultConditionOperator = sopstageDescConditionOperator.Default.(int)
  801. // sopstageDescIndexSort is the schema descriptor for index_sort field.
  802. sopstageDescIndexSort := sopstageFields[9].Descriptor()
  803. // sopstage.DefaultIndexSort holds the default value on creation for the index_sort field.
  804. sopstage.DefaultIndexSort = sopstageDescIndexSort.Default.(int)
  805. soptaskMixin := schema.SopTask{}.Mixin()
  806. soptaskMixinHooks2 := soptaskMixin[2].Hooks()
  807. soptask.Hooks[0] = soptaskMixinHooks2[0]
  808. soptaskMixinInters2 := soptaskMixin[2].Interceptors()
  809. soptask.Interceptors[0] = soptaskMixinInters2[0]
  810. soptaskMixinFields0 := soptaskMixin[0].Fields()
  811. _ = soptaskMixinFields0
  812. soptaskMixinFields1 := soptaskMixin[1].Fields()
  813. _ = soptaskMixinFields1
  814. soptaskFields := schema.SopTask{}.Fields()
  815. _ = soptaskFields
  816. // soptaskDescCreatedAt is the schema descriptor for created_at field.
  817. soptaskDescCreatedAt := soptaskMixinFields0[1].Descriptor()
  818. // soptask.DefaultCreatedAt holds the default value on creation for the created_at field.
  819. soptask.DefaultCreatedAt = soptaskDescCreatedAt.Default.(func() time.Time)
  820. // soptaskDescUpdatedAt is the schema descriptor for updated_at field.
  821. soptaskDescUpdatedAt := soptaskMixinFields0[2].Descriptor()
  822. // soptask.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  823. soptask.DefaultUpdatedAt = soptaskDescUpdatedAt.Default.(func() time.Time)
  824. // soptask.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  825. soptask.UpdateDefaultUpdatedAt = soptaskDescUpdatedAt.UpdateDefault.(func() time.Time)
  826. // soptaskDescStatus is the schema descriptor for status field.
  827. soptaskDescStatus := soptaskMixinFields1[0].Descriptor()
  828. // soptask.DefaultStatus holds the default value on creation for the status field.
  829. soptask.DefaultStatus = soptaskDescStatus.Default.(uint8)
  830. // soptaskDescName is the schema descriptor for name field.
  831. soptaskDescName := soptaskFields[0].Descriptor()
  832. // soptask.NameValidator is a validator for the "name" field. It is called by the builders before save.
  833. soptask.NameValidator = soptaskDescName.Validators[0].(func(string) error)
  834. // soptaskDescType is the schema descriptor for type field.
  835. soptaskDescType := soptaskFields[2].Descriptor()
  836. // soptask.DefaultType holds the default value on creation for the type field.
  837. soptask.DefaultType = soptaskDescType.Default.(int)
  838. // soptaskDescOrganizationID is the schema descriptor for organization_id field.
  839. soptaskDescOrganizationID := soptaskFields[6].Descriptor()
  840. // soptask.DefaultOrganizationID holds the default value on creation for the organization_id field.
  841. soptask.DefaultOrganizationID = soptaskDescOrganizationID.Default.(uint64)
  842. tokenMixin := schema.Token{}.Mixin()
  843. tokenMixinHooks1 := tokenMixin[1].Hooks()
  844. token.Hooks[0] = tokenMixinHooks1[0]
  845. tokenMixinInters1 := tokenMixin[1].Interceptors()
  846. token.Interceptors[0] = tokenMixinInters1[0]
  847. tokenMixinFields0 := tokenMixin[0].Fields()
  848. _ = tokenMixinFields0
  849. tokenFields := schema.Token{}.Fields()
  850. _ = tokenFields
  851. // tokenDescCreatedAt is the schema descriptor for created_at field.
  852. tokenDescCreatedAt := tokenMixinFields0[1].Descriptor()
  853. // token.DefaultCreatedAt holds the default value on creation for the created_at field.
  854. token.DefaultCreatedAt = tokenDescCreatedAt.Default.(func() time.Time)
  855. // tokenDescUpdatedAt is the schema descriptor for updated_at field.
  856. tokenDescUpdatedAt := tokenMixinFields0[2].Descriptor()
  857. // token.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  858. token.DefaultUpdatedAt = tokenDescUpdatedAt.Default.(func() time.Time)
  859. // token.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  860. token.UpdateDefaultUpdatedAt = tokenDescUpdatedAt.UpdateDefault.(func() time.Time)
  861. // tokenDescToken is the schema descriptor for token field.
  862. tokenDescToken := tokenFields[1].Descriptor()
  863. // token.DefaultToken holds the default value on creation for the token field.
  864. token.DefaultToken = tokenDescToken.Default.(string)
  865. // tokenDescMAC is the schema descriptor for mac field.
  866. tokenDescMAC := tokenFields[2].Descriptor()
  867. // token.DefaultMAC holds the default value on creation for the mac field.
  868. token.DefaultMAC = tokenDescMAC.Default.(string)
  869. // tokenDescOrganizationID is the schema descriptor for organization_id field.
  870. tokenDescOrganizationID := tokenFields[3].Descriptor()
  871. // token.DefaultOrganizationID holds the default value on creation for the organization_id field.
  872. token.DefaultOrganizationID = tokenDescOrganizationID.Default.(uint64)
  873. // tokenDescAgentID is the schema descriptor for agent_id field.
  874. tokenDescAgentID := tokenFields[4].Descriptor()
  875. // token.DefaultAgentID holds the default value on creation for the agent_id field.
  876. token.DefaultAgentID = tokenDescAgentID.Default.(uint64)
  877. // tokenDescCustomAgentBase is the schema descriptor for custom_agent_base field.
  878. tokenDescCustomAgentBase := tokenFields[5].Descriptor()
  879. // token.DefaultCustomAgentBase holds the default value on creation for the custom_agent_base field.
  880. token.DefaultCustomAgentBase = tokenDescCustomAgentBase.Default.(string)
  881. // tokenDescCustomAgentKey is the schema descriptor for custom_agent_key field.
  882. tokenDescCustomAgentKey := tokenFields[6].Descriptor()
  883. // token.DefaultCustomAgentKey holds the default value on creation for the custom_agent_key field.
  884. token.DefaultCustomAgentKey = tokenDescCustomAgentKey.Default.(string)
  885. // tokenDescOpenaiBase is the schema descriptor for openai_base field.
  886. tokenDescOpenaiBase := tokenFields[7].Descriptor()
  887. // token.DefaultOpenaiBase holds the default value on creation for the openai_base field.
  888. token.DefaultOpenaiBase = tokenDescOpenaiBase.Default.(string)
  889. // tokenDescOpenaiKey is the schema descriptor for openai_key field.
  890. tokenDescOpenaiKey := tokenFields[8].Descriptor()
  891. // token.DefaultOpenaiKey holds the default value on creation for the openai_key field.
  892. token.DefaultOpenaiKey = tokenDescOpenaiKey.Default.(string)
  893. tutorialMixin := schema.Tutorial{}.Mixin()
  894. tutorialMixinHooks1 := tutorialMixin[1].Hooks()
  895. tutorial.Hooks[0] = tutorialMixinHooks1[0]
  896. tutorialMixinInters1 := tutorialMixin[1].Interceptors()
  897. tutorial.Interceptors[0] = tutorialMixinInters1[0]
  898. tutorialMixinFields0 := tutorialMixin[0].Fields()
  899. _ = tutorialMixinFields0
  900. tutorialFields := schema.Tutorial{}.Fields()
  901. _ = tutorialFields
  902. // tutorialDescCreatedAt is the schema descriptor for created_at field.
  903. tutorialDescCreatedAt := tutorialMixinFields0[1].Descriptor()
  904. // tutorial.DefaultCreatedAt holds the default value on creation for the created_at field.
  905. tutorial.DefaultCreatedAt = tutorialDescCreatedAt.Default.(func() time.Time)
  906. // tutorialDescUpdatedAt is the schema descriptor for updated_at field.
  907. tutorialDescUpdatedAt := tutorialMixinFields0[2].Descriptor()
  908. // tutorial.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  909. tutorial.DefaultUpdatedAt = tutorialDescUpdatedAt.Default.(func() time.Time)
  910. // tutorial.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  911. tutorial.UpdateDefaultUpdatedAt = tutorialDescUpdatedAt.UpdateDefault.(func() time.Time)
  912. // tutorialDescEmployeeID is the schema descriptor for employee_id field.
  913. tutorialDescEmployeeID := tutorialFields[0].Descriptor()
  914. // tutorial.EmployeeIDValidator is a validator for the "employee_id" field. It is called by the builders before save.
  915. tutorial.EmployeeIDValidator = tutorialDescEmployeeID.Validators[0].(func(uint64) error)
  916. // tutorialDescOrganizationID is the schema descriptor for organization_id field.
  917. tutorialDescOrganizationID := tutorialFields[4].Descriptor()
  918. // tutorial.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  919. tutorial.OrganizationIDValidator = tutorialDescOrganizationID.Validators[0].(func(uint64) error)
  920. usagedetailMixin := schema.UsageDetail{}.Mixin()
  921. usagedetailMixinFields0 := usagedetailMixin[0].Fields()
  922. _ = usagedetailMixinFields0
  923. usagedetailMixinFields1 := usagedetailMixin[1].Fields()
  924. _ = usagedetailMixinFields1
  925. usagedetailFields := schema.UsageDetail{}.Fields()
  926. _ = usagedetailFields
  927. // usagedetailDescCreatedAt is the schema descriptor for created_at field.
  928. usagedetailDescCreatedAt := usagedetailMixinFields0[1].Descriptor()
  929. // usagedetail.DefaultCreatedAt holds the default value on creation for the created_at field.
  930. usagedetail.DefaultCreatedAt = usagedetailDescCreatedAt.Default.(func() time.Time)
  931. // usagedetailDescUpdatedAt is the schema descriptor for updated_at field.
  932. usagedetailDescUpdatedAt := usagedetailMixinFields0[2].Descriptor()
  933. // usagedetail.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  934. usagedetail.DefaultUpdatedAt = usagedetailDescUpdatedAt.Default.(func() time.Time)
  935. // usagedetail.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  936. usagedetail.UpdateDefaultUpdatedAt = usagedetailDescUpdatedAt.UpdateDefault.(func() time.Time)
  937. // usagedetailDescStatus is the schema descriptor for status field.
  938. usagedetailDescStatus := usagedetailMixinFields1[0].Descriptor()
  939. // usagedetail.DefaultStatus holds the default value on creation for the status field.
  940. usagedetail.DefaultStatus = usagedetailDescStatus.Default.(uint8)
  941. // usagedetailDescType is the schema descriptor for type field.
  942. usagedetailDescType := usagedetailFields[0].Descriptor()
  943. // usagedetail.DefaultType holds the default value on creation for the type field.
  944. usagedetail.DefaultType = usagedetailDescType.Default.(int)
  945. // usagedetailDescBotID is the schema descriptor for bot_id field.
  946. usagedetailDescBotID := usagedetailFields[1].Descriptor()
  947. // usagedetail.DefaultBotID holds the default value on creation for the bot_id field.
  948. usagedetail.DefaultBotID = usagedetailDescBotID.Default.(string)
  949. // usagedetailDescReceiverID is the schema descriptor for receiver_id field.
  950. usagedetailDescReceiverID := usagedetailFields[2].Descriptor()
  951. // usagedetail.DefaultReceiverID holds the default value on creation for the receiver_id field.
  952. usagedetail.DefaultReceiverID = usagedetailDescReceiverID.Default.(string)
  953. // usagedetailDescApp is the schema descriptor for app field.
  954. usagedetailDescApp := usagedetailFields[3].Descriptor()
  955. // usagedetail.DefaultApp holds the default value on creation for the app field.
  956. usagedetail.DefaultApp = usagedetailDescApp.Default.(int)
  957. // usagedetailDescSessionID is the schema descriptor for session_id field.
  958. usagedetailDescSessionID := usagedetailFields[4].Descriptor()
  959. // usagedetail.DefaultSessionID holds the default value on creation for the session_id field.
  960. usagedetail.DefaultSessionID = usagedetailDescSessionID.Default.(uint64)
  961. // usagedetailDescRequest is the schema descriptor for request field.
  962. usagedetailDescRequest := usagedetailFields[5].Descriptor()
  963. // usagedetail.DefaultRequest holds the default value on creation for the request field.
  964. usagedetail.DefaultRequest = usagedetailDescRequest.Default.(string)
  965. // usagedetailDescResponse is the schema descriptor for response field.
  966. usagedetailDescResponse := usagedetailFields[6].Descriptor()
  967. // usagedetail.DefaultResponse holds the default value on creation for the response field.
  968. usagedetail.DefaultResponse = usagedetailDescResponse.Default.(string)
  969. // usagedetailDescTotalTokens is the schema descriptor for total_tokens field.
  970. usagedetailDescTotalTokens := usagedetailFields[7].Descriptor()
  971. // usagedetail.DefaultTotalTokens holds the default value on creation for the total_tokens field.
  972. usagedetail.DefaultTotalTokens = usagedetailDescTotalTokens.Default.(uint64)
  973. // usagedetailDescPromptTokens is the schema descriptor for prompt_tokens field.
  974. usagedetailDescPromptTokens := usagedetailFields[8].Descriptor()
  975. // usagedetail.DefaultPromptTokens holds the default value on creation for the prompt_tokens field.
  976. usagedetail.DefaultPromptTokens = usagedetailDescPromptTokens.Default.(uint64)
  977. // usagedetailDescCompletionTokens is the schema descriptor for completion_tokens field.
  978. usagedetailDescCompletionTokens := usagedetailFields[9].Descriptor()
  979. // usagedetail.DefaultCompletionTokens holds the default value on creation for the completion_tokens field.
  980. usagedetail.DefaultCompletionTokens = usagedetailDescCompletionTokens.Default.(uint64)
  981. // usagedetailDescOrganizationID is the schema descriptor for organization_id field.
  982. usagedetailDescOrganizationID := usagedetailFields[10].Descriptor()
  983. // usagedetail.DefaultOrganizationID holds the default value on creation for the organization_id field.
  984. usagedetail.DefaultOrganizationID = usagedetailDescOrganizationID.Default.(uint64)
  985. usagetotalMixin := schema.UsageTotal{}.Mixin()
  986. usagetotalMixinFields0 := usagetotalMixin[0].Fields()
  987. _ = usagetotalMixinFields0
  988. usagetotalMixinFields1 := usagetotalMixin[1].Fields()
  989. _ = usagetotalMixinFields1
  990. usagetotalFields := schema.UsageTotal{}.Fields()
  991. _ = usagetotalFields
  992. // usagetotalDescCreatedAt is the schema descriptor for created_at field.
  993. usagetotalDescCreatedAt := usagetotalMixinFields0[1].Descriptor()
  994. // usagetotal.DefaultCreatedAt holds the default value on creation for the created_at field.
  995. usagetotal.DefaultCreatedAt = usagetotalDescCreatedAt.Default.(func() time.Time)
  996. // usagetotalDescUpdatedAt is the schema descriptor for updated_at field.
  997. usagetotalDescUpdatedAt := usagetotalMixinFields0[2].Descriptor()
  998. // usagetotal.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  999. usagetotal.DefaultUpdatedAt = usagetotalDescUpdatedAt.Default.(func() time.Time)
  1000. // usagetotal.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1001. usagetotal.UpdateDefaultUpdatedAt = usagetotalDescUpdatedAt.UpdateDefault.(func() time.Time)
  1002. // usagetotalDescStatus is the schema descriptor for status field.
  1003. usagetotalDescStatus := usagetotalMixinFields1[0].Descriptor()
  1004. // usagetotal.DefaultStatus holds the default value on creation for the status field.
  1005. usagetotal.DefaultStatus = usagetotalDescStatus.Default.(uint8)
  1006. // usagetotalDescType is the schema descriptor for type field.
  1007. usagetotalDescType := usagetotalFields[0].Descriptor()
  1008. // usagetotal.DefaultType holds the default value on creation for the type field.
  1009. usagetotal.DefaultType = usagetotalDescType.Default.(int)
  1010. // usagetotalDescBotID is the schema descriptor for bot_id field.
  1011. usagetotalDescBotID := usagetotalFields[1].Descriptor()
  1012. // usagetotal.DefaultBotID holds the default value on creation for the bot_id field.
  1013. usagetotal.DefaultBotID = usagetotalDescBotID.Default.(string)
  1014. // usagetotalDescTotalTokens is the schema descriptor for total_tokens field.
  1015. usagetotalDescTotalTokens := usagetotalFields[2].Descriptor()
  1016. // usagetotal.DefaultTotalTokens holds the default value on creation for the total_tokens field.
  1017. usagetotal.DefaultTotalTokens = usagetotalDescTotalTokens.Default.(uint64)
  1018. // usagetotalDescStartIndex is the schema descriptor for start_index field.
  1019. usagetotalDescStartIndex := usagetotalFields[3].Descriptor()
  1020. // usagetotal.DefaultStartIndex holds the default value on creation for the start_index field.
  1021. usagetotal.DefaultStartIndex = usagetotalDescStartIndex.Default.(uint64)
  1022. // usagetotalDescEndIndex is the schema descriptor for end_index field.
  1023. usagetotalDescEndIndex := usagetotalFields[4].Descriptor()
  1024. // usagetotal.DefaultEndIndex holds the default value on creation for the end_index field.
  1025. usagetotal.DefaultEndIndex = usagetotalDescEndIndex.Default.(uint64)
  1026. // usagetotalDescOrganizationID is the schema descriptor for organization_id field.
  1027. usagetotalDescOrganizationID := usagetotalFields[5].Descriptor()
  1028. // usagetotal.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1029. usagetotal.DefaultOrganizationID = usagetotalDescOrganizationID.Default.(uint64)
  1030. workexperienceMixin := schema.WorkExperience{}.Mixin()
  1031. workexperienceMixinHooks1 := workexperienceMixin[1].Hooks()
  1032. workexperience.Hooks[0] = workexperienceMixinHooks1[0]
  1033. workexperienceMixinInters1 := workexperienceMixin[1].Interceptors()
  1034. workexperience.Interceptors[0] = workexperienceMixinInters1[0]
  1035. workexperienceMixinFields0 := workexperienceMixin[0].Fields()
  1036. _ = workexperienceMixinFields0
  1037. workexperienceFields := schema.WorkExperience{}.Fields()
  1038. _ = workexperienceFields
  1039. // workexperienceDescCreatedAt is the schema descriptor for created_at field.
  1040. workexperienceDescCreatedAt := workexperienceMixinFields0[1].Descriptor()
  1041. // workexperience.DefaultCreatedAt holds the default value on creation for the created_at field.
  1042. workexperience.DefaultCreatedAt = workexperienceDescCreatedAt.Default.(func() time.Time)
  1043. // workexperienceDescUpdatedAt is the schema descriptor for updated_at field.
  1044. workexperienceDescUpdatedAt := workexperienceMixinFields0[2].Descriptor()
  1045. // workexperience.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1046. workexperience.DefaultUpdatedAt = workexperienceDescUpdatedAt.Default.(func() time.Time)
  1047. // workexperience.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1048. workexperience.UpdateDefaultUpdatedAt = workexperienceDescUpdatedAt.UpdateDefault.(func() time.Time)
  1049. wpchatroomMixin := schema.WpChatroom{}.Mixin()
  1050. wpchatroomMixinFields0 := wpchatroomMixin[0].Fields()
  1051. _ = wpchatroomMixinFields0
  1052. wpchatroomMixinFields1 := wpchatroomMixin[1].Fields()
  1053. _ = wpchatroomMixinFields1
  1054. wpchatroomFields := schema.WpChatroom{}.Fields()
  1055. _ = wpchatroomFields
  1056. // wpchatroomDescCreatedAt is the schema descriptor for created_at field.
  1057. wpchatroomDescCreatedAt := wpchatroomMixinFields0[1].Descriptor()
  1058. // wpchatroom.DefaultCreatedAt holds the default value on creation for the created_at field.
  1059. wpchatroom.DefaultCreatedAt = wpchatroomDescCreatedAt.Default.(func() time.Time)
  1060. // wpchatroomDescUpdatedAt is the schema descriptor for updated_at field.
  1061. wpchatroomDescUpdatedAt := wpchatroomMixinFields0[2].Descriptor()
  1062. // wpchatroom.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1063. wpchatroom.DefaultUpdatedAt = wpchatroomDescUpdatedAt.Default.(func() time.Time)
  1064. // wpchatroom.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1065. wpchatroom.UpdateDefaultUpdatedAt = wpchatroomDescUpdatedAt.UpdateDefault.(func() time.Time)
  1066. // wpchatroomDescStatus is the schema descriptor for status field.
  1067. wpchatroomDescStatus := wpchatroomMixinFields1[0].Descriptor()
  1068. // wpchatroom.DefaultStatus holds the default value on creation for the status field.
  1069. wpchatroom.DefaultStatus = wpchatroomDescStatus.Default.(uint8)
  1070. // wpchatroomDescWxWxid is the schema descriptor for wx_wxid field.
  1071. wpchatroomDescWxWxid := wpchatroomFields[0].Descriptor()
  1072. // wpchatroom.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  1073. wpchatroom.DefaultWxWxid = wpchatroomDescWxWxid.Default.(string)
  1074. // wpchatroomDescChatroomID is the schema descriptor for chatroom_id field.
  1075. wpchatroomDescChatroomID := wpchatroomFields[1].Descriptor()
  1076. // wpchatroom.DefaultChatroomID holds the default value on creation for the chatroom_id field.
  1077. wpchatroom.DefaultChatroomID = wpchatroomDescChatroomID.Default.(string)
  1078. // wpchatroomDescNickname is the schema descriptor for nickname field.
  1079. wpchatroomDescNickname := wpchatroomFields[2].Descriptor()
  1080. // wpchatroom.DefaultNickname holds the default value on creation for the nickname field.
  1081. wpchatroom.DefaultNickname = wpchatroomDescNickname.Default.(string)
  1082. // wpchatroomDescOwner is the schema descriptor for owner field.
  1083. wpchatroomDescOwner := wpchatroomFields[3].Descriptor()
  1084. // wpchatroom.DefaultOwner holds the default value on creation for the owner field.
  1085. wpchatroom.DefaultOwner = wpchatroomDescOwner.Default.(string)
  1086. // wpchatroomDescAvatar is the schema descriptor for avatar field.
  1087. wpchatroomDescAvatar := wpchatroomFields[4].Descriptor()
  1088. // wpchatroom.DefaultAvatar holds the default value on creation for the avatar field.
  1089. wpchatroom.DefaultAvatar = wpchatroomDescAvatar.Default.(string)
  1090. wpchatroommemberMixin := schema.WpChatroomMember{}.Mixin()
  1091. wpchatroommemberMixinFields0 := wpchatroommemberMixin[0].Fields()
  1092. _ = wpchatroommemberMixinFields0
  1093. wpchatroommemberMixinFields1 := wpchatroommemberMixin[1].Fields()
  1094. _ = wpchatroommemberMixinFields1
  1095. wpchatroommemberFields := schema.WpChatroomMember{}.Fields()
  1096. _ = wpchatroommemberFields
  1097. // wpchatroommemberDescCreatedAt is the schema descriptor for created_at field.
  1098. wpchatroommemberDescCreatedAt := wpchatroommemberMixinFields0[1].Descriptor()
  1099. // wpchatroommember.DefaultCreatedAt holds the default value on creation for the created_at field.
  1100. wpchatroommember.DefaultCreatedAt = wpchatroommemberDescCreatedAt.Default.(func() time.Time)
  1101. // wpchatroommemberDescUpdatedAt is the schema descriptor for updated_at field.
  1102. wpchatroommemberDescUpdatedAt := wpchatroommemberMixinFields0[2].Descriptor()
  1103. // wpchatroommember.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1104. wpchatroommember.DefaultUpdatedAt = wpchatroommemberDescUpdatedAt.Default.(func() time.Time)
  1105. // wpchatroommember.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1106. wpchatroommember.UpdateDefaultUpdatedAt = wpchatroommemberDescUpdatedAt.UpdateDefault.(func() time.Time)
  1107. // wpchatroommemberDescStatus is the schema descriptor for status field.
  1108. wpchatroommemberDescStatus := wpchatroommemberMixinFields1[0].Descriptor()
  1109. // wpchatroommember.DefaultStatus holds the default value on creation for the status field.
  1110. wpchatroommember.DefaultStatus = wpchatroommemberDescStatus.Default.(uint8)
  1111. // wpchatroommemberDescWxWxid is the schema descriptor for wx_wxid field.
  1112. wpchatroommemberDescWxWxid := wpchatroommemberFields[0].Descriptor()
  1113. // wpchatroommember.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  1114. wpchatroommember.DefaultWxWxid = wpchatroommemberDescWxWxid.Default.(string)
  1115. // wpchatroommemberDescWxid is the schema descriptor for wxid field.
  1116. wpchatroommemberDescWxid := wpchatroommemberFields[1].Descriptor()
  1117. // wpchatroommember.DefaultWxid holds the default value on creation for the wxid field.
  1118. wpchatroommember.DefaultWxid = wpchatroommemberDescWxid.Default.(string)
  1119. // wpchatroommemberDescNickname is the schema descriptor for nickname field.
  1120. wpchatroommemberDescNickname := wpchatroommemberFields[2].Descriptor()
  1121. // wpchatroommember.DefaultNickname holds the default value on creation for the nickname field.
  1122. wpchatroommember.DefaultNickname = wpchatroommemberDescNickname.Default.(string)
  1123. // wpchatroommemberDescAvatar is the schema descriptor for avatar field.
  1124. wpchatroommemberDescAvatar := wpchatroommemberFields[3].Descriptor()
  1125. // wpchatroommember.DefaultAvatar holds the default value on creation for the avatar field.
  1126. wpchatroommember.DefaultAvatar = wpchatroommemberDescAvatar.Default.(string)
  1127. wxMixin := schema.Wx{}.Mixin()
  1128. wxMixinHooks2 := wxMixin[2].Hooks()
  1129. wx.Hooks[0] = wxMixinHooks2[0]
  1130. wxMixinInters2 := wxMixin[2].Interceptors()
  1131. wx.Interceptors[0] = wxMixinInters2[0]
  1132. wxMixinFields0 := wxMixin[0].Fields()
  1133. _ = wxMixinFields0
  1134. wxMixinFields1 := wxMixin[1].Fields()
  1135. _ = wxMixinFields1
  1136. wxFields := schema.Wx{}.Fields()
  1137. _ = wxFields
  1138. // wxDescCreatedAt is the schema descriptor for created_at field.
  1139. wxDescCreatedAt := wxMixinFields0[1].Descriptor()
  1140. // wx.DefaultCreatedAt holds the default value on creation for the created_at field.
  1141. wx.DefaultCreatedAt = wxDescCreatedAt.Default.(func() time.Time)
  1142. // wxDescUpdatedAt is the schema descriptor for updated_at field.
  1143. wxDescUpdatedAt := wxMixinFields0[2].Descriptor()
  1144. // wx.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1145. wx.DefaultUpdatedAt = wxDescUpdatedAt.Default.(func() time.Time)
  1146. // wx.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1147. wx.UpdateDefaultUpdatedAt = wxDescUpdatedAt.UpdateDefault.(func() time.Time)
  1148. // wxDescStatus is the schema descriptor for status field.
  1149. wxDescStatus := wxMixinFields1[0].Descriptor()
  1150. // wx.DefaultStatus holds the default value on creation for the status field.
  1151. wx.DefaultStatus = wxDescStatus.Default.(uint8)
  1152. // wxDescServerID is the schema descriptor for server_id field.
  1153. wxDescServerID := wxFields[0].Descriptor()
  1154. // wx.DefaultServerID holds the default value on creation for the server_id field.
  1155. wx.DefaultServerID = wxDescServerID.Default.(uint64)
  1156. // wxDescPort is the schema descriptor for port field.
  1157. wxDescPort := wxFields[1].Descriptor()
  1158. // wx.DefaultPort holds the default value on creation for the port field.
  1159. wx.DefaultPort = wxDescPort.Default.(string)
  1160. // wxDescProcessID is the schema descriptor for process_id field.
  1161. wxDescProcessID := wxFields[2].Descriptor()
  1162. // wx.DefaultProcessID holds the default value on creation for the process_id field.
  1163. wx.DefaultProcessID = wxDescProcessID.Default.(string)
  1164. // wxDescCallback is the schema descriptor for callback field.
  1165. wxDescCallback := wxFields[3].Descriptor()
  1166. // wx.DefaultCallback holds the default value on creation for the callback field.
  1167. wx.DefaultCallback = wxDescCallback.Default.(string)
  1168. // wxDescWxid is the schema descriptor for wxid field.
  1169. wxDescWxid := wxFields[4].Descriptor()
  1170. // wx.DefaultWxid holds the default value on creation for the wxid field.
  1171. wx.DefaultWxid = wxDescWxid.Default.(string)
  1172. // wxDescAccount is the schema descriptor for account field.
  1173. wxDescAccount := wxFields[5].Descriptor()
  1174. // wx.DefaultAccount holds the default value on creation for the account field.
  1175. wx.DefaultAccount = wxDescAccount.Default.(string)
  1176. // wxDescNickname is the schema descriptor for nickname field.
  1177. wxDescNickname := wxFields[6].Descriptor()
  1178. // wx.DefaultNickname holds the default value on creation for the nickname field.
  1179. wx.DefaultNickname = wxDescNickname.Default.(string)
  1180. // wxDescTel is the schema descriptor for tel field.
  1181. wxDescTel := wxFields[7].Descriptor()
  1182. // wx.DefaultTel holds the default value on creation for the tel field.
  1183. wx.DefaultTel = wxDescTel.Default.(string)
  1184. // wxDescHeadBig is the schema descriptor for head_big field.
  1185. wxDescHeadBig := wxFields[8].Descriptor()
  1186. // wx.DefaultHeadBig holds the default value on creation for the head_big field.
  1187. wx.DefaultHeadBig = wxDescHeadBig.Default.(string)
  1188. // wxDescOrganizationID is the schema descriptor for organization_id field.
  1189. wxDescOrganizationID := wxFields[9].Descriptor()
  1190. // wx.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1191. wx.DefaultOrganizationID = wxDescOrganizationID.Default.(uint64)
  1192. // wxDescAgentID is the schema descriptor for agent_id field.
  1193. wxDescAgentID := wxFields[10].Descriptor()
  1194. // wx.DefaultAgentID holds the default value on creation for the agent_id field.
  1195. wx.DefaultAgentID = wxDescAgentID.Default.(uint64)
  1196. // wxDescAPIBase is the schema descriptor for api_base field.
  1197. wxDescAPIBase := wxFields[11].Descriptor()
  1198. // wx.DefaultAPIBase holds the default value on creation for the api_base field.
  1199. wx.DefaultAPIBase = wxDescAPIBase.Default.(string)
  1200. // wxDescAPIKey is the schema descriptor for api_key field.
  1201. wxDescAPIKey := wxFields[12].Descriptor()
  1202. // wx.DefaultAPIKey holds the default value on creation for the api_key field.
  1203. wx.DefaultAPIKey = wxDescAPIKey.Default.(string)
  1204. wxcardMixin := schema.WxCard{}.Mixin()
  1205. wxcardMixinHooks1 := wxcardMixin[1].Hooks()
  1206. wxcard.Hooks[0] = wxcardMixinHooks1[0]
  1207. wxcardMixinInters1 := wxcardMixin[1].Interceptors()
  1208. wxcard.Interceptors[0] = wxcardMixinInters1[0]
  1209. wxcardMixinFields0 := wxcardMixin[0].Fields()
  1210. _ = wxcardMixinFields0
  1211. wxcardFields := schema.WxCard{}.Fields()
  1212. _ = wxcardFields
  1213. // wxcardDescCreatedAt is the schema descriptor for created_at field.
  1214. wxcardDescCreatedAt := wxcardMixinFields0[1].Descriptor()
  1215. // wxcard.DefaultCreatedAt holds the default value on creation for the created_at field.
  1216. wxcard.DefaultCreatedAt = wxcardDescCreatedAt.Default.(func() time.Time)
  1217. // wxcardDescUpdatedAt is the schema descriptor for updated_at field.
  1218. wxcardDescUpdatedAt := wxcardMixinFields0[2].Descriptor()
  1219. // wxcard.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1220. wxcard.DefaultUpdatedAt = wxcardDescUpdatedAt.Default.(func() time.Time)
  1221. // wxcard.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1222. wxcard.UpdateDefaultUpdatedAt = wxcardDescUpdatedAt.UpdateDefault.(func() time.Time)
  1223. // wxcardDescUserID is the schema descriptor for user_id field.
  1224. wxcardDescUserID := wxcardFields[0].Descriptor()
  1225. // wxcard.DefaultUserID holds the default value on creation for the user_id field.
  1226. wxcard.DefaultUserID = wxcardDescUserID.Default.(uint64)
  1227. // wxcardDescWxUserID is the schema descriptor for wx_user_id field.
  1228. wxcardDescWxUserID := wxcardFields[1].Descriptor()
  1229. // wxcard.DefaultWxUserID holds the default value on creation for the wx_user_id field.
  1230. wxcard.DefaultWxUserID = wxcardDescWxUserID.Default.(uint64)
  1231. // wxcardDescAvatar is the schema descriptor for avatar field.
  1232. wxcardDescAvatar := wxcardFields[2].Descriptor()
  1233. // wxcard.DefaultAvatar holds the default value on creation for the avatar field.
  1234. wxcard.DefaultAvatar = wxcardDescAvatar.Default.(string)
  1235. // wxcardDescLogo is the schema descriptor for logo field.
  1236. wxcardDescLogo := wxcardFields[3].Descriptor()
  1237. // wxcard.DefaultLogo holds the default value on creation for the logo field.
  1238. wxcard.DefaultLogo = wxcardDescLogo.Default.(string)
  1239. // wxcardDescName is the schema descriptor for name field.
  1240. wxcardDescName := wxcardFields[4].Descriptor()
  1241. // wxcard.DefaultName holds the default value on creation for the name field.
  1242. wxcard.DefaultName = wxcardDescName.Default.(string)
  1243. // wxcardDescCompany is the schema descriptor for company field.
  1244. wxcardDescCompany := wxcardFields[5].Descriptor()
  1245. // wxcard.DefaultCompany holds the default value on creation for the company field.
  1246. wxcard.DefaultCompany = wxcardDescCompany.Default.(string)
  1247. // wxcardDescAddress is the schema descriptor for address field.
  1248. wxcardDescAddress := wxcardFields[6].Descriptor()
  1249. // wxcard.DefaultAddress holds the default value on creation for the address field.
  1250. wxcard.DefaultAddress = wxcardDescAddress.Default.(string)
  1251. // wxcardDescPhone is the schema descriptor for phone field.
  1252. wxcardDescPhone := wxcardFields[7].Descriptor()
  1253. // wxcard.DefaultPhone holds the default value on creation for the phone field.
  1254. wxcard.DefaultPhone = wxcardDescPhone.Default.(string)
  1255. // wxcardDescOfficialAccount is the schema descriptor for official_account field.
  1256. wxcardDescOfficialAccount := wxcardFields[8].Descriptor()
  1257. // wxcard.DefaultOfficialAccount holds the default value on creation for the official_account field.
  1258. wxcard.DefaultOfficialAccount = wxcardDescOfficialAccount.Default.(string)
  1259. // wxcardDescWechatAccount is the schema descriptor for wechat_account field.
  1260. wxcardDescWechatAccount := wxcardFields[9].Descriptor()
  1261. // wxcard.DefaultWechatAccount holds the default value on creation for the wechat_account field.
  1262. wxcard.DefaultWechatAccount = wxcardDescWechatAccount.Default.(string)
  1263. // wxcardDescEmail is the schema descriptor for email field.
  1264. wxcardDescEmail := wxcardFields[10].Descriptor()
  1265. // wxcard.DefaultEmail holds the default value on creation for the email field.
  1266. wxcard.DefaultEmail = wxcardDescEmail.Default.(string)
  1267. // wxcardDescIntro is the schema descriptor for intro field.
  1268. wxcardDescIntro := wxcardFields[14].Descriptor()
  1269. // wxcard.DefaultIntro holds the default value on creation for the intro field.
  1270. wxcard.DefaultIntro = wxcardDescIntro.Default.(string)
  1271. wxcarduserMixin := schema.WxCardUser{}.Mixin()
  1272. wxcarduserMixinHooks1 := wxcarduserMixin[1].Hooks()
  1273. wxcarduser.Hooks[0] = wxcarduserMixinHooks1[0]
  1274. wxcarduserMixinInters1 := wxcarduserMixin[1].Interceptors()
  1275. wxcarduser.Interceptors[0] = wxcarduserMixinInters1[0]
  1276. wxcarduserMixinFields0 := wxcarduserMixin[0].Fields()
  1277. _ = wxcarduserMixinFields0
  1278. wxcarduserFields := schema.WxCardUser{}.Fields()
  1279. _ = wxcarduserFields
  1280. // wxcarduserDescCreatedAt is the schema descriptor for created_at field.
  1281. wxcarduserDescCreatedAt := wxcarduserMixinFields0[1].Descriptor()
  1282. // wxcarduser.DefaultCreatedAt holds the default value on creation for the created_at field.
  1283. wxcarduser.DefaultCreatedAt = wxcarduserDescCreatedAt.Default.(func() time.Time)
  1284. // wxcarduserDescUpdatedAt is the schema descriptor for updated_at field.
  1285. wxcarduserDescUpdatedAt := wxcarduserMixinFields0[2].Descriptor()
  1286. // wxcarduser.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1287. wxcarduser.DefaultUpdatedAt = wxcarduserDescUpdatedAt.Default.(func() time.Time)
  1288. // wxcarduser.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1289. wxcarduser.UpdateDefaultUpdatedAt = wxcarduserDescUpdatedAt.UpdateDefault.(func() time.Time)
  1290. // wxcarduserDescWxid is the schema descriptor for wxid field.
  1291. wxcarduserDescWxid := wxcarduserFields[0].Descriptor()
  1292. // wxcarduser.DefaultWxid holds the default value on creation for the wxid field.
  1293. wxcarduser.DefaultWxid = wxcarduserDescWxid.Default.(string)
  1294. // wxcarduserDescAccount is the schema descriptor for account field.
  1295. wxcarduserDescAccount := wxcarduserFields[1].Descriptor()
  1296. // wxcarduser.DefaultAccount holds the default value on creation for the account field.
  1297. wxcarduser.DefaultAccount = wxcarduserDescAccount.Default.(string)
  1298. // wxcarduserDescAvatar is the schema descriptor for avatar field.
  1299. wxcarduserDescAvatar := wxcarduserFields[2].Descriptor()
  1300. // wxcarduser.DefaultAvatar holds the default value on creation for the avatar field.
  1301. wxcarduser.DefaultAvatar = wxcarduserDescAvatar.Default.(string)
  1302. // wxcarduserDescNickname is the schema descriptor for nickname field.
  1303. wxcarduserDescNickname := wxcarduserFields[3].Descriptor()
  1304. // wxcarduser.DefaultNickname holds the default value on creation for the nickname field.
  1305. wxcarduser.DefaultNickname = wxcarduserDescNickname.Default.(string)
  1306. // wxcarduserDescRemark is the schema descriptor for remark field.
  1307. wxcarduserDescRemark := wxcarduserFields[4].Descriptor()
  1308. // wxcarduser.DefaultRemark holds the default value on creation for the remark field.
  1309. wxcarduser.DefaultRemark = wxcarduserDescRemark.Default.(string)
  1310. // wxcarduserDescPhone is the schema descriptor for phone field.
  1311. wxcarduserDescPhone := wxcarduserFields[5].Descriptor()
  1312. // wxcarduser.DefaultPhone holds the default value on creation for the phone field.
  1313. wxcarduser.DefaultPhone = wxcarduserDescPhone.Default.(string)
  1314. // wxcarduserDescOpenID is the schema descriptor for open_id field.
  1315. wxcarduserDescOpenID := wxcarduserFields[6].Descriptor()
  1316. // wxcarduser.DefaultOpenID holds the default value on creation for the open_id field.
  1317. wxcarduser.DefaultOpenID = wxcarduserDescOpenID.Default.(string)
  1318. // wxcarduserDescUnionID is the schema descriptor for union_id field.
  1319. wxcarduserDescUnionID := wxcarduserFields[7].Descriptor()
  1320. // wxcarduser.DefaultUnionID holds the default value on creation for the union_id field.
  1321. wxcarduser.DefaultUnionID = wxcarduserDescUnionID.Default.(string)
  1322. // wxcarduserDescSessionKey is the schema descriptor for session_key field.
  1323. wxcarduserDescSessionKey := wxcarduserFields[8].Descriptor()
  1324. // wxcarduser.DefaultSessionKey holds the default value on creation for the session_key field.
  1325. wxcarduser.DefaultSessionKey = wxcarduserDescSessionKey.Default.(string)
  1326. // wxcarduserDescIsVip is the schema descriptor for is_vip field.
  1327. wxcarduserDescIsVip := wxcarduserFields[9].Descriptor()
  1328. // wxcarduser.DefaultIsVip holds the default value on creation for the is_vip field.
  1329. wxcarduser.DefaultIsVip = wxcarduserDescIsVip.Default.(int)
  1330. wxcardvisitMixin := schema.WxCardVisit{}.Mixin()
  1331. wxcardvisitMixinHooks1 := wxcardvisitMixin[1].Hooks()
  1332. wxcardvisit.Hooks[0] = wxcardvisitMixinHooks1[0]
  1333. wxcardvisitMixinInters1 := wxcardvisitMixin[1].Interceptors()
  1334. wxcardvisit.Interceptors[0] = wxcardvisitMixinInters1[0]
  1335. wxcardvisitMixinFields0 := wxcardvisitMixin[0].Fields()
  1336. _ = wxcardvisitMixinFields0
  1337. wxcardvisitFields := schema.WxCardVisit{}.Fields()
  1338. _ = wxcardvisitFields
  1339. // wxcardvisitDescCreatedAt is the schema descriptor for created_at field.
  1340. wxcardvisitDescCreatedAt := wxcardvisitMixinFields0[1].Descriptor()
  1341. // wxcardvisit.DefaultCreatedAt holds the default value on creation for the created_at field.
  1342. wxcardvisit.DefaultCreatedAt = wxcardvisitDescCreatedAt.Default.(func() time.Time)
  1343. // wxcardvisitDescUpdatedAt is the schema descriptor for updated_at field.
  1344. wxcardvisitDescUpdatedAt := wxcardvisitMixinFields0[2].Descriptor()
  1345. // wxcardvisit.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1346. wxcardvisit.DefaultUpdatedAt = wxcardvisitDescUpdatedAt.Default.(func() time.Time)
  1347. // wxcardvisit.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1348. wxcardvisit.UpdateDefaultUpdatedAt = wxcardvisitDescUpdatedAt.UpdateDefault.(func() time.Time)
  1349. // wxcardvisitDescUserID is the schema descriptor for user_id field.
  1350. wxcardvisitDescUserID := wxcardvisitFields[0].Descriptor()
  1351. // wxcardvisit.DefaultUserID holds the default value on creation for the user_id field.
  1352. wxcardvisit.DefaultUserID = wxcardvisitDescUserID.Default.(uint64)
  1353. // wxcardvisitDescBotID is the schema descriptor for bot_id field.
  1354. wxcardvisitDescBotID := wxcardvisitFields[1].Descriptor()
  1355. // wxcardvisit.DefaultBotID holds the default value on creation for the bot_id field.
  1356. wxcardvisit.DefaultBotID = wxcardvisitDescBotID.Default.(uint64)
  1357. // wxcardvisitDescBotType is the schema descriptor for bot_type field.
  1358. wxcardvisitDescBotType := wxcardvisitFields[2].Descriptor()
  1359. // wxcardvisit.DefaultBotType holds the default value on creation for the bot_type field.
  1360. wxcardvisit.DefaultBotType = wxcardvisitDescBotType.Default.(uint8)
  1361. }
  1362. const (
  1363. Version = "v0.13.1" // Version of ent codegen.
  1364. Sum = "h1:uD8QwN1h6SNphdCCzmkMN3feSUzNnVvV/WIkHKMbzOE=" // Sum of ent codegen.
  1365. )