runtime.go 146 KB

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