runtime.go 111 KB

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