runtime.go 119 KB

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