runtime.go 95 KB

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