runtime.go 88 KB

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