tenseleyflow/shithub / d2d96f3

Browse files

regen sqlc cross-package models for rate_limits tables

Authored by espadonne
SHA
d2d96f33df6b649167c289b3d76972cd4584c4b1
Parents
08db487
Tree
1f9489c

13 changed files

StatusFile+-
M internal/admin/sqlc/models.go 13 0
M internal/auth/policy/sqlc/models.go 13 0
M internal/checks/sqlc/models.go 13 0
M internal/issues/sqlc/models.go 13 0
M internal/meta/sqlc/models.go 13 0
M internal/notif/sqlc/models.go 13 0
M internal/orgs/sqlc/models.go 13 0
M internal/pulls/sqlc/models.go 13 0
M internal/repos/sqlc/models.go 13 0
M internal/social/sqlc/models.go 13 0
M internal/users/sqlc/models.go 13 0
M internal/webhook/sqlc/models.go 13 0
M internal/worker/sqlc/models.go 13 0
internal/admin/sqlc/models.gomodified
@@ -1685,6 +1685,13 @@ type PushEvent struct {
16851685
 	CreatedAt    pgtype.Timestamptz
16861686
 }
16871687
 
1688
+type RateLimit struct {
1689
+	Scope           string
1690
+	Key             string
1691
+	Hits            int32
1692
+	WindowStartedAt pgtype.Timestamptz
1693
+}
1694
+
16881695
 type Repo struct {
16891696
 	ID                 int64
16901697
 	OwnerUserID        pgtype.Int8
@@ -1763,6 +1770,12 @@ type ReposSearch struct {
17631770
 	Tsv    interface{}
17641771
 }
17651772
 
1773
+type SignupIpThrottle struct {
1774
+	Cidr            netip.Addr
1775
+	Hits            int32
1776
+	WindowStartedAt pgtype.Timestamptz
1777
+}
1778
+
17661779
 type Star struct {
17671780
 	UserID    int64
17681781
 	RepoID    int64
internal/auth/policy/sqlc/models.gomodified
@@ -1685,6 +1685,13 @@ type PushEvent struct {
16851685
 	CreatedAt    pgtype.Timestamptz
16861686
 }
16871687
 
1688
+type RateLimit struct {
1689
+	Scope           string
1690
+	Key             string
1691
+	Hits            int32
1692
+	WindowStartedAt pgtype.Timestamptz
1693
+}
1694
+
16881695
 type Repo struct {
16891696
 	ID                 int64
16901697
 	OwnerUserID        pgtype.Int8
@@ -1763,6 +1770,12 @@ type ReposSearch struct {
17631770
 	Tsv    interface{}
17641771
 }
17651772
 
1773
+type SignupIpThrottle struct {
1774
+	Cidr            netip.Addr
1775
+	Hits            int32
1776
+	WindowStartedAt pgtype.Timestamptz
1777
+}
1778
+
17661779
 type Star struct {
17671780
 	UserID    int64
17681781
 	RepoID    int64
internal/checks/sqlc/models.gomodified
@@ -1685,6 +1685,13 @@ type PushEvent struct {
16851685
 	CreatedAt    pgtype.Timestamptz
16861686
 }
16871687
 
1688
+type RateLimit struct {
1689
+	Scope           string
1690
+	Key             string
1691
+	Hits            int32
1692
+	WindowStartedAt pgtype.Timestamptz
1693
+}
1694
+
16881695
 type Repo struct {
16891696
 	ID                 int64
16901697
 	OwnerUserID        pgtype.Int8
@@ -1763,6 +1770,12 @@ type ReposSearch struct {
17631770
 	Tsv    interface{}
17641771
 }
17651772
 
1773
+type SignupIpThrottle struct {
1774
+	Cidr            netip.Addr
1775
+	Hits            int32
1776
+	WindowStartedAt pgtype.Timestamptz
1777
+}
1778
+
17661779
 type Star struct {
17671780
 	UserID    int64
17681781
 	RepoID    int64
internal/issues/sqlc/models.gomodified
@@ -1685,6 +1685,13 @@ type PushEvent struct {
16851685
 	CreatedAt    pgtype.Timestamptz
16861686
 }
16871687
 
1688
+type RateLimit struct {
1689
+	Scope           string
1690
+	Key             string
1691
+	Hits            int32
1692
+	WindowStartedAt pgtype.Timestamptz
1693
+}
1694
+
16881695
 type Repo struct {
16891696
 	ID                 int64
16901697
 	OwnerUserID        pgtype.Int8
@@ -1763,6 +1770,12 @@ type ReposSearch struct {
17631770
 	Tsv    interface{}
17641771
 }
17651772
 
1773
+type SignupIpThrottle struct {
1774
+	Cidr            netip.Addr
1775
+	Hits            int32
1776
+	WindowStartedAt pgtype.Timestamptz
1777
+}
1778
+
17661779
 type Star struct {
17671780
 	UserID    int64
17681781
 	RepoID    int64
internal/meta/sqlc/models.gomodified
@@ -1685,6 +1685,13 @@ type PushEvent struct {
16851685
 	CreatedAt    pgtype.Timestamptz
16861686
 }
16871687
 
1688
+type RateLimit struct {
1689
+	Scope           string
1690
+	Key             string
1691
+	Hits            int32
1692
+	WindowStartedAt pgtype.Timestamptz
1693
+}
1694
+
16881695
 type Repo struct {
16891696
 	ID                 int64
16901697
 	OwnerUserID        pgtype.Int8
@@ -1763,6 +1770,12 @@ type ReposSearch struct {
17631770
 	Tsv    interface{}
17641771
 }
17651772
 
1773
+type SignupIpThrottle struct {
1774
+	Cidr            netip.Addr
1775
+	Hits            int32
1776
+	WindowStartedAt pgtype.Timestamptz
1777
+}
1778
+
17661779
 type Star struct {
17671780
 	UserID    int64
17681781
 	RepoID    int64
internal/notif/sqlc/models.gomodified
@@ -1685,6 +1685,13 @@ type PushEvent struct {
16851685
 	CreatedAt    pgtype.Timestamptz
16861686
 }
16871687
 
1688
+type RateLimit struct {
1689
+	Scope           string
1690
+	Key             string
1691
+	Hits            int32
1692
+	WindowStartedAt pgtype.Timestamptz
1693
+}
1694
+
16881695
 type Repo struct {
16891696
 	ID                 int64
16901697
 	OwnerUserID        pgtype.Int8
@@ -1763,6 +1770,12 @@ type ReposSearch struct {
17631770
 	Tsv    interface{}
17641771
 }
17651772
 
1773
+type SignupIpThrottle struct {
1774
+	Cidr            netip.Addr
1775
+	Hits            int32
1776
+	WindowStartedAt pgtype.Timestamptz
1777
+}
1778
+
17661779
 type Star struct {
17671780
 	UserID    int64
17681781
 	RepoID    int64
internal/orgs/sqlc/models.gomodified
@@ -1685,6 +1685,13 @@ type PushEvent struct {
16851685
 	CreatedAt    pgtype.Timestamptz
16861686
 }
16871687
 
1688
+type RateLimit struct {
1689
+	Scope           string
1690
+	Key             string
1691
+	Hits            int32
1692
+	WindowStartedAt pgtype.Timestamptz
1693
+}
1694
+
16881695
 type Repo struct {
16891696
 	ID                 int64
16901697
 	OwnerUserID        pgtype.Int8
@@ -1763,6 +1770,12 @@ type ReposSearch struct {
17631770
 	Tsv    interface{}
17641771
 }
17651772
 
1773
+type SignupIpThrottle struct {
1774
+	Cidr            netip.Addr
1775
+	Hits            int32
1776
+	WindowStartedAt pgtype.Timestamptz
1777
+}
1778
+
17661779
 type Star struct {
17671780
 	UserID    int64
17681781
 	RepoID    int64
internal/pulls/sqlc/models.gomodified
@@ -1685,6 +1685,13 @@ type PushEvent struct {
16851685
 	CreatedAt    pgtype.Timestamptz
16861686
 }
16871687
 
1688
+type RateLimit struct {
1689
+	Scope           string
1690
+	Key             string
1691
+	Hits            int32
1692
+	WindowStartedAt pgtype.Timestamptz
1693
+}
1694
+
16881695
 type Repo struct {
16891696
 	ID                 int64
16901697
 	OwnerUserID        pgtype.Int8
@@ -1763,6 +1770,12 @@ type ReposSearch struct {
17631770
 	Tsv    interface{}
17641771
 }
17651772
 
1773
+type SignupIpThrottle struct {
1774
+	Cidr            netip.Addr
1775
+	Hits            int32
1776
+	WindowStartedAt pgtype.Timestamptz
1777
+}
1778
+
17661779
 type Star struct {
17671780
 	UserID    int64
17681781
 	RepoID    int64
internal/repos/sqlc/models.gomodified
@@ -1685,6 +1685,13 @@ type PushEvent struct {
16851685
 	CreatedAt    pgtype.Timestamptz
16861686
 }
16871687
 
1688
+type RateLimit struct {
1689
+	Scope           string
1690
+	Key             string
1691
+	Hits            int32
1692
+	WindowStartedAt pgtype.Timestamptz
1693
+}
1694
+
16881695
 type Repo struct {
16891696
 	ID                 int64
16901697
 	OwnerUserID        pgtype.Int8
@@ -1763,6 +1770,12 @@ type ReposSearch struct {
17631770
 	Tsv    interface{}
17641771
 }
17651772
 
1773
+type SignupIpThrottle struct {
1774
+	Cidr            netip.Addr
1775
+	Hits            int32
1776
+	WindowStartedAt pgtype.Timestamptz
1777
+}
1778
+
17661779
 type Star struct {
17671780
 	UserID    int64
17681781
 	RepoID    int64
internal/social/sqlc/models.gomodified
@@ -1685,6 +1685,13 @@ type PushEvent struct {
16851685
 	CreatedAt    pgtype.Timestamptz
16861686
 }
16871687
 
1688
+type RateLimit struct {
1689
+	Scope           string
1690
+	Key             string
1691
+	Hits            int32
1692
+	WindowStartedAt pgtype.Timestamptz
1693
+}
1694
+
16881695
 type Repo struct {
16891696
 	ID                 int64
16901697
 	OwnerUserID        pgtype.Int8
@@ -1763,6 +1770,12 @@ type ReposSearch struct {
17631770
 	Tsv    interface{}
17641771
 }
17651772
 
1773
+type SignupIpThrottle struct {
1774
+	Cidr            netip.Addr
1775
+	Hits            int32
1776
+	WindowStartedAt pgtype.Timestamptz
1777
+}
1778
+
17661779
 type Star struct {
17671780
 	UserID    int64
17681781
 	RepoID    int64
internal/users/sqlc/models.gomodified
@@ -1685,6 +1685,13 @@ type PushEvent struct {
16851685
 	CreatedAt    pgtype.Timestamptz
16861686
 }
16871687
 
1688
+type RateLimit struct {
1689
+	Scope           string
1690
+	Key             string
1691
+	Hits            int32
1692
+	WindowStartedAt pgtype.Timestamptz
1693
+}
1694
+
16881695
 type Repo struct {
16891696
 	ID                 int64
16901697
 	OwnerUserID        pgtype.Int8
@@ -1763,6 +1770,12 @@ type ReposSearch struct {
17631770
 	Tsv    interface{}
17641771
 }
17651772
 
1773
+type SignupIpThrottle struct {
1774
+	Cidr            netip.Addr
1775
+	Hits            int32
1776
+	WindowStartedAt pgtype.Timestamptz
1777
+}
1778
+
17661779
 type Star struct {
17671780
 	UserID    int64
17681781
 	RepoID    int64
internal/webhook/sqlc/models.gomodified
@@ -1685,6 +1685,13 @@ type PushEvent struct {
16851685
 	CreatedAt    pgtype.Timestamptz
16861686
 }
16871687
 
1688
+type RateLimit struct {
1689
+	Scope           string
1690
+	Key             string
1691
+	Hits            int32
1692
+	WindowStartedAt pgtype.Timestamptz
1693
+}
1694
+
16881695
 type Repo struct {
16891696
 	ID                 int64
16901697
 	OwnerUserID        pgtype.Int8
@@ -1763,6 +1770,12 @@ type ReposSearch struct {
17631770
 	Tsv    interface{}
17641771
 }
17651772
 
1773
+type SignupIpThrottle struct {
1774
+	Cidr            netip.Addr
1775
+	Hits            int32
1776
+	WindowStartedAt pgtype.Timestamptz
1777
+}
1778
+
17661779
 type Star struct {
17671780
 	UserID    int64
17681781
 	RepoID    int64
internal/worker/sqlc/models.gomodified
@@ -1685,6 +1685,13 @@ type PushEvent struct {
16851685
 	CreatedAt    pgtype.Timestamptz
16861686
 }
16871687
 
1688
+type RateLimit struct {
1689
+	Scope           string
1690
+	Key             string
1691
+	Hits            int32
1692
+	WindowStartedAt pgtype.Timestamptz
1693
+}
1694
+
16881695
 type Repo struct {
16891696
 	ID                 int64
16901697
 	OwnerUserID        pgtype.Int8
@@ -1763,6 +1770,12 @@ type ReposSearch struct {
17631770
 	Tsv    interface{}
17641771
 }
17651772
 
1773
+type SignupIpThrottle struct {
1774
+	Cidr            netip.Addr
1775
+	Hits            int32
1776
+	WindowStartedAt pgtype.Timestamptz
1777
+}
1778
+
17661779
 type Star struct {
17671780
 	UserID    int64
17681781
 	RepoID    int64