runtime.go 129 KB

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