runtime.go 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716
  1. // Code generated by ent, DO NOT EDIT.
  2. package runtime
  3. import (
  4. "time"
  5. "wechat-api/ent/agent"
  6. "wechat-api/ent/batchmsg"
  7. "wechat-api/ent/contact"
  8. "wechat-api/ent/employee"
  9. "wechat-api/ent/label"
  10. "wechat-api/ent/labelrelationship"
  11. "wechat-api/ent/message"
  12. "wechat-api/ent/messagerecords"
  13. "wechat-api/ent/msg"
  14. "wechat-api/ent/schema"
  15. "wechat-api/ent/server"
  16. "wechat-api/ent/sopnode"
  17. "wechat-api/ent/sopstage"
  18. "wechat-api/ent/soptask"
  19. "wechat-api/ent/tutorial"
  20. "wechat-api/ent/workexperience"
  21. "wechat-api/ent/wx"
  22. )
  23. // The init function reads all schema descriptors with runtime code
  24. // (default values, validators, hooks and policies) and stitches it
  25. // to their package variables.
  26. func init() {
  27. agentMixin := schema.Agent{}.Mixin()
  28. agentMixinHooks1 := agentMixin[1].Hooks()
  29. agent.Hooks[0] = agentMixinHooks1[0]
  30. agentMixinInters1 := agentMixin[1].Interceptors()
  31. agent.Interceptors[0] = agentMixinInters1[0]
  32. agentMixinFields0 := agentMixin[0].Fields()
  33. _ = agentMixinFields0
  34. agentFields := schema.Agent{}.Fields()
  35. _ = agentFields
  36. // agentDescCreatedAt is the schema descriptor for created_at field.
  37. agentDescCreatedAt := agentMixinFields0[1].Descriptor()
  38. // agent.DefaultCreatedAt holds the default value on creation for the created_at field.
  39. agent.DefaultCreatedAt = agentDescCreatedAt.Default.(func() time.Time)
  40. // agentDescUpdatedAt is the schema descriptor for updated_at field.
  41. agentDescUpdatedAt := agentMixinFields0[2].Descriptor()
  42. // agent.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  43. agent.DefaultUpdatedAt = agentDescUpdatedAt.Default.(func() time.Time)
  44. // agent.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  45. agent.UpdateDefaultUpdatedAt = agentDescUpdatedAt.UpdateDefault.(func() time.Time)
  46. // agentDescName is the schema descriptor for name field.
  47. agentDescName := agentFields[0].Descriptor()
  48. // agent.NameValidator is a validator for the "name" field. It is called by the builders before save.
  49. agent.NameValidator = agentDescName.Validators[0].(func(string) error)
  50. // agentDescRole is the schema descriptor for role field.
  51. agentDescRole := agentFields[1].Descriptor()
  52. // agent.RoleValidator is a validator for the "role" field. It is called by the builders before save.
  53. agent.RoleValidator = agentDescRole.Validators[0].(func(string) error)
  54. // agentDescStatus is the schema descriptor for status field.
  55. agentDescStatus := agentFields[2].Descriptor()
  56. // agent.DefaultStatus holds the default value on creation for the status field.
  57. agent.DefaultStatus = agentDescStatus.Default.(int)
  58. // agent.StatusValidator is a validator for the "status" field. It is called by the builders before save.
  59. agent.StatusValidator = agentDescStatus.Validators[0].(func(int) error)
  60. // agentDescBackground is the schema descriptor for background field.
  61. agentDescBackground := agentFields[3].Descriptor()
  62. // agent.DefaultBackground holds the default value on creation for the background field.
  63. agent.DefaultBackground = agentDescBackground.Default.(string)
  64. // agent.BackgroundValidator is a validator for the "background" field. It is called by the builders before save.
  65. agent.BackgroundValidator = agentDescBackground.Validators[0].(func(string) error)
  66. // agentDescExamples is the schema descriptor for examples field.
  67. agentDescExamples := agentFields[4].Descriptor()
  68. // agent.DefaultExamples holds the default value on creation for the examples field.
  69. agent.DefaultExamples = agentDescExamples.Default.(string)
  70. // agent.ExamplesValidator is a validator for the "examples" field. It is called by the builders before save.
  71. agent.ExamplesValidator = agentDescExamples.Validators[0].(func(string) error)
  72. // agentDescOrganizationID is the schema descriptor for organization_id field.
  73. agentDescOrganizationID := agentFields[5].Descriptor()
  74. // agent.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  75. agent.OrganizationIDValidator = agentDescOrganizationID.Validators[0].(func(uint64) error)
  76. batchmsgMixin := schema.BatchMsg{}.Mixin()
  77. batchmsgMixinHooks1 := batchmsgMixin[1].Hooks()
  78. batchmsg.Hooks[0] = batchmsgMixinHooks1[0]
  79. batchmsgMixinInters1 := batchmsgMixin[1].Interceptors()
  80. batchmsg.Interceptors[0] = batchmsgMixinInters1[0]
  81. batchmsgMixinFields0 := batchmsgMixin[0].Fields()
  82. _ = batchmsgMixinFields0
  83. batchmsgFields := schema.BatchMsg{}.Fields()
  84. _ = batchmsgFields
  85. // batchmsgDescCreatedAt is the schema descriptor for created_at field.
  86. batchmsgDescCreatedAt := batchmsgMixinFields0[1].Descriptor()
  87. // batchmsg.DefaultCreatedAt holds the default value on creation for the created_at field.
  88. batchmsg.DefaultCreatedAt = batchmsgDescCreatedAt.Default.(func() time.Time)
  89. // batchmsgDescUpdatedAt is the schema descriptor for updated_at field.
  90. batchmsgDescUpdatedAt := batchmsgMixinFields0[2].Descriptor()
  91. // batchmsg.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  92. batchmsg.DefaultUpdatedAt = batchmsgDescUpdatedAt.Default.(func() time.Time)
  93. // batchmsg.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  94. batchmsg.UpdateDefaultUpdatedAt = batchmsgDescUpdatedAt.UpdateDefault.(func() time.Time)
  95. // batchmsgDescTaskName is the schema descriptor for task_name field.
  96. batchmsgDescTaskName := batchmsgFields[2].Descriptor()
  97. // batchmsg.DefaultTaskName holds the default value on creation for the task_name field.
  98. batchmsg.DefaultTaskName = batchmsgDescTaskName.Default.(string)
  99. contactMixin := schema.Contact{}.Mixin()
  100. contactMixinHooks2 := contactMixin[2].Hooks()
  101. contact.Hooks[0] = contactMixinHooks2[0]
  102. contactMixinInters2 := contactMixin[2].Interceptors()
  103. contact.Interceptors[0] = contactMixinInters2[0]
  104. contactMixinFields0 := contactMixin[0].Fields()
  105. _ = contactMixinFields0
  106. contactMixinFields1 := contactMixin[1].Fields()
  107. _ = contactMixinFields1
  108. contactFields := schema.Contact{}.Fields()
  109. _ = contactFields
  110. // contactDescCreatedAt is the schema descriptor for created_at field.
  111. contactDescCreatedAt := contactMixinFields0[1].Descriptor()
  112. // contact.DefaultCreatedAt holds the default value on creation for the created_at field.
  113. contact.DefaultCreatedAt = contactDescCreatedAt.Default.(func() time.Time)
  114. // contactDescUpdatedAt is the schema descriptor for updated_at field.
  115. contactDescUpdatedAt := contactMixinFields0[2].Descriptor()
  116. // contact.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  117. contact.DefaultUpdatedAt = contactDescUpdatedAt.Default.(func() time.Time)
  118. // contact.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  119. contact.UpdateDefaultUpdatedAt = contactDescUpdatedAt.UpdateDefault.(func() time.Time)
  120. // contactDescStatus is the schema descriptor for status field.
  121. contactDescStatus := contactMixinFields1[0].Descriptor()
  122. // contact.DefaultStatus holds the default value on creation for the status field.
  123. contact.DefaultStatus = contactDescStatus.Default.(uint8)
  124. // contactDescWxWxid is the schema descriptor for wx_wxid field.
  125. contactDescWxWxid := contactFields[0].Descriptor()
  126. // contact.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  127. contact.DefaultWxWxid = contactDescWxWxid.Default.(string)
  128. // contactDescType is the schema descriptor for type field.
  129. contactDescType := contactFields[1].Descriptor()
  130. // contact.DefaultType holds the default value on creation for the type field.
  131. contact.DefaultType = contactDescType.Default.(int)
  132. // contactDescWxid is the schema descriptor for wxid field.
  133. contactDescWxid := contactFields[2].Descriptor()
  134. // contact.DefaultWxid holds the default value on creation for the wxid field.
  135. contact.DefaultWxid = contactDescWxid.Default.(string)
  136. // contactDescAccount is the schema descriptor for account field.
  137. contactDescAccount := contactFields[3].Descriptor()
  138. // contact.DefaultAccount holds the default value on creation for the account field.
  139. contact.DefaultAccount = contactDescAccount.Default.(string)
  140. // contactDescNickname is the schema descriptor for nickname field.
  141. contactDescNickname := contactFields[4].Descriptor()
  142. // contact.DefaultNickname holds the default value on creation for the nickname field.
  143. contact.DefaultNickname = contactDescNickname.Default.(string)
  144. // contactDescMarkname is the schema descriptor for markname field.
  145. contactDescMarkname := contactFields[5].Descriptor()
  146. // contact.DefaultMarkname holds the default value on creation for the markname field.
  147. contact.DefaultMarkname = contactDescMarkname.Default.(string)
  148. // contactDescHeadimg is the schema descriptor for headimg field.
  149. contactDescHeadimg := contactFields[6].Descriptor()
  150. // contact.DefaultHeadimg holds the default value on creation for the headimg field.
  151. contact.DefaultHeadimg = contactDescHeadimg.Default.(string)
  152. // contactDescSex is the schema descriptor for sex field.
  153. contactDescSex := contactFields[7].Descriptor()
  154. // contact.DefaultSex holds the default value on creation for the sex field.
  155. contact.DefaultSex = contactDescSex.Default.(int)
  156. // contactDescStarrole is the schema descriptor for starrole field.
  157. contactDescStarrole := contactFields[8].Descriptor()
  158. // contact.DefaultStarrole holds the default value on creation for the starrole field.
  159. contact.DefaultStarrole = contactDescStarrole.Default.(string)
  160. // contactDescDontseeit is the schema descriptor for dontseeit field.
  161. contactDescDontseeit := contactFields[9].Descriptor()
  162. // contact.DefaultDontseeit holds the default value on creation for the dontseeit field.
  163. contact.DefaultDontseeit = contactDescDontseeit.Default.(int)
  164. // contactDescDontseeme is the schema descriptor for dontseeme field.
  165. contactDescDontseeme := contactFields[10].Descriptor()
  166. // contact.DefaultDontseeme holds the default value on creation for the dontseeme field.
  167. contact.DefaultDontseeme = contactDescDontseeme.Default.(int)
  168. // contactDescLag is the schema descriptor for lag field.
  169. contactDescLag := contactFields[11].Descriptor()
  170. // contact.DefaultLag holds the default value on creation for the lag field.
  171. contact.DefaultLag = contactDescLag.Default.(string)
  172. // contactDescGid is the schema descriptor for gid field.
  173. contactDescGid := contactFields[12].Descriptor()
  174. // contact.DefaultGid holds the default value on creation for the gid field.
  175. contact.DefaultGid = contactDescGid.Default.(string)
  176. // contactDescGname is the schema descriptor for gname field.
  177. contactDescGname := contactFields[13].Descriptor()
  178. // contact.DefaultGname holds the default value on creation for the gname field.
  179. contact.DefaultGname = contactDescGname.Default.(string)
  180. // contactDescV3 is the schema descriptor for v3 field.
  181. contactDescV3 := contactFields[14].Descriptor()
  182. // contact.DefaultV3 holds the default value on creation for the v3 field.
  183. contact.DefaultV3 = contactDescV3.Default.(string)
  184. // contactDescOrganizationID is the schema descriptor for organization_id field.
  185. contactDescOrganizationID := contactFields[15].Descriptor()
  186. // contact.DefaultOrganizationID holds the default value on creation for the organization_id field.
  187. contact.DefaultOrganizationID = contactDescOrganizationID.Default.(uint64)
  188. employeeMixin := schema.Employee{}.Mixin()
  189. employeeMixinHooks1 := employeeMixin[1].Hooks()
  190. employee.Hooks[0] = employeeMixinHooks1[0]
  191. employeeMixinInters1 := employeeMixin[1].Interceptors()
  192. employee.Interceptors[0] = employeeMixinInters1[0]
  193. employeeMixinFields0 := employeeMixin[0].Fields()
  194. _ = employeeMixinFields0
  195. employeeFields := schema.Employee{}.Fields()
  196. _ = employeeFields
  197. // employeeDescCreatedAt is the schema descriptor for created_at field.
  198. employeeDescCreatedAt := employeeMixinFields0[1].Descriptor()
  199. // employee.DefaultCreatedAt holds the default value on creation for the created_at field.
  200. employee.DefaultCreatedAt = employeeDescCreatedAt.Default.(func() time.Time)
  201. // employeeDescUpdatedAt is the schema descriptor for updated_at field.
  202. employeeDescUpdatedAt := employeeMixinFields0[2].Descriptor()
  203. // employee.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  204. employee.DefaultUpdatedAt = employeeDescUpdatedAt.Default.(func() time.Time)
  205. // employee.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  206. employee.UpdateDefaultUpdatedAt = employeeDescUpdatedAt.UpdateDefault.(func() time.Time)
  207. // employeeDescTitle is the schema descriptor for title field.
  208. employeeDescTitle := employeeFields[0].Descriptor()
  209. // employee.TitleValidator is a validator for the "title" field. It is called by the builders before save.
  210. employee.TitleValidator = employeeDescTitle.Validators[0].(func(string) error)
  211. // employeeDescAvatar is the schema descriptor for avatar field.
  212. employeeDescAvatar := employeeFields[1].Descriptor()
  213. // employee.AvatarValidator is a validator for the "avatar" field. It is called by the builders before save.
  214. employee.AvatarValidator = employeeDescAvatar.Validators[0].(func(string) error)
  215. // employeeDescTags is the schema descriptor for tags field.
  216. employeeDescTags := employeeFields[2].Descriptor()
  217. // employee.TagsValidator is a validator for the "tags" field. It is called by the builders before save.
  218. employee.TagsValidator = employeeDescTags.Validators[0].(func(string) error)
  219. // employeeDescHireCount is the schema descriptor for hire_count field.
  220. employeeDescHireCount := employeeFields[3].Descriptor()
  221. // employee.DefaultHireCount holds the default value on creation for the hire_count field.
  222. employee.DefaultHireCount = employeeDescHireCount.Default.(int)
  223. // employee.HireCountValidator is a validator for the "hire_count" field. It is called by the builders before save.
  224. employee.HireCountValidator = employeeDescHireCount.Validators[0].(func(int) error)
  225. // employeeDescServiceCount is the schema descriptor for service_count field.
  226. employeeDescServiceCount := employeeFields[4].Descriptor()
  227. // employee.DefaultServiceCount holds the default value on creation for the service_count field.
  228. employee.DefaultServiceCount = employeeDescServiceCount.Default.(int)
  229. // employee.ServiceCountValidator is a validator for the "service_count" field. It is called by the builders before save.
  230. employee.ServiceCountValidator = employeeDescServiceCount.Validators[0].(func(int) error)
  231. // employeeDescAchievementCount is the schema descriptor for achievement_count field.
  232. employeeDescAchievementCount := employeeFields[5].Descriptor()
  233. // employee.DefaultAchievementCount holds the default value on creation for the achievement_count field.
  234. employee.DefaultAchievementCount = employeeDescAchievementCount.Default.(int)
  235. // employee.AchievementCountValidator is a validator for the "achievement_count" field. It is called by the builders before save.
  236. employee.AchievementCountValidator = employeeDescAchievementCount.Validators[0].(func(int) error)
  237. // employeeDescIntro is the schema descriptor for intro field.
  238. employeeDescIntro := employeeFields[6].Descriptor()
  239. // employee.DefaultIntro holds the default value on creation for the intro field.
  240. employee.DefaultIntro = employeeDescIntro.Default.(string)
  241. // employee.IntroValidator is a validator for the "intro" field. It is called by the builders before save.
  242. employee.IntroValidator = employeeDescIntro.Validators[0].(func(string) error)
  243. // employeeDescEstimate is the schema descriptor for estimate field.
  244. employeeDescEstimate := employeeFields[7].Descriptor()
  245. // employee.DefaultEstimate holds the default value on creation for the estimate field.
  246. employee.DefaultEstimate = employeeDescEstimate.Default.(string)
  247. // employee.EstimateValidator is a validator for the "estimate" field. It is called by the builders before save.
  248. employee.EstimateValidator = employeeDescEstimate.Validators[0].(func(string) error)
  249. // employeeDescSkill is the schema descriptor for skill field.
  250. employeeDescSkill := employeeFields[8].Descriptor()
  251. // employee.DefaultSkill holds the default value on creation for the skill field.
  252. employee.DefaultSkill = employeeDescSkill.Default.(string)
  253. // employee.SkillValidator is a validator for the "skill" field. It is called by the builders before save.
  254. employee.SkillValidator = employeeDescSkill.Validators[0].(func(string) error)
  255. // employeeDescAbilityType is the schema descriptor for ability_type field.
  256. employeeDescAbilityType := employeeFields[9].Descriptor()
  257. // employee.DefaultAbilityType holds the default value on creation for the ability_type field.
  258. employee.DefaultAbilityType = employeeDescAbilityType.Default.(string)
  259. // employeeDescScene is the schema descriptor for scene field.
  260. employeeDescScene := employeeFields[10].Descriptor()
  261. // employee.DefaultScene holds the default value on creation for the scene field.
  262. employee.DefaultScene = employeeDescScene.Default.(string)
  263. // employeeDescSwitchIn is the schema descriptor for switch_in field.
  264. employeeDescSwitchIn := employeeFields[11].Descriptor()
  265. // employee.DefaultSwitchIn holds the default value on creation for the switch_in field.
  266. employee.DefaultSwitchIn = employeeDescSwitchIn.Default.(string)
  267. // employeeDescVideoURL is the schema descriptor for video_url field.
  268. employeeDescVideoURL := employeeFields[12].Descriptor()
  269. // employee.DefaultVideoURL holds the default value on creation for the video_url field.
  270. employee.DefaultVideoURL = employeeDescVideoURL.Default.(string)
  271. // employee.VideoURLValidator is a validator for the "video_url" field. It is called by the builders before save.
  272. employee.VideoURLValidator = employeeDescVideoURL.Validators[0].(func(string) error)
  273. // employeeDescOrganizationID is the schema descriptor for organization_id field.
  274. employeeDescOrganizationID := employeeFields[13].Descriptor()
  275. // employee.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  276. employee.OrganizationIDValidator = employeeDescOrganizationID.Validators[0].(func(uint64) error)
  277. labelMixin := schema.Label{}.Mixin()
  278. labelMixinFields0 := labelMixin[0].Fields()
  279. _ = labelMixinFields0
  280. labelMixinFields1 := labelMixin[1].Fields()
  281. _ = labelMixinFields1
  282. labelFields := schema.Label{}.Fields()
  283. _ = labelFields
  284. // labelDescCreatedAt is the schema descriptor for created_at field.
  285. labelDescCreatedAt := labelMixinFields0[1].Descriptor()
  286. // label.DefaultCreatedAt holds the default value on creation for the created_at field.
  287. label.DefaultCreatedAt = labelDescCreatedAt.Default.(func() time.Time)
  288. // labelDescUpdatedAt is the schema descriptor for updated_at field.
  289. labelDescUpdatedAt := labelMixinFields0[2].Descriptor()
  290. // label.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  291. label.DefaultUpdatedAt = labelDescUpdatedAt.Default.(func() time.Time)
  292. // label.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  293. label.UpdateDefaultUpdatedAt = labelDescUpdatedAt.UpdateDefault.(func() time.Time)
  294. // labelDescStatus is the schema descriptor for status field.
  295. labelDescStatus := labelMixinFields1[0].Descriptor()
  296. // label.DefaultStatus holds the default value on creation for the status field.
  297. label.DefaultStatus = labelDescStatus.Default.(uint8)
  298. // labelDescType is the schema descriptor for type field.
  299. labelDescType := labelFields[0].Descriptor()
  300. // label.DefaultType holds the default value on creation for the type field.
  301. label.DefaultType = labelDescType.Default.(int)
  302. // labelDescName is the schema descriptor for name field.
  303. labelDescName := labelFields[1].Descriptor()
  304. // label.DefaultName holds the default value on creation for the name field.
  305. label.DefaultName = labelDescName.Default.(string)
  306. // labelDescFrom is the schema descriptor for from field.
  307. labelDescFrom := labelFields[2].Descriptor()
  308. // label.DefaultFrom holds the default value on creation for the from field.
  309. label.DefaultFrom = labelDescFrom.Default.(int)
  310. // labelDescMode is the schema descriptor for mode field.
  311. labelDescMode := labelFields[3].Descriptor()
  312. // label.DefaultMode holds the default value on creation for the mode field.
  313. label.DefaultMode = labelDescMode.Default.(int)
  314. // labelDescConditions is the schema descriptor for conditions field.
  315. labelDescConditions := labelFields[4].Descriptor()
  316. // label.DefaultConditions holds the default value on creation for the conditions field.
  317. label.DefaultConditions = labelDescConditions.Default.(string)
  318. // labelDescOrganizationID is the schema descriptor for organization_id field.
  319. labelDescOrganizationID := labelFields[5].Descriptor()
  320. // label.DefaultOrganizationID holds the default value on creation for the organization_id field.
  321. label.DefaultOrganizationID = labelDescOrganizationID.Default.(uint64)
  322. labelrelationshipMixin := schema.LabelRelationship{}.Mixin()
  323. labelrelationshipMixinHooks2 := labelrelationshipMixin[2].Hooks()
  324. labelrelationship.Hooks[0] = labelrelationshipMixinHooks2[0]
  325. labelrelationshipMixinInters2 := labelrelationshipMixin[2].Interceptors()
  326. labelrelationship.Interceptors[0] = labelrelationshipMixinInters2[0]
  327. labelrelationshipMixinFields0 := labelrelationshipMixin[0].Fields()
  328. _ = labelrelationshipMixinFields0
  329. labelrelationshipMixinFields1 := labelrelationshipMixin[1].Fields()
  330. _ = labelrelationshipMixinFields1
  331. labelrelationshipFields := schema.LabelRelationship{}.Fields()
  332. _ = labelrelationshipFields
  333. // labelrelationshipDescCreatedAt is the schema descriptor for created_at field.
  334. labelrelationshipDescCreatedAt := labelrelationshipMixinFields0[1].Descriptor()
  335. // labelrelationship.DefaultCreatedAt holds the default value on creation for the created_at field.
  336. labelrelationship.DefaultCreatedAt = labelrelationshipDescCreatedAt.Default.(func() time.Time)
  337. // labelrelationshipDescUpdatedAt is the schema descriptor for updated_at field.
  338. labelrelationshipDescUpdatedAt := labelrelationshipMixinFields0[2].Descriptor()
  339. // labelrelationship.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  340. labelrelationship.DefaultUpdatedAt = labelrelationshipDescUpdatedAt.Default.(func() time.Time)
  341. // labelrelationship.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  342. labelrelationship.UpdateDefaultUpdatedAt = labelrelationshipDescUpdatedAt.UpdateDefault.(func() time.Time)
  343. // labelrelationshipDescStatus is the schema descriptor for status field.
  344. labelrelationshipDescStatus := labelrelationshipMixinFields1[0].Descriptor()
  345. // labelrelationship.DefaultStatus holds the default value on creation for the status field.
  346. labelrelationship.DefaultStatus = labelrelationshipDescStatus.Default.(uint8)
  347. // labelrelationshipDescLabelID is the schema descriptor for label_id field.
  348. labelrelationshipDescLabelID := labelrelationshipFields[0].Descriptor()
  349. // labelrelationship.DefaultLabelID holds the default value on creation for the label_id field.
  350. labelrelationship.DefaultLabelID = labelrelationshipDescLabelID.Default.(uint64)
  351. // labelrelationshipDescContactID is the schema descriptor for contact_id field.
  352. labelrelationshipDescContactID := labelrelationshipFields[1].Descriptor()
  353. // labelrelationship.DefaultContactID holds the default value on creation for the contact_id field.
  354. labelrelationship.DefaultContactID = labelrelationshipDescContactID.Default.(uint64)
  355. // labelrelationshipDescOrganizationID is the schema descriptor for organization_id field.
  356. labelrelationshipDescOrganizationID := labelrelationshipFields[2].Descriptor()
  357. // labelrelationship.DefaultOrganizationID holds the default value on creation for the organization_id field.
  358. labelrelationship.DefaultOrganizationID = labelrelationshipDescOrganizationID.Default.(uint64)
  359. messageFields := schema.Message{}.Fields()
  360. _ = messageFields
  361. // messageDescWxWxid is the schema descriptor for wx_wxid field.
  362. messageDescWxWxid := messageFields[0].Descriptor()
  363. // message.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  364. message.DefaultWxWxid = messageDescWxWxid.Default.(string)
  365. // messageDescWxid is the schema descriptor for wxid field.
  366. messageDescWxid := messageFields[1].Descriptor()
  367. // message.DefaultWxid holds the default value on creation for the wxid field.
  368. message.DefaultWxid = messageDescWxid.Default.(string)
  369. // messageDescContent is the schema descriptor for content field.
  370. messageDescContent := messageFields[2].Descriptor()
  371. // message.DefaultContent holds the default value on creation for the content field.
  372. message.DefaultContent = messageDescContent.Default.(string)
  373. messagerecordsMixin := schema.MessageRecords{}.Mixin()
  374. messagerecordsMixinHooks2 := messagerecordsMixin[2].Hooks()
  375. messagerecords.Hooks[0] = messagerecordsMixinHooks2[0]
  376. messagerecordsMixinInters2 := messagerecordsMixin[2].Interceptors()
  377. messagerecords.Interceptors[0] = messagerecordsMixinInters2[0]
  378. messagerecordsMixinFields0 := messagerecordsMixin[0].Fields()
  379. _ = messagerecordsMixinFields0
  380. messagerecordsMixinFields1 := messagerecordsMixin[1].Fields()
  381. _ = messagerecordsMixinFields1
  382. messagerecordsFields := schema.MessageRecords{}.Fields()
  383. _ = messagerecordsFields
  384. // messagerecordsDescCreatedAt is the schema descriptor for created_at field.
  385. messagerecordsDescCreatedAt := messagerecordsMixinFields0[1].Descriptor()
  386. // messagerecords.DefaultCreatedAt holds the default value on creation for the created_at field.
  387. messagerecords.DefaultCreatedAt = messagerecordsDescCreatedAt.Default.(func() time.Time)
  388. // messagerecordsDescUpdatedAt is the schema descriptor for updated_at field.
  389. messagerecordsDescUpdatedAt := messagerecordsMixinFields0[2].Descriptor()
  390. // messagerecords.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  391. messagerecords.DefaultUpdatedAt = messagerecordsDescUpdatedAt.Default.(func() time.Time)
  392. // messagerecords.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  393. messagerecords.UpdateDefaultUpdatedAt = messagerecordsDescUpdatedAt.UpdateDefault.(func() time.Time)
  394. // messagerecordsDescStatus is the schema descriptor for status field.
  395. messagerecordsDescStatus := messagerecordsMixinFields1[0].Descriptor()
  396. // messagerecords.DefaultStatus holds the default value on creation for the status field.
  397. messagerecords.DefaultStatus = messagerecordsDescStatus.Default.(uint8)
  398. // messagerecordsDescContactType is the schema descriptor for contact_type field.
  399. messagerecordsDescContactType := messagerecordsFields[2].Descriptor()
  400. // messagerecords.DefaultContactType holds the default value on creation for the contact_type field.
  401. messagerecords.DefaultContactType = messagerecordsDescContactType.Default.(int)
  402. // messagerecordsDescContactWxid is the schema descriptor for contact_wxid field.
  403. messagerecordsDescContactWxid := messagerecordsFields[3].Descriptor()
  404. // messagerecords.DefaultContactWxid holds the default value on creation for the contact_wxid field.
  405. messagerecords.DefaultContactWxid = messagerecordsDescContactWxid.Default.(string)
  406. // messagerecordsDescContentType is the schema descriptor for content_type field.
  407. messagerecordsDescContentType := messagerecordsFields[4].Descriptor()
  408. // messagerecords.DefaultContentType holds the default value on creation for the content_type field.
  409. messagerecords.DefaultContentType = messagerecordsDescContentType.Default.(int)
  410. // messagerecordsDescContent is the schema descriptor for content field.
  411. messagerecordsDescContent := messagerecordsFields[5].Descriptor()
  412. // messagerecords.DefaultContent holds the default value on creation for the content field.
  413. messagerecords.DefaultContent = messagerecordsDescContent.Default.(string)
  414. // messagerecordsDescErrorDetail is the schema descriptor for error_detail field.
  415. messagerecordsDescErrorDetail := messagerecordsFields[7].Descriptor()
  416. // messagerecords.DefaultErrorDetail holds the default value on creation for the error_detail field.
  417. messagerecords.DefaultErrorDetail = messagerecordsDescErrorDetail.Default.(string)
  418. // messagerecordsDescSourceType is the schema descriptor for source_type field.
  419. messagerecordsDescSourceType := messagerecordsFields[9].Descriptor()
  420. // messagerecords.DefaultSourceType holds the default value on creation for the source_type field.
  421. messagerecords.DefaultSourceType = messagerecordsDescSourceType.Default.(int)
  422. // messagerecordsDescSourceID is the schema descriptor for source_id field.
  423. messagerecordsDescSourceID := messagerecordsFields[10].Descriptor()
  424. // messagerecords.DefaultSourceID holds the default value on creation for the source_id field.
  425. messagerecords.DefaultSourceID = messagerecordsDescSourceID.Default.(uint64)
  426. // messagerecordsDescSubSourceID is the schema descriptor for sub_source_id field.
  427. messagerecordsDescSubSourceID := messagerecordsFields[11].Descriptor()
  428. // messagerecords.DefaultSubSourceID holds the default value on creation for the sub_source_id field.
  429. messagerecords.DefaultSubSourceID = messagerecordsDescSubSourceID.Default.(uint64)
  430. // messagerecordsDescOrganizationID is the schema descriptor for organization_id field.
  431. messagerecordsDescOrganizationID := messagerecordsFields[12].Descriptor()
  432. // messagerecords.DefaultOrganizationID holds the default value on creation for the organization_id field.
  433. messagerecords.DefaultOrganizationID = messagerecordsDescOrganizationID.Default.(uint64)
  434. msgMixin := schema.Msg{}.Mixin()
  435. msgMixinHooks1 := msgMixin[1].Hooks()
  436. msg.Hooks[0] = msgMixinHooks1[0]
  437. msgMixinInters1 := msgMixin[1].Interceptors()
  438. msg.Interceptors[0] = msgMixinInters1[0]
  439. msgMixinFields0 := msgMixin[0].Fields()
  440. _ = msgMixinFields0
  441. msgFields := schema.Msg{}.Fields()
  442. _ = msgFields
  443. // msgDescCreatedAt is the schema descriptor for created_at field.
  444. msgDescCreatedAt := msgMixinFields0[1].Descriptor()
  445. // msg.DefaultCreatedAt holds the default value on creation for the created_at field.
  446. msg.DefaultCreatedAt = msgDescCreatedAt.Default.(func() time.Time)
  447. // msgDescUpdatedAt is the schema descriptor for updated_at field.
  448. msgDescUpdatedAt := msgMixinFields0[2].Descriptor()
  449. // msg.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  450. msg.DefaultUpdatedAt = msgDescUpdatedAt.Default.(func() time.Time)
  451. // msg.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  452. msg.UpdateDefaultUpdatedAt = msgDescUpdatedAt.UpdateDefault.(func() time.Time)
  453. serverMixin := schema.Server{}.Mixin()
  454. serverMixinHooks2 := serverMixin[2].Hooks()
  455. server.Hooks[0] = serverMixinHooks2[0]
  456. serverMixinInters2 := serverMixin[2].Interceptors()
  457. server.Interceptors[0] = serverMixinInters2[0]
  458. serverMixinFields0 := serverMixin[0].Fields()
  459. _ = serverMixinFields0
  460. serverMixinFields1 := serverMixin[1].Fields()
  461. _ = serverMixinFields1
  462. serverFields := schema.Server{}.Fields()
  463. _ = serverFields
  464. // serverDescCreatedAt is the schema descriptor for created_at field.
  465. serverDescCreatedAt := serverMixinFields0[1].Descriptor()
  466. // server.DefaultCreatedAt holds the default value on creation for the created_at field.
  467. server.DefaultCreatedAt = serverDescCreatedAt.Default.(func() time.Time)
  468. // serverDescUpdatedAt is the schema descriptor for updated_at field.
  469. serverDescUpdatedAt := serverMixinFields0[2].Descriptor()
  470. // server.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  471. server.DefaultUpdatedAt = serverDescUpdatedAt.Default.(func() time.Time)
  472. // server.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  473. server.UpdateDefaultUpdatedAt = serverDescUpdatedAt.UpdateDefault.(func() time.Time)
  474. // serverDescStatus is the schema descriptor for status field.
  475. serverDescStatus := serverMixinFields1[0].Descriptor()
  476. // server.DefaultStatus holds the default value on creation for the status field.
  477. server.DefaultStatus = serverDescStatus.Default.(uint8)
  478. sopnodeMixin := schema.SopNode{}.Mixin()
  479. sopnodeMixinHooks2 := sopnodeMixin[2].Hooks()
  480. sopnode.Hooks[0] = sopnodeMixinHooks2[0]
  481. sopnodeMixinInters2 := sopnodeMixin[2].Interceptors()
  482. sopnode.Interceptors[0] = sopnodeMixinInters2[0]
  483. sopnodeMixinFields0 := sopnodeMixin[0].Fields()
  484. _ = sopnodeMixinFields0
  485. sopnodeMixinFields1 := sopnodeMixin[1].Fields()
  486. _ = sopnodeMixinFields1
  487. sopnodeFields := schema.SopNode{}.Fields()
  488. _ = sopnodeFields
  489. // sopnodeDescCreatedAt is the schema descriptor for created_at field.
  490. sopnodeDescCreatedAt := sopnodeMixinFields0[1].Descriptor()
  491. // sopnode.DefaultCreatedAt holds the default value on creation for the created_at field.
  492. sopnode.DefaultCreatedAt = sopnodeDescCreatedAt.Default.(func() time.Time)
  493. // sopnodeDescUpdatedAt is the schema descriptor for updated_at field.
  494. sopnodeDescUpdatedAt := sopnodeMixinFields0[2].Descriptor()
  495. // sopnode.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  496. sopnode.DefaultUpdatedAt = sopnodeDescUpdatedAt.Default.(func() time.Time)
  497. // sopnode.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  498. sopnode.UpdateDefaultUpdatedAt = sopnodeDescUpdatedAt.UpdateDefault.(func() time.Time)
  499. // sopnodeDescStatus is the schema descriptor for status field.
  500. sopnodeDescStatus := sopnodeMixinFields1[0].Descriptor()
  501. // sopnode.DefaultStatus holds the default value on creation for the status field.
  502. sopnode.DefaultStatus = sopnodeDescStatus.Default.(uint8)
  503. // sopnodeDescName is the schema descriptor for name field.
  504. sopnodeDescName := sopnodeFields[2].Descriptor()
  505. // sopnode.DefaultName holds the default value on creation for the name field.
  506. sopnode.DefaultName = sopnodeDescName.Default.(string)
  507. // sopnodeDescConditionType is the schema descriptor for condition_type field.
  508. sopnodeDescConditionType := sopnodeFields[3].Descriptor()
  509. // sopnode.DefaultConditionType holds the default value on creation for the condition_type field.
  510. sopnode.DefaultConditionType = sopnodeDescConditionType.Default.(int)
  511. // sopnodeDescNoReplyCondition is the schema descriptor for no_reply_condition field.
  512. sopnodeDescNoReplyCondition := sopnodeFields[5].Descriptor()
  513. // sopnode.DefaultNoReplyCondition holds the default value on creation for the no_reply_condition field.
  514. sopnode.DefaultNoReplyCondition = sopnodeDescNoReplyCondition.Default.(uint64)
  515. sopstageMixin := schema.SopStage{}.Mixin()
  516. sopstageMixinHooks2 := sopstageMixin[2].Hooks()
  517. sopstage.Hooks[0] = sopstageMixinHooks2[0]
  518. sopstageMixinInters2 := sopstageMixin[2].Interceptors()
  519. sopstage.Interceptors[0] = sopstageMixinInters2[0]
  520. sopstageMixinFields0 := sopstageMixin[0].Fields()
  521. _ = sopstageMixinFields0
  522. sopstageMixinFields1 := sopstageMixin[1].Fields()
  523. _ = sopstageMixinFields1
  524. sopstageFields := schema.SopStage{}.Fields()
  525. _ = sopstageFields
  526. // sopstageDescCreatedAt is the schema descriptor for created_at field.
  527. sopstageDescCreatedAt := sopstageMixinFields0[1].Descriptor()
  528. // sopstage.DefaultCreatedAt holds the default value on creation for the created_at field.
  529. sopstage.DefaultCreatedAt = sopstageDescCreatedAt.Default.(func() time.Time)
  530. // sopstageDescUpdatedAt is the schema descriptor for updated_at field.
  531. sopstageDescUpdatedAt := sopstageMixinFields0[2].Descriptor()
  532. // sopstage.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  533. sopstage.DefaultUpdatedAt = sopstageDescUpdatedAt.Default.(func() time.Time)
  534. // sopstage.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  535. sopstage.UpdateDefaultUpdatedAt = sopstageDescUpdatedAt.UpdateDefault.(func() time.Time)
  536. // sopstageDescStatus is the schema descriptor for status field.
  537. sopstageDescStatus := sopstageMixinFields1[0].Descriptor()
  538. // sopstage.DefaultStatus holds the default value on creation for the status field.
  539. sopstage.DefaultStatus = sopstageDescStatus.Default.(uint8)
  540. // sopstageDescName is the schema descriptor for name field.
  541. sopstageDescName := sopstageFields[1].Descriptor()
  542. // sopstage.DefaultName holds the default value on creation for the name field.
  543. sopstage.DefaultName = sopstageDescName.Default.(string)
  544. // sopstageDescConditionType is the schema descriptor for condition_type field.
  545. sopstageDescConditionType := sopstageFields[2].Descriptor()
  546. // sopstage.DefaultConditionType holds the default value on creation for the condition_type field.
  547. sopstage.DefaultConditionType = sopstageDescConditionType.Default.(int)
  548. // sopstageDescConditionOperator is the schema descriptor for condition_operator field.
  549. sopstageDescConditionOperator := sopstageFields[3].Descriptor()
  550. // sopstage.DefaultConditionOperator holds the default value on creation for the condition_operator field.
  551. sopstage.DefaultConditionOperator = sopstageDescConditionOperator.Default.(int)
  552. // sopstageDescIndexSort is the schema descriptor for index_sort field.
  553. sopstageDescIndexSort := sopstageFields[7].Descriptor()
  554. // sopstage.DefaultIndexSort holds the default value on creation for the index_sort field.
  555. sopstage.DefaultIndexSort = sopstageDescIndexSort.Default.(int)
  556. soptaskMixin := schema.SopTask{}.Mixin()
  557. soptaskMixinHooks2 := soptaskMixin[2].Hooks()
  558. soptask.Hooks[0] = soptaskMixinHooks2[0]
  559. soptaskMixinInters2 := soptaskMixin[2].Interceptors()
  560. soptask.Interceptors[0] = soptaskMixinInters2[0]
  561. soptaskMixinFields0 := soptaskMixin[0].Fields()
  562. _ = soptaskMixinFields0
  563. soptaskMixinFields1 := soptaskMixin[1].Fields()
  564. _ = soptaskMixinFields1
  565. soptaskFields := schema.SopTask{}.Fields()
  566. _ = soptaskFields
  567. // soptaskDescCreatedAt is the schema descriptor for created_at field.
  568. soptaskDescCreatedAt := soptaskMixinFields0[1].Descriptor()
  569. // soptask.DefaultCreatedAt holds the default value on creation for the created_at field.
  570. soptask.DefaultCreatedAt = soptaskDescCreatedAt.Default.(func() time.Time)
  571. // soptaskDescUpdatedAt is the schema descriptor for updated_at field.
  572. soptaskDescUpdatedAt := soptaskMixinFields0[2].Descriptor()
  573. // soptask.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  574. soptask.DefaultUpdatedAt = soptaskDescUpdatedAt.Default.(func() time.Time)
  575. // soptask.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  576. soptask.UpdateDefaultUpdatedAt = soptaskDescUpdatedAt.UpdateDefault.(func() time.Time)
  577. // soptaskDescStatus is the schema descriptor for status field.
  578. soptaskDescStatus := soptaskMixinFields1[0].Descriptor()
  579. // soptask.DefaultStatus holds the default value on creation for the status field.
  580. soptask.DefaultStatus = soptaskDescStatus.Default.(uint8)
  581. // soptaskDescName is the schema descriptor for name field.
  582. soptaskDescName := soptaskFields[0].Descriptor()
  583. // soptask.NameValidator is a validator for the "name" field. It is called by the builders before save.
  584. soptask.NameValidator = soptaskDescName.Validators[0].(func(string) error)
  585. // soptaskDescType is the schema descriptor for type field.
  586. soptaskDescType := soptaskFields[2].Descriptor()
  587. // soptask.DefaultType holds the default value on creation for the type field.
  588. soptask.DefaultType = soptaskDescType.Default.(int)
  589. // soptaskDescOrganizationID is the schema descriptor for organization_id field.
  590. soptaskDescOrganizationID := soptaskFields[6].Descriptor()
  591. // soptask.DefaultOrganizationID holds the default value on creation for the organization_id field.
  592. soptask.DefaultOrganizationID = soptaskDescOrganizationID.Default.(uint64)
  593. tutorialMixin := schema.Tutorial{}.Mixin()
  594. tutorialMixinHooks1 := tutorialMixin[1].Hooks()
  595. tutorial.Hooks[0] = tutorialMixinHooks1[0]
  596. tutorialMixinInters1 := tutorialMixin[1].Interceptors()
  597. tutorial.Interceptors[0] = tutorialMixinInters1[0]
  598. tutorialMixinFields0 := tutorialMixin[0].Fields()
  599. _ = tutorialMixinFields0
  600. tutorialFields := schema.Tutorial{}.Fields()
  601. _ = tutorialFields
  602. // tutorialDescCreatedAt is the schema descriptor for created_at field.
  603. tutorialDescCreatedAt := tutorialMixinFields0[1].Descriptor()
  604. // tutorial.DefaultCreatedAt holds the default value on creation for the created_at field.
  605. tutorial.DefaultCreatedAt = tutorialDescCreatedAt.Default.(func() time.Time)
  606. // tutorialDescUpdatedAt is the schema descriptor for updated_at field.
  607. tutorialDescUpdatedAt := tutorialMixinFields0[2].Descriptor()
  608. // tutorial.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  609. tutorial.DefaultUpdatedAt = tutorialDescUpdatedAt.Default.(func() time.Time)
  610. // tutorial.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  611. tutorial.UpdateDefaultUpdatedAt = tutorialDescUpdatedAt.UpdateDefault.(func() time.Time)
  612. // tutorialDescEmployeeID is the schema descriptor for employee_id field.
  613. tutorialDescEmployeeID := tutorialFields[0].Descriptor()
  614. // tutorial.EmployeeIDValidator is a validator for the "employee_id" field. It is called by the builders before save.
  615. tutorial.EmployeeIDValidator = tutorialDescEmployeeID.Validators[0].(func(uint64) error)
  616. // tutorialDescOrganizationID is the schema descriptor for organization_id field.
  617. tutorialDescOrganizationID := tutorialFields[4].Descriptor()
  618. // tutorial.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  619. tutorial.OrganizationIDValidator = tutorialDescOrganizationID.Validators[0].(func(uint64) error)
  620. workexperienceMixin := schema.WorkExperience{}.Mixin()
  621. workexperienceMixinHooks1 := workexperienceMixin[1].Hooks()
  622. workexperience.Hooks[0] = workexperienceMixinHooks1[0]
  623. workexperienceMixinInters1 := workexperienceMixin[1].Interceptors()
  624. workexperience.Interceptors[0] = workexperienceMixinInters1[0]
  625. workexperienceMixinFields0 := workexperienceMixin[0].Fields()
  626. _ = workexperienceMixinFields0
  627. workexperienceFields := schema.WorkExperience{}.Fields()
  628. _ = workexperienceFields
  629. // workexperienceDescCreatedAt is the schema descriptor for created_at field.
  630. workexperienceDescCreatedAt := workexperienceMixinFields0[1].Descriptor()
  631. // workexperience.DefaultCreatedAt holds the default value on creation for the created_at field.
  632. workexperience.DefaultCreatedAt = workexperienceDescCreatedAt.Default.(func() time.Time)
  633. // workexperienceDescUpdatedAt is the schema descriptor for updated_at field.
  634. workexperienceDescUpdatedAt := workexperienceMixinFields0[2].Descriptor()
  635. // workexperience.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  636. workexperience.DefaultUpdatedAt = workexperienceDescUpdatedAt.Default.(func() time.Time)
  637. // workexperience.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  638. workexperience.UpdateDefaultUpdatedAt = workexperienceDescUpdatedAt.UpdateDefault.(func() time.Time)
  639. wxMixin := schema.Wx{}.Mixin()
  640. wxMixinHooks2 := wxMixin[2].Hooks()
  641. wx.Hooks[0] = wxMixinHooks2[0]
  642. wxMixinInters2 := wxMixin[2].Interceptors()
  643. wx.Interceptors[0] = wxMixinInters2[0]
  644. wxMixinFields0 := wxMixin[0].Fields()
  645. _ = wxMixinFields0
  646. wxMixinFields1 := wxMixin[1].Fields()
  647. _ = wxMixinFields1
  648. wxFields := schema.Wx{}.Fields()
  649. _ = wxFields
  650. // wxDescCreatedAt is the schema descriptor for created_at field.
  651. wxDescCreatedAt := wxMixinFields0[1].Descriptor()
  652. // wx.DefaultCreatedAt holds the default value on creation for the created_at field.
  653. wx.DefaultCreatedAt = wxDescCreatedAt.Default.(func() time.Time)
  654. // wxDescUpdatedAt is the schema descriptor for updated_at field.
  655. wxDescUpdatedAt := wxMixinFields0[2].Descriptor()
  656. // wx.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  657. wx.DefaultUpdatedAt = wxDescUpdatedAt.Default.(func() time.Time)
  658. // wx.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  659. wx.UpdateDefaultUpdatedAt = wxDescUpdatedAt.UpdateDefault.(func() time.Time)
  660. // wxDescStatus is the schema descriptor for status field.
  661. wxDescStatus := wxMixinFields1[0].Descriptor()
  662. // wx.DefaultStatus holds the default value on creation for the status field.
  663. wx.DefaultStatus = wxDescStatus.Default.(uint8)
  664. // wxDescServerID is the schema descriptor for server_id field.
  665. wxDescServerID := wxFields[0].Descriptor()
  666. // wx.DefaultServerID holds the default value on creation for the server_id field.
  667. wx.DefaultServerID = wxDescServerID.Default.(uint64)
  668. // wxDescPort is the schema descriptor for port field.
  669. wxDescPort := wxFields[1].Descriptor()
  670. // wx.DefaultPort holds the default value on creation for the port field.
  671. wx.DefaultPort = wxDescPort.Default.(string)
  672. // wxDescProcessID is the schema descriptor for process_id field.
  673. wxDescProcessID := wxFields[2].Descriptor()
  674. // wx.DefaultProcessID holds the default value on creation for the process_id field.
  675. wx.DefaultProcessID = wxDescProcessID.Default.(string)
  676. // wxDescCallback is the schema descriptor for callback field.
  677. wxDescCallback := wxFields[3].Descriptor()
  678. // wx.DefaultCallback holds the default value on creation for the callback field.
  679. wx.DefaultCallback = wxDescCallback.Default.(string)
  680. // wxDescWxid is the schema descriptor for wxid field.
  681. wxDescWxid := wxFields[4].Descriptor()
  682. // wx.DefaultWxid holds the default value on creation for the wxid field.
  683. wx.DefaultWxid = wxDescWxid.Default.(string)
  684. // wxDescAccount is the schema descriptor for account field.
  685. wxDescAccount := wxFields[5].Descriptor()
  686. // wx.DefaultAccount holds the default value on creation for the account field.
  687. wx.DefaultAccount = wxDescAccount.Default.(string)
  688. // wxDescNickname is the schema descriptor for nickname field.
  689. wxDescNickname := wxFields[6].Descriptor()
  690. // wx.DefaultNickname holds the default value on creation for the nickname field.
  691. wx.DefaultNickname = wxDescNickname.Default.(string)
  692. // wxDescTel is the schema descriptor for tel field.
  693. wxDescTel := wxFields[7].Descriptor()
  694. // wx.DefaultTel holds the default value on creation for the tel field.
  695. wx.DefaultTel = wxDescTel.Default.(string)
  696. // wxDescHeadBig is the schema descriptor for head_big field.
  697. wxDescHeadBig := wxFields[8].Descriptor()
  698. // wx.DefaultHeadBig holds the default value on creation for the head_big field.
  699. wx.DefaultHeadBig = wxDescHeadBig.Default.(string)
  700. // wxDescOrganizationID is the schema descriptor for organization_id field.
  701. wxDescOrganizationID := wxFields[9].Descriptor()
  702. // wx.DefaultOrganizationID holds the default value on creation for the organization_id field.
  703. wx.DefaultOrganizationID = wxDescOrganizationID.Default.(uint64)
  704. // wxDescAgentID is the schema descriptor for agent_id field.
  705. wxDescAgentID := wxFields[10].Descriptor()
  706. // wx.DefaultAgentID holds the default value on creation for the agent_id field.
  707. wx.DefaultAgentID = wxDescAgentID.Default.(uint64)
  708. }
  709. const (
  710. Version = "v0.13.1" // Version of ent codegen.
  711. Sum = "h1:uD8QwN1h6SNphdCCzmkMN3feSUzNnVvV/WIkHKMbzOE=" // Sum of ent codegen.
  712. )