runtime.go 143 KB

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