runtime.go 105 KB

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