runtime.go 150 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260
  1. // Code generated by ent, DO NOT EDIT.
  2. package runtime
  3. import (
  4. "time"
  5. "wechat-api/ent/addwechatfriendlog"
  6. "wechat-api/ent/agent"
  7. "wechat-api/ent/agentbase"
  8. "wechat-api/ent/aliyunavatar"
  9. "wechat-api/ent/allocagent"
  10. "wechat-api/ent/apikey"
  11. "wechat-api/ent/batchmsg"
  12. "wechat-api/ent/category"
  13. "wechat-api/ent/chatrecords"
  14. "wechat-api/ent/chatsession"
  15. "wechat-api/ent/compapiasynctask"
  16. "wechat-api/ent/contact"
  17. "wechat-api/ent/contactfield"
  18. "wechat-api/ent/contactfieldtemplate"
  19. "wechat-api/ent/creditbalance"
  20. "wechat-api/ent/creditusage"
  21. "wechat-api/ent/employee"
  22. "wechat-api/ent/employeeconfig"
  23. "wechat-api/ent/label"
  24. "wechat-api/ent/labellog"
  25. "wechat-api/ent/labelrelationship"
  26. "wechat-api/ent/labeltagging"
  27. "wechat-api/ent/message"
  28. "wechat-api/ent/messagerecords"
  29. "wechat-api/ent/msg"
  30. "wechat-api/ent/payrecharge"
  31. "wechat-api/ent/schema"
  32. "wechat-api/ent/server"
  33. "wechat-api/ent/sopnode"
  34. "wechat-api/ent/sopstage"
  35. "wechat-api/ent/soptask"
  36. "wechat-api/ent/token"
  37. "wechat-api/ent/tutorial"
  38. "wechat-api/ent/usagedetail"
  39. "wechat-api/ent/usagestatisticday"
  40. "wechat-api/ent/usagestatistichour"
  41. "wechat-api/ent/usagestatisticmonth"
  42. "wechat-api/ent/usagetotal"
  43. "wechat-api/ent/whatsapp"
  44. "wechat-api/ent/whatsappchannel"
  45. "wechat-api/ent/workexperience"
  46. "wechat-api/ent/wpchatroom"
  47. "wechat-api/ent/wpchatroommember"
  48. "wechat-api/ent/wx"
  49. "wechat-api/ent/wxcard"
  50. "wechat-api/ent/wxcarduser"
  51. "wechat-api/ent/wxcardvisit"
  52. "wechat-api/ent/xunji"
  53. "wechat-api/ent/xunjiservice"
  54. )
  55. // The init function reads all schema descriptors with runtime code
  56. // (default values, validators, hooks and policies) and stitches it
  57. // to their package variables.
  58. func init() {
  59. addwechatfriendlogFields := schema.AddWechatFriendLog{}.Fields()
  60. _ = addwechatfriendlogFields
  61. // addwechatfriendlogDescOwnerWxID is the schema descriptor for owner_wx_id field.
  62. addwechatfriendlogDescOwnerWxID := addwechatfriendlogFields[1].Descriptor()
  63. // addwechatfriendlog.DefaultOwnerWxID holds the default value on creation for the owner_wx_id field.
  64. addwechatfriendlog.DefaultOwnerWxID = addwechatfriendlogDescOwnerWxID.Default.(string)
  65. // addwechatfriendlog.OwnerWxIDValidator is a validator for the "owner_wx_id" field. It is called by the builders before save.
  66. addwechatfriendlog.OwnerWxIDValidator = func() func(string) error {
  67. validators := addwechatfriendlogDescOwnerWxID.Validators
  68. fns := [...]func(string) error{
  69. validators[0].(func(string) error),
  70. validators[1].(func(string) error),
  71. }
  72. return func(owner_wx_id string) error {
  73. for _, fn := range fns {
  74. if err := fn(owner_wx_id); err != nil {
  75. return err
  76. }
  77. }
  78. return nil
  79. }
  80. }()
  81. // addwechatfriendlogDescOwnerWxType is the schema descriptor for owner_wx_type field.
  82. addwechatfriendlogDescOwnerWxType := addwechatfriendlogFields[2].Descriptor()
  83. // addwechatfriendlog.DefaultOwnerWxType holds the default value on creation for the owner_wx_type field.
  84. addwechatfriendlog.DefaultOwnerWxType = addwechatfriendlogDescOwnerWxType.Default.(int)
  85. // addwechatfriendlogDescFindContent is the schema descriptor for find_content field.
  86. addwechatfriendlogDescFindContent := addwechatfriendlogFields[3].Descriptor()
  87. // addwechatfriendlog.DefaultFindContent holds the default value on creation for the find_content field.
  88. addwechatfriendlog.DefaultFindContent = addwechatfriendlogDescFindContent.Default.(string)
  89. // addwechatfriendlog.FindContentValidator is a validator for the "find_content" field. It is called by the builders before save.
  90. addwechatfriendlog.FindContentValidator = func() func(string) error {
  91. validators := addwechatfriendlogDescFindContent.Validators
  92. fns := [...]func(string) error{
  93. validators[0].(func(string) error),
  94. validators[1].(func(string) error),
  95. }
  96. return func(find_content string) error {
  97. for _, fn := range fns {
  98. if err := fn(find_content); err != nil {
  99. return err
  100. }
  101. }
  102. return nil
  103. }
  104. }()
  105. // addwechatfriendlogDescMessage is the schema descriptor for message field.
  106. addwechatfriendlogDescMessage := addwechatfriendlogFields[4].Descriptor()
  107. // addwechatfriendlog.DefaultMessage holds the default value on creation for the message field.
  108. addwechatfriendlog.DefaultMessage = addwechatfriendlogDescMessage.Default.(string)
  109. // addwechatfriendlog.MessageValidator is a validator for the "message" field. It is called by the builders before save.
  110. addwechatfriendlog.MessageValidator = func() func(string) error {
  111. validators := addwechatfriendlogDescMessage.Validators
  112. fns := [...]func(string) error{
  113. validators[0].(func(string) error),
  114. validators[1].(func(string) error),
  115. }
  116. return func(message string) error {
  117. for _, fn := range fns {
  118. if err := fn(message); err != nil {
  119. return err
  120. }
  121. }
  122. return nil
  123. }
  124. }()
  125. // addwechatfriendlogDescIsCanAdd is the schema descriptor for is_can_add field.
  126. addwechatfriendlogDescIsCanAdd := addwechatfriendlogFields[7].Descriptor()
  127. // addwechatfriendlog.DefaultIsCanAdd holds the default value on creation for the is_can_add field.
  128. addwechatfriendlog.DefaultIsCanAdd = addwechatfriendlogDescIsCanAdd.Default.(int)
  129. // addwechatfriendlogDescTaskCount is the schema descriptor for task_count field.
  130. addwechatfriendlogDescTaskCount := addwechatfriendlogFields[8].Descriptor()
  131. // addwechatfriendlog.DefaultTaskCount holds the default value on creation for the task_count field.
  132. addwechatfriendlog.DefaultTaskCount = addwechatfriendlogDescTaskCount.Default.(int)
  133. // addwechatfriendlogDescTaskID is the schema descriptor for task_id field.
  134. addwechatfriendlogDescTaskID := addwechatfriendlogFields[9].Descriptor()
  135. // addwechatfriendlog.DefaultTaskID holds the default value on creation for the task_id field.
  136. addwechatfriendlog.DefaultTaskID = addwechatfriendlogDescTaskID.Default.(int64)
  137. // addwechatfriendlogDescCreatedAt is the schema descriptor for created_at field.
  138. addwechatfriendlogDescCreatedAt := addwechatfriendlogFields[12].Descriptor()
  139. // addwechatfriendlog.DefaultCreatedAt holds the default value on creation for the created_at field.
  140. addwechatfriendlog.DefaultCreatedAt = addwechatfriendlogDescCreatedAt.Default.(func() int64)
  141. // addwechatfriendlogDescUpdatedAt is the schema descriptor for updated_at field.
  142. addwechatfriendlogDescUpdatedAt := addwechatfriendlogFields[13].Descriptor()
  143. // addwechatfriendlog.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  144. addwechatfriendlog.DefaultUpdatedAt = addwechatfriendlogDescUpdatedAt.Default.(func() int64)
  145. // addwechatfriendlog.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  146. addwechatfriendlog.UpdateDefaultUpdatedAt = addwechatfriendlogDescUpdatedAt.UpdateDefault.(func() int64)
  147. // addwechatfriendlogDescSource is the schema descriptor for source field.
  148. addwechatfriendlogDescSource := addwechatfriendlogFields[14].Descriptor()
  149. // addwechatfriendlog.DefaultSource holds the default value on creation for the source field.
  150. addwechatfriendlog.DefaultSource = addwechatfriendlogDescSource.Default.(int)
  151. // addwechatfriendlogDescNickName is the schema descriptor for nick_name field.
  152. addwechatfriendlogDescNickName := addwechatfriendlogFields[15].Descriptor()
  153. // addwechatfriendlog.DefaultNickName holds the default value on creation for the nick_name field.
  154. addwechatfriendlog.DefaultNickName = addwechatfriendlogDescNickName.Default.(string)
  155. // addwechatfriendlog.NickNameValidator is a validator for the "nick_name" field. It is called by the builders before save.
  156. addwechatfriendlog.NickNameValidator = func() func(string) error {
  157. validators := addwechatfriendlogDescNickName.Validators
  158. fns := [...]func(string) error{
  159. validators[0].(func(string) error),
  160. validators[1].(func(string) error),
  161. }
  162. return func(nick_name string) error {
  163. for _, fn := range fns {
  164. if err := fn(nick_name); err != nil {
  165. return err
  166. }
  167. }
  168. return nil
  169. }
  170. }()
  171. // addwechatfriendlogDescAvatar is the schema descriptor for avatar field.
  172. addwechatfriendlogDescAvatar := addwechatfriendlogFields[16].Descriptor()
  173. // addwechatfriendlog.DefaultAvatar holds the default value on creation for the avatar field.
  174. addwechatfriendlog.DefaultAvatar = addwechatfriendlogDescAvatar.Default.(string)
  175. // addwechatfriendlog.AvatarValidator is a validator for the "avatar" field. It is called by the builders before save.
  176. addwechatfriendlog.AvatarValidator = func() func(string) error {
  177. validators := addwechatfriendlogDescAvatar.Validators
  178. fns := [...]func(string) error{
  179. validators[0].(func(string) error),
  180. validators[1].(func(string) error),
  181. }
  182. return func(avatar string) error {
  183. for _, fn := range fns {
  184. if err := fn(avatar); err != nil {
  185. return err
  186. }
  187. }
  188. return nil
  189. }
  190. }()
  191. // addwechatfriendlogDescOrganizationID is the schema descriptor for organization_id field.
  192. addwechatfriendlogDescOrganizationID := addwechatfriendlogFields[17].Descriptor()
  193. // addwechatfriendlog.DefaultOrganizationID holds the default value on creation for the organization_id field.
  194. addwechatfriendlog.DefaultOrganizationID = addwechatfriendlogDescOrganizationID.Default.(int64)
  195. agentMixin := schema.Agent{}.Mixin()
  196. agentMixinHooks1 := agentMixin[1].Hooks()
  197. agent.Hooks[0] = agentMixinHooks1[0]
  198. agentMixinInters1 := agentMixin[1].Interceptors()
  199. agent.Interceptors[0] = agentMixinInters1[0]
  200. agentMixinFields0 := agentMixin[0].Fields()
  201. _ = agentMixinFields0
  202. agentFields := schema.Agent{}.Fields()
  203. _ = agentFields
  204. // agentDescCreatedAt is the schema descriptor for created_at field.
  205. agentDescCreatedAt := agentMixinFields0[1].Descriptor()
  206. // agent.DefaultCreatedAt holds the default value on creation for the created_at field.
  207. agent.DefaultCreatedAt = agentDescCreatedAt.Default.(func() time.Time)
  208. // agentDescUpdatedAt is the schema descriptor for updated_at field.
  209. agentDescUpdatedAt := agentMixinFields0[2].Descriptor()
  210. // agent.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  211. agent.DefaultUpdatedAt = agentDescUpdatedAt.Default.(func() time.Time)
  212. // agent.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  213. agent.UpdateDefaultUpdatedAt = agentDescUpdatedAt.UpdateDefault.(func() time.Time)
  214. // agentDescName is the schema descriptor for name field.
  215. agentDescName := agentFields[0].Descriptor()
  216. // agent.NameValidator is a validator for the "name" field. It is called by the builders before save.
  217. agent.NameValidator = agentDescName.Validators[0].(func(string) error)
  218. // agentDescRole is the schema descriptor for role field.
  219. agentDescRole := agentFields[1].Descriptor()
  220. // agent.DefaultRole holds the default value on creation for the role field.
  221. agent.DefaultRole = agentDescRole.Default.(string)
  222. // agentDescStatus is the schema descriptor for status field.
  223. agentDescStatus := agentFields[2].Descriptor()
  224. // agent.DefaultStatus holds the default value on creation for the status field.
  225. agent.DefaultStatus = agentDescStatus.Default.(int)
  226. // agent.StatusValidator is a validator for the "status" field. It is called by the builders before save.
  227. agent.StatusValidator = agentDescStatus.Validators[0].(func(int) error)
  228. // agentDescBackground is the schema descriptor for background field.
  229. agentDescBackground := agentFields[3].Descriptor()
  230. // agent.DefaultBackground holds the default value on creation for the background field.
  231. agent.DefaultBackground = agentDescBackground.Default.(string)
  232. // agentDescExamples is the schema descriptor for examples field.
  233. agentDescExamples := agentFields[4].Descriptor()
  234. // agent.DefaultExamples holds the default value on creation for the examples field.
  235. agent.DefaultExamples = agentDescExamples.Default.(string)
  236. // agentDescOrganizationID is the schema descriptor for organization_id field.
  237. agentDescOrganizationID := agentFields[5].Descriptor()
  238. // agent.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  239. agent.OrganizationIDValidator = agentDescOrganizationID.Validators[0].(func(uint64) error)
  240. // agentDescDatasetID is the schema descriptor for dataset_id field.
  241. agentDescDatasetID := agentFields[6].Descriptor()
  242. // agent.DefaultDatasetID holds the default value on creation for the dataset_id field.
  243. agent.DefaultDatasetID = agentDescDatasetID.Default.(string)
  244. // agent.DatasetIDValidator is a validator for the "dataset_id" field. It is called by the builders before save.
  245. agent.DatasetIDValidator = agentDescDatasetID.Validators[0].(func(string) error)
  246. // agentDescCollectionID is the schema descriptor for collection_id field.
  247. agentDescCollectionID := agentFields[7].Descriptor()
  248. // agent.DefaultCollectionID holds the default value on creation for the collection_id field.
  249. agent.DefaultCollectionID = agentDescCollectionID.Default.(string)
  250. // agent.CollectionIDValidator is a validator for the "collection_id" field. It is called by the builders before save.
  251. agent.CollectionIDValidator = agentDescCollectionID.Validators[0].(func(string) error)
  252. // agentDescModel is the schema descriptor for model field.
  253. agentDescModel := agentFields[8].Descriptor()
  254. // agent.DefaultModel holds the default value on creation for the model field.
  255. agent.DefaultModel = agentDescModel.Default.(string)
  256. // agentDescAPIBase is the schema descriptor for api_base field.
  257. agentDescAPIBase := agentFields[9].Descriptor()
  258. // agent.DefaultAPIBase holds the default value on creation for the api_base field.
  259. agent.DefaultAPIBase = agentDescAPIBase.Default.(string)
  260. // agentDescAPIKey is the schema descriptor for api_key field.
  261. agentDescAPIKey := agentFields[10].Descriptor()
  262. // agent.DefaultAPIKey holds the default value on creation for the api_key field.
  263. agent.DefaultAPIKey = agentDescAPIKey.Default.(string)
  264. // agentDescType is the schema descriptor for type field.
  265. agentDescType := agentFields[11].Descriptor()
  266. // agent.DefaultType holds the default value on creation for the type field.
  267. agent.DefaultType = agentDescType.Default.(int)
  268. // agent.TypeValidator is a validator for the "type" field. It is called by the builders before save.
  269. agent.TypeValidator = agentDescType.Validators[0].(func(int) error)
  270. agentbaseFields := schema.AgentBase{}.Fields()
  271. _ = agentbaseFields
  272. // agentbaseDescQ is the schema descriptor for q field.
  273. agentbaseDescQ := agentbaseFields[1].Descriptor()
  274. // agentbase.DefaultQ holds the default value on creation for the q field.
  275. agentbase.DefaultQ = agentbaseDescQ.Default.(string)
  276. // agentbaseDescA is the schema descriptor for a field.
  277. agentbaseDescA := agentbaseFields[2].Descriptor()
  278. // agentbase.DefaultA holds the default value on creation for the a field.
  279. agentbase.DefaultA = agentbaseDescA.Default.(string)
  280. // agentbaseDescChunkIndex is the schema descriptor for chunk_index field.
  281. agentbaseDescChunkIndex := agentbaseFields[3].Descriptor()
  282. // agentbase.ChunkIndexValidator is a validator for the "chunk_index" field. It is called by the builders before save.
  283. agentbase.ChunkIndexValidator = agentbaseDescChunkIndex.Validators[0].(func(uint64) error)
  284. // agentbaseDescDatasetID is the schema descriptor for dataset_id field.
  285. agentbaseDescDatasetID := agentbaseFields[5].Descriptor()
  286. // agentbase.DefaultDatasetID holds the default value on creation for the dataset_id field.
  287. agentbase.DefaultDatasetID = agentbaseDescDatasetID.Default.(string)
  288. // agentbaseDescCollectionID is the schema descriptor for collection_id field.
  289. agentbaseDescCollectionID := agentbaseFields[6].Descriptor()
  290. // agentbase.DefaultCollectionID holds the default value on creation for the collection_id field.
  291. agentbase.DefaultCollectionID = agentbaseDescCollectionID.Default.(string)
  292. // agentbaseDescSourceName is the schema descriptor for source_name field.
  293. agentbaseDescSourceName := agentbaseFields[7].Descriptor()
  294. // agentbase.DefaultSourceName holds the default value on creation for the source_name field.
  295. agentbase.DefaultSourceName = agentbaseDescSourceName.Default.(string)
  296. aliyunavatarMixin := schema.AliyunAvatar{}.Mixin()
  297. aliyunavatarMixinHooks1 := aliyunavatarMixin[1].Hooks()
  298. aliyunavatar.Hooks[0] = aliyunavatarMixinHooks1[0]
  299. aliyunavatarMixinInters1 := aliyunavatarMixin[1].Interceptors()
  300. aliyunavatar.Interceptors[0] = aliyunavatarMixinInters1[0]
  301. aliyunavatarMixinFields0 := aliyunavatarMixin[0].Fields()
  302. _ = aliyunavatarMixinFields0
  303. aliyunavatarFields := schema.AliyunAvatar{}.Fields()
  304. _ = aliyunavatarFields
  305. // aliyunavatarDescCreatedAt is the schema descriptor for created_at field.
  306. aliyunavatarDescCreatedAt := aliyunavatarMixinFields0[1].Descriptor()
  307. // aliyunavatar.DefaultCreatedAt holds the default value on creation for the created_at field.
  308. aliyunavatar.DefaultCreatedAt = aliyunavatarDescCreatedAt.Default.(func() time.Time)
  309. // aliyunavatarDescUpdatedAt is the schema descriptor for updated_at field.
  310. aliyunavatarDescUpdatedAt := aliyunavatarMixinFields0[2].Descriptor()
  311. // aliyunavatar.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  312. aliyunavatar.DefaultUpdatedAt = aliyunavatarDescUpdatedAt.Default.(func() time.Time)
  313. // aliyunavatar.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  314. aliyunavatar.UpdateDefaultUpdatedAt = aliyunavatarDescUpdatedAt.UpdateDefault.(func() time.Time)
  315. // aliyunavatarDescToken is the schema descriptor for token field.
  316. aliyunavatarDescToken := aliyunavatarFields[7].Descriptor()
  317. // aliyunavatar.DefaultToken holds the default value on creation for the token field.
  318. aliyunavatar.DefaultToken = aliyunavatarDescToken.Default.(string)
  319. // aliyunavatarDescSessionID is the schema descriptor for session_id field.
  320. aliyunavatarDescSessionID := aliyunavatarFields[8].Descriptor()
  321. // aliyunavatar.DefaultSessionID holds the default value on creation for the session_id field.
  322. aliyunavatar.DefaultSessionID = aliyunavatarDescSessionID.Default.(string)
  323. allocagentMixin := schema.AllocAgent{}.Mixin()
  324. allocagentMixinHooks1 := allocagentMixin[1].Hooks()
  325. allocagent.Hooks[0] = allocagentMixinHooks1[0]
  326. allocagentMixinInters1 := allocagentMixin[1].Interceptors()
  327. allocagent.Interceptors[0] = allocagentMixinInters1[0]
  328. allocagentMixinFields0 := allocagentMixin[0].Fields()
  329. _ = allocagentMixinFields0
  330. allocagentFields := schema.AllocAgent{}.Fields()
  331. _ = allocagentFields
  332. // allocagentDescCreatedAt is the schema descriptor for created_at field.
  333. allocagentDescCreatedAt := allocagentMixinFields0[1].Descriptor()
  334. // allocagent.DefaultCreatedAt holds the default value on creation for the created_at field.
  335. allocagent.DefaultCreatedAt = allocagentDescCreatedAt.Default.(func() time.Time)
  336. // allocagentDescUpdatedAt is the schema descriptor for updated_at field.
  337. allocagentDescUpdatedAt := allocagentMixinFields0[2].Descriptor()
  338. // allocagent.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  339. allocagent.DefaultUpdatedAt = allocagentDescUpdatedAt.Default.(func() time.Time)
  340. // allocagent.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  341. allocagent.UpdateDefaultUpdatedAt = allocagentDescUpdatedAt.UpdateDefault.(func() time.Time)
  342. // allocagentDescUserID is the schema descriptor for user_id field.
  343. allocagentDescUserID := allocagentFields[0].Descriptor()
  344. // allocagent.DefaultUserID holds the default value on creation for the user_id field.
  345. allocagent.DefaultUserID = allocagentDescUserID.Default.(string)
  346. // allocagentDescOrganizationID is the schema descriptor for organization_id field.
  347. allocagentDescOrganizationID := allocagentFields[1].Descriptor()
  348. // allocagent.DefaultOrganizationID holds the default value on creation for the organization_id field.
  349. allocagent.DefaultOrganizationID = allocagentDescOrganizationID.Default.(uint64)
  350. // allocagentDescStatus is the schema descriptor for status field.
  351. allocagentDescStatus := allocagentFields[3].Descriptor()
  352. // allocagent.DefaultStatus holds the default value on creation for the status field.
  353. allocagent.DefaultStatus = allocagentDescStatus.Default.(int)
  354. // allocagent.StatusValidator is a validator for the "status" field. It is called by the builders before save.
  355. allocagent.StatusValidator = allocagentDescStatus.Validators[0].(func(int) error)
  356. apikeyMixin := schema.ApiKey{}.Mixin()
  357. apikeyMixinHooks1 := apikeyMixin[1].Hooks()
  358. apikey.Hooks[0] = apikeyMixinHooks1[0]
  359. apikeyMixinInters1 := apikeyMixin[1].Interceptors()
  360. apikey.Interceptors[0] = apikeyMixinInters1[0]
  361. apikeyMixinFields0 := apikeyMixin[0].Fields()
  362. _ = apikeyMixinFields0
  363. apikeyFields := schema.ApiKey{}.Fields()
  364. _ = apikeyFields
  365. // apikeyDescCreatedAt is the schema descriptor for created_at field.
  366. apikeyDescCreatedAt := apikeyMixinFields0[1].Descriptor()
  367. // apikey.DefaultCreatedAt holds the default value on creation for the created_at field.
  368. apikey.DefaultCreatedAt = apikeyDescCreatedAt.Default.(func() time.Time)
  369. // apikeyDescUpdatedAt is the schema descriptor for updated_at field.
  370. apikeyDescUpdatedAt := apikeyMixinFields0[2].Descriptor()
  371. // apikey.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  372. apikey.DefaultUpdatedAt = apikeyDescUpdatedAt.Default.(func() time.Time)
  373. // apikey.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  374. apikey.UpdateDefaultUpdatedAt = apikeyDescUpdatedAt.UpdateDefault.(func() time.Time)
  375. // apikeyDescTitle is the schema descriptor for title field.
  376. apikeyDescTitle := apikeyFields[0].Descriptor()
  377. // apikey.DefaultTitle holds the default value on creation for the title field.
  378. apikey.DefaultTitle = apikeyDescTitle.Default.(string)
  379. // apikeyDescKey is the schema descriptor for key field.
  380. apikeyDescKey := apikeyFields[1].Descriptor()
  381. // apikey.DefaultKey holds the default value on creation for the key field.
  382. apikey.DefaultKey = apikeyDescKey.Default.(string)
  383. // apikeyDescOrganizationID is the schema descriptor for organization_id field.
  384. apikeyDescOrganizationID := apikeyFields[2].Descriptor()
  385. // apikey.DefaultOrganizationID holds the default value on creation for the organization_id field.
  386. apikey.DefaultOrganizationID = apikeyDescOrganizationID.Default.(uint64)
  387. // apikeyDescAgentID is the schema descriptor for agent_id field.
  388. apikeyDescAgentID := apikeyFields[3].Descriptor()
  389. // apikey.DefaultAgentID holds the default value on creation for the agent_id field.
  390. apikey.DefaultAgentID = apikeyDescAgentID.Default.(uint64)
  391. // apikeyDescCustomAgentBase is the schema descriptor for custom_agent_base field.
  392. apikeyDescCustomAgentBase := apikeyFields[4].Descriptor()
  393. // apikey.DefaultCustomAgentBase holds the default value on creation for the custom_agent_base field.
  394. apikey.DefaultCustomAgentBase = apikeyDescCustomAgentBase.Default.(string)
  395. // apikeyDescCustomAgentKey is the schema descriptor for custom_agent_key field.
  396. apikeyDescCustomAgentKey := apikeyFields[5].Descriptor()
  397. // apikey.DefaultCustomAgentKey holds the default value on creation for the custom_agent_key field.
  398. apikey.DefaultCustomAgentKey = apikeyDescCustomAgentKey.Default.(string)
  399. // apikeyDescOpenaiBase is the schema descriptor for openai_base field.
  400. apikeyDescOpenaiBase := apikeyFields[6].Descriptor()
  401. // apikey.DefaultOpenaiBase holds the default value on creation for the openai_base field.
  402. apikey.DefaultOpenaiBase = apikeyDescOpenaiBase.Default.(string)
  403. // apikeyDescOpenaiKey is the schema descriptor for openai_key field.
  404. apikeyDescOpenaiKey := apikeyFields[7].Descriptor()
  405. // apikey.DefaultOpenaiKey holds the default value on creation for the openai_key field.
  406. apikey.DefaultOpenaiKey = apikeyDescOpenaiKey.Default.(string)
  407. batchmsgMixin := schema.BatchMsg{}.Mixin()
  408. batchmsgMixinHooks1 := batchmsgMixin[1].Hooks()
  409. batchmsg.Hooks[0] = batchmsgMixinHooks1[0]
  410. batchmsgMixinInters1 := batchmsgMixin[1].Interceptors()
  411. batchmsg.Interceptors[0] = batchmsgMixinInters1[0]
  412. batchmsgMixinFields0 := batchmsgMixin[0].Fields()
  413. _ = batchmsgMixinFields0
  414. batchmsgFields := schema.BatchMsg{}.Fields()
  415. _ = batchmsgFields
  416. // batchmsgDescCreatedAt is the schema descriptor for created_at field.
  417. batchmsgDescCreatedAt := batchmsgMixinFields0[1].Descriptor()
  418. // batchmsg.DefaultCreatedAt holds the default value on creation for the created_at field.
  419. batchmsg.DefaultCreatedAt = batchmsgDescCreatedAt.Default.(func() time.Time)
  420. // batchmsgDescUpdatedAt is the schema descriptor for updated_at field.
  421. batchmsgDescUpdatedAt := batchmsgMixinFields0[2].Descriptor()
  422. // batchmsg.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  423. batchmsg.DefaultUpdatedAt = batchmsgDescUpdatedAt.Default.(func() time.Time)
  424. // batchmsg.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  425. batchmsg.UpdateDefaultUpdatedAt = batchmsgDescUpdatedAt.UpdateDefault.(func() time.Time)
  426. // batchmsgDescTaskName is the schema descriptor for task_name field.
  427. batchmsgDescTaskName := batchmsgFields[2].Descriptor()
  428. // batchmsg.DefaultTaskName holds the default value on creation for the task_name field.
  429. batchmsg.DefaultTaskName = batchmsgDescTaskName.Default.(string)
  430. // batchmsgDescOrganizationID is the schema descriptor for organization_id field.
  431. batchmsgDescOrganizationID := batchmsgFields[14].Descriptor()
  432. // batchmsg.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  433. batchmsg.OrganizationIDValidator = batchmsgDescOrganizationID.Validators[0].(func(uint64) error)
  434. // batchmsgDescCtype is the schema descriptor for ctype field.
  435. batchmsgDescCtype := batchmsgFields[15].Descriptor()
  436. // batchmsg.DefaultCtype holds the default value on creation for the ctype field.
  437. batchmsg.DefaultCtype = batchmsgDescCtype.Default.(uint64)
  438. categoryMixin := schema.Category{}.Mixin()
  439. categoryMixinHooks1 := categoryMixin[1].Hooks()
  440. category.Hooks[0] = categoryMixinHooks1[0]
  441. categoryMixinInters1 := categoryMixin[1].Interceptors()
  442. category.Interceptors[0] = categoryMixinInters1[0]
  443. categoryMixinFields0 := categoryMixin[0].Fields()
  444. _ = categoryMixinFields0
  445. categoryFields := schema.Category{}.Fields()
  446. _ = categoryFields
  447. // categoryDescCreatedAt is the schema descriptor for created_at field.
  448. categoryDescCreatedAt := categoryMixinFields0[1].Descriptor()
  449. // category.DefaultCreatedAt holds the default value on creation for the created_at field.
  450. category.DefaultCreatedAt = categoryDescCreatedAt.Default.(func() time.Time)
  451. // categoryDescUpdatedAt is the schema descriptor for updated_at field.
  452. categoryDescUpdatedAt := categoryMixinFields0[2].Descriptor()
  453. // category.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  454. category.DefaultUpdatedAt = categoryDescUpdatedAt.Default.(func() time.Time)
  455. // category.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  456. category.UpdateDefaultUpdatedAt = categoryDescUpdatedAt.UpdateDefault.(func() time.Time)
  457. // categoryDescName is the schema descriptor for name field.
  458. categoryDescName := categoryFields[0].Descriptor()
  459. // category.NameValidator is a validator for the "name" field. It is called by the builders before save.
  460. category.NameValidator = categoryDescName.Validators[0].(func(string) error)
  461. // categoryDescOrganizationID is the schema descriptor for organization_id field.
  462. categoryDescOrganizationID := categoryFields[1].Descriptor()
  463. // category.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  464. category.OrganizationIDValidator = categoryDescOrganizationID.Validators[0].(func(uint64) error)
  465. chatrecordsMixin := schema.ChatRecords{}.Mixin()
  466. chatrecordsMixinHooks1 := chatrecordsMixin[1].Hooks()
  467. chatrecords.Hooks[0] = chatrecordsMixinHooks1[0]
  468. chatrecordsMixinInters1 := chatrecordsMixin[1].Interceptors()
  469. chatrecords.Interceptors[0] = chatrecordsMixinInters1[0]
  470. chatrecordsMixinFields0 := chatrecordsMixin[0].Fields()
  471. _ = chatrecordsMixinFields0
  472. chatrecordsFields := schema.ChatRecords{}.Fields()
  473. _ = chatrecordsFields
  474. // chatrecordsDescCreatedAt is the schema descriptor for created_at field.
  475. chatrecordsDescCreatedAt := chatrecordsMixinFields0[1].Descriptor()
  476. // chatrecords.DefaultCreatedAt holds the default value on creation for the created_at field.
  477. chatrecords.DefaultCreatedAt = chatrecordsDescCreatedAt.Default.(func() time.Time)
  478. // chatrecordsDescUpdatedAt is the schema descriptor for updated_at field.
  479. chatrecordsDescUpdatedAt := chatrecordsMixinFields0[2].Descriptor()
  480. // chatrecords.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  481. chatrecords.DefaultUpdatedAt = chatrecordsDescUpdatedAt.Default.(func() time.Time)
  482. // chatrecords.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  483. chatrecords.UpdateDefaultUpdatedAt = chatrecordsDescUpdatedAt.UpdateDefault.(func() time.Time)
  484. // chatrecordsDescContent is the schema descriptor for content field.
  485. chatrecordsDescContent := chatrecordsFields[0].Descriptor()
  486. // chatrecords.DefaultContent holds the default value on creation for the content field.
  487. chatrecords.DefaultContent = chatrecordsDescContent.Default.(string)
  488. // chatrecordsDescContentType is the schema descriptor for content_type field.
  489. chatrecordsDescContentType := chatrecordsFields[1].Descriptor()
  490. // chatrecords.DefaultContentType holds the default value on creation for the content_type field.
  491. chatrecords.DefaultContentType = chatrecordsDescContentType.Default.(uint8)
  492. // chatrecordsDescSessionID is the schema descriptor for session_id field.
  493. chatrecordsDescSessionID := chatrecordsFields[2].Descriptor()
  494. // chatrecords.DefaultSessionID holds the default value on creation for the session_id field.
  495. chatrecords.DefaultSessionID = chatrecordsDescSessionID.Default.(uint64)
  496. // chatrecordsDescUserID is the schema descriptor for user_id field.
  497. chatrecordsDescUserID := chatrecordsFields[3].Descriptor()
  498. // chatrecords.DefaultUserID holds the default value on creation for the user_id field.
  499. chatrecords.DefaultUserID = chatrecordsDescUserID.Default.(uint64)
  500. // chatrecordsDescBotID is the schema descriptor for bot_id field.
  501. chatrecordsDescBotID := chatrecordsFields[4].Descriptor()
  502. // chatrecords.DefaultBotID holds the default value on creation for the bot_id field.
  503. chatrecords.DefaultBotID = chatrecordsDescBotID.Default.(uint64)
  504. // chatrecordsDescBotType is the schema descriptor for bot_type field.
  505. chatrecordsDescBotType := chatrecordsFields[5].Descriptor()
  506. // chatrecords.DefaultBotType holds the default value on creation for the bot_type field.
  507. chatrecords.DefaultBotType = chatrecordsDescBotType.Default.(uint8)
  508. chatsessionMixin := schema.ChatSession{}.Mixin()
  509. chatsessionMixinHooks1 := chatsessionMixin[1].Hooks()
  510. chatsession.Hooks[0] = chatsessionMixinHooks1[0]
  511. chatsessionMixinInters1 := chatsessionMixin[1].Interceptors()
  512. chatsession.Interceptors[0] = chatsessionMixinInters1[0]
  513. chatsessionMixinFields0 := chatsessionMixin[0].Fields()
  514. _ = chatsessionMixinFields0
  515. chatsessionFields := schema.ChatSession{}.Fields()
  516. _ = chatsessionFields
  517. // chatsessionDescCreatedAt is the schema descriptor for created_at field.
  518. chatsessionDescCreatedAt := chatsessionMixinFields0[1].Descriptor()
  519. // chatsession.DefaultCreatedAt holds the default value on creation for the created_at field.
  520. chatsession.DefaultCreatedAt = chatsessionDescCreatedAt.Default.(func() time.Time)
  521. // chatsessionDescUpdatedAt is the schema descriptor for updated_at field.
  522. chatsessionDescUpdatedAt := chatsessionMixinFields0[2].Descriptor()
  523. // chatsession.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  524. chatsession.DefaultUpdatedAt = chatsessionDescUpdatedAt.Default.(func() time.Time)
  525. // chatsession.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  526. chatsession.UpdateDefaultUpdatedAt = chatsessionDescUpdatedAt.UpdateDefault.(func() time.Time)
  527. // chatsessionDescName is the schema descriptor for name field.
  528. chatsessionDescName := chatsessionFields[0].Descriptor()
  529. // chatsession.DefaultName holds the default value on creation for the name field.
  530. chatsession.DefaultName = chatsessionDescName.Default.(string)
  531. // chatsessionDescUserID is the schema descriptor for user_id field.
  532. chatsessionDescUserID := chatsessionFields[1].Descriptor()
  533. // chatsession.DefaultUserID holds the default value on creation for the user_id field.
  534. chatsession.DefaultUserID = chatsessionDescUserID.Default.(uint64)
  535. // chatsessionDescBotID is the schema descriptor for bot_id field.
  536. chatsessionDescBotID := chatsessionFields[2].Descriptor()
  537. // chatsession.DefaultBotID holds the default value on creation for the bot_id field.
  538. chatsession.DefaultBotID = chatsessionDescBotID.Default.(uint64)
  539. // chatsessionDescBotType is the schema descriptor for bot_type field.
  540. chatsessionDescBotType := chatsessionFields[3].Descriptor()
  541. // chatsession.DefaultBotType holds the default value on creation for the bot_type field.
  542. chatsession.DefaultBotType = chatsessionDescBotType.Default.(uint8)
  543. compapiasynctaskMixin := schema.CompapiAsynctask{}.Mixin()
  544. compapiasynctaskMixinFields0 := compapiasynctaskMixin[0].Fields()
  545. _ = compapiasynctaskMixinFields0
  546. compapiasynctaskFields := schema.CompapiAsynctask{}.Fields()
  547. _ = compapiasynctaskFields
  548. // compapiasynctaskDescCreatedAt is the schema descriptor for created_at field.
  549. compapiasynctaskDescCreatedAt := compapiasynctaskMixinFields0[1].Descriptor()
  550. // compapiasynctask.DefaultCreatedAt holds the default value on creation for the created_at field.
  551. compapiasynctask.DefaultCreatedAt = compapiasynctaskDescCreatedAt.Default.(func() time.Time)
  552. // compapiasynctaskDescUpdatedAt is the schema descriptor for updated_at field.
  553. compapiasynctaskDescUpdatedAt := compapiasynctaskMixinFields0[2].Descriptor()
  554. // compapiasynctask.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  555. compapiasynctask.DefaultUpdatedAt = compapiasynctaskDescUpdatedAt.Default.(func() time.Time)
  556. // compapiasynctask.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  557. compapiasynctask.UpdateDefaultUpdatedAt = compapiasynctaskDescUpdatedAt.UpdateDefault.(func() time.Time)
  558. // compapiasynctaskDescEventType is the schema descriptor for event_type field.
  559. compapiasynctaskDescEventType := compapiasynctaskFields[1].Descriptor()
  560. // compapiasynctask.DefaultEventType holds the default value on creation for the event_type field.
  561. compapiasynctask.DefaultEventType = compapiasynctaskDescEventType.Default.(string)
  562. // compapiasynctaskDescChatID is the schema descriptor for chat_id field.
  563. compapiasynctaskDescChatID := compapiasynctaskFields[2].Descriptor()
  564. // compapiasynctask.DefaultChatID holds the default value on creation for the chat_id field.
  565. compapiasynctask.DefaultChatID = compapiasynctaskDescChatID.Default.(string)
  566. // compapiasynctaskDescResponseChatItemID is the schema descriptor for response_chat_item_id field.
  567. compapiasynctaskDescResponseChatItemID := compapiasynctaskFields[3].Descriptor()
  568. // compapiasynctask.DefaultResponseChatItemID holds the default value on creation for the response_chat_item_id field.
  569. compapiasynctask.DefaultResponseChatItemID = compapiasynctaskDescResponseChatItemID.Default.(string)
  570. // compapiasynctaskDescOrganizationID is the schema descriptor for organization_id field.
  571. compapiasynctaskDescOrganizationID := compapiasynctaskFields[4].Descriptor()
  572. // compapiasynctask.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  573. compapiasynctask.OrganizationIDValidator = compapiasynctaskDescOrganizationID.Validators[0].(func(uint64) error)
  574. // compapiasynctaskDescResponseRaw is the schema descriptor for response_raw field.
  575. compapiasynctaskDescResponseRaw := compapiasynctaskFields[8].Descriptor()
  576. // compapiasynctask.DefaultResponseRaw holds the default value on creation for the response_raw field.
  577. compapiasynctask.DefaultResponseRaw = compapiasynctaskDescResponseRaw.Default.(string)
  578. // compapiasynctaskDescCallbackURL is the schema descriptor for callback_url field.
  579. compapiasynctaskDescCallbackURL := compapiasynctaskFields[9].Descriptor()
  580. // compapiasynctask.CallbackURLValidator is a validator for the "callback_url" field. It is called by the builders before save.
  581. compapiasynctask.CallbackURLValidator = compapiasynctaskDescCallbackURL.Validators[0].(func(string) error)
  582. // compapiasynctaskDescCallbackResponseRaw is the schema descriptor for callback_response_raw field.
  583. compapiasynctaskDescCallbackResponseRaw := compapiasynctaskFields[10].Descriptor()
  584. // compapiasynctask.DefaultCallbackResponseRaw holds the default value on creation for the callback_response_raw field.
  585. compapiasynctask.DefaultCallbackResponseRaw = compapiasynctaskDescCallbackResponseRaw.Default.(string)
  586. // compapiasynctaskDescModel is the schema descriptor for model field.
  587. compapiasynctaskDescModel := compapiasynctaskFields[11].Descriptor()
  588. // compapiasynctask.DefaultModel holds the default value on creation for the model field.
  589. compapiasynctask.DefaultModel = compapiasynctaskDescModel.Default.(string)
  590. // compapiasynctaskDescTaskStatus is the schema descriptor for task_status field.
  591. compapiasynctaskDescTaskStatus := compapiasynctaskFields[12].Descriptor()
  592. // compapiasynctask.DefaultTaskStatus holds the default value on creation for the task_status field.
  593. compapiasynctask.DefaultTaskStatus = compapiasynctaskDescTaskStatus.Default.(int8)
  594. // compapiasynctaskDescRetryCount is the schema descriptor for retry_count field.
  595. compapiasynctaskDescRetryCount := compapiasynctaskFields[13].Descriptor()
  596. // compapiasynctask.DefaultRetryCount holds the default value on creation for the retry_count field.
  597. compapiasynctask.DefaultRetryCount = compapiasynctaskDescRetryCount.Default.(int8)
  598. // compapiasynctaskDescLastError is the schema descriptor for last_error field.
  599. compapiasynctaskDescLastError := compapiasynctaskFields[14].Descriptor()
  600. // compapiasynctask.DefaultLastError holds the default value on creation for the last_error field.
  601. compapiasynctask.DefaultLastError = compapiasynctaskDescLastError.Default.(string)
  602. contactMixin := schema.Contact{}.Mixin()
  603. contactMixinHooks2 := contactMixin[2].Hooks()
  604. contact.Hooks[0] = contactMixinHooks2[0]
  605. contactMixinInters2 := contactMixin[2].Interceptors()
  606. contact.Interceptors[0] = contactMixinInters2[0]
  607. contactMixinFields0 := contactMixin[0].Fields()
  608. _ = contactMixinFields0
  609. contactMixinFields1 := contactMixin[1].Fields()
  610. _ = contactMixinFields1
  611. contactFields := schema.Contact{}.Fields()
  612. _ = contactFields
  613. // contactDescCreatedAt is the schema descriptor for created_at field.
  614. contactDescCreatedAt := contactMixinFields0[1].Descriptor()
  615. // contact.DefaultCreatedAt holds the default value on creation for the created_at field.
  616. contact.DefaultCreatedAt = contactDescCreatedAt.Default.(func() time.Time)
  617. // contactDescUpdatedAt is the schema descriptor for updated_at field.
  618. contactDescUpdatedAt := contactMixinFields0[2].Descriptor()
  619. // contact.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  620. contact.DefaultUpdatedAt = contactDescUpdatedAt.Default.(func() time.Time)
  621. // contact.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  622. contact.UpdateDefaultUpdatedAt = contactDescUpdatedAt.UpdateDefault.(func() time.Time)
  623. // contactDescStatus is the schema descriptor for status field.
  624. contactDescStatus := contactMixinFields1[0].Descriptor()
  625. // contact.DefaultStatus holds the default value on creation for the status field.
  626. contact.DefaultStatus = contactDescStatus.Default.(uint8)
  627. // contactDescWxWxid is the schema descriptor for wx_wxid field.
  628. contactDescWxWxid := contactFields[0].Descriptor()
  629. // contact.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  630. contact.DefaultWxWxid = contactDescWxWxid.Default.(string)
  631. // contactDescType is the schema descriptor for type field.
  632. contactDescType := contactFields[1].Descriptor()
  633. // contact.DefaultType holds the default value on creation for the type field.
  634. contact.DefaultType = contactDescType.Default.(int)
  635. // contactDescWxid is the schema descriptor for wxid field.
  636. contactDescWxid := contactFields[2].Descriptor()
  637. // contact.DefaultWxid holds the default value on creation for the wxid field.
  638. contact.DefaultWxid = contactDescWxid.Default.(string)
  639. // contactDescAccount is the schema descriptor for account field.
  640. contactDescAccount := contactFields[3].Descriptor()
  641. // contact.DefaultAccount holds the default value on creation for the account field.
  642. contact.DefaultAccount = contactDescAccount.Default.(string)
  643. // contactDescNickname is the schema descriptor for nickname field.
  644. contactDescNickname := contactFields[4].Descriptor()
  645. // contact.DefaultNickname holds the default value on creation for the nickname field.
  646. contact.DefaultNickname = contactDescNickname.Default.(string)
  647. // contactDescMarkname is the schema descriptor for markname field.
  648. contactDescMarkname := contactFields[5].Descriptor()
  649. // contact.DefaultMarkname holds the default value on creation for the markname field.
  650. contact.DefaultMarkname = contactDescMarkname.Default.(string)
  651. // contactDescHeadimg is the schema descriptor for headimg field.
  652. contactDescHeadimg := contactFields[6].Descriptor()
  653. // contact.DefaultHeadimg holds the default value on creation for the headimg field.
  654. contact.DefaultHeadimg = contactDescHeadimg.Default.(string)
  655. // contactDescSex is the schema descriptor for sex field.
  656. contactDescSex := contactFields[7].Descriptor()
  657. // contact.DefaultSex holds the default value on creation for the sex field.
  658. contact.DefaultSex = contactDescSex.Default.(int)
  659. // contactDescStarrole is the schema descriptor for starrole field.
  660. contactDescStarrole := contactFields[8].Descriptor()
  661. // contact.DefaultStarrole holds the default value on creation for the starrole field.
  662. contact.DefaultStarrole = contactDescStarrole.Default.(string)
  663. // contactDescDontseeit is the schema descriptor for dontseeit field.
  664. contactDescDontseeit := contactFields[9].Descriptor()
  665. // contact.DefaultDontseeit holds the default value on creation for the dontseeit field.
  666. contact.DefaultDontseeit = contactDescDontseeit.Default.(int)
  667. // contactDescDontseeme is the schema descriptor for dontseeme field.
  668. contactDescDontseeme := contactFields[10].Descriptor()
  669. // contact.DefaultDontseeme holds the default value on creation for the dontseeme field.
  670. contact.DefaultDontseeme = contactDescDontseeme.Default.(int)
  671. // contactDescLag is the schema descriptor for lag field.
  672. contactDescLag := contactFields[11].Descriptor()
  673. // contact.DefaultLag holds the default value on creation for the lag field.
  674. contact.DefaultLag = contactDescLag.Default.(string)
  675. // contactDescGid is the schema descriptor for gid field.
  676. contactDescGid := contactFields[12].Descriptor()
  677. // contact.DefaultGid holds the default value on creation for the gid field.
  678. contact.DefaultGid = contactDescGid.Default.(string)
  679. // contactDescGname is the schema descriptor for gname field.
  680. contactDescGname := contactFields[13].Descriptor()
  681. // contact.DefaultGname holds the default value on creation for the gname field.
  682. contact.DefaultGname = contactDescGname.Default.(string)
  683. // contactDescV3 is the schema descriptor for v3 field.
  684. contactDescV3 := contactFields[14].Descriptor()
  685. // contact.DefaultV3 holds the default value on creation for the v3 field.
  686. contact.DefaultV3 = contactDescV3.Default.(string)
  687. // contactDescOrganizationID is the schema descriptor for organization_id field.
  688. contactDescOrganizationID := contactFields[15].Descriptor()
  689. // contact.DefaultOrganizationID holds the default value on creation for the organization_id field.
  690. contact.DefaultOrganizationID = contactDescOrganizationID.Default.(uint64)
  691. // contactDescCtype is the schema descriptor for ctype field.
  692. contactDescCtype := contactFields[16].Descriptor()
  693. // contact.DefaultCtype holds the default value on creation for the ctype field.
  694. contact.DefaultCtype = contactDescCtype.Default.(uint64)
  695. // contactDescCage is the schema descriptor for cage field.
  696. contactDescCage := contactFields[17].Descriptor()
  697. // contact.DefaultCage holds the default value on creation for the cage field.
  698. contact.DefaultCage = contactDescCage.Default.(int)
  699. // contactDescCname is the schema descriptor for cname field.
  700. contactDescCname := contactFields[18].Descriptor()
  701. // contact.DefaultCname holds the default value on creation for the cname field.
  702. contact.DefaultCname = contactDescCname.Default.(string)
  703. // contactDescCarea is the schema descriptor for carea field.
  704. contactDescCarea := contactFields[19].Descriptor()
  705. // contact.DefaultCarea holds the default value on creation for the carea field.
  706. contact.DefaultCarea = contactDescCarea.Default.(string)
  707. // contactDescCbirthday is the schema descriptor for cbirthday field.
  708. contactDescCbirthday := contactFields[20].Descriptor()
  709. // contact.DefaultCbirthday holds the default value on creation for the cbirthday field.
  710. contact.DefaultCbirthday = contactDescCbirthday.Default.(string)
  711. // contactDescCbirtharea is the schema descriptor for cbirtharea field.
  712. contactDescCbirtharea := contactFields[21].Descriptor()
  713. // contact.DefaultCbirtharea holds the default value on creation for the cbirtharea field.
  714. contact.DefaultCbirtharea = contactDescCbirtharea.Default.(string)
  715. // contactDescCidcardNo is the schema descriptor for cidcard_no field.
  716. contactDescCidcardNo := contactFields[22].Descriptor()
  717. // contact.DefaultCidcardNo holds the default value on creation for the cidcard_no field.
  718. contact.DefaultCidcardNo = contactDescCidcardNo.Default.(string)
  719. // contactDescCtitle is the schema descriptor for ctitle field.
  720. contactDescCtitle := contactFields[23].Descriptor()
  721. // contact.DefaultCtitle holds the default value on creation for the ctitle field.
  722. contact.DefaultCtitle = contactDescCtitle.Default.(string)
  723. // contactDescCc is the schema descriptor for cc field.
  724. contactDescCc := contactFields[24].Descriptor()
  725. // contact.DefaultCc holds the default value on creation for the cc field.
  726. contact.DefaultCc = contactDescCc.Default.(string)
  727. // contactDescPhone is the schema descriptor for phone field.
  728. contactDescPhone := contactFields[25].Descriptor()
  729. // contact.DefaultPhone holds the default value on creation for the phone field.
  730. contact.DefaultPhone = contactDescPhone.Default.(string)
  731. contactfieldMixin := schema.ContactField{}.Mixin()
  732. contactfieldMixinHooks2 := contactfieldMixin[2].Hooks()
  733. contactfield.Hooks[0] = contactfieldMixinHooks2[0]
  734. contactfieldMixinInters2 := contactfieldMixin[2].Interceptors()
  735. contactfield.Interceptors[0] = contactfieldMixinInters2[0]
  736. contactfieldMixinFields0 := contactfieldMixin[0].Fields()
  737. _ = contactfieldMixinFields0
  738. contactfieldMixinFields1 := contactfieldMixin[1].Fields()
  739. _ = contactfieldMixinFields1
  740. contactfieldFields := schema.ContactField{}.Fields()
  741. _ = contactfieldFields
  742. // contactfieldDescCreatedAt is the schema descriptor for created_at field.
  743. contactfieldDescCreatedAt := contactfieldMixinFields0[1].Descriptor()
  744. // contactfield.DefaultCreatedAt holds the default value on creation for the created_at field.
  745. contactfield.DefaultCreatedAt = contactfieldDescCreatedAt.Default.(func() time.Time)
  746. // contactfieldDescUpdatedAt is the schema descriptor for updated_at field.
  747. contactfieldDescUpdatedAt := contactfieldMixinFields0[2].Descriptor()
  748. // contactfield.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  749. contactfield.DefaultUpdatedAt = contactfieldDescUpdatedAt.Default.(func() time.Time)
  750. // contactfield.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  751. contactfield.UpdateDefaultUpdatedAt = contactfieldDescUpdatedAt.UpdateDefault.(func() time.Time)
  752. // contactfieldDescStatus is the schema descriptor for status field.
  753. contactfieldDescStatus := contactfieldMixinFields1[0].Descriptor()
  754. // contactfield.DefaultStatus holds the default value on creation for the status field.
  755. contactfield.DefaultStatus = contactfieldDescStatus.Default.(uint8)
  756. // contactfieldDescContactID is the schema descriptor for contact_id field.
  757. contactfieldDescContactID := contactfieldFields[0].Descriptor()
  758. // contactfield.DefaultContactID holds the default value on creation for the contact_id field.
  759. contactfield.DefaultContactID = contactfieldDescContactID.Default.(uint64)
  760. contactfieldtemplateMixin := schema.ContactFieldTemplate{}.Mixin()
  761. contactfieldtemplateMixinHooks2 := contactfieldtemplateMixin[2].Hooks()
  762. contactfieldtemplate.Hooks[0] = contactfieldtemplateMixinHooks2[0]
  763. contactfieldtemplateMixinInters2 := contactfieldtemplateMixin[2].Interceptors()
  764. contactfieldtemplate.Interceptors[0] = contactfieldtemplateMixinInters2[0]
  765. contactfieldtemplateMixinFields0 := contactfieldtemplateMixin[0].Fields()
  766. _ = contactfieldtemplateMixinFields0
  767. contactfieldtemplateMixinFields1 := contactfieldtemplateMixin[1].Fields()
  768. _ = contactfieldtemplateMixinFields1
  769. contactfieldtemplateFields := schema.ContactFieldTemplate{}.Fields()
  770. _ = contactfieldtemplateFields
  771. // contactfieldtemplateDescCreatedAt is the schema descriptor for created_at field.
  772. contactfieldtemplateDescCreatedAt := contactfieldtemplateMixinFields0[1].Descriptor()
  773. // contactfieldtemplate.DefaultCreatedAt holds the default value on creation for the created_at field.
  774. contactfieldtemplate.DefaultCreatedAt = contactfieldtemplateDescCreatedAt.Default.(func() time.Time)
  775. // contactfieldtemplateDescUpdatedAt is the schema descriptor for updated_at field.
  776. contactfieldtemplateDescUpdatedAt := contactfieldtemplateMixinFields0[2].Descriptor()
  777. // contactfieldtemplate.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  778. contactfieldtemplate.DefaultUpdatedAt = contactfieldtemplateDescUpdatedAt.Default.(func() time.Time)
  779. // contactfieldtemplate.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  780. contactfieldtemplate.UpdateDefaultUpdatedAt = contactfieldtemplateDescUpdatedAt.UpdateDefault.(func() time.Time)
  781. // contactfieldtemplateDescStatus is the schema descriptor for status field.
  782. contactfieldtemplateDescStatus := contactfieldtemplateMixinFields1[0].Descriptor()
  783. // contactfieldtemplate.DefaultStatus holds the default value on creation for the status field.
  784. contactfieldtemplate.DefaultStatus = contactfieldtemplateDescStatus.Default.(uint8)
  785. // contactfieldtemplateDescOrganizationID is the schema descriptor for organization_id field.
  786. contactfieldtemplateDescOrganizationID := contactfieldtemplateFields[0].Descriptor()
  787. // contactfieldtemplate.DefaultOrganizationID holds the default value on creation for the organization_id field.
  788. contactfieldtemplate.DefaultOrganizationID = contactfieldtemplateDescOrganizationID.Default.(uint64)
  789. creditbalanceMixin := schema.CreditBalance{}.Mixin()
  790. creditbalanceMixinHooks1 := creditbalanceMixin[1].Hooks()
  791. creditbalance.Hooks[0] = creditbalanceMixinHooks1[0]
  792. creditbalanceMixinInters1 := creditbalanceMixin[1].Interceptors()
  793. creditbalance.Interceptors[0] = creditbalanceMixinInters1[0]
  794. creditbalanceMixinFields0 := creditbalanceMixin[0].Fields()
  795. _ = creditbalanceMixinFields0
  796. creditbalanceFields := schema.CreditBalance{}.Fields()
  797. _ = creditbalanceFields
  798. // creditbalanceDescCreatedAt is the schema descriptor for created_at field.
  799. creditbalanceDescCreatedAt := creditbalanceMixinFields0[1].Descriptor()
  800. // creditbalance.DefaultCreatedAt holds the default value on creation for the created_at field.
  801. creditbalance.DefaultCreatedAt = creditbalanceDescCreatedAt.Default.(func() time.Time)
  802. // creditbalanceDescUpdatedAt is the schema descriptor for updated_at field.
  803. creditbalanceDescUpdatedAt := creditbalanceMixinFields0[2].Descriptor()
  804. // creditbalance.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  805. creditbalance.DefaultUpdatedAt = creditbalanceDescUpdatedAt.Default.(func() time.Time)
  806. // creditbalance.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  807. creditbalance.UpdateDefaultUpdatedAt = creditbalanceDescUpdatedAt.UpdateDefault.(func() time.Time)
  808. // creditbalanceDescStatus is the schema descriptor for status field.
  809. creditbalanceDescStatus := creditbalanceFields[2].Descriptor()
  810. // creditbalance.DefaultStatus holds the default value on creation for the status field.
  811. creditbalance.DefaultStatus = creditbalanceDescStatus.Default.(int)
  812. // creditbalance.StatusValidator is a validator for the "status" field. It is called by the builders before save.
  813. creditbalance.StatusValidator = creditbalanceDescStatus.Validators[0].(func(int) error)
  814. creditusageMixin := schema.CreditUsage{}.Mixin()
  815. creditusageMixinHooks1 := creditusageMixin[1].Hooks()
  816. creditusage.Hooks[0] = creditusageMixinHooks1[0]
  817. creditusageMixinInters1 := creditusageMixin[1].Interceptors()
  818. creditusage.Interceptors[0] = creditusageMixinInters1[0]
  819. creditusageMixinFields0 := creditusageMixin[0].Fields()
  820. _ = creditusageMixinFields0
  821. creditusageFields := schema.CreditUsage{}.Fields()
  822. _ = creditusageFields
  823. // creditusageDescCreatedAt is the schema descriptor for created_at field.
  824. creditusageDescCreatedAt := creditusageMixinFields0[1].Descriptor()
  825. // creditusage.DefaultCreatedAt holds the default value on creation for the created_at field.
  826. creditusage.DefaultCreatedAt = creditusageDescCreatedAt.Default.(func() time.Time)
  827. // creditusageDescUpdatedAt is the schema descriptor for updated_at field.
  828. creditusageDescUpdatedAt := creditusageMixinFields0[2].Descriptor()
  829. // creditusage.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  830. creditusage.DefaultUpdatedAt = creditusageDescUpdatedAt.Default.(func() time.Time)
  831. // creditusage.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  832. creditusage.UpdateDefaultUpdatedAt = creditusageDescUpdatedAt.UpdateDefault.(func() time.Time)
  833. // creditusageDescUserID is the schema descriptor for user_id field.
  834. creditusageDescUserID := creditusageFields[0].Descriptor()
  835. // creditusage.UserIDValidator is a validator for the "user_id" field. It is called by the builders before save.
  836. creditusage.UserIDValidator = creditusageDescUserID.Validators[0].(func(string) error)
  837. // creditusageDescPayMethod is the schema descriptor for pay_method field.
  838. creditusageDescPayMethod := creditusageFields[5].Descriptor()
  839. // creditusage.DefaultPayMethod holds the default value on creation for the pay_method field.
  840. creditusage.DefaultPayMethod = creditusageDescPayMethod.Default.(int)
  841. // creditusageDescStatus is the schema descriptor for status field.
  842. creditusageDescStatus := creditusageFields[6].Descriptor()
  843. // creditusage.DefaultStatus holds the default value on creation for the status field.
  844. creditusage.DefaultStatus = creditusageDescStatus.Default.(int)
  845. // creditusage.StatusValidator is a validator for the "status" field. It is called by the builders before save.
  846. creditusage.StatusValidator = creditusageDescStatus.Validators[0].(func(int) error)
  847. // creditusageDescNtype is the schema descriptor for ntype field.
  848. creditusageDescNtype := creditusageFields[7].Descriptor()
  849. // creditusage.DefaultNtype holds the default value on creation for the ntype field.
  850. creditusage.DefaultNtype = creditusageDescNtype.Default.(int)
  851. // creditusageDescTable is the schema descriptor for table field.
  852. creditusageDescTable := creditusageFields[8].Descriptor()
  853. // creditusage.DefaultTable holds the default value on creation for the table field.
  854. creditusage.DefaultTable = creditusageDescTable.Default.(string)
  855. // creditusageDescNid is the schema descriptor for nid field.
  856. creditusageDescNid := creditusageFields[10].Descriptor()
  857. // creditusage.DefaultNid holds the default value on creation for the nid field.
  858. creditusage.DefaultNid = creditusageDescNid.Default.(uint64)
  859. // creditusageDescReason is the schema descriptor for reason field.
  860. creditusageDescReason := creditusageFields[11].Descriptor()
  861. // creditusage.DefaultReason holds the default value on creation for the reason field.
  862. creditusage.DefaultReason = creditusageDescReason.Default.(string)
  863. // creditusage.ReasonValidator is a validator for the "reason" field. It is called by the builders before save.
  864. creditusage.ReasonValidator = creditusageDescReason.Validators[0].(func(string) error)
  865. // creditusageDescOperator is the schema descriptor for operator field.
  866. creditusageDescOperator := creditusageFields[12].Descriptor()
  867. // creditusage.DefaultOperator holds the default value on creation for the operator field.
  868. creditusage.DefaultOperator = creditusageDescOperator.Default.(string)
  869. // creditusage.OperatorValidator is a validator for the "operator" field. It is called by the builders before save.
  870. creditusage.OperatorValidator = creditusageDescOperator.Validators[0].(func(string) error)
  871. employeeMixin := schema.Employee{}.Mixin()
  872. employeeMixinHooks1 := employeeMixin[1].Hooks()
  873. employee.Hooks[0] = employeeMixinHooks1[0]
  874. employeeMixinInters1 := employeeMixin[1].Interceptors()
  875. employee.Interceptors[0] = employeeMixinInters1[0]
  876. employeeMixinFields0 := employeeMixin[0].Fields()
  877. _ = employeeMixinFields0
  878. employeeFields := schema.Employee{}.Fields()
  879. _ = employeeFields
  880. // employeeDescCreatedAt is the schema descriptor for created_at field.
  881. employeeDescCreatedAt := employeeMixinFields0[1].Descriptor()
  882. // employee.DefaultCreatedAt holds the default value on creation for the created_at field.
  883. employee.DefaultCreatedAt = employeeDescCreatedAt.Default.(func() time.Time)
  884. // employeeDescUpdatedAt is the schema descriptor for updated_at field.
  885. employeeDescUpdatedAt := employeeMixinFields0[2].Descriptor()
  886. // employee.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  887. employee.DefaultUpdatedAt = employeeDescUpdatedAt.Default.(func() time.Time)
  888. // employee.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  889. employee.UpdateDefaultUpdatedAt = employeeDescUpdatedAt.UpdateDefault.(func() time.Time)
  890. // employeeDescTitle is the schema descriptor for title field.
  891. employeeDescTitle := employeeFields[0].Descriptor()
  892. // employee.TitleValidator is a validator for the "title" field. It is called by the builders before save.
  893. employee.TitleValidator = employeeDescTitle.Validators[0].(func(string) error)
  894. // employeeDescHireCount is the schema descriptor for hire_count field.
  895. employeeDescHireCount := employeeFields[3].Descriptor()
  896. // employee.DefaultHireCount holds the default value on creation for the hire_count field.
  897. employee.DefaultHireCount = employeeDescHireCount.Default.(int)
  898. // employee.HireCountValidator is a validator for the "hire_count" field. It is called by the builders before save.
  899. employee.HireCountValidator = employeeDescHireCount.Validators[0].(func(int) error)
  900. // employeeDescServiceCount is the schema descriptor for service_count field.
  901. employeeDescServiceCount := employeeFields[4].Descriptor()
  902. // employee.DefaultServiceCount holds the default value on creation for the service_count field.
  903. employee.DefaultServiceCount = employeeDescServiceCount.Default.(int)
  904. // employee.ServiceCountValidator is a validator for the "service_count" field. It is called by the builders before save.
  905. employee.ServiceCountValidator = employeeDescServiceCount.Validators[0].(func(int) error)
  906. // employeeDescAchievementCount is the schema descriptor for achievement_count field.
  907. employeeDescAchievementCount := employeeFields[5].Descriptor()
  908. // employee.DefaultAchievementCount holds the default value on creation for the achievement_count field.
  909. employee.DefaultAchievementCount = employeeDescAchievementCount.Default.(int)
  910. // employee.AchievementCountValidator is a validator for the "achievement_count" field. It is called by the builders before save.
  911. employee.AchievementCountValidator = employeeDescAchievementCount.Validators[0].(func(int) error)
  912. // employeeDescIntro is the schema descriptor for intro field.
  913. employeeDescIntro := employeeFields[6].Descriptor()
  914. // employee.DefaultIntro holds the default value on creation for the intro field.
  915. employee.DefaultIntro = employeeDescIntro.Default.(string)
  916. // employeeDescEstimate is the schema descriptor for estimate field.
  917. employeeDescEstimate := employeeFields[7].Descriptor()
  918. // employee.DefaultEstimate holds the default value on creation for the estimate field.
  919. employee.DefaultEstimate = employeeDescEstimate.Default.(string)
  920. // employeeDescSkill is the schema descriptor for skill field.
  921. employeeDescSkill := employeeFields[8].Descriptor()
  922. // employee.DefaultSkill holds the default value on creation for the skill field.
  923. employee.DefaultSkill = employeeDescSkill.Default.(string)
  924. // employeeDescAbilityType is the schema descriptor for ability_type field.
  925. employeeDescAbilityType := employeeFields[9].Descriptor()
  926. // employee.DefaultAbilityType holds the default value on creation for the ability_type field.
  927. employee.DefaultAbilityType = employeeDescAbilityType.Default.(string)
  928. // employeeDescScene is the schema descriptor for scene field.
  929. employeeDescScene := employeeFields[10].Descriptor()
  930. // employee.DefaultScene holds the default value on creation for the scene field.
  931. employee.DefaultScene = employeeDescScene.Default.(string)
  932. // employeeDescSwitchIn is the schema descriptor for switch_in field.
  933. employeeDescSwitchIn := employeeFields[11].Descriptor()
  934. // employee.DefaultSwitchIn holds the default value on creation for the switch_in field.
  935. employee.DefaultSwitchIn = employeeDescSwitchIn.Default.(string)
  936. // employeeDescVideoURL is the schema descriptor for video_url field.
  937. employeeDescVideoURL := employeeFields[12].Descriptor()
  938. // employee.DefaultVideoURL holds the default value on creation for the video_url field.
  939. employee.DefaultVideoURL = employeeDescVideoURL.Default.(string)
  940. // employeeDescOrganizationID is the schema descriptor for organization_id field.
  941. employeeDescOrganizationID := employeeFields[13].Descriptor()
  942. // employee.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  943. employee.OrganizationIDValidator = employeeDescOrganizationID.Validators[0].(func(uint64) error)
  944. // employeeDescCategoryID is the schema descriptor for category_id field.
  945. employeeDescCategoryID := employeeFields[14].Descriptor()
  946. // employee.CategoryIDValidator is a validator for the "category_id" field. It is called by the builders before save.
  947. employee.CategoryIDValidator = employeeDescCategoryID.Validators[0].(func(uint64) error)
  948. // employeeDescAPIBase is the schema descriptor for api_base field.
  949. employeeDescAPIBase := employeeFields[15].Descriptor()
  950. // employee.DefaultAPIBase holds the default value on creation for the api_base field.
  951. employee.DefaultAPIBase = employeeDescAPIBase.Default.(string)
  952. // employeeDescAPIKey is the schema descriptor for api_key field.
  953. employeeDescAPIKey := employeeFields[16].Descriptor()
  954. // employee.DefaultAPIKey holds the default value on creation for the api_key field.
  955. employee.DefaultAPIKey = employeeDescAPIKey.Default.(string)
  956. // employeeDescIsVip is the schema descriptor for is_vip field.
  957. employeeDescIsVip := employeeFields[18].Descriptor()
  958. // employee.DefaultIsVip holds the default value on creation for the is_vip field.
  959. employee.DefaultIsVip = employeeDescIsVip.Default.(int)
  960. employeeconfigMixin := schema.EmployeeConfig{}.Mixin()
  961. employeeconfigMixinHooks1 := employeeconfigMixin[1].Hooks()
  962. employeeconfig.Hooks[0] = employeeconfigMixinHooks1[0]
  963. employeeconfigMixinInters1 := employeeconfigMixin[1].Interceptors()
  964. employeeconfig.Interceptors[0] = employeeconfigMixinInters1[0]
  965. employeeconfigMixinFields0 := employeeconfigMixin[0].Fields()
  966. _ = employeeconfigMixinFields0
  967. employeeconfigFields := schema.EmployeeConfig{}.Fields()
  968. _ = employeeconfigFields
  969. // employeeconfigDescCreatedAt is the schema descriptor for created_at field.
  970. employeeconfigDescCreatedAt := employeeconfigMixinFields0[1].Descriptor()
  971. // employeeconfig.DefaultCreatedAt holds the default value on creation for the created_at field.
  972. employeeconfig.DefaultCreatedAt = employeeconfigDescCreatedAt.Default.(func() time.Time)
  973. // employeeconfigDescUpdatedAt is the schema descriptor for updated_at field.
  974. employeeconfigDescUpdatedAt := employeeconfigMixinFields0[2].Descriptor()
  975. // employeeconfig.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  976. employeeconfig.DefaultUpdatedAt = employeeconfigDescUpdatedAt.Default.(func() time.Time)
  977. // employeeconfig.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  978. employeeconfig.UpdateDefaultUpdatedAt = employeeconfigDescUpdatedAt.UpdateDefault.(func() time.Time)
  979. // employeeconfigDescStype is the schema descriptor for stype field.
  980. employeeconfigDescStype := employeeconfigFields[0].Descriptor()
  981. // employeeconfig.DefaultStype holds the default value on creation for the stype field.
  982. employeeconfig.DefaultStype = employeeconfigDescStype.Default.(string)
  983. // employeeconfigDescTitle is the schema descriptor for title field.
  984. employeeconfigDescTitle := employeeconfigFields[1].Descriptor()
  985. // employeeconfig.DefaultTitle holds the default value on creation for the title field.
  986. employeeconfig.DefaultTitle = employeeconfigDescTitle.Default.(string)
  987. // employeeconfigDescPhoto is the schema descriptor for photo field.
  988. employeeconfigDescPhoto := employeeconfigFields[2].Descriptor()
  989. // employeeconfig.DefaultPhoto holds the default value on creation for the photo field.
  990. employeeconfig.DefaultPhoto = employeeconfigDescPhoto.Default.(string)
  991. // employeeconfigDescOrganizationID is the schema descriptor for organization_id field.
  992. employeeconfigDescOrganizationID := employeeconfigFields[3].Descriptor()
  993. // employeeconfig.DefaultOrganizationID holds the default value on creation for the organization_id field.
  994. employeeconfig.DefaultOrganizationID = employeeconfigDescOrganizationID.Default.(uint64)
  995. labelMixin := schema.Label{}.Mixin()
  996. labelMixinFields0 := labelMixin[0].Fields()
  997. _ = labelMixinFields0
  998. labelMixinFields1 := labelMixin[1].Fields()
  999. _ = labelMixinFields1
  1000. labelFields := schema.Label{}.Fields()
  1001. _ = labelFields
  1002. // labelDescCreatedAt is the schema descriptor for created_at field.
  1003. labelDescCreatedAt := labelMixinFields0[1].Descriptor()
  1004. // label.DefaultCreatedAt holds the default value on creation for the created_at field.
  1005. label.DefaultCreatedAt = labelDescCreatedAt.Default.(func() time.Time)
  1006. // labelDescUpdatedAt is the schema descriptor for updated_at field.
  1007. labelDescUpdatedAt := labelMixinFields0[2].Descriptor()
  1008. // label.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1009. label.DefaultUpdatedAt = labelDescUpdatedAt.Default.(func() time.Time)
  1010. // label.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1011. label.UpdateDefaultUpdatedAt = labelDescUpdatedAt.UpdateDefault.(func() time.Time)
  1012. // labelDescStatus is the schema descriptor for status field.
  1013. labelDescStatus := labelMixinFields1[0].Descriptor()
  1014. // label.DefaultStatus holds the default value on creation for the status field.
  1015. label.DefaultStatus = labelDescStatus.Default.(uint8)
  1016. // labelDescType is the schema descriptor for type field.
  1017. labelDescType := labelFields[0].Descriptor()
  1018. // label.DefaultType holds the default value on creation for the type field.
  1019. label.DefaultType = labelDescType.Default.(int)
  1020. // labelDescName is the schema descriptor for name field.
  1021. labelDescName := labelFields[1].Descriptor()
  1022. // label.DefaultName holds the default value on creation for the name field.
  1023. label.DefaultName = labelDescName.Default.(string)
  1024. // labelDescFrom is the schema descriptor for from field.
  1025. labelDescFrom := labelFields[2].Descriptor()
  1026. // label.DefaultFrom holds the default value on creation for the from field.
  1027. label.DefaultFrom = labelDescFrom.Default.(int)
  1028. // labelDescMode is the schema descriptor for mode field.
  1029. labelDescMode := labelFields[3].Descriptor()
  1030. // label.DefaultMode holds the default value on creation for the mode field.
  1031. label.DefaultMode = labelDescMode.Default.(int)
  1032. // labelDescConditions is the schema descriptor for conditions field.
  1033. labelDescConditions := labelFields[4].Descriptor()
  1034. // label.DefaultConditions holds the default value on creation for the conditions field.
  1035. label.DefaultConditions = labelDescConditions.Default.(string)
  1036. // labelDescOrganizationID is the schema descriptor for organization_id field.
  1037. labelDescOrganizationID := labelFields[5].Descriptor()
  1038. // label.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1039. label.DefaultOrganizationID = labelDescOrganizationID.Default.(uint64)
  1040. labellogMixin := schema.LabelLog{}.Mixin()
  1041. labellogMixinFields0 := labellogMixin[0].Fields()
  1042. _ = labellogMixinFields0
  1043. labellogFields := schema.LabelLog{}.Fields()
  1044. _ = labellogFields
  1045. // labellogDescCreatedAt is the schema descriptor for created_at field.
  1046. labellogDescCreatedAt := labellogMixinFields0[1].Descriptor()
  1047. // labellog.DefaultCreatedAt holds the default value on creation for the created_at field.
  1048. labellog.DefaultCreatedAt = labellogDescCreatedAt.Default.(func() time.Time)
  1049. // labellogDescUpdatedAt is the schema descriptor for updated_at field.
  1050. labellogDescUpdatedAt := labellogMixinFields0[2].Descriptor()
  1051. // labellog.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1052. labellog.DefaultUpdatedAt = labellogDescUpdatedAt.Default.(func() time.Time)
  1053. // labellog.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1054. labellog.UpdateDefaultUpdatedAt = labellogDescUpdatedAt.UpdateDefault.(func() time.Time)
  1055. // labellogDescLabelName is the schema descriptor for label_name field.
  1056. labellogDescLabelName := labellogFields[0].Descriptor()
  1057. // labellog.DefaultLabelName holds the default value on creation for the label_name field.
  1058. labellog.DefaultLabelName = labellogDescLabelName.Default.(string)
  1059. // labellogDescLabelID is the schema descriptor for label_id field.
  1060. labellogDescLabelID := labellogFields[1].Descriptor()
  1061. // labellog.DefaultLabelID holds the default value on creation for the label_id field.
  1062. labellog.DefaultLabelID = labellogDescLabelID.Default.(uint64)
  1063. // labellogDescWxID is the schema descriptor for wx_id field.
  1064. labellogDescWxID := labellogFields[2].Descriptor()
  1065. // labellog.DefaultWxID holds the default value on creation for the wx_id field.
  1066. labellog.DefaultWxID = labellogDescWxID.Default.(string)
  1067. // labellogDescOrganizationID is the schema descriptor for organization_id field.
  1068. labellogDescOrganizationID := labellogFields[3].Descriptor()
  1069. // labellog.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1070. labellog.DefaultOrganizationID = labellogDescOrganizationID.Default.(uint64)
  1071. labelrelationshipMixin := schema.LabelRelationship{}.Mixin()
  1072. labelrelationshipMixinFields0 := labelrelationshipMixin[0].Fields()
  1073. _ = labelrelationshipMixinFields0
  1074. labelrelationshipMixinFields1 := labelrelationshipMixin[1].Fields()
  1075. _ = labelrelationshipMixinFields1
  1076. labelrelationshipFields := schema.LabelRelationship{}.Fields()
  1077. _ = labelrelationshipFields
  1078. // labelrelationshipDescCreatedAt is the schema descriptor for created_at field.
  1079. labelrelationshipDescCreatedAt := labelrelationshipMixinFields0[1].Descriptor()
  1080. // labelrelationship.DefaultCreatedAt holds the default value on creation for the created_at field.
  1081. labelrelationship.DefaultCreatedAt = labelrelationshipDescCreatedAt.Default.(func() time.Time)
  1082. // labelrelationshipDescUpdatedAt is the schema descriptor for updated_at field.
  1083. labelrelationshipDescUpdatedAt := labelrelationshipMixinFields0[2].Descriptor()
  1084. // labelrelationship.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1085. labelrelationship.DefaultUpdatedAt = labelrelationshipDescUpdatedAt.Default.(func() time.Time)
  1086. // labelrelationship.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1087. labelrelationship.UpdateDefaultUpdatedAt = labelrelationshipDescUpdatedAt.UpdateDefault.(func() time.Time)
  1088. // labelrelationshipDescStatus is the schema descriptor for status field.
  1089. labelrelationshipDescStatus := labelrelationshipMixinFields1[0].Descriptor()
  1090. // labelrelationship.DefaultStatus holds the default value on creation for the status field.
  1091. labelrelationship.DefaultStatus = labelrelationshipDescStatus.Default.(uint8)
  1092. // labelrelationshipDescLabelID is the schema descriptor for label_id field.
  1093. labelrelationshipDescLabelID := labelrelationshipFields[0].Descriptor()
  1094. // labelrelationship.DefaultLabelID holds the default value on creation for the label_id field.
  1095. labelrelationship.DefaultLabelID = labelrelationshipDescLabelID.Default.(uint64)
  1096. // labelrelationshipDescContactID is the schema descriptor for contact_id field.
  1097. labelrelationshipDescContactID := labelrelationshipFields[1].Descriptor()
  1098. // labelrelationship.DefaultContactID holds the default value on creation for the contact_id field.
  1099. labelrelationship.DefaultContactID = labelrelationshipDescContactID.Default.(uint64)
  1100. // labelrelationshipDescOrganizationID is the schema descriptor for organization_id field.
  1101. labelrelationshipDescOrganizationID := labelrelationshipFields[2].Descriptor()
  1102. // labelrelationship.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1103. labelrelationship.DefaultOrganizationID = labelrelationshipDescOrganizationID.Default.(uint64)
  1104. labeltaggingMixin := schema.LabelTagging{}.Mixin()
  1105. labeltaggingMixinHooks2 := labeltaggingMixin[2].Hooks()
  1106. labeltagging.Hooks[0] = labeltaggingMixinHooks2[0]
  1107. labeltaggingMixinInters2 := labeltaggingMixin[2].Interceptors()
  1108. labeltagging.Interceptors[0] = labeltaggingMixinInters2[0]
  1109. labeltaggingMixinFields0 := labeltaggingMixin[0].Fields()
  1110. _ = labeltaggingMixinFields0
  1111. labeltaggingMixinFields1 := labeltaggingMixin[1].Fields()
  1112. _ = labeltaggingMixinFields1
  1113. labeltaggingFields := schema.LabelTagging{}.Fields()
  1114. _ = labeltaggingFields
  1115. // labeltaggingDescCreatedAt is the schema descriptor for created_at field.
  1116. labeltaggingDescCreatedAt := labeltaggingMixinFields0[1].Descriptor()
  1117. // labeltagging.DefaultCreatedAt holds the default value on creation for the created_at field.
  1118. labeltagging.DefaultCreatedAt = labeltaggingDescCreatedAt.Default.(func() time.Time)
  1119. // labeltaggingDescUpdatedAt is the schema descriptor for updated_at field.
  1120. labeltaggingDescUpdatedAt := labeltaggingMixinFields0[2].Descriptor()
  1121. // labeltagging.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1122. labeltagging.DefaultUpdatedAt = labeltaggingDescUpdatedAt.Default.(func() time.Time)
  1123. // labeltagging.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1124. labeltagging.UpdateDefaultUpdatedAt = labeltaggingDescUpdatedAt.UpdateDefault.(func() time.Time)
  1125. // labeltaggingDescStatus is the schema descriptor for status field.
  1126. labeltaggingDescStatus := labeltaggingMixinFields1[0].Descriptor()
  1127. // labeltagging.DefaultStatus holds the default value on creation for the status field.
  1128. labeltagging.DefaultStatus = labeltaggingDescStatus.Default.(uint8)
  1129. // labeltaggingDescOrganizationID is the schema descriptor for organization_id field.
  1130. labeltaggingDescOrganizationID := labeltaggingFields[0].Descriptor()
  1131. // labeltagging.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1132. labeltagging.DefaultOrganizationID = labeltaggingDescOrganizationID.Default.(uint64)
  1133. // labeltaggingDescType is the schema descriptor for type field.
  1134. labeltaggingDescType := labeltaggingFields[1].Descriptor()
  1135. // labeltagging.DefaultType holds the default value on creation for the type field.
  1136. labeltagging.DefaultType = labeltaggingDescType.Default.(int)
  1137. // labeltaggingDescConditions is the schema descriptor for conditions field.
  1138. labeltaggingDescConditions := labeltaggingFields[2].Descriptor()
  1139. // labeltagging.DefaultConditions holds the default value on creation for the conditions field.
  1140. labeltagging.DefaultConditions = labeltaggingDescConditions.Default.(string)
  1141. messageFields := schema.Message{}.Fields()
  1142. _ = messageFields
  1143. // messageDescWxWxid is the schema descriptor for wx_wxid field.
  1144. messageDescWxWxid := messageFields[0].Descriptor()
  1145. // message.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  1146. message.DefaultWxWxid = messageDescWxWxid.Default.(string)
  1147. // messageDescWxid is the schema descriptor for wxid field.
  1148. messageDescWxid := messageFields[1].Descriptor()
  1149. // message.DefaultWxid holds the default value on creation for the wxid field.
  1150. message.DefaultWxid = messageDescWxid.Default.(string)
  1151. // messageDescContent is the schema descriptor for content field.
  1152. messageDescContent := messageFields[2].Descriptor()
  1153. // message.DefaultContent holds the default value on creation for the content field.
  1154. message.DefaultContent = messageDescContent.Default.(string)
  1155. messagerecordsMixin := schema.MessageRecords{}.Mixin()
  1156. messagerecordsMixinFields0 := messagerecordsMixin[0].Fields()
  1157. _ = messagerecordsMixinFields0
  1158. messagerecordsMixinFields1 := messagerecordsMixin[1].Fields()
  1159. _ = messagerecordsMixinFields1
  1160. messagerecordsFields := schema.MessageRecords{}.Fields()
  1161. _ = messagerecordsFields
  1162. // messagerecordsDescCreatedAt is the schema descriptor for created_at field.
  1163. messagerecordsDescCreatedAt := messagerecordsMixinFields0[1].Descriptor()
  1164. // messagerecords.DefaultCreatedAt holds the default value on creation for the created_at field.
  1165. messagerecords.DefaultCreatedAt = messagerecordsDescCreatedAt.Default.(func() time.Time)
  1166. // messagerecordsDescUpdatedAt is the schema descriptor for updated_at field.
  1167. messagerecordsDescUpdatedAt := messagerecordsMixinFields0[2].Descriptor()
  1168. // messagerecords.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1169. messagerecords.DefaultUpdatedAt = messagerecordsDescUpdatedAt.Default.(func() time.Time)
  1170. // messagerecords.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1171. messagerecords.UpdateDefaultUpdatedAt = messagerecordsDescUpdatedAt.UpdateDefault.(func() time.Time)
  1172. // messagerecordsDescStatus is the schema descriptor for status field.
  1173. messagerecordsDescStatus := messagerecordsMixinFields1[0].Descriptor()
  1174. // messagerecords.DefaultStatus holds the default value on creation for the status field.
  1175. messagerecords.DefaultStatus = messagerecordsDescStatus.Default.(uint8)
  1176. // messagerecordsDescContactType is the schema descriptor for contact_type field.
  1177. messagerecordsDescContactType := messagerecordsFields[2].Descriptor()
  1178. // messagerecords.DefaultContactType holds the default value on creation for the contact_type field.
  1179. messagerecords.DefaultContactType = messagerecordsDescContactType.Default.(int)
  1180. // messagerecordsDescContactWxid is the schema descriptor for contact_wxid field.
  1181. messagerecordsDescContactWxid := messagerecordsFields[3].Descriptor()
  1182. // messagerecords.DefaultContactWxid holds the default value on creation for the contact_wxid field.
  1183. messagerecords.DefaultContactWxid = messagerecordsDescContactWxid.Default.(string)
  1184. // messagerecordsDescContentType is the schema descriptor for content_type field.
  1185. messagerecordsDescContentType := messagerecordsFields[4].Descriptor()
  1186. // messagerecords.DefaultContentType holds the default value on creation for the content_type field.
  1187. messagerecords.DefaultContentType = messagerecordsDescContentType.Default.(int)
  1188. // messagerecordsDescContent is the schema descriptor for content field.
  1189. messagerecordsDescContent := messagerecordsFields[5].Descriptor()
  1190. // messagerecords.DefaultContent holds the default value on creation for the content field.
  1191. messagerecords.DefaultContent = messagerecordsDescContent.Default.(string)
  1192. // messagerecordsDescErrorDetail is the schema descriptor for error_detail field.
  1193. messagerecordsDescErrorDetail := messagerecordsFields[7].Descriptor()
  1194. // messagerecords.DefaultErrorDetail holds the default value on creation for the error_detail field.
  1195. messagerecords.DefaultErrorDetail = messagerecordsDescErrorDetail.Default.(string)
  1196. // messagerecordsDescSourceType is the schema descriptor for source_type field.
  1197. messagerecordsDescSourceType := messagerecordsFields[9].Descriptor()
  1198. // messagerecords.DefaultSourceType holds the default value on creation for the source_type field.
  1199. messagerecords.DefaultSourceType = messagerecordsDescSourceType.Default.(int)
  1200. // messagerecordsDescSourceID is the schema descriptor for source_id field.
  1201. messagerecordsDescSourceID := messagerecordsFields[10].Descriptor()
  1202. // messagerecords.DefaultSourceID holds the default value on creation for the source_id field.
  1203. messagerecords.DefaultSourceID = messagerecordsDescSourceID.Default.(uint64)
  1204. // messagerecordsDescSubSourceID is the schema descriptor for sub_source_id field.
  1205. messagerecordsDescSubSourceID := messagerecordsFields[11].Descriptor()
  1206. // messagerecords.DefaultSubSourceID holds the default value on creation for the sub_source_id field.
  1207. messagerecords.DefaultSubSourceID = messagerecordsDescSubSourceID.Default.(uint64)
  1208. // messagerecordsDescOrganizationID is the schema descriptor for organization_id field.
  1209. messagerecordsDescOrganizationID := messagerecordsFields[12].Descriptor()
  1210. // messagerecords.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1211. messagerecords.DefaultOrganizationID = messagerecordsDescOrganizationID.Default.(uint64)
  1212. msgMixin := schema.Msg{}.Mixin()
  1213. msgMixinHooks1 := msgMixin[1].Hooks()
  1214. msg.Hooks[0] = msgMixinHooks1[0]
  1215. msgMixinInters1 := msgMixin[1].Interceptors()
  1216. msg.Interceptors[0] = msgMixinInters1[0]
  1217. msgMixinFields0 := msgMixin[0].Fields()
  1218. _ = msgMixinFields0
  1219. msgFields := schema.Msg{}.Fields()
  1220. _ = msgFields
  1221. // msgDescCreatedAt is the schema descriptor for created_at field.
  1222. msgDescCreatedAt := msgMixinFields0[1].Descriptor()
  1223. // msg.DefaultCreatedAt holds the default value on creation for the created_at field.
  1224. msg.DefaultCreatedAt = msgDescCreatedAt.Default.(func() time.Time)
  1225. // msgDescUpdatedAt is the schema descriptor for updated_at field.
  1226. msgDescUpdatedAt := msgMixinFields0[2].Descriptor()
  1227. // msg.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1228. msg.DefaultUpdatedAt = msgDescUpdatedAt.Default.(func() time.Time)
  1229. // msg.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1230. msg.UpdateDefaultUpdatedAt = msgDescUpdatedAt.UpdateDefault.(func() time.Time)
  1231. // msgDescCc is the schema descriptor for cc field.
  1232. msgDescCc := msgFields[6].Descriptor()
  1233. // msg.DefaultCc holds the default value on creation for the cc field.
  1234. msg.DefaultCc = msgDescCc.Default.(string)
  1235. // msgDescPhone is the schema descriptor for phone field.
  1236. msgDescPhone := msgFields[7].Descriptor()
  1237. // msg.DefaultPhone holds the default value on creation for the phone field.
  1238. msg.DefaultPhone = msgDescPhone.Default.(string)
  1239. payrechargeMixin := schema.PayRecharge{}.Mixin()
  1240. payrechargeMixinHooks1 := payrechargeMixin[1].Hooks()
  1241. payrecharge.Hooks[0] = payrechargeMixinHooks1[0]
  1242. payrechargeMixinInters1 := payrechargeMixin[1].Interceptors()
  1243. payrecharge.Interceptors[0] = payrechargeMixinInters1[0]
  1244. payrechargeMixinFields0 := payrechargeMixin[0].Fields()
  1245. _ = payrechargeMixinFields0
  1246. payrechargeFields := schema.PayRecharge{}.Fields()
  1247. _ = payrechargeFields
  1248. // payrechargeDescCreatedAt is the schema descriptor for created_at field.
  1249. payrechargeDescCreatedAt := payrechargeMixinFields0[1].Descriptor()
  1250. // payrecharge.DefaultCreatedAt holds the default value on creation for the created_at field.
  1251. payrecharge.DefaultCreatedAt = payrechargeDescCreatedAt.Default.(func() time.Time)
  1252. // payrechargeDescUpdatedAt is the schema descriptor for updated_at field.
  1253. payrechargeDescUpdatedAt := payrechargeMixinFields0[2].Descriptor()
  1254. // payrecharge.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1255. payrecharge.DefaultUpdatedAt = payrechargeDescUpdatedAt.Default.(func() time.Time)
  1256. // payrecharge.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1257. payrecharge.UpdateDefaultUpdatedAt = payrechargeDescUpdatedAt.UpdateDefault.(func() time.Time)
  1258. // payrechargeDescUserID is the schema descriptor for user_id field.
  1259. payrechargeDescUserID := payrechargeFields[0].Descriptor()
  1260. // payrecharge.UserIDValidator is a validator for the "user_id" field. It is called by the builders before save.
  1261. payrecharge.UserIDValidator = payrechargeDescUserID.Validators[0].(func(string) error)
  1262. // payrechargeDescNumber is the schema descriptor for number field.
  1263. payrechargeDescNumber := payrechargeFields[1].Descriptor()
  1264. // payrecharge.DefaultNumber holds the default value on creation for the number field.
  1265. payrecharge.DefaultNumber = payrechargeDescNumber.Default.(float32)
  1266. // payrechargeDescStatus is the schema descriptor for status field.
  1267. payrechargeDescStatus := payrechargeFields[2].Descriptor()
  1268. // payrecharge.DefaultStatus holds the default value on creation for the status field.
  1269. payrecharge.DefaultStatus = payrechargeDescStatus.Default.(int)
  1270. // payrecharge.StatusValidator is a validator for the "status" field. It is called by the builders before save.
  1271. payrecharge.StatusValidator = payrechargeDescStatus.Validators[0].(func(int) error)
  1272. // payrechargeDescMoney is the schema descriptor for money field.
  1273. payrechargeDescMoney := payrechargeFields[3].Descriptor()
  1274. // payrecharge.DefaultMoney holds the default value on creation for the money field.
  1275. payrecharge.DefaultMoney = payrechargeDescMoney.Default.(float32)
  1276. // payrechargeDescOutTradeNo is the schema descriptor for out_trade_no field.
  1277. payrechargeDescOutTradeNo := payrechargeFields[4].Descriptor()
  1278. // payrecharge.DefaultOutTradeNo holds the default value on creation for the out_trade_no field.
  1279. payrecharge.DefaultOutTradeNo = payrechargeDescOutTradeNo.Default.(string)
  1280. // payrechargeDescOrganizationID is the schema descriptor for organization_id field.
  1281. payrechargeDescOrganizationID := payrechargeFields[5].Descriptor()
  1282. // payrecharge.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1283. payrecharge.DefaultOrganizationID = payrechargeDescOrganizationID.Default.(uint64)
  1284. // payrecharge.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  1285. payrecharge.OrganizationIDValidator = payrechargeDescOrganizationID.Validators[0].(func(uint64) error)
  1286. serverMixin := schema.Server{}.Mixin()
  1287. serverMixinHooks2 := serverMixin[2].Hooks()
  1288. server.Hooks[0] = serverMixinHooks2[0]
  1289. serverMixinInters2 := serverMixin[2].Interceptors()
  1290. server.Interceptors[0] = serverMixinInters2[0]
  1291. serverMixinFields0 := serverMixin[0].Fields()
  1292. _ = serverMixinFields0
  1293. serverMixinFields1 := serverMixin[1].Fields()
  1294. _ = serverMixinFields1
  1295. serverFields := schema.Server{}.Fields()
  1296. _ = serverFields
  1297. // serverDescCreatedAt is the schema descriptor for created_at field.
  1298. serverDescCreatedAt := serverMixinFields0[1].Descriptor()
  1299. // server.DefaultCreatedAt holds the default value on creation for the created_at field.
  1300. server.DefaultCreatedAt = serverDescCreatedAt.Default.(func() time.Time)
  1301. // serverDescUpdatedAt is the schema descriptor for updated_at field.
  1302. serverDescUpdatedAt := serverMixinFields0[2].Descriptor()
  1303. // server.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1304. server.DefaultUpdatedAt = serverDescUpdatedAt.Default.(func() time.Time)
  1305. // server.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1306. server.UpdateDefaultUpdatedAt = serverDescUpdatedAt.UpdateDefault.(func() time.Time)
  1307. // serverDescStatus is the schema descriptor for status field.
  1308. serverDescStatus := serverMixinFields1[0].Descriptor()
  1309. // server.DefaultStatus holds the default value on creation for the status field.
  1310. server.DefaultStatus = serverDescStatus.Default.(uint8)
  1311. sopnodeMixin := schema.SopNode{}.Mixin()
  1312. sopnodeMixinHooks2 := sopnodeMixin[2].Hooks()
  1313. sopnode.Hooks[0] = sopnodeMixinHooks2[0]
  1314. sopnodeMixinInters2 := sopnodeMixin[2].Interceptors()
  1315. sopnode.Interceptors[0] = sopnodeMixinInters2[0]
  1316. sopnodeMixinFields0 := sopnodeMixin[0].Fields()
  1317. _ = sopnodeMixinFields0
  1318. sopnodeMixinFields1 := sopnodeMixin[1].Fields()
  1319. _ = sopnodeMixinFields1
  1320. sopnodeFields := schema.SopNode{}.Fields()
  1321. _ = sopnodeFields
  1322. // sopnodeDescCreatedAt is the schema descriptor for created_at field.
  1323. sopnodeDescCreatedAt := sopnodeMixinFields0[1].Descriptor()
  1324. // sopnode.DefaultCreatedAt holds the default value on creation for the created_at field.
  1325. sopnode.DefaultCreatedAt = sopnodeDescCreatedAt.Default.(func() time.Time)
  1326. // sopnodeDescUpdatedAt is the schema descriptor for updated_at field.
  1327. sopnodeDescUpdatedAt := sopnodeMixinFields0[2].Descriptor()
  1328. // sopnode.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1329. sopnode.DefaultUpdatedAt = sopnodeDescUpdatedAt.Default.(func() time.Time)
  1330. // sopnode.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1331. sopnode.UpdateDefaultUpdatedAt = sopnodeDescUpdatedAt.UpdateDefault.(func() time.Time)
  1332. // sopnodeDescStatus is the schema descriptor for status field.
  1333. sopnodeDescStatus := sopnodeMixinFields1[0].Descriptor()
  1334. // sopnode.DefaultStatus holds the default value on creation for the status field.
  1335. sopnode.DefaultStatus = sopnodeDescStatus.Default.(uint8)
  1336. // sopnodeDescName is the schema descriptor for name field.
  1337. sopnodeDescName := sopnodeFields[2].Descriptor()
  1338. // sopnode.DefaultName holds the default value on creation for the name field.
  1339. sopnode.DefaultName = sopnodeDescName.Default.(string)
  1340. // sopnodeDescConditionType is the schema descriptor for condition_type field.
  1341. sopnodeDescConditionType := sopnodeFields[3].Descriptor()
  1342. // sopnode.DefaultConditionType holds the default value on creation for the condition_type field.
  1343. sopnode.DefaultConditionType = sopnodeDescConditionType.Default.(int)
  1344. // sopnodeDescNoReplyCondition is the schema descriptor for no_reply_condition field.
  1345. sopnodeDescNoReplyCondition := sopnodeFields[5].Descriptor()
  1346. // sopnode.DefaultNoReplyCondition holds the default value on creation for the no_reply_condition field.
  1347. sopnode.DefaultNoReplyCondition = sopnodeDescNoReplyCondition.Default.(uint64)
  1348. // sopnodeDescNoReplyUnit is the schema descriptor for no_reply_unit field.
  1349. sopnodeDescNoReplyUnit := sopnodeFields[6].Descriptor()
  1350. // sopnode.DefaultNoReplyUnit holds the default value on creation for the no_reply_unit field.
  1351. sopnode.DefaultNoReplyUnit = sopnodeDescNoReplyUnit.Default.(string)
  1352. sopstageMixin := schema.SopStage{}.Mixin()
  1353. sopstageMixinHooks2 := sopstageMixin[2].Hooks()
  1354. sopstage.Hooks[0] = sopstageMixinHooks2[0]
  1355. sopstageMixinInters2 := sopstageMixin[2].Interceptors()
  1356. sopstage.Interceptors[0] = sopstageMixinInters2[0]
  1357. sopstageMixinFields0 := sopstageMixin[0].Fields()
  1358. _ = sopstageMixinFields0
  1359. sopstageMixinFields1 := sopstageMixin[1].Fields()
  1360. _ = sopstageMixinFields1
  1361. sopstageFields := schema.SopStage{}.Fields()
  1362. _ = sopstageFields
  1363. // sopstageDescCreatedAt is the schema descriptor for created_at field.
  1364. sopstageDescCreatedAt := sopstageMixinFields0[1].Descriptor()
  1365. // sopstage.DefaultCreatedAt holds the default value on creation for the created_at field.
  1366. sopstage.DefaultCreatedAt = sopstageDescCreatedAt.Default.(func() time.Time)
  1367. // sopstageDescUpdatedAt is the schema descriptor for updated_at field.
  1368. sopstageDescUpdatedAt := sopstageMixinFields0[2].Descriptor()
  1369. // sopstage.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1370. sopstage.DefaultUpdatedAt = sopstageDescUpdatedAt.Default.(func() time.Time)
  1371. // sopstage.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1372. sopstage.UpdateDefaultUpdatedAt = sopstageDescUpdatedAt.UpdateDefault.(func() time.Time)
  1373. // sopstageDescStatus is the schema descriptor for status field.
  1374. sopstageDescStatus := sopstageMixinFields1[0].Descriptor()
  1375. // sopstage.DefaultStatus holds the default value on creation for the status field.
  1376. sopstage.DefaultStatus = sopstageDescStatus.Default.(uint8)
  1377. // sopstageDescName is the schema descriptor for name field.
  1378. sopstageDescName := sopstageFields[1].Descriptor()
  1379. // sopstage.DefaultName holds the default value on creation for the name field.
  1380. sopstage.DefaultName = sopstageDescName.Default.(string)
  1381. // sopstageDescConditionType is the schema descriptor for condition_type field.
  1382. sopstageDescConditionType := sopstageFields[2].Descriptor()
  1383. // sopstage.DefaultConditionType holds the default value on creation for the condition_type field.
  1384. sopstage.DefaultConditionType = sopstageDescConditionType.Default.(int)
  1385. // sopstageDescConditionOperator is the schema descriptor for condition_operator field.
  1386. sopstageDescConditionOperator := sopstageFields[3].Descriptor()
  1387. // sopstage.DefaultConditionOperator holds the default value on creation for the condition_operator field.
  1388. sopstage.DefaultConditionOperator = sopstageDescConditionOperator.Default.(int)
  1389. // sopstageDescIndexSort is the schema descriptor for index_sort field.
  1390. sopstageDescIndexSort := sopstageFields[9].Descriptor()
  1391. // sopstage.DefaultIndexSort holds the default value on creation for the index_sort field.
  1392. sopstage.DefaultIndexSort = sopstageDescIndexSort.Default.(int)
  1393. soptaskMixin := schema.SopTask{}.Mixin()
  1394. soptaskMixinHooks2 := soptaskMixin[2].Hooks()
  1395. soptask.Hooks[0] = soptaskMixinHooks2[0]
  1396. soptaskMixinInters2 := soptaskMixin[2].Interceptors()
  1397. soptask.Interceptors[0] = soptaskMixinInters2[0]
  1398. soptaskMixinFields0 := soptaskMixin[0].Fields()
  1399. _ = soptaskMixinFields0
  1400. soptaskMixinFields1 := soptaskMixin[1].Fields()
  1401. _ = soptaskMixinFields1
  1402. soptaskFields := schema.SopTask{}.Fields()
  1403. _ = soptaskFields
  1404. // soptaskDescCreatedAt is the schema descriptor for created_at field.
  1405. soptaskDescCreatedAt := soptaskMixinFields0[1].Descriptor()
  1406. // soptask.DefaultCreatedAt holds the default value on creation for the created_at field.
  1407. soptask.DefaultCreatedAt = soptaskDescCreatedAt.Default.(func() time.Time)
  1408. // soptaskDescUpdatedAt is the schema descriptor for updated_at field.
  1409. soptaskDescUpdatedAt := soptaskMixinFields0[2].Descriptor()
  1410. // soptask.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1411. soptask.DefaultUpdatedAt = soptaskDescUpdatedAt.Default.(func() time.Time)
  1412. // soptask.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1413. soptask.UpdateDefaultUpdatedAt = soptaskDescUpdatedAt.UpdateDefault.(func() time.Time)
  1414. // soptaskDescStatus is the schema descriptor for status field.
  1415. soptaskDescStatus := soptaskMixinFields1[0].Descriptor()
  1416. // soptask.DefaultStatus holds the default value on creation for the status field.
  1417. soptask.DefaultStatus = soptaskDescStatus.Default.(uint8)
  1418. // soptaskDescName is the schema descriptor for name field.
  1419. soptaskDescName := soptaskFields[0].Descriptor()
  1420. // soptask.NameValidator is a validator for the "name" field. It is called by the builders before save.
  1421. soptask.NameValidator = soptaskDescName.Validators[0].(func(string) error)
  1422. // soptaskDescType is the schema descriptor for type field.
  1423. soptaskDescType := soptaskFields[2].Descriptor()
  1424. // soptask.DefaultType holds the default value on creation for the type field.
  1425. soptask.DefaultType = soptaskDescType.Default.(int)
  1426. // soptaskDescOrganizationID is the schema descriptor for organization_id field.
  1427. soptaskDescOrganizationID := soptaskFields[6].Descriptor()
  1428. // soptask.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1429. soptask.DefaultOrganizationID = soptaskDescOrganizationID.Default.(uint64)
  1430. tokenMixin := schema.Token{}.Mixin()
  1431. tokenMixinHooks1 := tokenMixin[1].Hooks()
  1432. token.Hooks[0] = tokenMixinHooks1[0]
  1433. tokenMixinInters1 := tokenMixin[1].Interceptors()
  1434. token.Interceptors[0] = tokenMixinInters1[0]
  1435. tokenMixinFields0 := tokenMixin[0].Fields()
  1436. _ = tokenMixinFields0
  1437. tokenFields := schema.Token{}.Fields()
  1438. _ = tokenFields
  1439. // tokenDescCreatedAt is the schema descriptor for created_at field.
  1440. tokenDescCreatedAt := tokenMixinFields0[1].Descriptor()
  1441. // token.DefaultCreatedAt holds the default value on creation for the created_at field.
  1442. token.DefaultCreatedAt = tokenDescCreatedAt.Default.(func() time.Time)
  1443. // tokenDescUpdatedAt is the schema descriptor for updated_at field.
  1444. tokenDescUpdatedAt := tokenMixinFields0[2].Descriptor()
  1445. // token.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1446. token.DefaultUpdatedAt = tokenDescUpdatedAt.Default.(func() time.Time)
  1447. // token.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1448. token.UpdateDefaultUpdatedAt = tokenDescUpdatedAt.UpdateDefault.(func() time.Time)
  1449. // tokenDescToken is the schema descriptor for token field.
  1450. tokenDescToken := tokenFields[1].Descriptor()
  1451. // token.DefaultToken holds the default value on creation for the token field.
  1452. token.DefaultToken = tokenDescToken.Default.(string)
  1453. // tokenDescMAC is the schema descriptor for mac field.
  1454. tokenDescMAC := tokenFields[2].Descriptor()
  1455. // token.DefaultMAC holds the default value on creation for the mac field.
  1456. token.DefaultMAC = tokenDescMAC.Default.(string)
  1457. // tokenDescOrganizationID is the schema descriptor for organization_id field.
  1458. tokenDescOrganizationID := tokenFields[3].Descriptor()
  1459. // token.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1460. token.DefaultOrganizationID = tokenDescOrganizationID.Default.(uint64)
  1461. // tokenDescAgentID is the schema descriptor for agent_id field.
  1462. tokenDescAgentID := tokenFields[4].Descriptor()
  1463. // token.DefaultAgentID holds the default value on creation for the agent_id field.
  1464. token.DefaultAgentID = tokenDescAgentID.Default.(uint64)
  1465. // tokenDescCustomAgentBase is the schema descriptor for custom_agent_base field.
  1466. tokenDescCustomAgentBase := tokenFields[5].Descriptor()
  1467. // token.DefaultCustomAgentBase holds the default value on creation for the custom_agent_base field.
  1468. token.DefaultCustomAgentBase = tokenDescCustomAgentBase.Default.(string)
  1469. // tokenDescCustomAgentKey is the schema descriptor for custom_agent_key field.
  1470. tokenDescCustomAgentKey := tokenFields[6].Descriptor()
  1471. // token.DefaultCustomAgentKey holds the default value on creation for the custom_agent_key field.
  1472. token.DefaultCustomAgentKey = tokenDescCustomAgentKey.Default.(string)
  1473. // tokenDescOpenaiBase is the schema descriptor for openai_base field.
  1474. tokenDescOpenaiBase := tokenFields[7].Descriptor()
  1475. // token.DefaultOpenaiBase holds the default value on creation for the openai_base field.
  1476. token.DefaultOpenaiBase = tokenDescOpenaiBase.Default.(string)
  1477. // tokenDescOpenaiKey is the schema descriptor for openai_key field.
  1478. tokenDescOpenaiKey := tokenFields[8].Descriptor()
  1479. // token.DefaultOpenaiKey holds the default value on creation for the openai_key field.
  1480. token.DefaultOpenaiKey = tokenDescOpenaiKey.Default.(string)
  1481. tutorialMixin := schema.Tutorial{}.Mixin()
  1482. tutorialMixinHooks1 := tutorialMixin[1].Hooks()
  1483. tutorial.Hooks[0] = tutorialMixinHooks1[0]
  1484. tutorialMixinInters1 := tutorialMixin[1].Interceptors()
  1485. tutorial.Interceptors[0] = tutorialMixinInters1[0]
  1486. tutorialMixinFields0 := tutorialMixin[0].Fields()
  1487. _ = tutorialMixinFields0
  1488. tutorialFields := schema.Tutorial{}.Fields()
  1489. _ = tutorialFields
  1490. // tutorialDescCreatedAt is the schema descriptor for created_at field.
  1491. tutorialDescCreatedAt := tutorialMixinFields0[1].Descriptor()
  1492. // tutorial.DefaultCreatedAt holds the default value on creation for the created_at field.
  1493. tutorial.DefaultCreatedAt = tutorialDescCreatedAt.Default.(func() time.Time)
  1494. // tutorialDescUpdatedAt is the schema descriptor for updated_at field.
  1495. tutorialDescUpdatedAt := tutorialMixinFields0[2].Descriptor()
  1496. // tutorial.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1497. tutorial.DefaultUpdatedAt = tutorialDescUpdatedAt.Default.(func() time.Time)
  1498. // tutorial.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1499. tutorial.UpdateDefaultUpdatedAt = tutorialDescUpdatedAt.UpdateDefault.(func() time.Time)
  1500. // tutorialDescEmployeeID is the schema descriptor for employee_id field.
  1501. tutorialDescEmployeeID := tutorialFields[0].Descriptor()
  1502. // tutorial.EmployeeIDValidator is a validator for the "employee_id" field. It is called by the builders before save.
  1503. tutorial.EmployeeIDValidator = tutorialDescEmployeeID.Validators[0].(func(uint64) error)
  1504. // tutorialDescOrganizationID is the schema descriptor for organization_id field.
  1505. tutorialDescOrganizationID := tutorialFields[4].Descriptor()
  1506. // tutorial.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  1507. tutorial.OrganizationIDValidator = tutorialDescOrganizationID.Validators[0].(func(uint64) error)
  1508. usagedetailMixin := schema.UsageDetail{}.Mixin()
  1509. usagedetailMixinFields0 := usagedetailMixin[0].Fields()
  1510. _ = usagedetailMixinFields0
  1511. usagedetailMixinFields1 := usagedetailMixin[1].Fields()
  1512. _ = usagedetailMixinFields1
  1513. usagedetailFields := schema.UsageDetail{}.Fields()
  1514. _ = usagedetailFields
  1515. // usagedetailDescCreatedAt is the schema descriptor for created_at field.
  1516. usagedetailDescCreatedAt := usagedetailMixinFields0[1].Descriptor()
  1517. // usagedetail.DefaultCreatedAt holds the default value on creation for the created_at field.
  1518. usagedetail.DefaultCreatedAt = usagedetailDescCreatedAt.Default.(func() time.Time)
  1519. // usagedetailDescUpdatedAt is the schema descriptor for updated_at field.
  1520. usagedetailDescUpdatedAt := usagedetailMixinFields0[2].Descriptor()
  1521. // usagedetail.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1522. usagedetail.DefaultUpdatedAt = usagedetailDescUpdatedAt.Default.(func() time.Time)
  1523. // usagedetail.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1524. usagedetail.UpdateDefaultUpdatedAt = usagedetailDescUpdatedAt.UpdateDefault.(func() time.Time)
  1525. // usagedetailDescStatus is the schema descriptor for status field.
  1526. usagedetailDescStatus := usagedetailMixinFields1[0].Descriptor()
  1527. // usagedetail.DefaultStatus holds the default value on creation for the status field.
  1528. usagedetail.DefaultStatus = usagedetailDescStatus.Default.(uint8)
  1529. // usagedetailDescType is the schema descriptor for type field.
  1530. usagedetailDescType := usagedetailFields[0].Descriptor()
  1531. // usagedetail.DefaultType holds the default value on creation for the type field.
  1532. usagedetail.DefaultType = usagedetailDescType.Default.(int)
  1533. // usagedetailDescBotID is the schema descriptor for bot_id field.
  1534. usagedetailDescBotID := usagedetailFields[1].Descriptor()
  1535. // usagedetail.DefaultBotID holds the default value on creation for the bot_id field.
  1536. usagedetail.DefaultBotID = usagedetailDescBotID.Default.(string)
  1537. // usagedetailDescReceiverID is the schema descriptor for receiver_id field.
  1538. usagedetailDescReceiverID := usagedetailFields[2].Descriptor()
  1539. // usagedetail.DefaultReceiverID holds the default value on creation for the receiver_id field.
  1540. usagedetail.DefaultReceiverID = usagedetailDescReceiverID.Default.(string)
  1541. // usagedetailDescApp is the schema descriptor for app field.
  1542. usagedetailDescApp := usagedetailFields[3].Descriptor()
  1543. // usagedetail.DefaultApp holds the default value on creation for the app field.
  1544. usagedetail.DefaultApp = usagedetailDescApp.Default.(int)
  1545. // usagedetailDescSessionID is the schema descriptor for session_id field.
  1546. usagedetailDescSessionID := usagedetailFields[4].Descriptor()
  1547. // usagedetail.DefaultSessionID holds the default value on creation for the session_id field.
  1548. usagedetail.DefaultSessionID = usagedetailDescSessionID.Default.(uint64)
  1549. // usagedetailDescRequest is the schema descriptor for request field.
  1550. usagedetailDescRequest := usagedetailFields[5].Descriptor()
  1551. // usagedetail.DefaultRequest holds the default value on creation for the request field.
  1552. usagedetail.DefaultRequest = usagedetailDescRequest.Default.(string)
  1553. // usagedetailDescResponse is the schema descriptor for response field.
  1554. usagedetailDescResponse := usagedetailFields[6].Descriptor()
  1555. // usagedetail.DefaultResponse holds the default value on creation for the response field.
  1556. usagedetail.DefaultResponse = usagedetailDescResponse.Default.(string)
  1557. // usagedetailDescTotalTokens is the schema descriptor for total_tokens field.
  1558. usagedetailDescTotalTokens := usagedetailFields[8].Descriptor()
  1559. // usagedetail.DefaultTotalTokens holds the default value on creation for the total_tokens field.
  1560. usagedetail.DefaultTotalTokens = usagedetailDescTotalTokens.Default.(uint64)
  1561. // usagedetailDescPromptTokens is the schema descriptor for prompt_tokens field.
  1562. usagedetailDescPromptTokens := usagedetailFields[9].Descriptor()
  1563. // usagedetail.DefaultPromptTokens holds the default value on creation for the prompt_tokens field.
  1564. usagedetail.DefaultPromptTokens = usagedetailDescPromptTokens.Default.(uint64)
  1565. // usagedetailDescCompletionTokens is the schema descriptor for completion_tokens field.
  1566. usagedetailDescCompletionTokens := usagedetailFields[10].Descriptor()
  1567. // usagedetail.DefaultCompletionTokens holds the default value on creation for the completion_tokens field.
  1568. usagedetail.DefaultCompletionTokens = usagedetailDescCompletionTokens.Default.(uint64)
  1569. // usagedetailDescOrganizationID is the schema descriptor for organization_id field.
  1570. usagedetailDescOrganizationID := usagedetailFields[11].Descriptor()
  1571. // usagedetail.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1572. usagedetail.DefaultOrganizationID = usagedetailDescOrganizationID.Default.(uint64)
  1573. // usagedetailDescModel is the schema descriptor for model field.
  1574. usagedetailDescModel := usagedetailFields[12].Descriptor()
  1575. // usagedetail.DefaultModel holds the default value on creation for the model field.
  1576. usagedetail.DefaultModel = usagedetailDescModel.Default.(string)
  1577. usagestatisticdayMixin := schema.UsageStatisticDay{}.Mixin()
  1578. usagestatisticdayMixinHooks2 := usagestatisticdayMixin[2].Hooks()
  1579. usagestatisticday.Hooks[0] = usagestatisticdayMixinHooks2[0]
  1580. usagestatisticdayMixinInters2 := usagestatisticdayMixin[2].Interceptors()
  1581. usagestatisticday.Interceptors[0] = usagestatisticdayMixinInters2[0]
  1582. usagestatisticdayMixinFields0 := usagestatisticdayMixin[0].Fields()
  1583. _ = usagestatisticdayMixinFields0
  1584. usagestatisticdayMixinFields1 := usagestatisticdayMixin[1].Fields()
  1585. _ = usagestatisticdayMixinFields1
  1586. usagestatisticdayFields := schema.UsageStatisticDay{}.Fields()
  1587. _ = usagestatisticdayFields
  1588. // usagestatisticdayDescCreatedAt is the schema descriptor for created_at field.
  1589. usagestatisticdayDescCreatedAt := usagestatisticdayMixinFields0[1].Descriptor()
  1590. // usagestatisticday.DefaultCreatedAt holds the default value on creation for the created_at field.
  1591. usagestatisticday.DefaultCreatedAt = usagestatisticdayDescCreatedAt.Default.(func() time.Time)
  1592. // usagestatisticdayDescUpdatedAt is the schema descriptor for updated_at field.
  1593. usagestatisticdayDescUpdatedAt := usagestatisticdayMixinFields0[2].Descriptor()
  1594. // usagestatisticday.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1595. usagestatisticday.DefaultUpdatedAt = usagestatisticdayDescUpdatedAt.Default.(func() time.Time)
  1596. // usagestatisticday.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1597. usagestatisticday.UpdateDefaultUpdatedAt = usagestatisticdayDescUpdatedAt.UpdateDefault.(func() time.Time)
  1598. // usagestatisticdayDescStatus is the schema descriptor for status field.
  1599. usagestatisticdayDescStatus := usagestatisticdayMixinFields1[0].Descriptor()
  1600. // usagestatisticday.DefaultStatus holds the default value on creation for the status field.
  1601. usagestatisticday.DefaultStatus = usagestatisticdayDescStatus.Default.(uint8)
  1602. // usagestatisticdayDescConsumeCoin is the schema descriptor for consume_coin field.
  1603. usagestatisticdayDescConsumeCoin := usagestatisticdayFields[13].Descriptor()
  1604. // usagestatisticday.DefaultConsumeCoin holds the default value on creation for the consume_coin field.
  1605. usagestatisticday.DefaultConsumeCoin = usagestatisticdayDescConsumeCoin.Default.(float64)
  1606. usagestatistichourMixin := schema.UsageStatisticHour{}.Mixin()
  1607. usagestatistichourMixinHooks2 := usagestatistichourMixin[2].Hooks()
  1608. usagestatistichour.Hooks[0] = usagestatistichourMixinHooks2[0]
  1609. usagestatistichourMixinInters2 := usagestatistichourMixin[2].Interceptors()
  1610. usagestatistichour.Interceptors[0] = usagestatistichourMixinInters2[0]
  1611. usagestatistichourMixinFields0 := usagestatistichourMixin[0].Fields()
  1612. _ = usagestatistichourMixinFields0
  1613. usagestatistichourMixinFields1 := usagestatistichourMixin[1].Fields()
  1614. _ = usagestatistichourMixinFields1
  1615. usagestatistichourFields := schema.UsageStatisticHour{}.Fields()
  1616. _ = usagestatistichourFields
  1617. // usagestatistichourDescCreatedAt is the schema descriptor for created_at field.
  1618. usagestatistichourDescCreatedAt := usagestatistichourMixinFields0[1].Descriptor()
  1619. // usagestatistichour.DefaultCreatedAt holds the default value on creation for the created_at field.
  1620. usagestatistichour.DefaultCreatedAt = usagestatistichourDescCreatedAt.Default.(func() time.Time)
  1621. // usagestatistichourDescUpdatedAt is the schema descriptor for updated_at field.
  1622. usagestatistichourDescUpdatedAt := usagestatistichourMixinFields0[2].Descriptor()
  1623. // usagestatistichour.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1624. usagestatistichour.DefaultUpdatedAt = usagestatistichourDescUpdatedAt.Default.(func() time.Time)
  1625. // usagestatistichour.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1626. usagestatistichour.UpdateDefaultUpdatedAt = usagestatistichourDescUpdatedAt.UpdateDefault.(func() time.Time)
  1627. // usagestatistichourDescStatus is the schema descriptor for status field.
  1628. usagestatistichourDescStatus := usagestatistichourMixinFields1[0].Descriptor()
  1629. // usagestatistichour.DefaultStatus holds the default value on creation for the status field.
  1630. usagestatistichour.DefaultStatus = usagestatistichourDescStatus.Default.(uint8)
  1631. // usagestatistichourDescConsumeCoin is the schema descriptor for consume_coin field.
  1632. usagestatistichourDescConsumeCoin := usagestatistichourFields[13].Descriptor()
  1633. // usagestatistichour.DefaultConsumeCoin holds the default value on creation for the consume_coin field.
  1634. usagestatistichour.DefaultConsumeCoin = usagestatistichourDescConsumeCoin.Default.(float64)
  1635. usagestatisticmonthMixin := schema.UsageStatisticMonth{}.Mixin()
  1636. usagestatisticmonthMixinHooks2 := usagestatisticmonthMixin[2].Hooks()
  1637. usagestatisticmonth.Hooks[0] = usagestatisticmonthMixinHooks2[0]
  1638. usagestatisticmonthMixinInters2 := usagestatisticmonthMixin[2].Interceptors()
  1639. usagestatisticmonth.Interceptors[0] = usagestatisticmonthMixinInters2[0]
  1640. usagestatisticmonthMixinFields0 := usagestatisticmonthMixin[0].Fields()
  1641. _ = usagestatisticmonthMixinFields0
  1642. usagestatisticmonthMixinFields1 := usagestatisticmonthMixin[1].Fields()
  1643. _ = usagestatisticmonthMixinFields1
  1644. usagestatisticmonthFields := schema.UsageStatisticMonth{}.Fields()
  1645. _ = usagestatisticmonthFields
  1646. // usagestatisticmonthDescCreatedAt is the schema descriptor for created_at field.
  1647. usagestatisticmonthDescCreatedAt := usagestatisticmonthMixinFields0[1].Descriptor()
  1648. // usagestatisticmonth.DefaultCreatedAt holds the default value on creation for the created_at field.
  1649. usagestatisticmonth.DefaultCreatedAt = usagestatisticmonthDescCreatedAt.Default.(func() time.Time)
  1650. // usagestatisticmonthDescUpdatedAt is the schema descriptor for updated_at field.
  1651. usagestatisticmonthDescUpdatedAt := usagestatisticmonthMixinFields0[2].Descriptor()
  1652. // usagestatisticmonth.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1653. usagestatisticmonth.DefaultUpdatedAt = usagestatisticmonthDescUpdatedAt.Default.(func() time.Time)
  1654. // usagestatisticmonth.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1655. usagestatisticmonth.UpdateDefaultUpdatedAt = usagestatisticmonthDescUpdatedAt.UpdateDefault.(func() time.Time)
  1656. // usagestatisticmonthDescStatus is the schema descriptor for status field.
  1657. usagestatisticmonthDescStatus := usagestatisticmonthMixinFields1[0].Descriptor()
  1658. // usagestatisticmonth.DefaultStatus holds the default value on creation for the status field.
  1659. usagestatisticmonth.DefaultStatus = usagestatisticmonthDescStatus.Default.(uint8)
  1660. // usagestatisticmonthDescConsumeCoin is the schema descriptor for consume_coin field.
  1661. usagestatisticmonthDescConsumeCoin := usagestatisticmonthFields[13].Descriptor()
  1662. // usagestatisticmonth.DefaultConsumeCoin holds the default value on creation for the consume_coin field.
  1663. usagestatisticmonth.DefaultConsumeCoin = usagestatisticmonthDescConsumeCoin.Default.(float64)
  1664. usagetotalMixin := schema.UsageTotal{}.Mixin()
  1665. usagetotalMixinFields0 := usagetotalMixin[0].Fields()
  1666. _ = usagetotalMixinFields0
  1667. usagetotalMixinFields1 := usagetotalMixin[1].Fields()
  1668. _ = usagetotalMixinFields1
  1669. usagetotalFields := schema.UsageTotal{}.Fields()
  1670. _ = usagetotalFields
  1671. // usagetotalDescCreatedAt is the schema descriptor for created_at field.
  1672. usagetotalDescCreatedAt := usagetotalMixinFields0[1].Descriptor()
  1673. // usagetotal.DefaultCreatedAt holds the default value on creation for the created_at field.
  1674. usagetotal.DefaultCreatedAt = usagetotalDescCreatedAt.Default.(func() time.Time)
  1675. // usagetotalDescUpdatedAt is the schema descriptor for updated_at field.
  1676. usagetotalDescUpdatedAt := usagetotalMixinFields0[2].Descriptor()
  1677. // usagetotal.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1678. usagetotal.DefaultUpdatedAt = usagetotalDescUpdatedAt.Default.(func() time.Time)
  1679. // usagetotal.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1680. usagetotal.UpdateDefaultUpdatedAt = usagetotalDescUpdatedAt.UpdateDefault.(func() time.Time)
  1681. // usagetotalDescStatus is the schema descriptor for status field.
  1682. usagetotalDescStatus := usagetotalMixinFields1[0].Descriptor()
  1683. // usagetotal.DefaultStatus holds the default value on creation for the status field.
  1684. usagetotal.DefaultStatus = usagetotalDescStatus.Default.(uint8)
  1685. // usagetotalDescType is the schema descriptor for type field.
  1686. usagetotalDescType := usagetotalFields[0].Descriptor()
  1687. // usagetotal.DefaultType holds the default value on creation for the type field.
  1688. usagetotal.DefaultType = usagetotalDescType.Default.(int)
  1689. // usagetotalDescBotID is the schema descriptor for bot_id field.
  1690. usagetotalDescBotID := usagetotalFields[1].Descriptor()
  1691. // usagetotal.DefaultBotID holds the default value on creation for the bot_id field.
  1692. usagetotal.DefaultBotID = usagetotalDescBotID.Default.(string)
  1693. // usagetotalDescTotalTokens is the schema descriptor for total_tokens field.
  1694. usagetotalDescTotalTokens := usagetotalFields[2].Descriptor()
  1695. // usagetotal.DefaultTotalTokens holds the default value on creation for the total_tokens field.
  1696. usagetotal.DefaultTotalTokens = usagetotalDescTotalTokens.Default.(uint64)
  1697. // usagetotalDescCredits is the schema descriptor for credits field.
  1698. usagetotalDescCredits := usagetotalFields[3].Descriptor()
  1699. // usagetotal.DefaultCredits holds the default value on creation for the credits field.
  1700. usagetotal.DefaultCredits = usagetotalDescCredits.Default.(float64)
  1701. // usagetotalDescStartIndex is the schema descriptor for start_index field.
  1702. usagetotalDescStartIndex := usagetotalFields[4].Descriptor()
  1703. // usagetotal.DefaultStartIndex holds the default value on creation for the start_index field.
  1704. usagetotal.DefaultStartIndex = usagetotalDescStartIndex.Default.(uint64)
  1705. // usagetotalDescEndIndex is the schema descriptor for end_index field.
  1706. usagetotalDescEndIndex := usagetotalFields[5].Descriptor()
  1707. // usagetotal.DefaultEndIndex holds the default value on creation for the end_index field.
  1708. usagetotal.DefaultEndIndex = usagetotalDescEndIndex.Default.(uint64)
  1709. // usagetotalDescOrganizationID is the schema descriptor for organization_id field.
  1710. usagetotalDescOrganizationID := usagetotalFields[6].Descriptor()
  1711. // usagetotal.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1712. usagetotal.DefaultOrganizationID = usagetotalDescOrganizationID.Default.(uint64)
  1713. whatsappMixin := schema.Whatsapp{}.Mixin()
  1714. whatsappMixinHooks2 := whatsappMixin[2].Hooks()
  1715. whatsapp.Hooks[0] = whatsappMixinHooks2[0]
  1716. whatsappMixinInters2 := whatsappMixin[2].Interceptors()
  1717. whatsapp.Interceptors[0] = whatsappMixinInters2[0]
  1718. whatsappMixinFields0 := whatsappMixin[0].Fields()
  1719. _ = whatsappMixinFields0
  1720. whatsappMixinFields1 := whatsappMixin[1].Fields()
  1721. _ = whatsappMixinFields1
  1722. whatsappFields := schema.Whatsapp{}.Fields()
  1723. _ = whatsappFields
  1724. // whatsappDescCreatedAt is the schema descriptor for created_at field.
  1725. whatsappDescCreatedAt := whatsappMixinFields0[1].Descriptor()
  1726. // whatsapp.DefaultCreatedAt holds the default value on creation for the created_at field.
  1727. whatsapp.DefaultCreatedAt = whatsappDescCreatedAt.Default.(func() time.Time)
  1728. // whatsappDescUpdatedAt is the schema descriptor for updated_at field.
  1729. whatsappDescUpdatedAt := whatsappMixinFields0[2].Descriptor()
  1730. // whatsapp.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1731. whatsapp.DefaultUpdatedAt = whatsappDescUpdatedAt.Default.(func() time.Time)
  1732. // whatsapp.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1733. whatsapp.UpdateDefaultUpdatedAt = whatsappDescUpdatedAt.UpdateDefault.(func() time.Time)
  1734. // whatsappDescStatus is the schema descriptor for status field.
  1735. whatsappDescStatus := whatsappMixinFields1[0].Descriptor()
  1736. // whatsapp.DefaultStatus holds the default value on creation for the status field.
  1737. whatsapp.DefaultStatus = whatsappDescStatus.Default.(uint8)
  1738. // whatsappDescWaID is the schema descriptor for wa_id field.
  1739. whatsappDescWaID := whatsappFields[0].Descriptor()
  1740. // whatsapp.DefaultWaID holds the default value on creation for the wa_id field.
  1741. whatsapp.DefaultWaID = whatsappDescWaID.Default.(string)
  1742. // whatsappDescWaName is the schema descriptor for wa_name field.
  1743. whatsappDescWaName := whatsappFields[1].Descriptor()
  1744. // whatsapp.DefaultWaName holds the default value on creation for the wa_name field.
  1745. whatsapp.DefaultWaName = whatsappDescWaName.Default.(string)
  1746. // whatsappDescCallback is the schema descriptor for callback field.
  1747. whatsappDescCallback := whatsappFields[2].Descriptor()
  1748. // whatsapp.DefaultCallback holds the default value on creation for the callback field.
  1749. whatsapp.DefaultCallback = whatsappDescCallback.Default.(string)
  1750. // whatsappDescAgentID is the schema descriptor for agent_id field.
  1751. whatsappDescAgentID := whatsappFields[3].Descriptor()
  1752. // whatsapp.DefaultAgentID holds the default value on creation for the agent_id field.
  1753. whatsapp.DefaultAgentID = whatsappDescAgentID.Default.(uint64)
  1754. // whatsappDescAccount is the schema descriptor for account field.
  1755. whatsappDescAccount := whatsappFields[4].Descriptor()
  1756. // whatsapp.DefaultAccount holds the default value on creation for the account field.
  1757. whatsapp.DefaultAccount = whatsappDescAccount.Default.(string)
  1758. // whatsappDescCc is the schema descriptor for cc field.
  1759. whatsappDescCc := whatsappFields[5].Descriptor()
  1760. // whatsapp.DefaultCc holds the default value on creation for the cc field.
  1761. whatsapp.DefaultCc = whatsappDescCc.Default.(string)
  1762. // whatsappDescPhone is the schema descriptor for phone field.
  1763. whatsappDescPhone := whatsappFields[6].Descriptor()
  1764. // whatsapp.DefaultPhone holds the default value on creation for the phone field.
  1765. whatsapp.DefaultPhone = whatsappDescPhone.Default.(string)
  1766. // whatsappDescCcPhone is the schema descriptor for cc_phone field.
  1767. whatsappDescCcPhone := whatsappFields[7].Descriptor()
  1768. // whatsapp.DefaultCcPhone holds the default value on creation for the cc_phone field.
  1769. whatsapp.DefaultCcPhone = whatsappDescCcPhone.Default.(string)
  1770. // whatsappDescPhoneName is the schema descriptor for phone_name field.
  1771. whatsappDescPhoneName := whatsappFields[8].Descriptor()
  1772. // whatsapp.DefaultPhoneName holds the default value on creation for the phone_name field.
  1773. whatsapp.DefaultPhoneName = whatsappDescPhoneName.Default.(string)
  1774. // whatsappDescPhoneStatus is the schema descriptor for phone_status field.
  1775. whatsappDescPhoneStatus := whatsappFields[9].Descriptor()
  1776. // whatsapp.DefaultPhoneStatus holds the default value on creation for the phone_status field.
  1777. whatsapp.DefaultPhoneStatus = whatsappDescPhoneStatus.Default.(int8)
  1778. // whatsappDescOrganizationID is the schema descriptor for organization_id field.
  1779. whatsappDescOrganizationID := whatsappFields[10].Descriptor()
  1780. // whatsapp.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1781. whatsapp.DefaultOrganizationID = whatsappDescOrganizationID.Default.(uint64)
  1782. // whatsappDescAPIBase is the schema descriptor for api_base field.
  1783. whatsappDescAPIBase := whatsappFields[11].Descriptor()
  1784. // whatsapp.DefaultAPIBase holds the default value on creation for the api_base field.
  1785. whatsapp.DefaultAPIBase = whatsappDescAPIBase.Default.(string)
  1786. // whatsappDescAPIKey is the schema descriptor for api_key field.
  1787. whatsappDescAPIKey := whatsappFields[12].Descriptor()
  1788. // whatsapp.DefaultAPIKey holds the default value on creation for the api_key field.
  1789. whatsapp.DefaultAPIKey = whatsappDescAPIKey.Default.(string)
  1790. whatsappchannelMixin := schema.WhatsappChannel{}.Mixin()
  1791. whatsappchannelMixinHooks2 := whatsappchannelMixin[2].Hooks()
  1792. whatsappchannel.Hooks[0] = whatsappchannelMixinHooks2[0]
  1793. whatsappchannelMixinInters2 := whatsappchannelMixin[2].Interceptors()
  1794. whatsappchannel.Interceptors[0] = whatsappchannelMixinInters2[0]
  1795. whatsappchannelMixinFields0 := whatsappchannelMixin[0].Fields()
  1796. _ = whatsappchannelMixinFields0
  1797. whatsappchannelMixinFields1 := whatsappchannelMixin[1].Fields()
  1798. _ = whatsappchannelMixinFields1
  1799. whatsappchannelFields := schema.WhatsappChannel{}.Fields()
  1800. _ = whatsappchannelFields
  1801. // whatsappchannelDescCreatedAt is the schema descriptor for created_at field.
  1802. whatsappchannelDescCreatedAt := whatsappchannelMixinFields0[1].Descriptor()
  1803. // whatsappchannel.DefaultCreatedAt holds the default value on creation for the created_at field.
  1804. whatsappchannel.DefaultCreatedAt = whatsappchannelDescCreatedAt.Default.(func() time.Time)
  1805. // whatsappchannelDescUpdatedAt is the schema descriptor for updated_at field.
  1806. whatsappchannelDescUpdatedAt := whatsappchannelMixinFields0[2].Descriptor()
  1807. // whatsappchannel.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1808. whatsappchannel.DefaultUpdatedAt = whatsappchannelDescUpdatedAt.Default.(func() time.Time)
  1809. // whatsappchannel.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1810. whatsappchannel.UpdateDefaultUpdatedAt = whatsappchannelDescUpdatedAt.UpdateDefault.(func() time.Time)
  1811. // whatsappchannelDescStatus is the schema descriptor for status field.
  1812. whatsappchannelDescStatus := whatsappchannelMixinFields1[0].Descriptor()
  1813. // whatsappchannel.DefaultStatus holds the default value on creation for the status field.
  1814. whatsappchannel.DefaultStatus = whatsappchannelDescStatus.Default.(uint8)
  1815. // whatsappchannelDescAk is the schema descriptor for ak field.
  1816. whatsappchannelDescAk := whatsappchannelFields[0].Descriptor()
  1817. // whatsappchannel.DefaultAk holds the default value on creation for the ak field.
  1818. whatsappchannel.DefaultAk = whatsappchannelDescAk.Default.(string)
  1819. // whatsappchannelDescSk is the schema descriptor for sk field.
  1820. whatsappchannelDescSk := whatsappchannelFields[1].Descriptor()
  1821. // whatsappchannel.DefaultSk holds the default value on creation for the sk field.
  1822. whatsappchannel.DefaultSk = whatsappchannelDescSk.Default.(string)
  1823. // whatsappchannelDescWaID is the schema descriptor for wa_id field.
  1824. whatsappchannelDescWaID := whatsappchannelFields[2].Descriptor()
  1825. // whatsappchannel.DefaultWaID holds the default value on creation for the wa_id field.
  1826. whatsappchannel.DefaultWaID = whatsappchannelDescWaID.Default.(string)
  1827. // whatsappchannelDescWaName is the schema descriptor for wa_name field.
  1828. whatsappchannelDescWaName := whatsappchannelFields[3].Descriptor()
  1829. // whatsappchannel.DefaultWaName holds the default value on creation for the wa_name field.
  1830. whatsappchannel.DefaultWaName = whatsappchannelDescWaName.Default.(string)
  1831. // whatsappchannelDescWabaID is the schema descriptor for waba_id field.
  1832. whatsappchannelDescWabaID := whatsappchannelFields[4].Descriptor()
  1833. // whatsappchannel.DefaultWabaID holds the default value on creation for the waba_id field.
  1834. whatsappchannel.DefaultWabaID = whatsappchannelDescWabaID.Default.(uint64)
  1835. // whatsappchannelDescBusinessID is the schema descriptor for business_id field.
  1836. whatsappchannelDescBusinessID := whatsappchannelFields[5].Descriptor()
  1837. // whatsappchannel.DefaultBusinessID holds the default value on creation for the business_id field.
  1838. whatsappchannel.DefaultBusinessID = whatsappchannelDescBusinessID.Default.(uint64)
  1839. // whatsappchannelDescOrganizationID is the schema descriptor for organization_id field.
  1840. whatsappchannelDescOrganizationID := whatsappchannelFields[6].Descriptor()
  1841. // whatsappchannel.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1842. whatsappchannel.DefaultOrganizationID = whatsappchannelDescOrganizationID.Default.(uint64)
  1843. // whatsappchannelDescVerifyAccount is the schema descriptor for verify_account field.
  1844. whatsappchannelDescVerifyAccount := whatsappchannelFields[7].Descriptor()
  1845. // whatsappchannel.DefaultVerifyAccount holds the default value on creation for the verify_account field.
  1846. whatsappchannel.DefaultVerifyAccount = whatsappchannelDescVerifyAccount.Default.(string)
  1847. workexperienceMixin := schema.WorkExperience{}.Mixin()
  1848. workexperienceMixinHooks1 := workexperienceMixin[1].Hooks()
  1849. workexperience.Hooks[0] = workexperienceMixinHooks1[0]
  1850. workexperienceMixinInters1 := workexperienceMixin[1].Interceptors()
  1851. workexperience.Interceptors[0] = workexperienceMixinInters1[0]
  1852. workexperienceMixinFields0 := workexperienceMixin[0].Fields()
  1853. _ = workexperienceMixinFields0
  1854. workexperienceFields := schema.WorkExperience{}.Fields()
  1855. _ = workexperienceFields
  1856. // workexperienceDescCreatedAt is the schema descriptor for created_at field.
  1857. workexperienceDescCreatedAt := workexperienceMixinFields0[1].Descriptor()
  1858. // workexperience.DefaultCreatedAt holds the default value on creation for the created_at field.
  1859. workexperience.DefaultCreatedAt = workexperienceDescCreatedAt.Default.(func() time.Time)
  1860. // workexperienceDescUpdatedAt is the schema descriptor for updated_at field.
  1861. workexperienceDescUpdatedAt := workexperienceMixinFields0[2].Descriptor()
  1862. // workexperience.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1863. workexperience.DefaultUpdatedAt = workexperienceDescUpdatedAt.Default.(func() time.Time)
  1864. // workexperience.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1865. workexperience.UpdateDefaultUpdatedAt = workexperienceDescUpdatedAt.UpdateDefault.(func() time.Time)
  1866. wpchatroomMixin := schema.WpChatroom{}.Mixin()
  1867. wpchatroomMixinFields0 := wpchatroomMixin[0].Fields()
  1868. _ = wpchatroomMixinFields0
  1869. wpchatroomMixinFields1 := wpchatroomMixin[1].Fields()
  1870. _ = wpchatroomMixinFields1
  1871. wpchatroomFields := schema.WpChatroom{}.Fields()
  1872. _ = wpchatroomFields
  1873. // wpchatroomDescCreatedAt is the schema descriptor for created_at field.
  1874. wpchatroomDescCreatedAt := wpchatroomMixinFields0[1].Descriptor()
  1875. // wpchatroom.DefaultCreatedAt holds the default value on creation for the created_at field.
  1876. wpchatroom.DefaultCreatedAt = wpchatroomDescCreatedAt.Default.(func() time.Time)
  1877. // wpchatroomDescUpdatedAt is the schema descriptor for updated_at field.
  1878. wpchatroomDescUpdatedAt := wpchatroomMixinFields0[2].Descriptor()
  1879. // wpchatroom.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1880. wpchatroom.DefaultUpdatedAt = wpchatroomDescUpdatedAt.Default.(func() time.Time)
  1881. // wpchatroom.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1882. wpchatroom.UpdateDefaultUpdatedAt = wpchatroomDescUpdatedAt.UpdateDefault.(func() time.Time)
  1883. // wpchatroomDescStatus is the schema descriptor for status field.
  1884. wpchatroomDescStatus := wpchatroomMixinFields1[0].Descriptor()
  1885. // wpchatroom.DefaultStatus holds the default value on creation for the status field.
  1886. wpchatroom.DefaultStatus = wpchatroomDescStatus.Default.(uint8)
  1887. // wpchatroomDescWxWxid is the schema descriptor for wx_wxid field.
  1888. wpchatroomDescWxWxid := wpchatroomFields[0].Descriptor()
  1889. // wpchatroom.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  1890. wpchatroom.DefaultWxWxid = wpchatroomDescWxWxid.Default.(string)
  1891. // wpchatroomDescChatroomID is the schema descriptor for chatroom_id field.
  1892. wpchatroomDescChatroomID := wpchatroomFields[1].Descriptor()
  1893. // wpchatroom.DefaultChatroomID holds the default value on creation for the chatroom_id field.
  1894. wpchatroom.DefaultChatroomID = wpchatroomDescChatroomID.Default.(string)
  1895. // wpchatroomDescNickname is the schema descriptor for nickname field.
  1896. wpchatroomDescNickname := wpchatroomFields[2].Descriptor()
  1897. // wpchatroom.DefaultNickname holds the default value on creation for the nickname field.
  1898. wpchatroom.DefaultNickname = wpchatroomDescNickname.Default.(string)
  1899. // wpchatroomDescOwner is the schema descriptor for owner field.
  1900. wpchatroomDescOwner := wpchatroomFields[3].Descriptor()
  1901. // wpchatroom.DefaultOwner holds the default value on creation for the owner field.
  1902. wpchatroom.DefaultOwner = wpchatroomDescOwner.Default.(string)
  1903. // wpchatroomDescAvatar is the schema descriptor for avatar field.
  1904. wpchatroomDescAvatar := wpchatroomFields[4].Descriptor()
  1905. // wpchatroom.DefaultAvatar holds the default value on creation for the avatar field.
  1906. wpchatroom.DefaultAvatar = wpchatroomDescAvatar.Default.(string)
  1907. wpchatroommemberMixin := schema.WpChatroomMember{}.Mixin()
  1908. wpchatroommemberMixinFields0 := wpchatroommemberMixin[0].Fields()
  1909. _ = wpchatroommemberMixinFields0
  1910. wpchatroommemberMixinFields1 := wpchatroommemberMixin[1].Fields()
  1911. _ = wpchatroommemberMixinFields1
  1912. wpchatroommemberFields := schema.WpChatroomMember{}.Fields()
  1913. _ = wpchatroommemberFields
  1914. // wpchatroommemberDescCreatedAt is the schema descriptor for created_at field.
  1915. wpchatroommemberDescCreatedAt := wpchatroommemberMixinFields0[1].Descriptor()
  1916. // wpchatroommember.DefaultCreatedAt holds the default value on creation for the created_at field.
  1917. wpchatroommember.DefaultCreatedAt = wpchatroommemberDescCreatedAt.Default.(func() time.Time)
  1918. // wpchatroommemberDescUpdatedAt is the schema descriptor for updated_at field.
  1919. wpchatroommemberDescUpdatedAt := wpchatroommemberMixinFields0[2].Descriptor()
  1920. // wpchatroommember.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1921. wpchatroommember.DefaultUpdatedAt = wpchatroommemberDescUpdatedAt.Default.(func() time.Time)
  1922. // wpchatroommember.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1923. wpchatroommember.UpdateDefaultUpdatedAt = wpchatroommemberDescUpdatedAt.UpdateDefault.(func() time.Time)
  1924. // wpchatroommemberDescStatus is the schema descriptor for status field.
  1925. wpchatroommemberDescStatus := wpchatroommemberMixinFields1[0].Descriptor()
  1926. // wpchatroommember.DefaultStatus holds the default value on creation for the status field.
  1927. wpchatroommember.DefaultStatus = wpchatroommemberDescStatus.Default.(uint8)
  1928. // wpchatroommemberDescWxWxid is the schema descriptor for wx_wxid field.
  1929. wpchatroommemberDescWxWxid := wpchatroommemberFields[0].Descriptor()
  1930. // wpchatroommember.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  1931. wpchatroommember.DefaultWxWxid = wpchatroommemberDescWxWxid.Default.(string)
  1932. // wpchatroommemberDescWxid is the schema descriptor for wxid field.
  1933. wpchatroommemberDescWxid := wpchatroommemberFields[1].Descriptor()
  1934. // wpchatroommember.DefaultWxid holds the default value on creation for the wxid field.
  1935. wpchatroommember.DefaultWxid = wpchatroommemberDescWxid.Default.(string)
  1936. // wpchatroommemberDescNickname is the schema descriptor for nickname field.
  1937. wpchatroommemberDescNickname := wpchatroommemberFields[2].Descriptor()
  1938. // wpchatroommember.DefaultNickname holds the default value on creation for the nickname field.
  1939. wpchatroommember.DefaultNickname = wpchatroommemberDescNickname.Default.(string)
  1940. // wpchatroommemberDescAvatar is the schema descriptor for avatar field.
  1941. wpchatroommemberDescAvatar := wpchatroommemberFields[3].Descriptor()
  1942. // wpchatroommember.DefaultAvatar holds the default value on creation for the avatar field.
  1943. wpchatroommember.DefaultAvatar = wpchatroommemberDescAvatar.Default.(string)
  1944. wxMixin := schema.Wx{}.Mixin()
  1945. wxMixinHooks2 := wxMixin[2].Hooks()
  1946. wx.Hooks[0] = wxMixinHooks2[0]
  1947. wxMixinInters2 := wxMixin[2].Interceptors()
  1948. wx.Interceptors[0] = wxMixinInters2[0]
  1949. wxMixinFields0 := wxMixin[0].Fields()
  1950. _ = wxMixinFields0
  1951. wxMixinFields1 := wxMixin[1].Fields()
  1952. _ = wxMixinFields1
  1953. wxFields := schema.Wx{}.Fields()
  1954. _ = wxFields
  1955. // wxDescCreatedAt is the schema descriptor for created_at field.
  1956. wxDescCreatedAt := wxMixinFields0[1].Descriptor()
  1957. // wx.DefaultCreatedAt holds the default value on creation for the created_at field.
  1958. wx.DefaultCreatedAt = wxDescCreatedAt.Default.(func() time.Time)
  1959. // wxDescUpdatedAt is the schema descriptor for updated_at field.
  1960. wxDescUpdatedAt := wxMixinFields0[2].Descriptor()
  1961. // wx.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1962. wx.DefaultUpdatedAt = wxDescUpdatedAt.Default.(func() time.Time)
  1963. // wx.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1964. wx.UpdateDefaultUpdatedAt = wxDescUpdatedAt.UpdateDefault.(func() time.Time)
  1965. // wxDescStatus is the schema descriptor for status field.
  1966. wxDescStatus := wxMixinFields1[0].Descriptor()
  1967. // wx.DefaultStatus holds the default value on creation for the status field.
  1968. wx.DefaultStatus = wxDescStatus.Default.(uint8)
  1969. // wxDescServerID is the schema descriptor for server_id field.
  1970. wxDescServerID := wxFields[0].Descriptor()
  1971. // wx.DefaultServerID holds the default value on creation for the server_id field.
  1972. wx.DefaultServerID = wxDescServerID.Default.(uint64)
  1973. // wxDescPort is the schema descriptor for port field.
  1974. wxDescPort := wxFields[1].Descriptor()
  1975. // wx.DefaultPort holds the default value on creation for the port field.
  1976. wx.DefaultPort = wxDescPort.Default.(string)
  1977. // wxDescProcessID is the schema descriptor for process_id field.
  1978. wxDescProcessID := wxFields[2].Descriptor()
  1979. // wx.DefaultProcessID holds the default value on creation for the process_id field.
  1980. wx.DefaultProcessID = wxDescProcessID.Default.(string)
  1981. // wxDescCallback is the schema descriptor for callback field.
  1982. wxDescCallback := wxFields[3].Descriptor()
  1983. // wx.DefaultCallback holds the default value on creation for the callback field.
  1984. wx.DefaultCallback = wxDescCallback.Default.(string)
  1985. // wxDescWxid is the schema descriptor for wxid field.
  1986. wxDescWxid := wxFields[4].Descriptor()
  1987. // wx.DefaultWxid holds the default value on creation for the wxid field.
  1988. wx.DefaultWxid = wxDescWxid.Default.(string)
  1989. // wxDescAccount is the schema descriptor for account field.
  1990. wxDescAccount := wxFields[5].Descriptor()
  1991. // wx.DefaultAccount holds the default value on creation for the account field.
  1992. wx.DefaultAccount = wxDescAccount.Default.(string)
  1993. // wxDescNickname is the schema descriptor for nickname field.
  1994. wxDescNickname := wxFields[6].Descriptor()
  1995. // wx.DefaultNickname holds the default value on creation for the nickname field.
  1996. wx.DefaultNickname = wxDescNickname.Default.(string)
  1997. // wxDescTel is the schema descriptor for tel field.
  1998. wxDescTel := wxFields[7].Descriptor()
  1999. // wx.DefaultTel holds the default value on creation for the tel field.
  2000. wx.DefaultTel = wxDescTel.Default.(string)
  2001. // wxDescHeadBig is the schema descriptor for head_big field.
  2002. wxDescHeadBig := wxFields[8].Descriptor()
  2003. // wx.DefaultHeadBig holds the default value on creation for the head_big field.
  2004. wx.DefaultHeadBig = wxDescHeadBig.Default.(string)
  2005. // wxDescOrganizationID is the schema descriptor for organization_id field.
  2006. wxDescOrganizationID := wxFields[9].Descriptor()
  2007. // wx.DefaultOrganizationID holds the default value on creation for the organization_id field.
  2008. wx.DefaultOrganizationID = wxDescOrganizationID.Default.(uint64)
  2009. // wxDescAgentID is the schema descriptor for agent_id field.
  2010. wxDescAgentID := wxFields[10].Descriptor()
  2011. // wx.DefaultAgentID holds the default value on creation for the agent_id field.
  2012. wx.DefaultAgentID = wxDescAgentID.Default.(uint64)
  2013. // wxDescAPIBase is the schema descriptor for api_base field.
  2014. wxDescAPIBase := wxFields[11].Descriptor()
  2015. // wx.DefaultAPIBase holds the default value on creation for the api_base field.
  2016. wx.DefaultAPIBase = wxDescAPIBase.Default.(string)
  2017. // wxDescAPIKey is the schema descriptor for api_key field.
  2018. wxDescAPIKey := wxFields[12].Descriptor()
  2019. // wx.DefaultAPIKey holds the default value on creation for the api_key field.
  2020. wx.DefaultAPIKey = wxDescAPIKey.Default.(string)
  2021. // wxDescCtype is the schema descriptor for ctype field.
  2022. wxDescCtype := wxFields[17].Descriptor()
  2023. // wx.DefaultCtype holds the default value on creation for the ctype field.
  2024. wx.DefaultCtype = wxDescCtype.Default.(uint64)
  2025. wxcardMixin := schema.WxCard{}.Mixin()
  2026. wxcardMixinHooks1 := wxcardMixin[1].Hooks()
  2027. wxcard.Hooks[0] = wxcardMixinHooks1[0]
  2028. wxcardMixinInters1 := wxcardMixin[1].Interceptors()
  2029. wxcard.Interceptors[0] = wxcardMixinInters1[0]
  2030. wxcardMixinFields0 := wxcardMixin[0].Fields()
  2031. _ = wxcardMixinFields0
  2032. wxcardFields := schema.WxCard{}.Fields()
  2033. _ = wxcardFields
  2034. // wxcardDescCreatedAt is the schema descriptor for created_at field.
  2035. wxcardDescCreatedAt := wxcardMixinFields0[1].Descriptor()
  2036. // wxcard.DefaultCreatedAt holds the default value on creation for the created_at field.
  2037. wxcard.DefaultCreatedAt = wxcardDescCreatedAt.Default.(func() time.Time)
  2038. // wxcardDescUpdatedAt is the schema descriptor for updated_at field.
  2039. wxcardDescUpdatedAt := wxcardMixinFields0[2].Descriptor()
  2040. // wxcard.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  2041. wxcard.DefaultUpdatedAt = wxcardDescUpdatedAt.Default.(func() time.Time)
  2042. // wxcard.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  2043. wxcard.UpdateDefaultUpdatedAt = wxcardDescUpdatedAt.UpdateDefault.(func() time.Time)
  2044. // wxcardDescUserID is the schema descriptor for user_id field.
  2045. wxcardDescUserID := wxcardFields[0].Descriptor()
  2046. // wxcard.DefaultUserID holds the default value on creation for the user_id field.
  2047. wxcard.DefaultUserID = wxcardDescUserID.Default.(uint64)
  2048. // wxcardDescWxUserID is the schema descriptor for wx_user_id field.
  2049. wxcardDescWxUserID := wxcardFields[1].Descriptor()
  2050. // wxcard.DefaultWxUserID holds the default value on creation for the wx_user_id field.
  2051. wxcard.DefaultWxUserID = wxcardDescWxUserID.Default.(uint64)
  2052. // wxcardDescAvatar is the schema descriptor for avatar field.
  2053. wxcardDescAvatar := wxcardFields[2].Descriptor()
  2054. // wxcard.DefaultAvatar holds the default value on creation for the avatar field.
  2055. wxcard.DefaultAvatar = wxcardDescAvatar.Default.(string)
  2056. // wxcardDescLogo is the schema descriptor for logo field.
  2057. wxcardDescLogo := wxcardFields[3].Descriptor()
  2058. // wxcard.DefaultLogo holds the default value on creation for the logo field.
  2059. wxcard.DefaultLogo = wxcardDescLogo.Default.(string)
  2060. // wxcardDescName is the schema descriptor for name field.
  2061. wxcardDescName := wxcardFields[4].Descriptor()
  2062. // wxcard.DefaultName holds the default value on creation for the name field.
  2063. wxcard.DefaultName = wxcardDescName.Default.(string)
  2064. // wxcardDescCompany is the schema descriptor for company field.
  2065. wxcardDescCompany := wxcardFields[5].Descriptor()
  2066. // wxcard.DefaultCompany holds the default value on creation for the company field.
  2067. wxcard.DefaultCompany = wxcardDescCompany.Default.(string)
  2068. // wxcardDescAddress is the schema descriptor for address field.
  2069. wxcardDescAddress := wxcardFields[6].Descriptor()
  2070. // wxcard.DefaultAddress holds the default value on creation for the address field.
  2071. wxcard.DefaultAddress = wxcardDescAddress.Default.(string)
  2072. // wxcardDescPhone is the schema descriptor for phone field.
  2073. wxcardDescPhone := wxcardFields[7].Descriptor()
  2074. // wxcard.DefaultPhone holds the default value on creation for the phone field.
  2075. wxcard.DefaultPhone = wxcardDescPhone.Default.(string)
  2076. // wxcardDescOfficialAccount is the schema descriptor for official_account field.
  2077. wxcardDescOfficialAccount := wxcardFields[8].Descriptor()
  2078. // wxcard.DefaultOfficialAccount holds the default value on creation for the official_account field.
  2079. wxcard.DefaultOfficialAccount = wxcardDescOfficialAccount.Default.(string)
  2080. // wxcardDescWechatAccount is the schema descriptor for wechat_account field.
  2081. wxcardDescWechatAccount := wxcardFields[9].Descriptor()
  2082. // wxcard.DefaultWechatAccount holds the default value on creation for the wechat_account field.
  2083. wxcard.DefaultWechatAccount = wxcardDescWechatAccount.Default.(string)
  2084. // wxcardDescEmail is the schema descriptor for email field.
  2085. wxcardDescEmail := wxcardFields[10].Descriptor()
  2086. // wxcard.DefaultEmail holds the default value on creation for the email field.
  2087. wxcard.DefaultEmail = wxcardDescEmail.Default.(string)
  2088. // wxcardDescIntro is the schema descriptor for intro field.
  2089. wxcardDescIntro := wxcardFields[14].Descriptor()
  2090. // wxcard.DefaultIntro holds the default value on creation for the intro field.
  2091. wxcard.DefaultIntro = wxcardDescIntro.Default.(string)
  2092. wxcarduserMixin := schema.WxCardUser{}.Mixin()
  2093. wxcarduserMixinHooks1 := wxcarduserMixin[1].Hooks()
  2094. wxcarduser.Hooks[0] = wxcarduserMixinHooks1[0]
  2095. wxcarduserMixinInters1 := wxcarduserMixin[1].Interceptors()
  2096. wxcarduser.Interceptors[0] = wxcarduserMixinInters1[0]
  2097. wxcarduserMixinFields0 := wxcarduserMixin[0].Fields()
  2098. _ = wxcarduserMixinFields0
  2099. wxcarduserFields := schema.WxCardUser{}.Fields()
  2100. _ = wxcarduserFields
  2101. // wxcarduserDescCreatedAt is the schema descriptor for created_at field.
  2102. wxcarduserDescCreatedAt := wxcarduserMixinFields0[1].Descriptor()
  2103. // wxcarduser.DefaultCreatedAt holds the default value on creation for the created_at field.
  2104. wxcarduser.DefaultCreatedAt = wxcarduserDescCreatedAt.Default.(func() time.Time)
  2105. // wxcarduserDescUpdatedAt is the schema descriptor for updated_at field.
  2106. wxcarduserDescUpdatedAt := wxcarduserMixinFields0[2].Descriptor()
  2107. // wxcarduser.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  2108. wxcarduser.DefaultUpdatedAt = wxcarduserDescUpdatedAt.Default.(func() time.Time)
  2109. // wxcarduser.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  2110. wxcarduser.UpdateDefaultUpdatedAt = wxcarduserDescUpdatedAt.UpdateDefault.(func() time.Time)
  2111. // wxcarduserDescWxid is the schema descriptor for wxid field.
  2112. wxcarduserDescWxid := wxcarduserFields[0].Descriptor()
  2113. // wxcarduser.DefaultWxid holds the default value on creation for the wxid field.
  2114. wxcarduser.DefaultWxid = wxcarduserDescWxid.Default.(string)
  2115. // wxcarduserDescAccount is the schema descriptor for account field.
  2116. wxcarduserDescAccount := wxcarduserFields[1].Descriptor()
  2117. // wxcarduser.DefaultAccount holds the default value on creation for the account field.
  2118. wxcarduser.DefaultAccount = wxcarduserDescAccount.Default.(string)
  2119. // wxcarduserDescAvatar is the schema descriptor for avatar field.
  2120. wxcarduserDescAvatar := wxcarduserFields[2].Descriptor()
  2121. // wxcarduser.DefaultAvatar holds the default value on creation for the avatar field.
  2122. wxcarduser.DefaultAvatar = wxcarduserDescAvatar.Default.(string)
  2123. // wxcarduserDescNickname is the schema descriptor for nickname field.
  2124. wxcarduserDescNickname := wxcarduserFields[3].Descriptor()
  2125. // wxcarduser.DefaultNickname holds the default value on creation for the nickname field.
  2126. wxcarduser.DefaultNickname = wxcarduserDescNickname.Default.(string)
  2127. // wxcarduserDescRemark is the schema descriptor for remark field.
  2128. wxcarduserDescRemark := wxcarduserFields[4].Descriptor()
  2129. // wxcarduser.DefaultRemark holds the default value on creation for the remark field.
  2130. wxcarduser.DefaultRemark = wxcarduserDescRemark.Default.(string)
  2131. // wxcarduserDescPhone is the schema descriptor for phone field.
  2132. wxcarduserDescPhone := wxcarduserFields[5].Descriptor()
  2133. // wxcarduser.DefaultPhone holds the default value on creation for the phone field.
  2134. wxcarduser.DefaultPhone = wxcarduserDescPhone.Default.(string)
  2135. // wxcarduserDescOpenID is the schema descriptor for open_id field.
  2136. wxcarduserDescOpenID := wxcarduserFields[6].Descriptor()
  2137. // wxcarduser.DefaultOpenID holds the default value on creation for the open_id field.
  2138. wxcarduser.DefaultOpenID = wxcarduserDescOpenID.Default.(string)
  2139. // wxcarduserDescUnionID is the schema descriptor for union_id field.
  2140. wxcarduserDescUnionID := wxcarduserFields[7].Descriptor()
  2141. // wxcarduser.DefaultUnionID holds the default value on creation for the union_id field.
  2142. wxcarduser.DefaultUnionID = wxcarduserDescUnionID.Default.(string)
  2143. // wxcarduserDescSessionKey is the schema descriptor for session_key field.
  2144. wxcarduserDescSessionKey := wxcarduserFields[8].Descriptor()
  2145. // wxcarduser.DefaultSessionKey holds the default value on creation for the session_key field.
  2146. wxcarduser.DefaultSessionKey = wxcarduserDescSessionKey.Default.(string)
  2147. // wxcarduserDescIsVip is the schema descriptor for is_vip field.
  2148. wxcarduserDescIsVip := wxcarduserFields[9].Descriptor()
  2149. // wxcarduser.DefaultIsVip holds the default value on creation for the is_vip field.
  2150. wxcarduser.DefaultIsVip = wxcarduserDescIsVip.Default.(int)
  2151. wxcardvisitMixin := schema.WxCardVisit{}.Mixin()
  2152. wxcardvisitMixinHooks1 := wxcardvisitMixin[1].Hooks()
  2153. wxcardvisit.Hooks[0] = wxcardvisitMixinHooks1[0]
  2154. wxcardvisitMixinInters1 := wxcardvisitMixin[1].Interceptors()
  2155. wxcardvisit.Interceptors[0] = wxcardvisitMixinInters1[0]
  2156. wxcardvisitMixinFields0 := wxcardvisitMixin[0].Fields()
  2157. _ = wxcardvisitMixinFields0
  2158. wxcardvisitFields := schema.WxCardVisit{}.Fields()
  2159. _ = wxcardvisitFields
  2160. // wxcardvisitDescCreatedAt is the schema descriptor for created_at field.
  2161. wxcardvisitDescCreatedAt := wxcardvisitMixinFields0[1].Descriptor()
  2162. // wxcardvisit.DefaultCreatedAt holds the default value on creation for the created_at field.
  2163. wxcardvisit.DefaultCreatedAt = wxcardvisitDescCreatedAt.Default.(func() time.Time)
  2164. // wxcardvisitDescUpdatedAt is the schema descriptor for updated_at field.
  2165. wxcardvisitDescUpdatedAt := wxcardvisitMixinFields0[2].Descriptor()
  2166. // wxcardvisit.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  2167. wxcardvisit.DefaultUpdatedAt = wxcardvisitDescUpdatedAt.Default.(func() time.Time)
  2168. // wxcardvisit.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  2169. wxcardvisit.UpdateDefaultUpdatedAt = wxcardvisitDescUpdatedAt.UpdateDefault.(func() time.Time)
  2170. // wxcardvisitDescUserID is the schema descriptor for user_id field.
  2171. wxcardvisitDescUserID := wxcardvisitFields[0].Descriptor()
  2172. // wxcardvisit.DefaultUserID holds the default value on creation for the user_id field.
  2173. wxcardvisit.DefaultUserID = wxcardvisitDescUserID.Default.(uint64)
  2174. // wxcardvisitDescBotID is the schema descriptor for bot_id field.
  2175. wxcardvisitDescBotID := wxcardvisitFields[1].Descriptor()
  2176. // wxcardvisit.DefaultBotID holds the default value on creation for the bot_id field.
  2177. wxcardvisit.DefaultBotID = wxcardvisitDescBotID.Default.(uint64)
  2178. // wxcardvisitDescBotType is the schema descriptor for bot_type field.
  2179. wxcardvisitDescBotType := wxcardvisitFields[2].Descriptor()
  2180. // wxcardvisit.DefaultBotType holds the default value on creation for the bot_type field.
  2181. wxcardvisit.DefaultBotType = wxcardvisitDescBotType.Default.(uint8)
  2182. xunjiMixin := schema.Xunji{}.Mixin()
  2183. xunjiMixinHooks2 := xunjiMixin[2].Hooks()
  2184. xunji.Hooks[0] = xunjiMixinHooks2[0]
  2185. xunjiMixinInters2 := xunjiMixin[2].Interceptors()
  2186. xunji.Interceptors[0] = xunjiMixinInters2[0]
  2187. xunjiMixinFields0 := xunjiMixin[0].Fields()
  2188. _ = xunjiMixinFields0
  2189. xunjiMixinFields1 := xunjiMixin[1].Fields()
  2190. _ = xunjiMixinFields1
  2191. xunjiFields := schema.Xunji{}.Fields()
  2192. _ = xunjiFields
  2193. // xunjiDescCreatedAt is the schema descriptor for created_at field.
  2194. xunjiDescCreatedAt := xunjiMixinFields0[1].Descriptor()
  2195. // xunji.DefaultCreatedAt holds the default value on creation for the created_at field.
  2196. xunji.DefaultCreatedAt = xunjiDescCreatedAt.Default.(func() time.Time)
  2197. // xunjiDescUpdatedAt is the schema descriptor for updated_at field.
  2198. xunjiDescUpdatedAt := xunjiMixinFields0[2].Descriptor()
  2199. // xunji.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  2200. xunji.DefaultUpdatedAt = xunjiDescUpdatedAt.Default.(func() time.Time)
  2201. // xunji.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  2202. xunji.UpdateDefaultUpdatedAt = xunjiDescUpdatedAt.UpdateDefault.(func() time.Time)
  2203. // xunjiDescStatus is the schema descriptor for status field.
  2204. xunjiDescStatus := xunjiMixinFields1[0].Descriptor()
  2205. // xunji.DefaultStatus holds the default value on creation for the status field.
  2206. xunji.DefaultStatus = xunjiDescStatus.Default.(uint8)
  2207. // xunjiDescOrganizationID is the schema descriptor for organization_id field.
  2208. xunjiDescOrganizationID := xunjiFields[4].Descriptor()
  2209. // xunji.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  2210. xunji.OrganizationIDValidator = xunjiDescOrganizationID.Validators[0].(func(uint64) error)
  2211. xunjiserviceMixin := schema.XunjiService{}.Mixin()
  2212. xunjiserviceMixinHooks2 := xunjiserviceMixin[2].Hooks()
  2213. xunjiservice.Hooks[0] = xunjiserviceMixinHooks2[0]
  2214. xunjiserviceMixinInters2 := xunjiserviceMixin[2].Interceptors()
  2215. xunjiservice.Interceptors[0] = xunjiserviceMixinInters2[0]
  2216. xunjiserviceMixinFields0 := xunjiserviceMixin[0].Fields()
  2217. _ = xunjiserviceMixinFields0
  2218. xunjiserviceMixinFields1 := xunjiserviceMixin[1].Fields()
  2219. _ = xunjiserviceMixinFields1
  2220. xunjiserviceFields := schema.XunjiService{}.Fields()
  2221. _ = xunjiserviceFields
  2222. // xunjiserviceDescCreatedAt is the schema descriptor for created_at field.
  2223. xunjiserviceDescCreatedAt := xunjiserviceMixinFields0[1].Descriptor()
  2224. // xunjiservice.DefaultCreatedAt holds the default value on creation for the created_at field.
  2225. xunjiservice.DefaultCreatedAt = xunjiserviceDescCreatedAt.Default.(func() time.Time)
  2226. // xunjiserviceDescUpdatedAt is the schema descriptor for updated_at field.
  2227. xunjiserviceDescUpdatedAt := xunjiserviceMixinFields0[2].Descriptor()
  2228. // xunjiservice.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  2229. xunjiservice.DefaultUpdatedAt = xunjiserviceDescUpdatedAt.Default.(func() time.Time)
  2230. // xunjiservice.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  2231. xunjiservice.UpdateDefaultUpdatedAt = xunjiserviceDescUpdatedAt.UpdateDefault.(func() time.Time)
  2232. // xunjiserviceDescStatus is the schema descriptor for status field.
  2233. xunjiserviceDescStatus := xunjiserviceMixinFields1[0].Descriptor()
  2234. // xunjiservice.DefaultStatus holds the default value on creation for the status field.
  2235. xunjiservice.DefaultStatus = xunjiserviceDescStatus.Default.(uint8)
  2236. // xunjiserviceDescAgentID is the schema descriptor for agent_id field.
  2237. xunjiserviceDescAgentID := xunjiserviceFields[1].Descriptor()
  2238. // xunjiservice.DefaultAgentID holds the default value on creation for the agent_id field.
  2239. xunjiservice.DefaultAgentID = xunjiserviceDescAgentID.Default.(uint64)
  2240. // xunjiserviceDescOrganizationID is the schema descriptor for organization_id field.
  2241. xunjiserviceDescOrganizationID := xunjiserviceFields[2].Descriptor()
  2242. // xunjiservice.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  2243. xunjiservice.OrganizationIDValidator = xunjiserviceDescOrganizationID.Validators[0].(func(uint64) error)
  2244. // xunjiserviceDescAPIBase is the schema descriptor for api_base field.
  2245. xunjiserviceDescAPIBase := xunjiserviceFields[4].Descriptor()
  2246. // xunjiservice.DefaultAPIBase holds the default value on creation for the api_base field.
  2247. xunjiservice.DefaultAPIBase = xunjiserviceDescAPIBase.Default.(string)
  2248. // xunjiserviceDescAPIKey is the schema descriptor for api_key field.
  2249. xunjiserviceDescAPIKey := xunjiserviceFields[5].Descriptor()
  2250. // xunjiservice.DefaultAPIKey holds the default value on creation for the api_key field.
  2251. xunjiservice.DefaultAPIKey = xunjiserviceDescAPIKey.Default.(string)
  2252. }
  2253. const (
  2254. Version = "v0.13.1" // Version of ent codegen.
  2255. Sum = "h1:uD8QwN1h6SNphdCCzmkMN3feSUzNnVvV/WIkHKMbzOE=" // Sum of ent codegen.
  2256. )