runtime.go 108 KB

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