runtime.go 93 KB

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