runtime.go 116 KB

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