runtime.go 124 KB

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