runtime.go 148 KB

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