models.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913
  1. // Code generated by sqlc. DO NOT EDIT.
  2. // versions:
  3. // sqlc v1.18.0
  4. package queries
  5. import (
  6. "database/sql"
  7. "time"
  8. "github.com/google/uuid"
  9. "github.com/tabbed/pqtype"
  10. )
  11. type Allowlist struct {
  12. ID int64
  13. CreatedAt sql.NullTime
  14. UpdatedAt sql.NullTime
  15. DeletedAt sql.NullTime
  16. UserEmail string
  17. }
  18. type ApiContractRevision struct {
  19. ID uuid.UUID
  20. CreatedAt sql.NullTime
  21. UpdatedAt sql.NullTime
  22. DeletedAt sql.NullTime
  23. Base64Contract sql.NullString
  24. ClusterID sql.NullInt64
  25. ProjectID sql.NullInt64
  26. Condition sql.NullString
  27. ConditionMetadata pqtype.NullRawMessage
  28. }
  29. type ApiToken struct {
  30. ID int64
  31. CreatedAt sql.NullTime
  32. UpdatedAt sql.NullTime
  33. DeletedAt sql.NullTime
  34. UniqueID sql.NullString
  35. ProjectID sql.NullInt64
  36. CreatedByUserID sql.NullInt64
  37. Expiry sql.NullTime
  38. Revoked sql.NullBool
  39. PolicyUid sql.NullString
  40. PolicyName sql.NullString
  41. Name sql.NullString
  42. SecretKey []byte
  43. }
  44. type AuthCode struct {
  45. ID int64
  46. CreatedAt sql.NullTime
  47. UpdatedAt sql.NullTime
  48. DeletedAt sql.NullTime
  49. Token sql.NullString
  50. AuthorizationCode sql.NullString
  51. Expiry sql.NullTime
  52. }
  53. type AwsAssumeRoleChain struct {
  54. ID uuid.UUID
  55. CreatedAt sql.NullTime
  56. UpdatedAt sql.NullTime
  57. DeletedAt sql.NullTime
  58. ProjectID sql.NullInt64
  59. SourceArn sql.NullString
  60. TargetArn sql.NullString
  61. ExternalID sql.NullString
  62. }
  63. type AwsIntegration struct {
  64. ID int64
  65. CreatedAt sql.NullTime
  66. UpdatedAt sql.NullTime
  67. DeletedAt sql.NullTime
  68. UserID sql.NullInt64
  69. ProjectID sql.NullInt64
  70. AwsArn sql.NullString
  71. AwsRegion sql.NullString
  72. AwsAssumeRoleArn sql.NullString
  73. AwsClusterID []byte
  74. AwsAccessKeyID []byte
  75. AwsSecretAccessKey []byte
  76. AwsSessionToken []byte
  77. }
  78. type AzureIntegration struct {
  79. ID int64
  80. CreatedAt sql.NullTime
  81. UpdatedAt sql.NullTime
  82. DeletedAt sql.NullTime
  83. UserID sql.NullInt64
  84. ProjectID sql.NullInt64
  85. AzureClientID sql.NullString
  86. AzureSubscriptionID sql.NullString
  87. AzureTenantID sql.NullString
  88. AcrTokenName sql.NullString
  89. AcrResourceGroupName sql.NullString
  90. AcrName sql.NullString
  91. ServicePrincipalSecret []byte
  92. AcrPassword1 []byte
  93. AcrPassword2 []byte
  94. AksPassword []byte
  95. }
  96. type BasicIntegration struct {
  97. ID int64
  98. CreatedAt sql.NullTime
  99. UpdatedAt sql.NullTime
  100. DeletedAt sql.NullTime
  101. UserID sql.NullInt64
  102. ProjectID sql.NullInt64
  103. Username []byte
  104. Password []byte
  105. }
  106. type BuildConfig struct {
  107. ID int64
  108. CreatedAt sql.NullTime
  109. UpdatedAt sql.NullTime
  110. DeletedAt sql.NullTime
  111. Name sql.NullString
  112. Builder sql.NullString
  113. Buildpacks sql.NullString
  114. Config []byte
  115. }
  116. type Cluster struct {
  117. ID int64
  118. CreatedAt sql.NullTime
  119. UpdatedAt sql.NullTime
  120. DeletedAt sql.NullTime
  121. AuthMechanism sql.NullString
  122. ProjectID sql.NullInt64
  123. AgentIntegrationEnabled sql.NullBool
  124. Name sql.NullString
  125. VanityName sql.NullString
  126. Server sql.NullString
  127. ClusterLocationOfOrigin sql.NullString
  128. TlsServerName sql.NullString
  129. InsecureSkipTlsVerify sql.NullBool
  130. ProxyUrl sql.NullString
  131. UserLocationOfOrigin sql.NullString
  132. UserImpersonate sql.NullString
  133. UserImpersonateGroups sql.NullString
  134. InfraID sql.NullInt64
  135. NotificationsDisabled sql.NullBool
  136. PreviewEnvsEnabled sql.NullBool
  137. AwsClusterID sql.NullString
  138. Status sql.NullString
  139. ProvisionedBy sql.NullString
  140. CloudProvider sql.NullString
  141. CloudProviderCredentialIdentifier sql.NullString
  142. KubeIntegrationID sql.NullInt64
  143. OIDCIntegrationID sql.NullInt64
  144. GcpIntegrationID sql.NullInt64
  145. AwsIntegrationID sql.NullInt64
  146. DoIntegrationID sql.NullInt64
  147. AzureIntegrationID sql.NullInt64
  148. TokenCacheID sql.NullInt64
  149. CertificateAuthorityData []byte
  150. MonitorHelmReleases sql.NullBool
  151. }
  152. type ClusterCandidate struct {
  153. ID int64
  154. CreatedAt sql.NullTime
  155. UpdatedAt sql.NullTime
  156. DeletedAt sql.NullTime
  157. AuthMechanism sql.NullString
  158. ProjectID sql.NullInt64
  159. CreatedClusterID sql.NullInt64
  160. Name sql.NullString
  161. Server sql.NullString
  162. ContextName sql.NullString
  163. AwsClusterIDGuess []byte
  164. Kubeconfig []byte
  165. }
  166. type ClusterResolver struct {
  167. ID int64
  168. CreatedAt sql.NullTime
  169. UpdatedAt sql.NullTime
  170. DeletedAt sql.NullTime
  171. ClusterCandidateID sql.NullInt64
  172. Name sql.NullString
  173. Resolved sql.NullBool
  174. Data []byte
  175. }
  176. type ClusterTokenCach struct {
  177. ID int64
  178. CreatedAt sql.NullTime
  179. UpdatedAt sql.NullTime
  180. DeletedAt sql.NullTime
  181. Expiry sql.NullTime
  182. Token []byte
  183. ClusterID sql.NullInt64
  184. }
  185. type CredentialsExchangeToken struct {
  186. ID int64
  187. CreatedAt sql.NullTime
  188. UpdatedAt sql.NullTime
  189. DeletedAt sql.NullTime
  190. ProjectID sql.NullInt64
  191. Token []byte
  192. Expiry sql.NullTime
  193. DoCredentialID sql.NullInt64
  194. AwsCredentialID sql.NullInt64
  195. GcpCredentialID sql.NullInt64
  196. AzureCredentialID sql.NullInt64
  197. }
  198. type Database struct {
  199. ID int64
  200. CreatedAt sql.NullTime
  201. UpdatedAt sql.NullTime
  202. DeletedAt sql.NullTime
  203. ProjectID sql.NullInt64
  204. ClusterID sql.NullInt64
  205. InfraID sql.NullInt64
  206. InstanceID sql.NullString
  207. InstanceEndpoint sql.NullString
  208. InstanceName sql.NullString
  209. Status sql.NullString
  210. }
  211. type DbMigration struct {
  212. ID int64
  213. CreatedAt sql.NullTime
  214. UpdatedAt sql.NullTime
  215. DeletedAt sql.NullTime
  216. Version sql.NullInt64
  217. }
  218. type Deployment struct {
  219. ID int64
  220. CreatedAt sql.NullTime
  221. UpdatedAt sql.NullTime
  222. DeletedAt sql.NullTime
  223. EnvironmentID sql.NullInt64
  224. Namespace sql.NullString
  225. Status sql.NullString
  226. Subdomain sql.NullString
  227. PullRequestID sql.NullInt64
  228. GhDeploymentID sql.NullInt64
  229. GhprCommentID sql.NullInt64
  230. PrName sql.NullString
  231. RepoName sql.NullString
  232. RepoOwner sql.NullString
  233. CommitSha sql.NullString
  234. PrBranchFrom sql.NullString
  235. PrBranchInto sql.NullString
  236. LastErrors sql.NullString
  237. }
  238. type DnsRecord struct {
  239. ID int64
  240. CreatedAt sql.NullTime
  241. UpdatedAt sql.NullTime
  242. DeletedAt sql.NullTime
  243. SubdomainPrefix sql.NullString
  244. RootDomain sql.NullString
  245. Endpoint sql.NullString
  246. Hostname sql.NullString
  247. ClusterID sql.NullInt64
  248. }
  249. type Environment struct {
  250. ID int64
  251. CreatedAt sql.NullTime
  252. UpdatedAt sql.NullTime
  253. DeletedAt sql.NullTime
  254. ProjectID sql.NullInt64
  255. ClusterID sql.NullInt64
  256. GitInstallationID sql.NullInt64
  257. GitRepoOwner sql.NullString
  258. GitRepoName sql.NullString
  259. GitRepoBranches sql.NullString
  260. Name sql.NullString
  261. Mode sql.NullString
  262. NewCommentsDisabled sql.NullBool
  263. NamespaceLabels []byte
  264. NamespaceAnnotations []byte
  265. GitDeployBranches sql.NullString
  266. WebhookID sql.NullString
  267. GithubWebhookID sql.NullInt64
  268. }
  269. type EventContainer struct {
  270. ID int64
  271. CreatedAt sql.NullTime
  272. UpdatedAt sql.NullTime
  273. DeletedAt sql.NullTime
  274. ReleaseID sql.NullInt64
  275. }
  276. type GcpIntegration struct {
  277. ID int64
  278. CreatedAt sql.NullTime
  279. UpdatedAt sql.NullTime
  280. DeletedAt sql.NullTime
  281. UserID sql.NullInt64
  282. ProjectID sql.NullInt64
  283. GcpProjectID sql.NullString
  284. GcpsaEmail sql.NullString
  285. GCpuserEmail sql.NullString
  286. GcpRegion sql.NullString
  287. GcpKeyData []byte
  288. }
  289. type GitActionConfig struct {
  290. ID int64
  291. CreatedAt sql.NullTime
  292. UpdatedAt sql.NullTime
  293. DeletedAt sql.NullTime
  294. ReleaseID sql.NullInt64
  295. GitRepo sql.NullString
  296. GitBranch sql.NullString
  297. ImageRepoUri sql.NullString
  298. GithubInstallationID sql.NullInt64
  299. GitRepoID sql.NullInt64
  300. GitlabIntegrationID sql.NullInt64
  301. DockerfilePath sql.NullString
  302. FolderPath sql.NullString
  303. IsInstallation sql.NullBool
  304. Version sql.NullString
  305. }
  306. type GitRepo struct {
  307. ID int64
  308. CreatedAt sql.NullTime
  309. UpdatedAt sql.NullTime
  310. DeletedAt sql.NullTime
  311. ProjectID sql.NullInt64
  312. RepoEntity sql.NullString
  313. OAuthIntegrationID sql.NullInt64
  314. }
  315. type GithubAppInstallation struct {
  316. ID int64
  317. CreatedAt sql.NullTime
  318. UpdatedAt sql.NullTime
  319. DeletedAt sql.NullTime
  320. AccountID sql.NullInt64
  321. InstallationID sql.NullInt64
  322. }
  323. type GithubAppOAuthIntegration struct {
  324. ID int64
  325. CreatedAt sql.NullTime
  326. UpdatedAt sql.NullTime
  327. DeletedAt sql.NullTime
  328. ClientID []byte
  329. AccessToken []byte
  330. RefreshToken []byte
  331. Expiry sql.NullTime
  332. UserID sql.NullInt64
  333. }
  334. type GitlabAppOAuthIntegration struct {
  335. ID int64
  336. CreatedAt sql.NullTime
  337. UpdatedAt sql.NullTime
  338. DeletedAt sql.NullTime
  339. OAuthIntegrationID sql.NullInt64
  340. GitlabIntegrationID sql.NullInt64
  341. }
  342. type GitlabIntegration struct {
  343. ID int64
  344. CreatedAt sql.NullTime
  345. UpdatedAt sql.NullTime
  346. DeletedAt sql.NullTime
  347. ProjectID sql.NullInt64
  348. InstanceUrl sql.NullString
  349. AppClientID []byte
  350. AppClientSecret []byte
  351. }
  352. type HelmRepo struct {
  353. ID int64
  354. CreatedAt sql.NullTime
  355. UpdatedAt sql.NullTime
  356. DeletedAt sql.NullTime
  357. Name sql.NullString
  358. ProjectID sql.NullInt64
  359. RepoUrl sql.NullString
  360. BasicAuthIntegrationID sql.NullInt64
  361. GcpIntegrationID sql.NullInt64
  362. AwsIntegrationID sql.NullInt64
  363. }
  364. type HelmRepoTokenCach struct {
  365. ID int64
  366. CreatedAt sql.NullTime
  367. UpdatedAt sql.NullTime
  368. DeletedAt sql.NullTime
  369. Expiry sql.NullTime
  370. Token []byte
  371. HelmRepoID sql.NullInt64
  372. }
  373. type Infra struct {
  374. ID int64
  375. CreatedAt sql.NullTime
  376. UpdatedAt sql.NullTime
  377. DeletedAt sql.NullTime
  378. Kind sql.NullString
  379. ApiVersion sql.NullString
  380. SourceLink sql.NullString
  381. SourceVersion sql.NullString
  382. Suffix sql.NullString
  383. ProjectID sql.NullInt64
  384. CreatedByUserID sql.NullInt64
  385. ParentClusterID sql.NullInt64
  386. Status sql.NullString
  387. AwsIntegrationID sql.NullInt64
  388. AzureIntegrationID sql.NullInt64
  389. GcpIntegrationID sql.NullInt64
  390. DoIntegrationID sql.NullInt64
  391. DatabaseID sql.NullInt64
  392. LastApplied []byte
  393. }
  394. type Invite struct {
  395. ID int64
  396. CreatedAt sql.NullTime
  397. UpdatedAt sql.NullTime
  398. DeletedAt sql.NullTime
  399. Token sql.NullString
  400. Expiry sql.NullTime
  401. Email sql.NullString
  402. Kind sql.NullString
  403. ProjectID sql.NullInt64
  404. UserID sql.NullInt64
  405. }
  406. type JobNotificationConfig struct {
  407. ID int64
  408. CreatedAt sql.NullTime
  409. UpdatedAt sql.NullTime
  410. DeletedAt sql.NullTime
  411. Name sql.NullString
  412. Namespace sql.NullString
  413. ProjectID sql.NullInt64
  414. ClusterID sql.NullInt64
  415. LastNotifiedTime sql.NullTime
  416. }
  417. type KubeEvent struct {
  418. ID int64
  419. CreatedAt sql.NullTime
  420. UpdatedAt sql.NullTime
  421. DeletedAt sql.NullTime
  422. ProjectID sql.NullInt64
  423. ClusterID sql.NullInt64
  424. Name sql.NullString
  425. ResourceType sql.NullString
  426. OwnerType sql.NullString
  427. OwnerName sql.NullString
  428. Namespace sql.NullString
  429. }
  430. type KubeIntegration struct {
  431. ID int64
  432. CreatedAt sql.NullTime
  433. UpdatedAt sql.NullTime
  434. DeletedAt sql.NullTime
  435. Mechanism sql.NullString
  436. UserID sql.NullInt64
  437. ProjectID sql.NullInt64
  438. ClientCertificateData []byte
  439. ClientKeyData []byte
  440. Token []byte
  441. Username []byte
  442. Password []byte
  443. Kubeconfig []byte
  444. }
  445. type KubeSubEvent struct {
  446. ID int64
  447. CreatedAt sql.NullTime
  448. UpdatedAt sql.NullTime
  449. DeletedAt sql.NullTime
  450. KubeEventID sql.NullInt64
  451. Message sql.NullString
  452. Reason sql.NullString
  453. Timestamp sql.NullTime
  454. EventType sql.NullString
  455. }
  456. type MonitorTestResult struct {
  457. ID int64
  458. CreatedAt sql.NullTime
  459. UpdatedAt sql.NullTime
  460. DeletedAt sql.NullTime
  461. ProjectID sql.NullInt64
  462. ClusterID sql.NullInt64
  463. Category sql.NullString
  464. ObjectID sql.NullString
  465. LastStatusChange sql.NullTime
  466. LastTested sql.NullTime
  467. LastRunResult sql.NullString
  468. LastRunResultEnum sql.NullInt64
  469. LastRecommenderRunID sql.NullString
  470. Archived sql.NullBool
  471. Title sql.NullString
  472. Message sql.NullString
  473. Severity sql.NullString
  474. SeverityEnum sql.NullInt64
  475. }
  476. type NotificationConfig struct {
  477. ID int64
  478. CreatedAt sql.NullTime
  479. UpdatedAt sql.NullTime
  480. DeletedAt sql.NullTime
  481. Enabled sql.NullBool
  482. Success sql.NullBool
  483. Failure sql.NullBool
  484. LastNotifiedTime sql.NullTime
  485. NotifLimit sql.NullString
  486. }
  487. type OAuthIntegration struct {
  488. ID int64
  489. CreatedAt sql.NullTime
  490. UpdatedAt sql.NullTime
  491. DeletedAt sql.NullTime
  492. ClientID []byte
  493. AccessToken []byte
  494. RefreshToken []byte
  495. Expiry sql.NullTime
  496. Client sql.NullString
  497. UserID sql.NullInt64
  498. ProjectID sql.NullInt64
  499. TargetEmail sql.NullString
  500. TargetName sql.NullString
  501. }
  502. type OIDCIntegration struct {
  503. ID int64
  504. CreatedAt sql.NullTime
  505. UpdatedAt sql.NullTime
  506. DeletedAt sql.NullTime
  507. Client sql.NullString
  508. UserID sql.NullInt64
  509. ProjectID sql.NullInt64
  510. IssuerUrl []byte
  511. ClientID []byte
  512. ClientSecret []byte
  513. CertificateAuthorityData []byte
  514. IDToken []byte
  515. RefreshToken []byte
  516. }
  517. type Onboarding struct {
  518. ID int64
  519. CreatedAt sql.NullTime
  520. UpdatedAt sql.NullTime
  521. DeletedAt sql.NullTime
  522. ProjectID sql.NullInt64
  523. CurrentStep sql.NullString
  524. ConnectedSource sql.NullString
  525. SkipRegistryConnection sql.NullBool
  526. SkipResourceProvision sql.NullBool
  527. RegistryConnectionID sql.NullInt64
  528. RegistryConnectionCredentialID sql.NullInt64
  529. RegistryConnectionProvider sql.NullString
  530. RegistryInfraID sql.NullInt64
  531. RegistryInfraCredentialID sql.NullInt64
  532. RegistryInfraProvider sql.NullString
  533. ClusterInfraID sql.NullInt64
  534. ClusterInfraCredentialID sql.NullInt64
  535. ClusterInfraProvider sql.NullString
  536. }
  537. type Operation struct {
  538. ID int64
  539. CreatedAt sql.NullTime
  540. UpdatedAt sql.NullTime
  541. DeletedAt sql.NullTime
  542. Uid sql.NullString
  543. InfraID sql.NullInt64
  544. Type sql.NullString
  545. Status sql.NullString
  546. Errored sql.NullBool
  547. Error sql.NullString
  548. TemplateVersion sql.NullString
  549. LastApplied []byte
  550. }
  551. type Policy struct {
  552. ID int64
  553. CreatedAt sql.NullTime
  554. UpdatedAt sql.NullTime
  555. DeletedAt sql.NullTime
  556. UniqueID sql.NullString
  557. ProjectID sql.NullInt64
  558. CreatedByUserID sql.NullInt64
  559. Name sql.NullString
  560. PolicyBytes []byte
  561. }
  562. type PorterApp struct {
  563. ID int64
  564. CreatedAt sql.NullTime
  565. UpdatedAt sql.NullTime
  566. DeletedAt sql.NullTime
  567. ProjectID sql.NullInt64
  568. ClusterID sql.NullInt64
  569. Name sql.NullString
  570. ImageRepoUri sql.NullString
  571. GitRepoID sql.NullInt64
  572. RepoName sql.NullString
  573. GitBranch sql.NullString
  574. BuildContext sql.NullString
  575. Builder sql.NullString
  576. Buildpacks sql.NullString
  577. Dockerfile sql.NullString
  578. PullRequestUrl sql.NullString
  579. }
  580. type PorterAppRevision struct {
  581. ID uuid.UUID
  582. CreatedAt time.Time
  583. UpdatedAt time.Time
  584. DeletedAt sql.NullTime
  585. Base64Contract string
  586. ProjectID int64
  587. }
  588. type Project struct {
  589. ID int64
  590. CreatedAt sql.NullTime
  591. UpdatedAt sql.NullTime
  592. DeletedAt sql.NullTime
  593. Name sql.NullString
  594. ProjectUsageID sql.NullInt64
  595. ProjectUsageCacheID sql.NullInt64
  596. PreviewEnvsEnabled sql.NullBool
  597. RdsDatabasesEnabled sql.NullBool
  598. ManagedInfraEnabled sql.NullBool
  599. StacksEnabled sql.NullBool
  600. ApiTokensEnabled sql.NullBool
  601. CapiProvisionerEnabled sql.NullBool
  602. SimplifiedViewEnabled sql.NullBool
  603. }
  604. type ProjectBilling struct {
  605. ID int64
  606. CreatedAt sql.NullTime
  607. UpdatedAt sql.NullTime
  608. DeletedAt sql.NullTime
  609. ProjectID sql.NullInt64
  610. BillingTeamID sql.NullString
  611. }
  612. type ProjectUsage struct {
  613. ID int64
  614. CreatedAt sql.NullTime
  615. UpdatedAt sql.NullTime
  616. DeletedAt sql.NullTime
  617. ProjectID sql.NullInt64
  618. ResourceCpu sql.NullInt64
  619. ResourceMemory sql.NullInt64
  620. Clusters sql.NullInt64
  621. Users sql.NullInt64
  622. }
  623. type ProjectUsageCach struct {
  624. ID int64
  625. CreatedAt sql.NullTime
  626. UpdatedAt sql.NullTime
  627. DeletedAt sql.NullTime
  628. ProjectID sql.NullInt64
  629. ResourceCpu sql.NullInt64
  630. ResourceMemory sql.NullInt64
  631. Clusters sql.NullInt64
  632. Users sql.NullInt64
  633. Exceeded sql.NullBool
  634. ExceededSince sql.NullTime
  635. }
  636. type PwResetToken struct {
  637. ID int64
  638. CreatedAt sql.NullTime
  639. UpdatedAt sql.NullTime
  640. DeletedAt sql.NullTime
  641. Email sql.NullString
  642. IsValid sql.NullBool
  643. Expiry sql.NullTime
  644. Token sql.NullString
  645. }
  646. type RegTokenCach struct {
  647. ID int64
  648. CreatedAt sql.NullTime
  649. UpdatedAt sql.NullTime
  650. DeletedAt sql.NullTime
  651. Expiry sql.NullTime
  652. Token []byte
  653. RegistryID sql.NullInt64
  654. }
  655. type Registry struct {
  656. ID int64
  657. CreatedAt sql.NullTime
  658. UpdatedAt sql.NullTime
  659. DeletedAt sql.NullTime
  660. Name sql.NullString
  661. Url sql.NullString
  662. ProjectID sql.NullInt64
  663. InfraID sql.NullInt64
  664. GcpIntegrationID sql.NullInt64
  665. AwsIntegrationID sql.NullInt64
  666. AzureIntegrationID sql.NullInt64
  667. DoIntegrationID sql.NullInt64
  668. BasicIntegrationID sql.NullInt64
  669. }
  670. type Release struct {
  671. ID int64
  672. CreatedAt sql.NullTime
  673. UpdatedAt sql.NullTime
  674. DeletedAt sql.NullTime
  675. WebhookToken sql.NullString
  676. ClusterID sql.NullInt64
  677. ProjectID sql.NullInt64
  678. Name sql.NullString
  679. Namespace sql.NullString
  680. StackResourceID sql.NullInt64
  681. ImageRepoUri sql.NullString
  682. EventContainer sql.NullInt64
  683. NotificationConfig sql.NullInt64
  684. BuildConfig sql.NullInt64
  685. CanonicalName sql.NullString
  686. }
  687. type ReleaseTag struct {
  688. TagID int64
  689. ReleaseID int64
  690. }
  691. type Role struct {
  692. ID int64
  693. CreatedAt sql.NullTime
  694. UpdatedAt sql.NullTime
  695. DeletedAt sql.NullTime
  696. Kind sql.NullString
  697. UserID sql.NullInt64
  698. ProjectID sql.NullInt64
  699. }
  700. type Session struct {
  701. ID int64
  702. CreatedAt sql.NullTime
  703. UpdatedAt sql.NullTime
  704. DeletedAt sql.NullTime
  705. Key sql.NullString
  706. Data []byte
  707. ExpiresAt sql.NullTime
  708. }
  709. type SlackIntegration struct {
  710. ID int64
  711. CreatedAt sql.NullTime
  712. UpdatedAt sql.NullTime
  713. DeletedAt sql.NullTime
  714. ClientID []byte
  715. AccessToken []byte
  716. RefreshToken []byte
  717. Expiry sql.NullTime
  718. Client sql.NullString
  719. UserID sql.NullInt64
  720. ProjectID sql.NullInt64
  721. TeamID sql.NullString
  722. TeamName sql.NullString
  723. TeamIconUrl sql.NullString
  724. Channel sql.NullString
  725. ChannelID sql.NullString
  726. ConfigurationUrl sql.NullString
  727. Webhook []byte
  728. }
  729. type Stack struct {
  730. ID int64
  731. CreatedAt sql.NullTime
  732. UpdatedAt sql.NullTime
  733. DeletedAt sql.NullTime
  734. ProjectID sql.NullInt64
  735. ClusterID sql.NullInt64
  736. Namespace sql.NullString
  737. Name sql.NullString
  738. Uid sql.NullString
  739. }
  740. type StackEnvGroup struct {
  741. ID int64
  742. CreatedAt sql.NullTime
  743. UpdatedAt sql.NullTime
  744. DeletedAt sql.NullTime
  745. StackRevisionID sql.NullInt64
  746. Name sql.NullString
  747. Namespace sql.NullString
  748. ProjectID sql.NullInt64
  749. ClusterID sql.NullInt64
  750. Uid sql.NullString
  751. EnvGroupVersion sql.NullInt64
  752. }
  753. type StackResource struct {
  754. ID int64
  755. CreatedAt sql.NullTime
  756. UpdatedAt sql.NullTime
  757. DeletedAt sql.NullTime
  758. Name sql.NullString
  759. Uid sql.NullString
  760. StackRevisionID sql.NullInt64
  761. StackSourceConfigUid sql.NullString
  762. HelmRevisionID sql.NullInt64
  763. Values []byte
  764. TemplateRepoUrl sql.NullString
  765. TemplateName sql.NullString
  766. TemplateVersion sql.NullString
  767. }
  768. type StackRevision struct {
  769. ID int64
  770. CreatedAt sql.NullTime
  771. UpdatedAt sql.NullTime
  772. DeletedAt sql.NullTime
  773. RevisionNumber sql.NullInt64
  774. StackID sql.NullInt64
  775. Status sql.NullString
  776. Reason sql.NullString
  777. Message sql.NullString
  778. }
  779. type StackSourceConfig struct {
  780. ID int64
  781. CreatedAt sql.NullTime
  782. UpdatedAt sql.NullTime
  783. DeletedAt sql.NullTime
  784. StackRevisionID sql.NullInt64
  785. Name sql.NullString
  786. DisplayName sql.NullString
  787. Uid sql.NullString
  788. ImageRepoUri sql.NullString
  789. ImageTag sql.NullString
  790. }
  791. type SubEvent struct {
  792. ID int64
  793. CreatedAt sql.NullTime
  794. UpdatedAt sql.NullTime
  795. DeletedAt sql.NullTime
  796. EventContainerID sql.NullInt64
  797. EventID sql.NullString
  798. Name sql.NullString
  799. Index sql.NullInt64
  800. Status sql.NullInt64
  801. Info sql.NullString
  802. }
  803. type Tag struct {
  804. ID int64
  805. CreatedAt sql.NullTime
  806. UpdatedAt sql.NullTime
  807. DeletedAt sql.NullTime
  808. ProjectID sql.NullInt64
  809. Name sql.NullString
  810. Color sql.NullString
  811. }
  812. type TokenCach struct {
  813. ID int64
  814. CreatedAt sql.NullTime
  815. UpdatedAt sql.NullTime
  816. DeletedAt sql.NullTime
  817. Expiry sql.NullTime
  818. Token []byte
  819. }
  820. type User struct {
  821. ID int64
  822. CreatedAt sql.NullTime
  823. UpdatedAt sql.NullTime
  824. DeletedAt sql.NullTime
  825. Email sql.NullString
  826. Password sql.NullString
  827. EmailVerified sql.NullBool
  828. FirstName sql.NullString
  829. LastName sql.NullString
  830. CompanyName sql.NullString
  831. GithubAppIntegrationID sql.NullInt64
  832. GithubUserID sql.NullInt64
  833. GoogleUserID sql.NullString
  834. }
  835. type UserBilling struct {
  836. ID int64
  837. CreatedAt sql.NullTime
  838. UpdatedAt sql.NullTime
  839. DeletedAt sql.NullTime
  840. ProjectID sql.NullInt64
  841. UserID sql.NullInt64
  842. TeammateID sql.NullString
  843. Token []byte
  844. }