runtime.go 149 KB

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