runtime.go 147 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208
  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. labelMixinFields0 := labelMixin[0].Fields()
  949. _ = labelMixinFields0
  950. labelMixinFields1 := labelMixin[1].Fields()
  951. _ = labelMixinFields1
  952. labelFields := schema.Label{}.Fields()
  953. _ = labelFields
  954. // labelDescCreatedAt is the schema descriptor for created_at field.
  955. labelDescCreatedAt := labelMixinFields0[1].Descriptor()
  956. // label.DefaultCreatedAt holds the default value on creation for the created_at field.
  957. label.DefaultCreatedAt = labelDescCreatedAt.Default.(func() time.Time)
  958. // labelDescUpdatedAt is the schema descriptor for updated_at field.
  959. labelDescUpdatedAt := labelMixinFields0[2].Descriptor()
  960. // label.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  961. label.DefaultUpdatedAt = labelDescUpdatedAt.Default.(func() time.Time)
  962. // label.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  963. label.UpdateDefaultUpdatedAt = labelDescUpdatedAt.UpdateDefault.(func() time.Time)
  964. // labelDescStatus is the schema descriptor for status field.
  965. labelDescStatus := labelMixinFields1[0].Descriptor()
  966. // label.DefaultStatus holds the default value on creation for the status field.
  967. label.DefaultStatus = labelDescStatus.Default.(uint8)
  968. // labelDescType is the schema descriptor for type field.
  969. labelDescType := labelFields[0].Descriptor()
  970. // label.DefaultType holds the default value on creation for the type field.
  971. label.DefaultType = labelDescType.Default.(int)
  972. // labelDescName is the schema descriptor for name field.
  973. labelDescName := labelFields[1].Descriptor()
  974. // label.DefaultName holds the default value on creation for the name field.
  975. label.DefaultName = labelDescName.Default.(string)
  976. // labelDescFrom is the schema descriptor for from field.
  977. labelDescFrom := labelFields[2].Descriptor()
  978. // label.DefaultFrom holds the default value on creation for the from field.
  979. label.DefaultFrom = labelDescFrom.Default.(int)
  980. // labelDescMode is the schema descriptor for mode field.
  981. labelDescMode := labelFields[3].Descriptor()
  982. // label.DefaultMode holds the default value on creation for the mode field.
  983. label.DefaultMode = labelDescMode.Default.(int)
  984. // labelDescConditions is the schema descriptor for conditions field.
  985. labelDescConditions := labelFields[4].Descriptor()
  986. // label.DefaultConditions holds the default value on creation for the conditions field.
  987. label.DefaultConditions = labelDescConditions.Default.(string)
  988. // labelDescOrganizationID is the schema descriptor for organization_id field.
  989. labelDescOrganizationID := labelFields[5].Descriptor()
  990. // label.DefaultOrganizationID holds the default value on creation for the organization_id field.
  991. label.DefaultOrganizationID = labelDescOrganizationID.Default.(uint64)
  992. labellogMixin := schema.LabelLog{}.Mixin()
  993. labellogMixinFields0 := labellogMixin[0].Fields()
  994. _ = labellogMixinFields0
  995. labellogFields := schema.LabelLog{}.Fields()
  996. _ = labellogFields
  997. // labellogDescCreatedAt is the schema descriptor for created_at field.
  998. labellogDescCreatedAt := labellogMixinFields0[1].Descriptor()
  999. // labellog.DefaultCreatedAt holds the default value on creation for the created_at field.
  1000. labellog.DefaultCreatedAt = labellogDescCreatedAt.Default.(func() time.Time)
  1001. // labellogDescUpdatedAt is the schema descriptor for updated_at field.
  1002. labellogDescUpdatedAt := labellogMixinFields0[2].Descriptor()
  1003. // labellog.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1004. labellog.DefaultUpdatedAt = labellogDescUpdatedAt.Default.(func() time.Time)
  1005. // labellog.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1006. labellog.UpdateDefaultUpdatedAt = labellogDescUpdatedAt.UpdateDefault.(func() time.Time)
  1007. // labellogDescLabelName is the schema descriptor for label_name field.
  1008. labellogDescLabelName := labellogFields[0].Descriptor()
  1009. // labellog.DefaultLabelName holds the default value on creation for the label_name field.
  1010. labellog.DefaultLabelName = labellogDescLabelName.Default.(string)
  1011. // labellogDescLabelID is the schema descriptor for label_id field.
  1012. labellogDescLabelID := labellogFields[1].Descriptor()
  1013. // labellog.DefaultLabelID holds the default value on creation for the label_id field.
  1014. labellog.DefaultLabelID = labellogDescLabelID.Default.(int)
  1015. // labellogDescWxID is the schema descriptor for wx_id field.
  1016. labellogDescWxID := labellogFields[2].Descriptor()
  1017. // labellog.DefaultWxID holds the default value on creation for the wx_id field.
  1018. labellog.DefaultWxID = labellogDescWxID.Default.(string)
  1019. // labellogDescOrganizationID is the schema descriptor for organization_id field.
  1020. labellogDescOrganizationID := labellogFields[3].Descriptor()
  1021. // labellog.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1022. labellog.DefaultOrganizationID = labellogDescOrganizationID.Default.(uint64)
  1023. labelrelationshipMixin := schema.LabelRelationship{}.Mixin()
  1024. labelrelationshipMixinFields0 := labelrelationshipMixin[0].Fields()
  1025. _ = labelrelationshipMixinFields0
  1026. labelrelationshipMixinFields1 := labelrelationshipMixin[1].Fields()
  1027. _ = labelrelationshipMixinFields1
  1028. labelrelationshipFields := schema.LabelRelationship{}.Fields()
  1029. _ = labelrelationshipFields
  1030. // labelrelationshipDescCreatedAt is the schema descriptor for created_at field.
  1031. labelrelationshipDescCreatedAt := labelrelationshipMixinFields0[1].Descriptor()
  1032. // labelrelationship.DefaultCreatedAt holds the default value on creation for the created_at field.
  1033. labelrelationship.DefaultCreatedAt = labelrelationshipDescCreatedAt.Default.(func() time.Time)
  1034. // labelrelationshipDescUpdatedAt is the schema descriptor for updated_at field.
  1035. labelrelationshipDescUpdatedAt := labelrelationshipMixinFields0[2].Descriptor()
  1036. // labelrelationship.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1037. labelrelationship.DefaultUpdatedAt = labelrelationshipDescUpdatedAt.Default.(func() time.Time)
  1038. // labelrelationship.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1039. labelrelationship.UpdateDefaultUpdatedAt = labelrelationshipDescUpdatedAt.UpdateDefault.(func() time.Time)
  1040. // labelrelationshipDescStatus is the schema descriptor for status field.
  1041. labelrelationshipDescStatus := labelrelationshipMixinFields1[0].Descriptor()
  1042. // labelrelationship.DefaultStatus holds the default value on creation for the status field.
  1043. labelrelationship.DefaultStatus = labelrelationshipDescStatus.Default.(uint8)
  1044. // labelrelationshipDescLabelID is the schema descriptor for label_id field.
  1045. labelrelationshipDescLabelID := labelrelationshipFields[0].Descriptor()
  1046. // labelrelationship.DefaultLabelID holds the default value on creation for the label_id field.
  1047. labelrelationship.DefaultLabelID = labelrelationshipDescLabelID.Default.(uint64)
  1048. // labelrelationshipDescContactID is the schema descriptor for contact_id field.
  1049. labelrelationshipDescContactID := labelrelationshipFields[1].Descriptor()
  1050. // labelrelationship.DefaultContactID holds the default value on creation for the contact_id field.
  1051. labelrelationship.DefaultContactID = labelrelationshipDescContactID.Default.(uint64)
  1052. // labelrelationshipDescOrganizationID is the schema descriptor for organization_id field.
  1053. labelrelationshipDescOrganizationID := labelrelationshipFields[2].Descriptor()
  1054. // labelrelationship.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1055. labelrelationship.DefaultOrganizationID = labelrelationshipDescOrganizationID.Default.(uint64)
  1056. labeltaggingMixin := schema.LabelTagging{}.Mixin()
  1057. labeltaggingMixinHooks2 := labeltaggingMixin[2].Hooks()
  1058. labeltagging.Hooks[0] = labeltaggingMixinHooks2[0]
  1059. labeltaggingMixinInters2 := labeltaggingMixin[2].Interceptors()
  1060. labeltagging.Interceptors[0] = labeltaggingMixinInters2[0]
  1061. labeltaggingMixinFields0 := labeltaggingMixin[0].Fields()
  1062. _ = labeltaggingMixinFields0
  1063. labeltaggingMixinFields1 := labeltaggingMixin[1].Fields()
  1064. _ = labeltaggingMixinFields1
  1065. labeltaggingFields := schema.LabelTagging{}.Fields()
  1066. _ = labeltaggingFields
  1067. // labeltaggingDescCreatedAt is the schema descriptor for created_at field.
  1068. labeltaggingDescCreatedAt := labeltaggingMixinFields0[1].Descriptor()
  1069. // labeltagging.DefaultCreatedAt holds the default value on creation for the created_at field.
  1070. labeltagging.DefaultCreatedAt = labeltaggingDescCreatedAt.Default.(func() time.Time)
  1071. // labeltaggingDescUpdatedAt is the schema descriptor for updated_at field.
  1072. labeltaggingDescUpdatedAt := labeltaggingMixinFields0[2].Descriptor()
  1073. // labeltagging.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1074. labeltagging.DefaultUpdatedAt = labeltaggingDescUpdatedAt.Default.(func() time.Time)
  1075. // labeltagging.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1076. labeltagging.UpdateDefaultUpdatedAt = labeltaggingDescUpdatedAt.UpdateDefault.(func() time.Time)
  1077. // labeltaggingDescStatus is the schema descriptor for status field.
  1078. labeltaggingDescStatus := labeltaggingMixinFields1[0].Descriptor()
  1079. // labeltagging.DefaultStatus holds the default value on creation for the status field.
  1080. labeltagging.DefaultStatus = labeltaggingDescStatus.Default.(uint8)
  1081. // labeltaggingDescOrganizationID is the schema descriptor for organization_id field.
  1082. labeltaggingDescOrganizationID := labeltaggingFields[0].Descriptor()
  1083. // labeltagging.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1084. labeltagging.DefaultOrganizationID = labeltaggingDescOrganizationID.Default.(uint64)
  1085. // labeltaggingDescType is the schema descriptor for type field.
  1086. labeltaggingDescType := labeltaggingFields[1].Descriptor()
  1087. // labeltagging.DefaultType holds the default value on creation for the type field.
  1088. labeltagging.DefaultType = labeltaggingDescType.Default.(int)
  1089. // labeltaggingDescConditions is the schema descriptor for conditions field.
  1090. labeltaggingDescConditions := labeltaggingFields[2].Descriptor()
  1091. // labeltagging.DefaultConditions holds the default value on creation for the conditions field.
  1092. labeltagging.DefaultConditions = labeltaggingDescConditions.Default.(string)
  1093. messageFields := schema.Message{}.Fields()
  1094. _ = messageFields
  1095. // messageDescWxWxid is the schema descriptor for wx_wxid field.
  1096. messageDescWxWxid := messageFields[0].Descriptor()
  1097. // message.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  1098. message.DefaultWxWxid = messageDescWxWxid.Default.(string)
  1099. // messageDescWxid is the schema descriptor for wxid field.
  1100. messageDescWxid := messageFields[1].Descriptor()
  1101. // message.DefaultWxid holds the default value on creation for the wxid field.
  1102. message.DefaultWxid = messageDescWxid.Default.(string)
  1103. // messageDescContent is the schema descriptor for content field.
  1104. messageDescContent := messageFields[2].Descriptor()
  1105. // message.DefaultContent holds the default value on creation for the content field.
  1106. message.DefaultContent = messageDescContent.Default.(string)
  1107. messagerecordsMixin := schema.MessageRecords{}.Mixin()
  1108. messagerecordsMixinFields0 := messagerecordsMixin[0].Fields()
  1109. _ = messagerecordsMixinFields0
  1110. messagerecordsMixinFields1 := messagerecordsMixin[1].Fields()
  1111. _ = messagerecordsMixinFields1
  1112. messagerecordsFields := schema.MessageRecords{}.Fields()
  1113. _ = messagerecordsFields
  1114. // messagerecordsDescCreatedAt is the schema descriptor for created_at field.
  1115. messagerecordsDescCreatedAt := messagerecordsMixinFields0[1].Descriptor()
  1116. // messagerecords.DefaultCreatedAt holds the default value on creation for the created_at field.
  1117. messagerecords.DefaultCreatedAt = messagerecordsDescCreatedAt.Default.(func() time.Time)
  1118. // messagerecordsDescUpdatedAt is the schema descriptor for updated_at field.
  1119. messagerecordsDescUpdatedAt := messagerecordsMixinFields0[2].Descriptor()
  1120. // messagerecords.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1121. messagerecords.DefaultUpdatedAt = messagerecordsDescUpdatedAt.Default.(func() time.Time)
  1122. // messagerecords.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1123. messagerecords.UpdateDefaultUpdatedAt = messagerecordsDescUpdatedAt.UpdateDefault.(func() time.Time)
  1124. // messagerecordsDescStatus is the schema descriptor for status field.
  1125. messagerecordsDescStatus := messagerecordsMixinFields1[0].Descriptor()
  1126. // messagerecords.DefaultStatus holds the default value on creation for the status field.
  1127. messagerecords.DefaultStatus = messagerecordsDescStatus.Default.(uint8)
  1128. // messagerecordsDescContactType is the schema descriptor for contact_type field.
  1129. messagerecordsDescContactType := messagerecordsFields[2].Descriptor()
  1130. // messagerecords.DefaultContactType holds the default value on creation for the contact_type field.
  1131. messagerecords.DefaultContactType = messagerecordsDescContactType.Default.(int)
  1132. // messagerecordsDescContactWxid is the schema descriptor for contact_wxid field.
  1133. messagerecordsDescContactWxid := messagerecordsFields[3].Descriptor()
  1134. // messagerecords.DefaultContactWxid holds the default value on creation for the contact_wxid field.
  1135. messagerecords.DefaultContactWxid = messagerecordsDescContactWxid.Default.(string)
  1136. // messagerecordsDescContentType is the schema descriptor for content_type field.
  1137. messagerecordsDescContentType := messagerecordsFields[4].Descriptor()
  1138. // messagerecords.DefaultContentType holds the default value on creation for the content_type field.
  1139. messagerecords.DefaultContentType = messagerecordsDescContentType.Default.(int)
  1140. // messagerecordsDescContent is the schema descriptor for content field.
  1141. messagerecordsDescContent := messagerecordsFields[5].Descriptor()
  1142. // messagerecords.DefaultContent holds the default value on creation for the content field.
  1143. messagerecords.DefaultContent = messagerecordsDescContent.Default.(string)
  1144. // messagerecordsDescErrorDetail is the schema descriptor for error_detail field.
  1145. messagerecordsDescErrorDetail := messagerecordsFields[7].Descriptor()
  1146. // messagerecords.DefaultErrorDetail holds the default value on creation for the error_detail field.
  1147. messagerecords.DefaultErrorDetail = messagerecordsDescErrorDetail.Default.(string)
  1148. // messagerecordsDescSourceType is the schema descriptor for source_type field.
  1149. messagerecordsDescSourceType := messagerecordsFields[9].Descriptor()
  1150. // messagerecords.DefaultSourceType holds the default value on creation for the source_type field.
  1151. messagerecords.DefaultSourceType = messagerecordsDescSourceType.Default.(int)
  1152. // messagerecordsDescSourceID is the schema descriptor for source_id field.
  1153. messagerecordsDescSourceID := messagerecordsFields[10].Descriptor()
  1154. // messagerecords.DefaultSourceID holds the default value on creation for the source_id field.
  1155. messagerecords.DefaultSourceID = messagerecordsDescSourceID.Default.(uint64)
  1156. // messagerecordsDescSubSourceID is the schema descriptor for sub_source_id field.
  1157. messagerecordsDescSubSourceID := messagerecordsFields[11].Descriptor()
  1158. // messagerecords.DefaultSubSourceID holds the default value on creation for the sub_source_id field.
  1159. messagerecords.DefaultSubSourceID = messagerecordsDescSubSourceID.Default.(uint64)
  1160. // messagerecordsDescOrganizationID is the schema descriptor for organization_id field.
  1161. messagerecordsDescOrganizationID := messagerecordsFields[12].Descriptor()
  1162. // messagerecords.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1163. messagerecords.DefaultOrganizationID = messagerecordsDescOrganizationID.Default.(uint64)
  1164. msgMixin := schema.Msg{}.Mixin()
  1165. msgMixinHooks1 := msgMixin[1].Hooks()
  1166. msg.Hooks[0] = msgMixinHooks1[0]
  1167. msgMixinInters1 := msgMixin[1].Interceptors()
  1168. msg.Interceptors[0] = msgMixinInters1[0]
  1169. msgMixinFields0 := msgMixin[0].Fields()
  1170. _ = msgMixinFields0
  1171. msgFields := schema.Msg{}.Fields()
  1172. _ = msgFields
  1173. // msgDescCreatedAt is the schema descriptor for created_at field.
  1174. msgDescCreatedAt := msgMixinFields0[1].Descriptor()
  1175. // msg.DefaultCreatedAt holds the default value on creation for the created_at field.
  1176. msg.DefaultCreatedAt = msgDescCreatedAt.Default.(func() time.Time)
  1177. // msgDescUpdatedAt is the schema descriptor for updated_at field.
  1178. msgDescUpdatedAt := msgMixinFields0[2].Descriptor()
  1179. // msg.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1180. msg.DefaultUpdatedAt = msgDescUpdatedAt.Default.(func() time.Time)
  1181. // msg.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1182. msg.UpdateDefaultUpdatedAt = msgDescUpdatedAt.UpdateDefault.(func() time.Time)
  1183. // msgDescCc is the schema descriptor for cc field.
  1184. msgDescCc := msgFields[6].Descriptor()
  1185. // msg.DefaultCc holds the default value on creation for the cc field.
  1186. msg.DefaultCc = msgDescCc.Default.(string)
  1187. // msgDescPhone is the schema descriptor for phone field.
  1188. msgDescPhone := msgFields[7].Descriptor()
  1189. // msg.DefaultPhone holds the default value on creation for the phone field.
  1190. msg.DefaultPhone = msgDescPhone.Default.(string)
  1191. payrechargeMixin := schema.PayRecharge{}.Mixin()
  1192. payrechargeMixinHooks1 := payrechargeMixin[1].Hooks()
  1193. payrecharge.Hooks[0] = payrechargeMixinHooks1[0]
  1194. payrechargeMixinInters1 := payrechargeMixin[1].Interceptors()
  1195. payrecharge.Interceptors[0] = payrechargeMixinInters1[0]
  1196. payrechargeMixinFields0 := payrechargeMixin[0].Fields()
  1197. _ = payrechargeMixinFields0
  1198. payrechargeFields := schema.PayRecharge{}.Fields()
  1199. _ = payrechargeFields
  1200. // payrechargeDescCreatedAt is the schema descriptor for created_at field.
  1201. payrechargeDescCreatedAt := payrechargeMixinFields0[1].Descriptor()
  1202. // payrecharge.DefaultCreatedAt holds the default value on creation for the created_at field.
  1203. payrecharge.DefaultCreatedAt = payrechargeDescCreatedAt.Default.(func() time.Time)
  1204. // payrechargeDescUpdatedAt is the schema descriptor for updated_at field.
  1205. payrechargeDescUpdatedAt := payrechargeMixinFields0[2].Descriptor()
  1206. // payrecharge.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1207. payrecharge.DefaultUpdatedAt = payrechargeDescUpdatedAt.Default.(func() time.Time)
  1208. // payrecharge.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1209. payrecharge.UpdateDefaultUpdatedAt = payrechargeDescUpdatedAt.UpdateDefault.(func() time.Time)
  1210. // payrechargeDescUserID is the schema descriptor for user_id field.
  1211. payrechargeDescUserID := payrechargeFields[0].Descriptor()
  1212. // payrecharge.UserIDValidator is a validator for the "user_id" field. It is called by the builders before save.
  1213. payrecharge.UserIDValidator = payrechargeDescUserID.Validators[0].(func(string) error)
  1214. // payrechargeDescNumber is the schema descriptor for number field.
  1215. payrechargeDescNumber := payrechargeFields[1].Descriptor()
  1216. // payrecharge.DefaultNumber holds the default value on creation for the number field.
  1217. payrecharge.DefaultNumber = payrechargeDescNumber.Default.(float32)
  1218. // payrechargeDescStatus is the schema descriptor for status field.
  1219. payrechargeDescStatus := payrechargeFields[2].Descriptor()
  1220. // payrecharge.DefaultStatus holds the default value on creation for the status field.
  1221. payrecharge.DefaultStatus = payrechargeDescStatus.Default.(int)
  1222. // payrecharge.StatusValidator is a validator for the "status" field. It is called by the builders before save.
  1223. payrecharge.StatusValidator = payrechargeDescStatus.Validators[0].(func(int) error)
  1224. // payrechargeDescMoney is the schema descriptor for money field.
  1225. payrechargeDescMoney := payrechargeFields[3].Descriptor()
  1226. // payrecharge.DefaultMoney holds the default value on creation for the money field.
  1227. payrecharge.DefaultMoney = payrechargeDescMoney.Default.(float32)
  1228. // payrechargeDescOutTradeNo is the schema descriptor for out_trade_no field.
  1229. payrechargeDescOutTradeNo := payrechargeFields[4].Descriptor()
  1230. // payrecharge.DefaultOutTradeNo holds the default value on creation for the out_trade_no field.
  1231. payrecharge.DefaultOutTradeNo = payrechargeDescOutTradeNo.Default.(string)
  1232. // payrechargeDescOrganizationID is the schema descriptor for organization_id field.
  1233. payrechargeDescOrganizationID := payrechargeFields[5].Descriptor()
  1234. // payrecharge.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1235. payrecharge.DefaultOrganizationID = payrechargeDescOrganizationID.Default.(uint64)
  1236. // payrecharge.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  1237. payrecharge.OrganizationIDValidator = payrechargeDescOrganizationID.Validators[0].(func(uint64) error)
  1238. serverMixin := schema.Server{}.Mixin()
  1239. serverMixinHooks2 := serverMixin[2].Hooks()
  1240. server.Hooks[0] = serverMixinHooks2[0]
  1241. serverMixinInters2 := serverMixin[2].Interceptors()
  1242. server.Interceptors[0] = serverMixinInters2[0]
  1243. serverMixinFields0 := serverMixin[0].Fields()
  1244. _ = serverMixinFields0
  1245. serverMixinFields1 := serverMixin[1].Fields()
  1246. _ = serverMixinFields1
  1247. serverFields := schema.Server{}.Fields()
  1248. _ = serverFields
  1249. // serverDescCreatedAt is the schema descriptor for created_at field.
  1250. serverDescCreatedAt := serverMixinFields0[1].Descriptor()
  1251. // server.DefaultCreatedAt holds the default value on creation for the created_at field.
  1252. server.DefaultCreatedAt = serverDescCreatedAt.Default.(func() time.Time)
  1253. // serverDescUpdatedAt is the schema descriptor for updated_at field.
  1254. serverDescUpdatedAt := serverMixinFields0[2].Descriptor()
  1255. // server.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1256. server.DefaultUpdatedAt = serverDescUpdatedAt.Default.(func() time.Time)
  1257. // server.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1258. server.UpdateDefaultUpdatedAt = serverDescUpdatedAt.UpdateDefault.(func() time.Time)
  1259. // serverDescStatus is the schema descriptor for status field.
  1260. serverDescStatus := serverMixinFields1[0].Descriptor()
  1261. // server.DefaultStatus holds the default value on creation for the status field.
  1262. server.DefaultStatus = serverDescStatus.Default.(uint8)
  1263. sopnodeMixin := schema.SopNode{}.Mixin()
  1264. sopnodeMixinHooks2 := sopnodeMixin[2].Hooks()
  1265. sopnode.Hooks[0] = sopnodeMixinHooks2[0]
  1266. sopnodeMixinInters2 := sopnodeMixin[2].Interceptors()
  1267. sopnode.Interceptors[0] = sopnodeMixinInters2[0]
  1268. sopnodeMixinFields0 := sopnodeMixin[0].Fields()
  1269. _ = sopnodeMixinFields0
  1270. sopnodeMixinFields1 := sopnodeMixin[1].Fields()
  1271. _ = sopnodeMixinFields1
  1272. sopnodeFields := schema.SopNode{}.Fields()
  1273. _ = sopnodeFields
  1274. // sopnodeDescCreatedAt is the schema descriptor for created_at field.
  1275. sopnodeDescCreatedAt := sopnodeMixinFields0[1].Descriptor()
  1276. // sopnode.DefaultCreatedAt holds the default value on creation for the created_at field.
  1277. sopnode.DefaultCreatedAt = sopnodeDescCreatedAt.Default.(func() time.Time)
  1278. // sopnodeDescUpdatedAt is the schema descriptor for updated_at field.
  1279. sopnodeDescUpdatedAt := sopnodeMixinFields0[2].Descriptor()
  1280. // sopnode.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1281. sopnode.DefaultUpdatedAt = sopnodeDescUpdatedAt.Default.(func() time.Time)
  1282. // sopnode.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1283. sopnode.UpdateDefaultUpdatedAt = sopnodeDescUpdatedAt.UpdateDefault.(func() time.Time)
  1284. // sopnodeDescStatus is the schema descriptor for status field.
  1285. sopnodeDescStatus := sopnodeMixinFields1[0].Descriptor()
  1286. // sopnode.DefaultStatus holds the default value on creation for the status field.
  1287. sopnode.DefaultStatus = sopnodeDescStatus.Default.(uint8)
  1288. // sopnodeDescName is the schema descriptor for name field.
  1289. sopnodeDescName := sopnodeFields[2].Descriptor()
  1290. // sopnode.DefaultName holds the default value on creation for the name field.
  1291. sopnode.DefaultName = sopnodeDescName.Default.(string)
  1292. // sopnodeDescConditionType is the schema descriptor for condition_type field.
  1293. sopnodeDescConditionType := sopnodeFields[3].Descriptor()
  1294. // sopnode.DefaultConditionType holds the default value on creation for the condition_type field.
  1295. sopnode.DefaultConditionType = sopnodeDescConditionType.Default.(int)
  1296. // sopnodeDescNoReplyCondition is the schema descriptor for no_reply_condition field.
  1297. sopnodeDescNoReplyCondition := sopnodeFields[5].Descriptor()
  1298. // sopnode.DefaultNoReplyCondition holds the default value on creation for the no_reply_condition field.
  1299. sopnode.DefaultNoReplyCondition = sopnodeDescNoReplyCondition.Default.(uint64)
  1300. // sopnodeDescNoReplyUnit is the schema descriptor for no_reply_unit field.
  1301. sopnodeDescNoReplyUnit := sopnodeFields[6].Descriptor()
  1302. // sopnode.DefaultNoReplyUnit holds the default value on creation for the no_reply_unit field.
  1303. sopnode.DefaultNoReplyUnit = sopnodeDescNoReplyUnit.Default.(string)
  1304. sopstageMixin := schema.SopStage{}.Mixin()
  1305. sopstageMixinHooks2 := sopstageMixin[2].Hooks()
  1306. sopstage.Hooks[0] = sopstageMixinHooks2[0]
  1307. sopstageMixinInters2 := sopstageMixin[2].Interceptors()
  1308. sopstage.Interceptors[0] = sopstageMixinInters2[0]
  1309. sopstageMixinFields0 := sopstageMixin[0].Fields()
  1310. _ = sopstageMixinFields0
  1311. sopstageMixinFields1 := sopstageMixin[1].Fields()
  1312. _ = sopstageMixinFields1
  1313. sopstageFields := schema.SopStage{}.Fields()
  1314. _ = sopstageFields
  1315. // sopstageDescCreatedAt is the schema descriptor for created_at field.
  1316. sopstageDescCreatedAt := sopstageMixinFields0[1].Descriptor()
  1317. // sopstage.DefaultCreatedAt holds the default value on creation for the created_at field.
  1318. sopstage.DefaultCreatedAt = sopstageDescCreatedAt.Default.(func() time.Time)
  1319. // sopstageDescUpdatedAt is the schema descriptor for updated_at field.
  1320. sopstageDescUpdatedAt := sopstageMixinFields0[2].Descriptor()
  1321. // sopstage.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1322. sopstage.DefaultUpdatedAt = sopstageDescUpdatedAt.Default.(func() time.Time)
  1323. // sopstage.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1324. sopstage.UpdateDefaultUpdatedAt = sopstageDescUpdatedAt.UpdateDefault.(func() time.Time)
  1325. // sopstageDescStatus is the schema descriptor for status field.
  1326. sopstageDescStatus := sopstageMixinFields1[0].Descriptor()
  1327. // sopstage.DefaultStatus holds the default value on creation for the status field.
  1328. sopstage.DefaultStatus = sopstageDescStatus.Default.(uint8)
  1329. // sopstageDescName is the schema descriptor for name field.
  1330. sopstageDescName := sopstageFields[1].Descriptor()
  1331. // sopstage.DefaultName holds the default value on creation for the name field.
  1332. sopstage.DefaultName = sopstageDescName.Default.(string)
  1333. // sopstageDescConditionType is the schema descriptor for condition_type field.
  1334. sopstageDescConditionType := sopstageFields[2].Descriptor()
  1335. // sopstage.DefaultConditionType holds the default value on creation for the condition_type field.
  1336. sopstage.DefaultConditionType = sopstageDescConditionType.Default.(int)
  1337. // sopstageDescConditionOperator is the schema descriptor for condition_operator field.
  1338. sopstageDescConditionOperator := sopstageFields[3].Descriptor()
  1339. // sopstage.DefaultConditionOperator holds the default value on creation for the condition_operator field.
  1340. sopstage.DefaultConditionOperator = sopstageDescConditionOperator.Default.(int)
  1341. // sopstageDescIndexSort is the schema descriptor for index_sort field.
  1342. sopstageDescIndexSort := sopstageFields[9].Descriptor()
  1343. // sopstage.DefaultIndexSort holds the default value on creation for the index_sort field.
  1344. sopstage.DefaultIndexSort = sopstageDescIndexSort.Default.(int)
  1345. soptaskMixin := schema.SopTask{}.Mixin()
  1346. soptaskMixinHooks2 := soptaskMixin[2].Hooks()
  1347. soptask.Hooks[0] = soptaskMixinHooks2[0]
  1348. soptaskMixinInters2 := soptaskMixin[2].Interceptors()
  1349. soptask.Interceptors[0] = soptaskMixinInters2[0]
  1350. soptaskMixinFields0 := soptaskMixin[0].Fields()
  1351. _ = soptaskMixinFields0
  1352. soptaskMixinFields1 := soptaskMixin[1].Fields()
  1353. _ = soptaskMixinFields1
  1354. soptaskFields := schema.SopTask{}.Fields()
  1355. _ = soptaskFields
  1356. // soptaskDescCreatedAt is the schema descriptor for created_at field.
  1357. soptaskDescCreatedAt := soptaskMixinFields0[1].Descriptor()
  1358. // soptask.DefaultCreatedAt holds the default value on creation for the created_at field.
  1359. soptask.DefaultCreatedAt = soptaskDescCreatedAt.Default.(func() time.Time)
  1360. // soptaskDescUpdatedAt is the schema descriptor for updated_at field.
  1361. soptaskDescUpdatedAt := soptaskMixinFields0[2].Descriptor()
  1362. // soptask.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1363. soptask.DefaultUpdatedAt = soptaskDescUpdatedAt.Default.(func() time.Time)
  1364. // soptask.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1365. soptask.UpdateDefaultUpdatedAt = soptaskDescUpdatedAt.UpdateDefault.(func() time.Time)
  1366. // soptaskDescStatus is the schema descriptor for status field.
  1367. soptaskDescStatus := soptaskMixinFields1[0].Descriptor()
  1368. // soptask.DefaultStatus holds the default value on creation for the status field.
  1369. soptask.DefaultStatus = soptaskDescStatus.Default.(uint8)
  1370. // soptaskDescName is the schema descriptor for name field.
  1371. soptaskDescName := soptaskFields[0].Descriptor()
  1372. // soptask.NameValidator is a validator for the "name" field. It is called by the builders before save.
  1373. soptask.NameValidator = soptaskDescName.Validators[0].(func(string) error)
  1374. // soptaskDescType is the schema descriptor for type field.
  1375. soptaskDescType := soptaskFields[2].Descriptor()
  1376. // soptask.DefaultType holds the default value on creation for the type field.
  1377. soptask.DefaultType = soptaskDescType.Default.(int)
  1378. // soptaskDescOrganizationID is the schema descriptor for organization_id field.
  1379. soptaskDescOrganizationID := soptaskFields[6].Descriptor()
  1380. // soptask.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1381. soptask.DefaultOrganizationID = soptaskDescOrganizationID.Default.(uint64)
  1382. tokenMixin := schema.Token{}.Mixin()
  1383. tokenMixinHooks1 := tokenMixin[1].Hooks()
  1384. token.Hooks[0] = tokenMixinHooks1[0]
  1385. tokenMixinInters1 := tokenMixin[1].Interceptors()
  1386. token.Interceptors[0] = tokenMixinInters1[0]
  1387. tokenMixinFields0 := tokenMixin[0].Fields()
  1388. _ = tokenMixinFields0
  1389. tokenFields := schema.Token{}.Fields()
  1390. _ = tokenFields
  1391. // tokenDescCreatedAt is the schema descriptor for created_at field.
  1392. tokenDescCreatedAt := tokenMixinFields0[1].Descriptor()
  1393. // token.DefaultCreatedAt holds the default value on creation for the created_at field.
  1394. token.DefaultCreatedAt = tokenDescCreatedAt.Default.(func() time.Time)
  1395. // tokenDescUpdatedAt is the schema descriptor for updated_at field.
  1396. tokenDescUpdatedAt := tokenMixinFields0[2].Descriptor()
  1397. // token.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1398. token.DefaultUpdatedAt = tokenDescUpdatedAt.Default.(func() time.Time)
  1399. // token.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1400. token.UpdateDefaultUpdatedAt = tokenDescUpdatedAt.UpdateDefault.(func() time.Time)
  1401. // tokenDescToken is the schema descriptor for token field.
  1402. tokenDescToken := tokenFields[1].Descriptor()
  1403. // token.DefaultToken holds the default value on creation for the token field.
  1404. token.DefaultToken = tokenDescToken.Default.(string)
  1405. // tokenDescMAC is the schema descriptor for mac field.
  1406. tokenDescMAC := tokenFields[2].Descriptor()
  1407. // token.DefaultMAC holds the default value on creation for the mac field.
  1408. token.DefaultMAC = tokenDescMAC.Default.(string)
  1409. // tokenDescOrganizationID is the schema descriptor for organization_id field.
  1410. tokenDescOrganizationID := tokenFields[3].Descriptor()
  1411. // token.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1412. token.DefaultOrganizationID = tokenDescOrganizationID.Default.(uint64)
  1413. // tokenDescAgentID is the schema descriptor for agent_id field.
  1414. tokenDescAgentID := tokenFields[4].Descriptor()
  1415. // token.DefaultAgentID holds the default value on creation for the agent_id field.
  1416. token.DefaultAgentID = tokenDescAgentID.Default.(uint64)
  1417. // tokenDescCustomAgentBase is the schema descriptor for custom_agent_base field.
  1418. tokenDescCustomAgentBase := tokenFields[5].Descriptor()
  1419. // token.DefaultCustomAgentBase holds the default value on creation for the custom_agent_base field.
  1420. token.DefaultCustomAgentBase = tokenDescCustomAgentBase.Default.(string)
  1421. // tokenDescCustomAgentKey is the schema descriptor for custom_agent_key field.
  1422. tokenDescCustomAgentKey := tokenFields[6].Descriptor()
  1423. // token.DefaultCustomAgentKey holds the default value on creation for the custom_agent_key field.
  1424. token.DefaultCustomAgentKey = tokenDescCustomAgentKey.Default.(string)
  1425. // tokenDescOpenaiBase is the schema descriptor for openai_base field.
  1426. tokenDescOpenaiBase := tokenFields[7].Descriptor()
  1427. // token.DefaultOpenaiBase holds the default value on creation for the openai_base field.
  1428. token.DefaultOpenaiBase = tokenDescOpenaiBase.Default.(string)
  1429. // tokenDescOpenaiKey is the schema descriptor for openai_key field.
  1430. tokenDescOpenaiKey := tokenFields[8].Descriptor()
  1431. // token.DefaultOpenaiKey holds the default value on creation for the openai_key field.
  1432. token.DefaultOpenaiKey = tokenDescOpenaiKey.Default.(string)
  1433. tutorialMixin := schema.Tutorial{}.Mixin()
  1434. tutorialMixinHooks1 := tutorialMixin[1].Hooks()
  1435. tutorial.Hooks[0] = tutorialMixinHooks1[0]
  1436. tutorialMixinInters1 := tutorialMixin[1].Interceptors()
  1437. tutorial.Interceptors[0] = tutorialMixinInters1[0]
  1438. tutorialMixinFields0 := tutorialMixin[0].Fields()
  1439. _ = tutorialMixinFields0
  1440. tutorialFields := schema.Tutorial{}.Fields()
  1441. _ = tutorialFields
  1442. // tutorialDescCreatedAt is the schema descriptor for created_at field.
  1443. tutorialDescCreatedAt := tutorialMixinFields0[1].Descriptor()
  1444. // tutorial.DefaultCreatedAt holds the default value on creation for the created_at field.
  1445. tutorial.DefaultCreatedAt = tutorialDescCreatedAt.Default.(func() time.Time)
  1446. // tutorialDescUpdatedAt is the schema descriptor for updated_at field.
  1447. tutorialDescUpdatedAt := tutorialMixinFields0[2].Descriptor()
  1448. // tutorial.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1449. tutorial.DefaultUpdatedAt = tutorialDescUpdatedAt.Default.(func() time.Time)
  1450. // tutorial.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1451. tutorial.UpdateDefaultUpdatedAt = tutorialDescUpdatedAt.UpdateDefault.(func() time.Time)
  1452. // tutorialDescEmployeeID is the schema descriptor for employee_id field.
  1453. tutorialDescEmployeeID := tutorialFields[0].Descriptor()
  1454. // tutorial.EmployeeIDValidator is a validator for the "employee_id" field. It is called by the builders before save.
  1455. tutorial.EmployeeIDValidator = tutorialDescEmployeeID.Validators[0].(func(uint64) error)
  1456. // tutorialDescOrganizationID is the schema descriptor for organization_id field.
  1457. tutorialDescOrganizationID := tutorialFields[4].Descriptor()
  1458. // tutorial.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  1459. tutorial.OrganizationIDValidator = tutorialDescOrganizationID.Validators[0].(func(uint64) error)
  1460. usagedetailMixin := schema.UsageDetail{}.Mixin()
  1461. usagedetailMixinFields0 := usagedetailMixin[0].Fields()
  1462. _ = usagedetailMixinFields0
  1463. usagedetailMixinFields1 := usagedetailMixin[1].Fields()
  1464. _ = usagedetailMixinFields1
  1465. usagedetailFields := schema.UsageDetail{}.Fields()
  1466. _ = usagedetailFields
  1467. // usagedetailDescCreatedAt is the schema descriptor for created_at field.
  1468. usagedetailDescCreatedAt := usagedetailMixinFields0[1].Descriptor()
  1469. // usagedetail.DefaultCreatedAt holds the default value on creation for the created_at field.
  1470. usagedetail.DefaultCreatedAt = usagedetailDescCreatedAt.Default.(func() time.Time)
  1471. // usagedetailDescUpdatedAt is the schema descriptor for updated_at field.
  1472. usagedetailDescUpdatedAt := usagedetailMixinFields0[2].Descriptor()
  1473. // usagedetail.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1474. usagedetail.DefaultUpdatedAt = usagedetailDescUpdatedAt.Default.(func() time.Time)
  1475. // usagedetail.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1476. usagedetail.UpdateDefaultUpdatedAt = usagedetailDescUpdatedAt.UpdateDefault.(func() time.Time)
  1477. // usagedetailDescStatus is the schema descriptor for status field.
  1478. usagedetailDescStatus := usagedetailMixinFields1[0].Descriptor()
  1479. // usagedetail.DefaultStatus holds the default value on creation for the status field.
  1480. usagedetail.DefaultStatus = usagedetailDescStatus.Default.(uint8)
  1481. // usagedetailDescType is the schema descriptor for type field.
  1482. usagedetailDescType := usagedetailFields[0].Descriptor()
  1483. // usagedetail.DefaultType holds the default value on creation for the type field.
  1484. usagedetail.DefaultType = usagedetailDescType.Default.(int)
  1485. // usagedetailDescBotID is the schema descriptor for bot_id field.
  1486. usagedetailDescBotID := usagedetailFields[1].Descriptor()
  1487. // usagedetail.DefaultBotID holds the default value on creation for the bot_id field.
  1488. usagedetail.DefaultBotID = usagedetailDescBotID.Default.(string)
  1489. // usagedetailDescReceiverID is the schema descriptor for receiver_id field.
  1490. usagedetailDescReceiverID := usagedetailFields[2].Descriptor()
  1491. // usagedetail.DefaultReceiverID holds the default value on creation for the receiver_id field.
  1492. usagedetail.DefaultReceiverID = usagedetailDescReceiverID.Default.(string)
  1493. // usagedetailDescApp is the schema descriptor for app field.
  1494. usagedetailDescApp := usagedetailFields[3].Descriptor()
  1495. // usagedetail.DefaultApp holds the default value on creation for the app field.
  1496. usagedetail.DefaultApp = usagedetailDescApp.Default.(int)
  1497. // usagedetailDescSessionID is the schema descriptor for session_id field.
  1498. usagedetailDescSessionID := usagedetailFields[4].Descriptor()
  1499. // usagedetail.DefaultSessionID holds the default value on creation for the session_id field.
  1500. usagedetail.DefaultSessionID = usagedetailDescSessionID.Default.(uint64)
  1501. // usagedetailDescRequest is the schema descriptor for request field.
  1502. usagedetailDescRequest := usagedetailFields[5].Descriptor()
  1503. // usagedetail.DefaultRequest holds the default value on creation for the request field.
  1504. usagedetail.DefaultRequest = usagedetailDescRequest.Default.(string)
  1505. // usagedetailDescResponse is the schema descriptor for response field.
  1506. usagedetailDescResponse := usagedetailFields[6].Descriptor()
  1507. // usagedetail.DefaultResponse holds the default value on creation for the response field.
  1508. usagedetail.DefaultResponse = usagedetailDescResponse.Default.(string)
  1509. // usagedetailDescTotalTokens is the schema descriptor for total_tokens field.
  1510. usagedetailDescTotalTokens := usagedetailFields[8].Descriptor()
  1511. // usagedetail.DefaultTotalTokens holds the default value on creation for the total_tokens field.
  1512. usagedetail.DefaultTotalTokens = usagedetailDescTotalTokens.Default.(uint64)
  1513. // usagedetailDescPromptTokens is the schema descriptor for prompt_tokens field.
  1514. usagedetailDescPromptTokens := usagedetailFields[9].Descriptor()
  1515. // usagedetail.DefaultPromptTokens holds the default value on creation for the prompt_tokens field.
  1516. usagedetail.DefaultPromptTokens = usagedetailDescPromptTokens.Default.(uint64)
  1517. // usagedetailDescCompletionTokens is the schema descriptor for completion_tokens field.
  1518. usagedetailDescCompletionTokens := usagedetailFields[10].Descriptor()
  1519. // usagedetail.DefaultCompletionTokens holds the default value on creation for the completion_tokens field.
  1520. usagedetail.DefaultCompletionTokens = usagedetailDescCompletionTokens.Default.(uint64)
  1521. // usagedetailDescOrganizationID is the schema descriptor for organization_id field.
  1522. usagedetailDescOrganizationID := usagedetailFields[11].Descriptor()
  1523. // usagedetail.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1524. usagedetail.DefaultOrganizationID = usagedetailDescOrganizationID.Default.(uint64)
  1525. // usagedetailDescModel is the schema descriptor for model field.
  1526. usagedetailDescModel := usagedetailFields[12].Descriptor()
  1527. // usagedetail.DefaultModel holds the default value on creation for the model field.
  1528. usagedetail.DefaultModel = usagedetailDescModel.Default.(string)
  1529. usagestatisticdayMixin := schema.UsageStatisticDay{}.Mixin()
  1530. usagestatisticdayMixinHooks2 := usagestatisticdayMixin[2].Hooks()
  1531. usagestatisticday.Hooks[0] = usagestatisticdayMixinHooks2[0]
  1532. usagestatisticdayMixinInters2 := usagestatisticdayMixin[2].Interceptors()
  1533. usagestatisticday.Interceptors[0] = usagestatisticdayMixinInters2[0]
  1534. usagestatisticdayMixinFields0 := usagestatisticdayMixin[0].Fields()
  1535. _ = usagestatisticdayMixinFields0
  1536. usagestatisticdayMixinFields1 := usagestatisticdayMixin[1].Fields()
  1537. _ = usagestatisticdayMixinFields1
  1538. usagestatisticdayFields := schema.UsageStatisticDay{}.Fields()
  1539. _ = usagestatisticdayFields
  1540. // usagestatisticdayDescCreatedAt is the schema descriptor for created_at field.
  1541. usagestatisticdayDescCreatedAt := usagestatisticdayMixinFields0[1].Descriptor()
  1542. // usagestatisticday.DefaultCreatedAt holds the default value on creation for the created_at field.
  1543. usagestatisticday.DefaultCreatedAt = usagestatisticdayDescCreatedAt.Default.(func() time.Time)
  1544. // usagestatisticdayDescUpdatedAt is the schema descriptor for updated_at field.
  1545. usagestatisticdayDescUpdatedAt := usagestatisticdayMixinFields0[2].Descriptor()
  1546. // usagestatisticday.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1547. usagestatisticday.DefaultUpdatedAt = usagestatisticdayDescUpdatedAt.Default.(func() time.Time)
  1548. // usagestatisticday.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1549. usagestatisticday.UpdateDefaultUpdatedAt = usagestatisticdayDescUpdatedAt.UpdateDefault.(func() time.Time)
  1550. // usagestatisticdayDescStatus is the schema descriptor for status field.
  1551. usagestatisticdayDescStatus := usagestatisticdayMixinFields1[0].Descriptor()
  1552. // usagestatisticday.DefaultStatus holds the default value on creation for the status field.
  1553. usagestatisticday.DefaultStatus = usagestatisticdayDescStatus.Default.(uint8)
  1554. // usagestatisticdayDescConsumeCoin is the schema descriptor for consume_coin field.
  1555. usagestatisticdayDescConsumeCoin := usagestatisticdayFields[13].Descriptor()
  1556. // usagestatisticday.DefaultConsumeCoin holds the default value on creation for the consume_coin field.
  1557. usagestatisticday.DefaultConsumeCoin = usagestatisticdayDescConsumeCoin.Default.(float64)
  1558. usagestatistichourMixin := schema.UsageStatisticHour{}.Mixin()
  1559. usagestatistichourMixinHooks2 := usagestatistichourMixin[2].Hooks()
  1560. usagestatistichour.Hooks[0] = usagestatistichourMixinHooks2[0]
  1561. usagestatistichourMixinInters2 := usagestatistichourMixin[2].Interceptors()
  1562. usagestatistichour.Interceptors[0] = usagestatistichourMixinInters2[0]
  1563. usagestatistichourMixinFields0 := usagestatistichourMixin[0].Fields()
  1564. _ = usagestatistichourMixinFields0
  1565. usagestatistichourMixinFields1 := usagestatistichourMixin[1].Fields()
  1566. _ = usagestatistichourMixinFields1
  1567. usagestatistichourFields := schema.UsageStatisticHour{}.Fields()
  1568. _ = usagestatistichourFields
  1569. // usagestatistichourDescCreatedAt is the schema descriptor for created_at field.
  1570. usagestatistichourDescCreatedAt := usagestatistichourMixinFields0[1].Descriptor()
  1571. // usagestatistichour.DefaultCreatedAt holds the default value on creation for the created_at field.
  1572. usagestatistichour.DefaultCreatedAt = usagestatistichourDescCreatedAt.Default.(func() time.Time)
  1573. // usagestatistichourDescUpdatedAt is the schema descriptor for updated_at field.
  1574. usagestatistichourDescUpdatedAt := usagestatistichourMixinFields0[2].Descriptor()
  1575. // usagestatistichour.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1576. usagestatistichour.DefaultUpdatedAt = usagestatistichourDescUpdatedAt.Default.(func() time.Time)
  1577. // usagestatistichour.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1578. usagestatistichour.UpdateDefaultUpdatedAt = usagestatistichourDescUpdatedAt.UpdateDefault.(func() time.Time)
  1579. // usagestatistichourDescStatus is the schema descriptor for status field.
  1580. usagestatistichourDescStatus := usagestatistichourMixinFields1[0].Descriptor()
  1581. // usagestatistichour.DefaultStatus holds the default value on creation for the status field.
  1582. usagestatistichour.DefaultStatus = usagestatistichourDescStatus.Default.(uint8)
  1583. // usagestatistichourDescConsumeCoin is the schema descriptor for consume_coin field.
  1584. usagestatistichourDescConsumeCoin := usagestatistichourFields[13].Descriptor()
  1585. // usagestatistichour.DefaultConsumeCoin holds the default value on creation for the consume_coin field.
  1586. usagestatistichour.DefaultConsumeCoin = usagestatistichourDescConsumeCoin.Default.(float64)
  1587. usagestatisticmonthMixin := schema.UsageStatisticMonth{}.Mixin()
  1588. usagestatisticmonthMixinHooks2 := usagestatisticmonthMixin[2].Hooks()
  1589. usagestatisticmonth.Hooks[0] = usagestatisticmonthMixinHooks2[0]
  1590. usagestatisticmonthMixinInters2 := usagestatisticmonthMixin[2].Interceptors()
  1591. usagestatisticmonth.Interceptors[0] = usagestatisticmonthMixinInters2[0]
  1592. usagestatisticmonthMixinFields0 := usagestatisticmonthMixin[0].Fields()
  1593. _ = usagestatisticmonthMixinFields0
  1594. usagestatisticmonthMixinFields1 := usagestatisticmonthMixin[1].Fields()
  1595. _ = usagestatisticmonthMixinFields1
  1596. usagestatisticmonthFields := schema.UsageStatisticMonth{}.Fields()
  1597. _ = usagestatisticmonthFields
  1598. // usagestatisticmonthDescCreatedAt is the schema descriptor for created_at field.
  1599. usagestatisticmonthDescCreatedAt := usagestatisticmonthMixinFields0[1].Descriptor()
  1600. // usagestatisticmonth.DefaultCreatedAt holds the default value on creation for the created_at field.
  1601. usagestatisticmonth.DefaultCreatedAt = usagestatisticmonthDescCreatedAt.Default.(func() time.Time)
  1602. // usagestatisticmonthDescUpdatedAt is the schema descriptor for updated_at field.
  1603. usagestatisticmonthDescUpdatedAt := usagestatisticmonthMixinFields0[2].Descriptor()
  1604. // usagestatisticmonth.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1605. usagestatisticmonth.DefaultUpdatedAt = usagestatisticmonthDescUpdatedAt.Default.(func() time.Time)
  1606. // usagestatisticmonth.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1607. usagestatisticmonth.UpdateDefaultUpdatedAt = usagestatisticmonthDescUpdatedAt.UpdateDefault.(func() time.Time)
  1608. // usagestatisticmonthDescStatus is the schema descriptor for status field.
  1609. usagestatisticmonthDescStatus := usagestatisticmonthMixinFields1[0].Descriptor()
  1610. // usagestatisticmonth.DefaultStatus holds the default value on creation for the status field.
  1611. usagestatisticmonth.DefaultStatus = usagestatisticmonthDescStatus.Default.(uint8)
  1612. // usagestatisticmonthDescConsumeCoin is the schema descriptor for consume_coin field.
  1613. usagestatisticmonthDescConsumeCoin := usagestatisticmonthFields[13].Descriptor()
  1614. // usagestatisticmonth.DefaultConsumeCoin holds the default value on creation for the consume_coin field.
  1615. usagestatisticmonth.DefaultConsumeCoin = usagestatisticmonthDescConsumeCoin.Default.(float64)
  1616. usagetotalMixin := schema.UsageTotal{}.Mixin()
  1617. usagetotalMixinFields0 := usagetotalMixin[0].Fields()
  1618. _ = usagetotalMixinFields0
  1619. usagetotalMixinFields1 := usagetotalMixin[1].Fields()
  1620. _ = usagetotalMixinFields1
  1621. usagetotalFields := schema.UsageTotal{}.Fields()
  1622. _ = usagetotalFields
  1623. // usagetotalDescCreatedAt is the schema descriptor for created_at field.
  1624. usagetotalDescCreatedAt := usagetotalMixinFields0[1].Descriptor()
  1625. // usagetotal.DefaultCreatedAt holds the default value on creation for the created_at field.
  1626. usagetotal.DefaultCreatedAt = usagetotalDescCreatedAt.Default.(func() time.Time)
  1627. // usagetotalDescUpdatedAt is the schema descriptor for updated_at field.
  1628. usagetotalDescUpdatedAt := usagetotalMixinFields0[2].Descriptor()
  1629. // usagetotal.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1630. usagetotal.DefaultUpdatedAt = usagetotalDescUpdatedAt.Default.(func() time.Time)
  1631. // usagetotal.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1632. usagetotal.UpdateDefaultUpdatedAt = usagetotalDescUpdatedAt.UpdateDefault.(func() time.Time)
  1633. // usagetotalDescStatus is the schema descriptor for status field.
  1634. usagetotalDescStatus := usagetotalMixinFields1[0].Descriptor()
  1635. // usagetotal.DefaultStatus holds the default value on creation for the status field.
  1636. usagetotal.DefaultStatus = usagetotalDescStatus.Default.(uint8)
  1637. // usagetotalDescType is the schema descriptor for type field.
  1638. usagetotalDescType := usagetotalFields[0].Descriptor()
  1639. // usagetotal.DefaultType holds the default value on creation for the type field.
  1640. usagetotal.DefaultType = usagetotalDescType.Default.(int)
  1641. // usagetotalDescBotID is the schema descriptor for bot_id field.
  1642. usagetotalDescBotID := usagetotalFields[1].Descriptor()
  1643. // usagetotal.DefaultBotID holds the default value on creation for the bot_id field.
  1644. usagetotal.DefaultBotID = usagetotalDescBotID.Default.(string)
  1645. // usagetotalDescTotalTokens is the schema descriptor for total_tokens field.
  1646. usagetotalDescTotalTokens := usagetotalFields[2].Descriptor()
  1647. // usagetotal.DefaultTotalTokens holds the default value on creation for the total_tokens field.
  1648. usagetotal.DefaultTotalTokens = usagetotalDescTotalTokens.Default.(uint64)
  1649. // usagetotalDescStartIndex is the schema descriptor for start_index field.
  1650. usagetotalDescStartIndex := usagetotalFields[3].Descriptor()
  1651. // usagetotal.DefaultStartIndex holds the default value on creation for the start_index field.
  1652. usagetotal.DefaultStartIndex = usagetotalDescStartIndex.Default.(uint64)
  1653. // usagetotalDescEndIndex is the schema descriptor for end_index field.
  1654. usagetotalDescEndIndex := usagetotalFields[4].Descriptor()
  1655. // usagetotal.DefaultEndIndex holds the default value on creation for the end_index field.
  1656. usagetotal.DefaultEndIndex = usagetotalDescEndIndex.Default.(uint64)
  1657. // usagetotalDescOrganizationID is the schema descriptor for organization_id field.
  1658. usagetotalDescOrganizationID := usagetotalFields[5].Descriptor()
  1659. // usagetotal.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1660. usagetotal.DefaultOrganizationID = usagetotalDescOrganizationID.Default.(uint64)
  1661. whatsappMixin := schema.Whatsapp{}.Mixin()
  1662. whatsappMixinHooks2 := whatsappMixin[2].Hooks()
  1663. whatsapp.Hooks[0] = whatsappMixinHooks2[0]
  1664. whatsappMixinInters2 := whatsappMixin[2].Interceptors()
  1665. whatsapp.Interceptors[0] = whatsappMixinInters2[0]
  1666. whatsappMixinFields0 := whatsappMixin[0].Fields()
  1667. _ = whatsappMixinFields0
  1668. whatsappMixinFields1 := whatsappMixin[1].Fields()
  1669. _ = whatsappMixinFields1
  1670. whatsappFields := schema.Whatsapp{}.Fields()
  1671. _ = whatsappFields
  1672. // whatsappDescCreatedAt is the schema descriptor for created_at field.
  1673. whatsappDescCreatedAt := whatsappMixinFields0[1].Descriptor()
  1674. // whatsapp.DefaultCreatedAt holds the default value on creation for the created_at field.
  1675. whatsapp.DefaultCreatedAt = whatsappDescCreatedAt.Default.(func() time.Time)
  1676. // whatsappDescUpdatedAt is the schema descriptor for updated_at field.
  1677. whatsappDescUpdatedAt := whatsappMixinFields0[2].Descriptor()
  1678. // whatsapp.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1679. whatsapp.DefaultUpdatedAt = whatsappDescUpdatedAt.Default.(func() time.Time)
  1680. // whatsapp.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1681. whatsapp.UpdateDefaultUpdatedAt = whatsappDescUpdatedAt.UpdateDefault.(func() time.Time)
  1682. // whatsappDescStatus is the schema descriptor for status field.
  1683. whatsappDescStatus := whatsappMixinFields1[0].Descriptor()
  1684. // whatsapp.DefaultStatus holds the default value on creation for the status field.
  1685. whatsapp.DefaultStatus = whatsappDescStatus.Default.(uint8)
  1686. // whatsappDescWaID is the schema descriptor for wa_id field.
  1687. whatsappDescWaID := whatsappFields[0].Descriptor()
  1688. // whatsapp.DefaultWaID holds the default value on creation for the wa_id field.
  1689. whatsapp.DefaultWaID = whatsappDescWaID.Default.(string)
  1690. // whatsappDescWaName is the schema descriptor for wa_name field.
  1691. whatsappDescWaName := whatsappFields[1].Descriptor()
  1692. // whatsapp.DefaultWaName holds the default value on creation for the wa_name field.
  1693. whatsapp.DefaultWaName = whatsappDescWaName.Default.(string)
  1694. // whatsappDescCallback is the schema descriptor for callback field.
  1695. whatsappDescCallback := whatsappFields[2].Descriptor()
  1696. // whatsapp.DefaultCallback holds the default value on creation for the callback field.
  1697. whatsapp.DefaultCallback = whatsappDescCallback.Default.(string)
  1698. // whatsappDescAgentID is the schema descriptor for agent_id field.
  1699. whatsappDescAgentID := whatsappFields[3].Descriptor()
  1700. // whatsapp.DefaultAgentID holds the default value on creation for the agent_id field.
  1701. whatsapp.DefaultAgentID = whatsappDescAgentID.Default.(uint64)
  1702. // whatsappDescAccount is the schema descriptor for account field.
  1703. whatsappDescAccount := whatsappFields[4].Descriptor()
  1704. // whatsapp.DefaultAccount holds the default value on creation for the account field.
  1705. whatsapp.DefaultAccount = whatsappDescAccount.Default.(string)
  1706. // whatsappDescCc is the schema descriptor for cc field.
  1707. whatsappDescCc := whatsappFields[5].Descriptor()
  1708. // whatsapp.DefaultCc holds the default value on creation for the cc field.
  1709. whatsapp.DefaultCc = whatsappDescCc.Default.(string)
  1710. // whatsappDescPhone is the schema descriptor for phone field.
  1711. whatsappDescPhone := whatsappFields[6].Descriptor()
  1712. // whatsapp.DefaultPhone holds the default value on creation for the phone field.
  1713. whatsapp.DefaultPhone = whatsappDescPhone.Default.(string)
  1714. // whatsappDescCcPhone is the schema descriptor for cc_phone field.
  1715. whatsappDescCcPhone := whatsappFields[7].Descriptor()
  1716. // whatsapp.DefaultCcPhone holds the default value on creation for the cc_phone field.
  1717. whatsapp.DefaultCcPhone = whatsappDescCcPhone.Default.(string)
  1718. // whatsappDescPhoneName is the schema descriptor for phone_name field.
  1719. whatsappDescPhoneName := whatsappFields[8].Descriptor()
  1720. // whatsapp.DefaultPhoneName holds the default value on creation for the phone_name field.
  1721. whatsapp.DefaultPhoneName = whatsappDescPhoneName.Default.(string)
  1722. // whatsappDescPhoneStatus is the schema descriptor for phone_status field.
  1723. whatsappDescPhoneStatus := whatsappFields[9].Descriptor()
  1724. // whatsapp.DefaultPhoneStatus holds the default value on creation for the phone_status field.
  1725. whatsapp.DefaultPhoneStatus = whatsappDescPhoneStatus.Default.(int8)
  1726. // whatsappDescOrganizationID is the schema descriptor for organization_id field.
  1727. whatsappDescOrganizationID := whatsappFields[10].Descriptor()
  1728. // whatsapp.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1729. whatsapp.DefaultOrganizationID = whatsappDescOrganizationID.Default.(uint64)
  1730. // whatsappDescAPIBase is the schema descriptor for api_base field.
  1731. whatsappDescAPIBase := whatsappFields[11].Descriptor()
  1732. // whatsapp.DefaultAPIBase holds the default value on creation for the api_base field.
  1733. whatsapp.DefaultAPIBase = whatsappDescAPIBase.Default.(string)
  1734. // whatsappDescAPIKey is the schema descriptor for api_key field.
  1735. whatsappDescAPIKey := whatsappFields[12].Descriptor()
  1736. // whatsapp.DefaultAPIKey holds the default value on creation for the api_key field.
  1737. whatsapp.DefaultAPIKey = whatsappDescAPIKey.Default.(string)
  1738. whatsappchannelMixin := schema.WhatsappChannel{}.Mixin()
  1739. whatsappchannelMixinHooks2 := whatsappchannelMixin[2].Hooks()
  1740. whatsappchannel.Hooks[0] = whatsappchannelMixinHooks2[0]
  1741. whatsappchannelMixinInters2 := whatsappchannelMixin[2].Interceptors()
  1742. whatsappchannel.Interceptors[0] = whatsappchannelMixinInters2[0]
  1743. whatsappchannelMixinFields0 := whatsappchannelMixin[0].Fields()
  1744. _ = whatsappchannelMixinFields0
  1745. whatsappchannelMixinFields1 := whatsappchannelMixin[1].Fields()
  1746. _ = whatsappchannelMixinFields1
  1747. whatsappchannelFields := schema.WhatsappChannel{}.Fields()
  1748. _ = whatsappchannelFields
  1749. // whatsappchannelDescCreatedAt is the schema descriptor for created_at field.
  1750. whatsappchannelDescCreatedAt := whatsappchannelMixinFields0[1].Descriptor()
  1751. // whatsappchannel.DefaultCreatedAt holds the default value on creation for the created_at field.
  1752. whatsappchannel.DefaultCreatedAt = whatsappchannelDescCreatedAt.Default.(func() time.Time)
  1753. // whatsappchannelDescUpdatedAt is the schema descriptor for updated_at field.
  1754. whatsappchannelDescUpdatedAt := whatsappchannelMixinFields0[2].Descriptor()
  1755. // whatsappchannel.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1756. whatsappchannel.DefaultUpdatedAt = whatsappchannelDescUpdatedAt.Default.(func() time.Time)
  1757. // whatsappchannel.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1758. whatsappchannel.UpdateDefaultUpdatedAt = whatsappchannelDescUpdatedAt.UpdateDefault.(func() time.Time)
  1759. // whatsappchannelDescStatus is the schema descriptor for status field.
  1760. whatsappchannelDescStatus := whatsappchannelMixinFields1[0].Descriptor()
  1761. // whatsappchannel.DefaultStatus holds the default value on creation for the status field.
  1762. whatsappchannel.DefaultStatus = whatsappchannelDescStatus.Default.(uint8)
  1763. // whatsappchannelDescAk is the schema descriptor for ak field.
  1764. whatsappchannelDescAk := whatsappchannelFields[0].Descriptor()
  1765. // whatsappchannel.DefaultAk holds the default value on creation for the ak field.
  1766. whatsappchannel.DefaultAk = whatsappchannelDescAk.Default.(string)
  1767. // whatsappchannelDescSk is the schema descriptor for sk field.
  1768. whatsappchannelDescSk := whatsappchannelFields[1].Descriptor()
  1769. // whatsappchannel.DefaultSk holds the default value on creation for the sk field.
  1770. whatsappchannel.DefaultSk = whatsappchannelDescSk.Default.(string)
  1771. // whatsappchannelDescWaID is the schema descriptor for wa_id field.
  1772. whatsappchannelDescWaID := whatsappchannelFields[2].Descriptor()
  1773. // whatsappchannel.DefaultWaID holds the default value on creation for the wa_id field.
  1774. whatsappchannel.DefaultWaID = whatsappchannelDescWaID.Default.(string)
  1775. // whatsappchannelDescWaName is the schema descriptor for wa_name field.
  1776. whatsappchannelDescWaName := whatsappchannelFields[3].Descriptor()
  1777. // whatsappchannel.DefaultWaName holds the default value on creation for the wa_name field.
  1778. whatsappchannel.DefaultWaName = whatsappchannelDescWaName.Default.(string)
  1779. // whatsappchannelDescWabaID is the schema descriptor for waba_id field.
  1780. whatsappchannelDescWabaID := whatsappchannelFields[4].Descriptor()
  1781. // whatsappchannel.DefaultWabaID holds the default value on creation for the waba_id field.
  1782. whatsappchannel.DefaultWabaID = whatsappchannelDescWabaID.Default.(uint64)
  1783. // whatsappchannelDescBusinessID is the schema descriptor for business_id field.
  1784. whatsappchannelDescBusinessID := whatsappchannelFields[5].Descriptor()
  1785. // whatsappchannel.DefaultBusinessID holds the default value on creation for the business_id field.
  1786. whatsappchannel.DefaultBusinessID = whatsappchannelDescBusinessID.Default.(uint64)
  1787. // whatsappchannelDescOrganizationID is the schema descriptor for organization_id field.
  1788. whatsappchannelDescOrganizationID := whatsappchannelFields[6].Descriptor()
  1789. // whatsappchannel.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1790. whatsappchannel.DefaultOrganizationID = whatsappchannelDescOrganizationID.Default.(uint64)
  1791. // whatsappchannelDescVerifyAccount is the schema descriptor for verify_account field.
  1792. whatsappchannelDescVerifyAccount := whatsappchannelFields[7].Descriptor()
  1793. // whatsappchannel.DefaultVerifyAccount holds the default value on creation for the verify_account field.
  1794. whatsappchannel.DefaultVerifyAccount = whatsappchannelDescVerifyAccount.Default.(string)
  1795. workexperienceMixin := schema.WorkExperience{}.Mixin()
  1796. workexperienceMixinHooks1 := workexperienceMixin[1].Hooks()
  1797. workexperience.Hooks[0] = workexperienceMixinHooks1[0]
  1798. workexperienceMixinInters1 := workexperienceMixin[1].Interceptors()
  1799. workexperience.Interceptors[0] = workexperienceMixinInters1[0]
  1800. workexperienceMixinFields0 := workexperienceMixin[0].Fields()
  1801. _ = workexperienceMixinFields0
  1802. workexperienceFields := schema.WorkExperience{}.Fields()
  1803. _ = workexperienceFields
  1804. // workexperienceDescCreatedAt is the schema descriptor for created_at field.
  1805. workexperienceDescCreatedAt := workexperienceMixinFields0[1].Descriptor()
  1806. // workexperience.DefaultCreatedAt holds the default value on creation for the created_at field.
  1807. workexperience.DefaultCreatedAt = workexperienceDescCreatedAt.Default.(func() time.Time)
  1808. // workexperienceDescUpdatedAt is the schema descriptor for updated_at field.
  1809. workexperienceDescUpdatedAt := workexperienceMixinFields0[2].Descriptor()
  1810. // workexperience.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1811. workexperience.DefaultUpdatedAt = workexperienceDescUpdatedAt.Default.(func() time.Time)
  1812. // workexperience.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1813. workexperience.UpdateDefaultUpdatedAt = workexperienceDescUpdatedAt.UpdateDefault.(func() time.Time)
  1814. wpchatroomMixin := schema.WpChatroom{}.Mixin()
  1815. wpchatroomMixinFields0 := wpchatroomMixin[0].Fields()
  1816. _ = wpchatroomMixinFields0
  1817. wpchatroomMixinFields1 := wpchatroomMixin[1].Fields()
  1818. _ = wpchatroomMixinFields1
  1819. wpchatroomFields := schema.WpChatroom{}.Fields()
  1820. _ = wpchatroomFields
  1821. // wpchatroomDescCreatedAt is the schema descriptor for created_at field.
  1822. wpchatroomDescCreatedAt := wpchatroomMixinFields0[1].Descriptor()
  1823. // wpchatroom.DefaultCreatedAt holds the default value on creation for the created_at field.
  1824. wpchatroom.DefaultCreatedAt = wpchatroomDescCreatedAt.Default.(func() time.Time)
  1825. // wpchatroomDescUpdatedAt is the schema descriptor for updated_at field.
  1826. wpchatroomDescUpdatedAt := wpchatroomMixinFields0[2].Descriptor()
  1827. // wpchatroom.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1828. wpchatroom.DefaultUpdatedAt = wpchatroomDescUpdatedAt.Default.(func() time.Time)
  1829. // wpchatroom.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1830. wpchatroom.UpdateDefaultUpdatedAt = wpchatroomDescUpdatedAt.UpdateDefault.(func() time.Time)
  1831. // wpchatroomDescStatus is the schema descriptor for status field.
  1832. wpchatroomDescStatus := wpchatroomMixinFields1[0].Descriptor()
  1833. // wpchatroom.DefaultStatus holds the default value on creation for the status field.
  1834. wpchatroom.DefaultStatus = wpchatroomDescStatus.Default.(uint8)
  1835. // wpchatroomDescWxWxid is the schema descriptor for wx_wxid field.
  1836. wpchatroomDescWxWxid := wpchatroomFields[0].Descriptor()
  1837. // wpchatroom.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  1838. wpchatroom.DefaultWxWxid = wpchatroomDescWxWxid.Default.(string)
  1839. // wpchatroomDescChatroomID is the schema descriptor for chatroom_id field.
  1840. wpchatroomDescChatroomID := wpchatroomFields[1].Descriptor()
  1841. // wpchatroom.DefaultChatroomID holds the default value on creation for the chatroom_id field.
  1842. wpchatroom.DefaultChatroomID = wpchatroomDescChatroomID.Default.(string)
  1843. // wpchatroomDescNickname is the schema descriptor for nickname field.
  1844. wpchatroomDescNickname := wpchatroomFields[2].Descriptor()
  1845. // wpchatroom.DefaultNickname holds the default value on creation for the nickname field.
  1846. wpchatroom.DefaultNickname = wpchatroomDescNickname.Default.(string)
  1847. // wpchatroomDescOwner is the schema descriptor for owner field.
  1848. wpchatroomDescOwner := wpchatroomFields[3].Descriptor()
  1849. // wpchatroom.DefaultOwner holds the default value on creation for the owner field.
  1850. wpchatroom.DefaultOwner = wpchatroomDescOwner.Default.(string)
  1851. // wpchatroomDescAvatar is the schema descriptor for avatar field.
  1852. wpchatroomDescAvatar := wpchatroomFields[4].Descriptor()
  1853. // wpchatroom.DefaultAvatar holds the default value on creation for the avatar field.
  1854. wpchatroom.DefaultAvatar = wpchatroomDescAvatar.Default.(string)
  1855. wpchatroommemberMixin := schema.WpChatroomMember{}.Mixin()
  1856. wpchatroommemberMixinFields0 := wpchatroommemberMixin[0].Fields()
  1857. _ = wpchatroommemberMixinFields0
  1858. wpchatroommemberMixinFields1 := wpchatroommemberMixin[1].Fields()
  1859. _ = wpchatroommemberMixinFields1
  1860. wpchatroommemberFields := schema.WpChatroomMember{}.Fields()
  1861. _ = wpchatroommemberFields
  1862. // wpchatroommemberDescCreatedAt is the schema descriptor for created_at field.
  1863. wpchatroommemberDescCreatedAt := wpchatroommemberMixinFields0[1].Descriptor()
  1864. // wpchatroommember.DefaultCreatedAt holds the default value on creation for the created_at field.
  1865. wpchatroommember.DefaultCreatedAt = wpchatroommemberDescCreatedAt.Default.(func() time.Time)
  1866. // wpchatroommemberDescUpdatedAt is the schema descriptor for updated_at field.
  1867. wpchatroommemberDescUpdatedAt := wpchatroommemberMixinFields0[2].Descriptor()
  1868. // wpchatroommember.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1869. wpchatroommember.DefaultUpdatedAt = wpchatroommemberDescUpdatedAt.Default.(func() time.Time)
  1870. // wpchatroommember.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1871. wpchatroommember.UpdateDefaultUpdatedAt = wpchatroommemberDescUpdatedAt.UpdateDefault.(func() time.Time)
  1872. // wpchatroommemberDescStatus is the schema descriptor for status field.
  1873. wpchatroommemberDescStatus := wpchatroommemberMixinFields1[0].Descriptor()
  1874. // wpchatroommember.DefaultStatus holds the default value on creation for the status field.
  1875. wpchatroommember.DefaultStatus = wpchatroommemberDescStatus.Default.(uint8)
  1876. // wpchatroommemberDescWxWxid is the schema descriptor for wx_wxid field.
  1877. wpchatroommemberDescWxWxid := wpchatroommemberFields[0].Descriptor()
  1878. // wpchatroommember.DefaultWxWxid holds the default value on creation for the wx_wxid field.
  1879. wpchatroommember.DefaultWxWxid = wpchatroommemberDescWxWxid.Default.(string)
  1880. // wpchatroommemberDescWxid is the schema descriptor for wxid field.
  1881. wpchatroommemberDescWxid := wpchatroommemberFields[1].Descriptor()
  1882. // wpchatroommember.DefaultWxid holds the default value on creation for the wxid field.
  1883. wpchatroommember.DefaultWxid = wpchatroommemberDescWxid.Default.(string)
  1884. // wpchatroommemberDescNickname is the schema descriptor for nickname field.
  1885. wpchatroommemberDescNickname := wpchatroommemberFields[2].Descriptor()
  1886. // wpchatroommember.DefaultNickname holds the default value on creation for the nickname field.
  1887. wpchatroommember.DefaultNickname = wpchatroommemberDescNickname.Default.(string)
  1888. // wpchatroommemberDescAvatar is the schema descriptor for avatar field.
  1889. wpchatroommemberDescAvatar := wpchatroommemberFields[3].Descriptor()
  1890. // wpchatroommember.DefaultAvatar holds the default value on creation for the avatar field.
  1891. wpchatroommember.DefaultAvatar = wpchatroommemberDescAvatar.Default.(string)
  1892. wxMixin := schema.Wx{}.Mixin()
  1893. wxMixinHooks2 := wxMixin[2].Hooks()
  1894. wx.Hooks[0] = wxMixinHooks2[0]
  1895. wxMixinInters2 := wxMixin[2].Interceptors()
  1896. wx.Interceptors[0] = wxMixinInters2[0]
  1897. wxMixinFields0 := wxMixin[0].Fields()
  1898. _ = wxMixinFields0
  1899. wxMixinFields1 := wxMixin[1].Fields()
  1900. _ = wxMixinFields1
  1901. wxFields := schema.Wx{}.Fields()
  1902. _ = wxFields
  1903. // wxDescCreatedAt is the schema descriptor for created_at field.
  1904. wxDescCreatedAt := wxMixinFields0[1].Descriptor()
  1905. // wx.DefaultCreatedAt holds the default value on creation for the created_at field.
  1906. wx.DefaultCreatedAt = wxDescCreatedAt.Default.(func() time.Time)
  1907. // wxDescUpdatedAt is the schema descriptor for updated_at field.
  1908. wxDescUpdatedAt := wxMixinFields0[2].Descriptor()
  1909. // wx.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1910. wx.DefaultUpdatedAt = wxDescUpdatedAt.Default.(func() time.Time)
  1911. // wx.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1912. wx.UpdateDefaultUpdatedAt = wxDescUpdatedAt.UpdateDefault.(func() time.Time)
  1913. // wxDescStatus is the schema descriptor for status field.
  1914. wxDescStatus := wxMixinFields1[0].Descriptor()
  1915. // wx.DefaultStatus holds the default value on creation for the status field.
  1916. wx.DefaultStatus = wxDescStatus.Default.(uint8)
  1917. // wxDescServerID is the schema descriptor for server_id field.
  1918. wxDescServerID := wxFields[0].Descriptor()
  1919. // wx.DefaultServerID holds the default value on creation for the server_id field.
  1920. wx.DefaultServerID = wxDescServerID.Default.(uint64)
  1921. // wxDescPort is the schema descriptor for port field.
  1922. wxDescPort := wxFields[1].Descriptor()
  1923. // wx.DefaultPort holds the default value on creation for the port field.
  1924. wx.DefaultPort = wxDescPort.Default.(string)
  1925. // wxDescProcessID is the schema descriptor for process_id field.
  1926. wxDescProcessID := wxFields[2].Descriptor()
  1927. // wx.DefaultProcessID holds the default value on creation for the process_id field.
  1928. wx.DefaultProcessID = wxDescProcessID.Default.(string)
  1929. // wxDescCallback is the schema descriptor for callback field.
  1930. wxDescCallback := wxFields[3].Descriptor()
  1931. // wx.DefaultCallback holds the default value on creation for the callback field.
  1932. wx.DefaultCallback = wxDescCallback.Default.(string)
  1933. // wxDescWxid is the schema descriptor for wxid field.
  1934. wxDescWxid := wxFields[4].Descriptor()
  1935. // wx.DefaultWxid holds the default value on creation for the wxid field.
  1936. wx.DefaultWxid = wxDescWxid.Default.(string)
  1937. // wxDescAccount is the schema descriptor for account field.
  1938. wxDescAccount := wxFields[5].Descriptor()
  1939. // wx.DefaultAccount holds the default value on creation for the account field.
  1940. wx.DefaultAccount = wxDescAccount.Default.(string)
  1941. // wxDescNickname is the schema descriptor for nickname field.
  1942. wxDescNickname := wxFields[6].Descriptor()
  1943. // wx.DefaultNickname holds the default value on creation for the nickname field.
  1944. wx.DefaultNickname = wxDescNickname.Default.(string)
  1945. // wxDescTel is the schema descriptor for tel field.
  1946. wxDescTel := wxFields[7].Descriptor()
  1947. // wx.DefaultTel holds the default value on creation for the tel field.
  1948. wx.DefaultTel = wxDescTel.Default.(string)
  1949. // wxDescHeadBig is the schema descriptor for head_big field.
  1950. wxDescHeadBig := wxFields[8].Descriptor()
  1951. // wx.DefaultHeadBig holds the default value on creation for the head_big field.
  1952. wx.DefaultHeadBig = wxDescHeadBig.Default.(string)
  1953. // wxDescOrganizationID is the schema descriptor for organization_id field.
  1954. wxDescOrganizationID := wxFields[9].Descriptor()
  1955. // wx.DefaultOrganizationID holds the default value on creation for the organization_id field.
  1956. wx.DefaultOrganizationID = wxDescOrganizationID.Default.(uint64)
  1957. // wxDescAgentID is the schema descriptor for agent_id field.
  1958. wxDescAgentID := wxFields[10].Descriptor()
  1959. // wx.DefaultAgentID holds the default value on creation for the agent_id field.
  1960. wx.DefaultAgentID = wxDescAgentID.Default.(uint64)
  1961. // wxDescAPIBase is the schema descriptor for api_base field.
  1962. wxDescAPIBase := wxFields[11].Descriptor()
  1963. // wx.DefaultAPIBase holds the default value on creation for the api_base field.
  1964. wx.DefaultAPIBase = wxDescAPIBase.Default.(string)
  1965. // wxDescAPIKey is the schema descriptor for api_key field.
  1966. wxDescAPIKey := wxFields[12].Descriptor()
  1967. // wx.DefaultAPIKey holds the default value on creation for the api_key field.
  1968. wx.DefaultAPIKey = wxDescAPIKey.Default.(string)
  1969. // wxDescCtype is the schema descriptor for ctype field.
  1970. wxDescCtype := wxFields[17].Descriptor()
  1971. // wx.DefaultCtype holds the default value on creation for the ctype field.
  1972. wx.DefaultCtype = wxDescCtype.Default.(uint64)
  1973. wxcardMixin := schema.WxCard{}.Mixin()
  1974. wxcardMixinHooks1 := wxcardMixin[1].Hooks()
  1975. wxcard.Hooks[0] = wxcardMixinHooks1[0]
  1976. wxcardMixinInters1 := wxcardMixin[1].Interceptors()
  1977. wxcard.Interceptors[0] = wxcardMixinInters1[0]
  1978. wxcardMixinFields0 := wxcardMixin[0].Fields()
  1979. _ = wxcardMixinFields0
  1980. wxcardFields := schema.WxCard{}.Fields()
  1981. _ = wxcardFields
  1982. // wxcardDescCreatedAt is the schema descriptor for created_at field.
  1983. wxcardDescCreatedAt := wxcardMixinFields0[1].Descriptor()
  1984. // wxcard.DefaultCreatedAt holds the default value on creation for the created_at field.
  1985. wxcard.DefaultCreatedAt = wxcardDescCreatedAt.Default.(func() time.Time)
  1986. // wxcardDescUpdatedAt is the schema descriptor for updated_at field.
  1987. wxcardDescUpdatedAt := wxcardMixinFields0[2].Descriptor()
  1988. // wxcard.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  1989. wxcard.DefaultUpdatedAt = wxcardDescUpdatedAt.Default.(func() time.Time)
  1990. // wxcard.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  1991. wxcard.UpdateDefaultUpdatedAt = wxcardDescUpdatedAt.UpdateDefault.(func() time.Time)
  1992. // wxcardDescUserID is the schema descriptor for user_id field.
  1993. wxcardDescUserID := wxcardFields[0].Descriptor()
  1994. // wxcard.DefaultUserID holds the default value on creation for the user_id field.
  1995. wxcard.DefaultUserID = wxcardDescUserID.Default.(uint64)
  1996. // wxcardDescWxUserID is the schema descriptor for wx_user_id field.
  1997. wxcardDescWxUserID := wxcardFields[1].Descriptor()
  1998. // wxcard.DefaultWxUserID holds the default value on creation for the wx_user_id field.
  1999. wxcard.DefaultWxUserID = wxcardDescWxUserID.Default.(uint64)
  2000. // wxcardDescAvatar is the schema descriptor for avatar field.
  2001. wxcardDescAvatar := wxcardFields[2].Descriptor()
  2002. // wxcard.DefaultAvatar holds the default value on creation for the avatar field.
  2003. wxcard.DefaultAvatar = wxcardDescAvatar.Default.(string)
  2004. // wxcardDescLogo is the schema descriptor for logo field.
  2005. wxcardDescLogo := wxcardFields[3].Descriptor()
  2006. // wxcard.DefaultLogo holds the default value on creation for the logo field.
  2007. wxcard.DefaultLogo = wxcardDescLogo.Default.(string)
  2008. // wxcardDescName is the schema descriptor for name field.
  2009. wxcardDescName := wxcardFields[4].Descriptor()
  2010. // wxcard.DefaultName holds the default value on creation for the name field.
  2011. wxcard.DefaultName = wxcardDescName.Default.(string)
  2012. // wxcardDescCompany is the schema descriptor for company field.
  2013. wxcardDescCompany := wxcardFields[5].Descriptor()
  2014. // wxcard.DefaultCompany holds the default value on creation for the company field.
  2015. wxcard.DefaultCompany = wxcardDescCompany.Default.(string)
  2016. // wxcardDescAddress is the schema descriptor for address field.
  2017. wxcardDescAddress := wxcardFields[6].Descriptor()
  2018. // wxcard.DefaultAddress holds the default value on creation for the address field.
  2019. wxcard.DefaultAddress = wxcardDescAddress.Default.(string)
  2020. // wxcardDescPhone is the schema descriptor for phone field.
  2021. wxcardDescPhone := wxcardFields[7].Descriptor()
  2022. // wxcard.DefaultPhone holds the default value on creation for the phone field.
  2023. wxcard.DefaultPhone = wxcardDescPhone.Default.(string)
  2024. // wxcardDescOfficialAccount is the schema descriptor for official_account field.
  2025. wxcardDescOfficialAccount := wxcardFields[8].Descriptor()
  2026. // wxcard.DefaultOfficialAccount holds the default value on creation for the official_account field.
  2027. wxcard.DefaultOfficialAccount = wxcardDescOfficialAccount.Default.(string)
  2028. // wxcardDescWechatAccount is the schema descriptor for wechat_account field.
  2029. wxcardDescWechatAccount := wxcardFields[9].Descriptor()
  2030. // wxcard.DefaultWechatAccount holds the default value on creation for the wechat_account field.
  2031. wxcard.DefaultWechatAccount = wxcardDescWechatAccount.Default.(string)
  2032. // wxcardDescEmail is the schema descriptor for email field.
  2033. wxcardDescEmail := wxcardFields[10].Descriptor()
  2034. // wxcard.DefaultEmail holds the default value on creation for the email field.
  2035. wxcard.DefaultEmail = wxcardDescEmail.Default.(string)
  2036. // wxcardDescIntro is the schema descriptor for intro field.
  2037. wxcardDescIntro := wxcardFields[14].Descriptor()
  2038. // wxcard.DefaultIntro holds the default value on creation for the intro field.
  2039. wxcard.DefaultIntro = wxcardDescIntro.Default.(string)
  2040. wxcarduserMixin := schema.WxCardUser{}.Mixin()
  2041. wxcarduserMixinHooks1 := wxcarduserMixin[1].Hooks()
  2042. wxcarduser.Hooks[0] = wxcarduserMixinHooks1[0]
  2043. wxcarduserMixinInters1 := wxcarduserMixin[1].Interceptors()
  2044. wxcarduser.Interceptors[0] = wxcarduserMixinInters1[0]
  2045. wxcarduserMixinFields0 := wxcarduserMixin[0].Fields()
  2046. _ = wxcarduserMixinFields0
  2047. wxcarduserFields := schema.WxCardUser{}.Fields()
  2048. _ = wxcarduserFields
  2049. // wxcarduserDescCreatedAt is the schema descriptor for created_at field.
  2050. wxcarduserDescCreatedAt := wxcarduserMixinFields0[1].Descriptor()
  2051. // wxcarduser.DefaultCreatedAt holds the default value on creation for the created_at field.
  2052. wxcarduser.DefaultCreatedAt = wxcarduserDescCreatedAt.Default.(func() time.Time)
  2053. // wxcarduserDescUpdatedAt is the schema descriptor for updated_at field.
  2054. wxcarduserDescUpdatedAt := wxcarduserMixinFields0[2].Descriptor()
  2055. // wxcarduser.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  2056. wxcarduser.DefaultUpdatedAt = wxcarduserDescUpdatedAt.Default.(func() time.Time)
  2057. // wxcarduser.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  2058. wxcarduser.UpdateDefaultUpdatedAt = wxcarduserDescUpdatedAt.UpdateDefault.(func() time.Time)
  2059. // wxcarduserDescWxid is the schema descriptor for wxid field.
  2060. wxcarduserDescWxid := wxcarduserFields[0].Descriptor()
  2061. // wxcarduser.DefaultWxid holds the default value on creation for the wxid field.
  2062. wxcarduser.DefaultWxid = wxcarduserDescWxid.Default.(string)
  2063. // wxcarduserDescAccount is the schema descriptor for account field.
  2064. wxcarduserDescAccount := wxcarduserFields[1].Descriptor()
  2065. // wxcarduser.DefaultAccount holds the default value on creation for the account field.
  2066. wxcarduser.DefaultAccount = wxcarduserDescAccount.Default.(string)
  2067. // wxcarduserDescAvatar is the schema descriptor for avatar field.
  2068. wxcarduserDescAvatar := wxcarduserFields[2].Descriptor()
  2069. // wxcarduser.DefaultAvatar holds the default value on creation for the avatar field.
  2070. wxcarduser.DefaultAvatar = wxcarduserDescAvatar.Default.(string)
  2071. // wxcarduserDescNickname is the schema descriptor for nickname field.
  2072. wxcarduserDescNickname := wxcarduserFields[3].Descriptor()
  2073. // wxcarduser.DefaultNickname holds the default value on creation for the nickname field.
  2074. wxcarduser.DefaultNickname = wxcarduserDescNickname.Default.(string)
  2075. // wxcarduserDescRemark is the schema descriptor for remark field.
  2076. wxcarduserDescRemark := wxcarduserFields[4].Descriptor()
  2077. // wxcarduser.DefaultRemark holds the default value on creation for the remark field.
  2078. wxcarduser.DefaultRemark = wxcarduserDescRemark.Default.(string)
  2079. // wxcarduserDescPhone is the schema descriptor for phone field.
  2080. wxcarduserDescPhone := wxcarduserFields[5].Descriptor()
  2081. // wxcarduser.DefaultPhone holds the default value on creation for the phone field.
  2082. wxcarduser.DefaultPhone = wxcarduserDescPhone.Default.(string)
  2083. // wxcarduserDescOpenID is the schema descriptor for open_id field.
  2084. wxcarduserDescOpenID := wxcarduserFields[6].Descriptor()
  2085. // wxcarduser.DefaultOpenID holds the default value on creation for the open_id field.
  2086. wxcarduser.DefaultOpenID = wxcarduserDescOpenID.Default.(string)
  2087. // wxcarduserDescUnionID is the schema descriptor for union_id field.
  2088. wxcarduserDescUnionID := wxcarduserFields[7].Descriptor()
  2089. // wxcarduser.DefaultUnionID holds the default value on creation for the union_id field.
  2090. wxcarduser.DefaultUnionID = wxcarduserDescUnionID.Default.(string)
  2091. // wxcarduserDescSessionKey is the schema descriptor for session_key field.
  2092. wxcarduserDescSessionKey := wxcarduserFields[8].Descriptor()
  2093. // wxcarduser.DefaultSessionKey holds the default value on creation for the session_key field.
  2094. wxcarduser.DefaultSessionKey = wxcarduserDescSessionKey.Default.(string)
  2095. // wxcarduserDescIsVip is the schema descriptor for is_vip field.
  2096. wxcarduserDescIsVip := wxcarduserFields[9].Descriptor()
  2097. // wxcarduser.DefaultIsVip holds the default value on creation for the is_vip field.
  2098. wxcarduser.DefaultIsVip = wxcarduserDescIsVip.Default.(int)
  2099. wxcardvisitMixin := schema.WxCardVisit{}.Mixin()
  2100. wxcardvisitMixinHooks1 := wxcardvisitMixin[1].Hooks()
  2101. wxcardvisit.Hooks[0] = wxcardvisitMixinHooks1[0]
  2102. wxcardvisitMixinInters1 := wxcardvisitMixin[1].Interceptors()
  2103. wxcardvisit.Interceptors[0] = wxcardvisitMixinInters1[0]
  2104. wxcardvisitMixinFields0 := wxcardvisitMixin[0].Fields()
  2105. _ = wxcardvisitMixinFields0
  2106. wxcardvisitFields := schema.WxCardVisit{}.Fields()
  2107. _ = wxcardvisitFields
  2108. // wxcardvisitDescCreatedAt is the schema descriptor for created_at field.
  2109. wxcardvisitDescCreatedAt := wxcardvisitMixinFields0[1].Descriptor()
  2110. // wxcardvisit.DefaultCreatedAt holds the default value on creation for the created_at field.
  2111. wxcardvisit.DefaultCreatedAt = wxcardvisitDescCreatedAt.Default.(func() time.Time)
  2112. // wxcardvisitDescUpdatedAt is the schema descriptor for updated_at field.
  2113. wxcardvisitDescUpdatedAt := wxcardvisitMixinFields0[2].Descriptor()
  2114. // wxcardvisit.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  2115. wxcardvisit.DefaultUpdatedAt = wxcardvisitDescUpdatedAt.Default.(func() time.Time)
  2116. // wxcardvisit.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  2117. wxcardvisit.UpdateDefaultUpdatedAt = wxcardvisitDescUpdatedAt.UpdateDefault.(func() time.Time)
  2118. // wxcardvisitDescUserID is the schema descriptor for user_id field.
  2119. wxcardvisitDescUserID := wxcardvisitFields[0].Descriptor()
  2120. // wxcardvisit.DefaultUserID holds the default value on creation for the user_id field.
  2121. wxcardvisit.DefaultUserID = wxcardvisitDescUserID.Default.(uint64)
  2122. // wxcardvisitDescBotID is the schema descriptor for bot_id field.
  2123. wxcardvisitDescBotID := wxcardvisitFields[1].Descriptor()
  2124. // wxcardvisit.DefaultBotID holds the default value on creation for the bot_id field.
  2125. wxcardvisit.DefaultBotID = wxcardvisitDescBotID.Default.(uint64)
  2126. // wxcardvisitDescBotType is the schema descriptor for bot_type field.
  2127. wxcardvisitDescBotType := wxcardvisitFields[2].Descriptor()
  2128. // wxcardvisit.DefaultBotType holds the default value on creation for the bot_type field.
  2129. wxcardvisit.DefaultBotType = wxcardvisitDescBotType.Default.(uint8)
  2130. xunjiMixin := schema.Xunji{}.Mixin()
  2131. xunjiMixinHooks2 := xunjiMixin[2].Hooks()
  2132. xunji.Hooks[0] = xunjiMixinHooks2[0]
  2133. xunjiMixinInters2 := xunjiMixin[2].Interceptors()
  2134. xunji.Interceptors[0] = xunjiMixinInters2[0]
  2135. xunjiMixinFields0 := xunjiMixin[0].Fields()
  2136. _ = xunjiMixinFields0
  2137. xunjiMixinFields1 := xunjiMixin[1].Fields()
  2138. _ = xunjiMixinFields1
  2139. xunjiFields := schema.Xunji{}.Fields()
  2140. _ = xunjiFields
  2141. // xunjiDescCreatedAt is the schema descriptor for created_at field.
  2142. xunjiDescCreatedAt := xunjiMixinFields0[1].Descriptor()
  2143. // xunji.DefaultCreatedAt holds the default value on creation for the created_at field.
  2144. xunji.DefaultCreatedAt = xunjiDescCreatedAt.Default.(func() time.Time)
  2145. // xunjiDescUpdatedAt is the schema descriptor for updated_at field.
  2146. xunjiDescUpdatedAt := xunjiMixinFields0[2].Descriptor()
  2147. // xunji.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  2148. xunji.DefaultUpdatedAt = xunjiDescUpdatedAt.Default.(func() time.Time)
  2149. // xunji.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  2150. xunji.UpdateDefaultUpdatedAt = xunjiDescUpdatedAt.UpdateDefault.(func() time.Time)
  2151. // xunjiDescStatus is the schema descriptor for status field.
  2152. xunjiDescStatus := xunjiMixinFields1[0].Descriptor()
  2153. // xunji.DefaultStatus holds the default value on creation for the status field.
  2154. xunji.DefaultStatus = xunjiDescStatus.Default.(uint8)
  2155. // xunjiDescOrganizationID is the schema descriptor for organization_id field.
  2156. xunjiDescOrganizationID := xunjiFields[4].Descriptor()
  2157. // xunji.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  2158. xunji.OrganizationIDValidator = xunjiDescOrganizationID.Validators[0].(func(uint64) error)
  2159. xunjiserviceMixin := schema.XunjiService{}.Mixin()
  2160. xunjiserviceMixinHooks2 := xunjiserviceMixin[2].Hooks()
  2161. xunjiservice.Hooks[0] = xunjiserviceMixinHooks2[0]
  2162. xunjiserviceMixinInters2 := xunjiserviceMixin[2].Interceptors()
  2163. xunjiservice.Interceptors[0] = xunjiserviceMixinInters2[0]
  2164. xunjiserviceMixinFields0 := xunjiserviceMixin[0].Fields()
  2165. _ = xunjiserviceMixinFields0
  2166. xunjiserviceMixinFields1 := xunjiserviceMixin[1].Fields()
  2167. _ = xunjiserviceMixinFields1
  2168. xunjiserviceFields := schema.XunjiService{}.Fields()
  2169. _ = xunjiserviceFields
  2170. // xunjiserviceDescCreatedAt is the schema descriptor for created_at field.
  2171. xunjiserviceDescCreatedAt := xunjiserviceMixinFields0[1].Descriptor()
  2172. // xunjiservice.DefaultCreatedAt holds the default value on creation for the created_at field.
  2173. xunjiservice.DefaultCreatedAt = xunjiserviceDescCreatedAt.Default.(func() time.Time)
  2174. // xunjiserviceDescUpdatedAt is the schema descriptor for updated_at field.
  2175. xunjiserviceDescUpdatedAt := xunjiserviceMixinFields0[2].Descriptor()
  2176. // xunjiservice.DefaultUpdatedAt holds the default value on creation for the updated_at field.
  2177. xunjiservice.DefaultUpdatedAt = xunjiserviceDescUpdatedAt.Default.(func() time.Time)
  2178. // xunjiservice.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
  2179. xunjiservice.UpdateDefaultUpdatedAt = xunjiserviceDescUpdatedAt.UpdateDefault.(func() time.Time)
  2180. // xunjiserviceDescStatus is the schema descriptor for status field.
  2181. xunjiserviceDescStatus := xunjiserviceMixinFields1[0].Descriptor()
  2182. // xunjiservice.DefaultStatus holds the default value on creation for the status field.
  2183. xunjiservice.DefaultStatus = xunjiserviceDescStatus.Default.(uint8)
  2184. // xunjiserviceDescAgentID is the schema descriptor for agent_id field.
  2185. xunjiserviceDescAgentID := xunjiserviceFields[1].Descriptor()
  2186. // xunjiservice.DefaultAgentID holds the default value on creation for the agent_id field.
  2187. xunjiservice.DefaultAgentID = xunjiserviceDescAgentID.Default.(uint64)
  2188. // xunjiserviceDescOrganizationID is the schema descriptor for organization_id field.
  2189. xunjiserviceDescOrganizationID := xunjiserviceFields[2].Descriptor()
  2190. // xunjiservice.OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save.
  2191. xunjiservice.OrganizationIDValidator = xunjiserviceDescOrganizationID.Validators[0].(func(uint64) error)
  2192. // xunjiserviceDescAPIBase is the schema descriptor for api_base field.
  2193. xunjiserviceDescAPIBase := xunjiserviceFields[4].Descriptor()
  2194. // xunjiservice.DefaultAPIBase holds the default value on creation for the api_base field.
  2195. xunjiservice.DefaultAPIBase = xunjiserviceDescAPIBase.Default.(string)
  2196. // xunjiserviceDescAPIKey is the schema descriptor for api_key field.
  2197. xunjiserviceDescAPIKey := xunjiserviceFields[5].Descriptor()
  2198. // xunjiservice.DefaultAPIKey holds the default value on creation for the api_key field.
  2199. xunjiservice.DefaultAPIKey = xunjiserviceDescAPIKey.Default.(string)
  2200. }
  2201. const (
  2202. Version = "v0.13.1" // Version of ent codegen.
  2203. Sum = "h1:uD8QwN1h6SNphdCCzmkMN3feSUzNnVvV/WIkHKMbzOE=" // Sum of ent codegen.
  2204. )