runtime.go 134 KB

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