Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat: added database connection setup
=71b8b880cd6d
diff --git a/backend-go/cmd/dev/pg_gen/main.go b/backend-go/cmd/dev/pg_gen/main.gonew file mode 100644index 0000000000..4641ffc175--- /dev/null+++ b/backend-go/cmd/dev/pg_gen/main.go@@ -0,0 +1,80 @@+package main++import (+ "database/sql"+ "fmt"+ "os"+ "regexp"++ "github.com/go-jet/jet/v2/generator/metadata"+ "github.com/go-jet/jet/v2/generator/postgres"+ "github.com/go-jet/jet/v2/generator/template"+ pg "github.com/go-jet/jet/v2/postgres"+ _ "github.com/lib/pq"+)++// partitionPattern matches Postgres partition table names like:+// - certificate_requests_20260311_20260401+// - scim_events_default+var partitionPattern = regexp.MustCompile(`_\d{8}_\d{8}$|_default$`)++func isPartitionTable(name string) bool {+ return partitionPattern.MatchString(name)+}++func main() {+ dsn := os.Getenv("DB_CONNECTION_URI")+ if dsn == "" {+ fmt.Fprintln(os.Stderr, "DB_CONNECTION_URI is required")+ os.Exit(1)+ }++ destDir := "./internal/database/pg/gen"++ db, err := sql.Open("postgres", dsn)+ if err != nil {+ fmt.Fprintf(os.Stderr, "failed to connect: %v\n", err)+ os.Exit(1)+ }+ defer db.Close()++ if err := db.Ping(); err != nil {+ fmt.Fprintf(os.Stderr, "failed to ping database: %v\n", err)+ os.Exit(1)+ }++ // GenerateDB writes directly to destDir without appending the database name.+ // UsePath("") on the schema removes the "public" subdirectory.+ // Result: files go straight into destDir/table/, destDir/model/, destDir/enum/.+ err = postgres.GenerateDB(db, "public", destDir,+ template.Default(pg.Dialect).+ UseSchema(func(schema metadata.Schema) template.Schema {+ return template.DefaultSchema(schema).+ UsePath("").+ UseModel(template.DefaultModel().+ UseTable(func(table metadata.Table) template.TableModel {+ m := template.DefaultTableModel(table)+ if isPartitionTable(table.Name) {+ m.Skip = true+ }+ return m+ }),+ ).+ UseSQLBuilder(template.DefaultSQLBuilder().+ UseTable(func(table metadata.Table) template.TableSQLBuilder {+ tb := template.DefaultTableSQLBuilder(table)+ if isPartitionTable(table.Name) {+ tb.Skip = true+ }+ return tb+ }),+ )+ }),+ )+ if err != nil {+ fmt.Fprintf(os.Stderr, "generation failed: %v\n", err)+ os.Exit(1)+ }++ fmt.Println("Generation complete:", destDir)+}diff --git a/backend-go/cmd/infisical/main.go b/backend-go/cmd/infisical/main.goindex 35abe03229..3e9be2e96c 100644--- a/backend-go/cmd/infisical/main.go+++ b/backend-go/cmd/infisical/main.go@@ -2,6 +2,7 @@ package mainimport ("context"+ "errors""fmt""log/slog""os"@@ -15,22 +16,29 @@ import ()func main() {+ // Setup structured JSON logger.+ logger := slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{+ Level: config.GetConfiguredSlogLevel(),+ }))+ slog.SetDefault(logger)+// Load configuration.cfg, err := config.LoadConfig()if err != nil {- slog.Error("failed to load config", "error", err)+ var validationErr *config.ValidationError+ if errors.As(err, &validationErr) {+ slog.Error("invalid environment variables")+ for _, issue := range validationErr.Issues {+ slog.Error(" " + issue)+ }+ } else {+ slog.Error("failed to load config", "error", err)+ }os.Exit(1)}- // Setup structured JSON logger.- logger := slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{- Level: cfg.SlogLevel(),- }))- slog.SetDefault(logger)-// Initialize all services.svc := services.NewService(logger)-// Create server.srv := server.NewServer(svc, logger)diff --git a/backend-go/go.mod b/backend-go/go.modindex a1b65e409b..4429ed17d2 100644--- a/backend-go/go.mod+++ b/backend-go/go.mod@@ -3,29 +3,45 @@ module github.com/infisical/apigo 1.26.1require (+ github.com/go-jet/jet/v2 v2.14.1+ github.com/google/uuid v1.6.0+ github.com/jackc/pgx/v5 v5.8.0github.com/knadh/koanf/parsers/dotenv v1.1.1github.com/knadh/koanf/providers/env/v2 v2.0.0github.com/knadh/koanf/providers/file v1.2.1github.com/knadh/koanf/v2 v2.3.3+ github.com/lib/pq v1.10.9goa.design/goa/v3 v3.25.3)require (+ filippo.io/edwards25519 v1.1.0 // indirectgithub.com/davecgh/go-spew v1.1.1 // indirectgithub.com/dimfeld/httppath v0.0.0-20170720192232-ee938bf73598 // indirectgithub.com/fsnotify/fsnotify v1.9.0 // indirectgithub.com/go-chi/chi/v5 v5.2.4 // indirect+ github.com/go-sql-driver/mysql v1.9.3 // indirectgithub.com/go-viper/mapstructure/v2 v2.4.0 // indirectgithub.com/gohugoio/hashstructure v0.6.0 // indirect- github.com/google/uuid v1.6.0 // indirectgithub.com/gorilla/websocket v1.5.3 // indirect+ github.com/jackc/chunkreader/v2 v2.0.1 // indirect+ github.com/jackc/pgconn v1.14.3 // indirect+ github.com/jackc/pgio v1.0.0 // indirect+ github.com/jackc/pgpassfile v1.0.0 // indirect+ github.com/jackc/pgproto3/v2 v2.3.3 // indirect+ github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect+ github.com/jackc/pgtype v1.14.4 // indirect+ github.com/jackc/puddle/v2 v2.2.2 // indirectgithub.com/joho/godotenv v1.5.1 // indirectgithub.com/knadh/koanf/maps v0.1.2 // indirectgithub.com/manveru/faker v0.0.0-20171103152722-9fbc68a78c4d // indirect+ github.com/mattn/go-sqlite3 v1.14.28 // indirectgithub.com/mitchellh/copystructure v1.2.0 // indirectgithub.com/mitchellh/reflectwalk v1.0.2 // indirectgithub.com/pmezard/go-difflib v1.0.0 // indirect+ github.com/rogpeppe/go-internal v1.14.1 // indirectgithub.com/stretchr/testify v1.11.1 // indirect+ golang.org/x/crypto v0.35.0 // indirectgolang.org/x/mod v0.34.0 // indirectgolang.org/x/sync v0.20.0 // indirectgolang.org/x/sys v0.42.0 // indirect@@ -34,4 +50,7 @@ require (gopkg.in/yaml.v3 v3.0.1 // indirect)-tool goa.design/goa/v3/cmd/goa+tool (+ github.com/go-jet/jet/v2/cmd/jet+ goa.design/goa/v3/cmd/goa+)diff --git a/backend-go/go.sum b/backend-go/go.sumindex 321f1a4530..a1dd123140 100644--- a/backend-go/go.sum+++ b/backend-go/go.sum@@ -1,5 +1,14 @@+filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=+filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=+github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=+github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=+github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ=+github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=+github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=+github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=github.com/dimfeld/httppath v0.0.0-20170720192232-ee938bf73598 h1:MGKhKyiYrvMDZsmLR/+RGffQSXwEkXgfLSA08qDn9AI=@@ -8,18 +17,83 @@ github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7Sgithub.com/fsnotify/fsnotify v1.9.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=github.com/go-chi/chi/v5 v5.2.4 h1:WtFKPHwlywe8Srng8j2BhOD9312j9cGUxG1SP4V2cR4=github.com/go-chi/chi/v5 v5.2.4/go.mod h1:X7Gx4mteadT3eDOMTsXzmI4/rwUpOwBHLpAfupzFJP0=+github.com/go-jet/jet/v2 v2.14.1 h1:wsfD9e7CGP9h46+IFNlftfncBcmVnKddikbTtapQM3M=+github.com/go-jet/jet/v2 v2.14.1/go.mod h1:dqTAECV2Mo3S2NFjbm4vJ1aDruZjhaJ1RAAR8rGUkkc=+github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=+github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=+github.com/go-sql-driver/mysql v1.9.3 h1:U/N249h2WzJ3Ukj8SowVFjdtZKfu9vlLZxjPXV1aweo=+github.com/go-sql-driver/mysql v1.9.3/go.mod h1:qn46aNg1333BRMNU69Lq93t8du/dwxI64Gl8i5p1WMU=+github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9LvH92wZUgs=github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=+github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=github.com/gohugoio/hashstructure v0.6.0 h1:7wMB/2CfXoThFYhdWRGv3u3rUM761Cq29CxUW+NltUg=github.com/gohugoio/hashstructure v0.6.0/go.mod h1:lapVLk9XidheHG1IQ4ZSbyYrXcaILU1ZEP/+vno5rBQ=-github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=-github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=+github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=+github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=+github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=+github.com/jackc/chunkreader v1.0.0/go.mod h1:RT6O25fNZIuasFJRyZ4R/Y2BbhasbmZXF9QQ7T3kePo=+github.com/jackc/chunkreader/v2 v2.0.0/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk=+github.com/jackc/chunkreader/v2 v2.0.1 h1:i+RDz65UE+mmpjTfyz0MoVTnzeYxroil2G82ki7MGG8=+github.com/jackc/chunkreader/v2 v2.0.1/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk=+github.com/jackc/pgconn v0.0.0-20190420214824-7e0022ef6ba3/go.mod h1:jkELnwuX+w9qN5YIfX0fl88Ehu4XC3keFuOJJk9pcnA=+github.com/jackc/pgconn v0.0.0-20190824142844-760dd75542eb/go.mod h1:lLjNuW/+OfW9/pnVKPazfWOgNfH2aPem8YQ7ilXGvJE=+github.com/jackc/pgconn v0.0.0-20190831204454-2fabfa3c18b7/go.mod h1:ZJKsE/KZfsUgOEh9hBm+xYTstcNHg7UPMVJqRfQxq4s=+github.com/jackc/pgconn v1.8.0/go.mod h1:1C2Pb36bGIP9QHGBYCjnyhqu7Rv3sGshaQUvmfGIB/o=+github.com/jackc/pgconn v1.9.0/go.mod h1:YctiPyvzfU11JFxoXokUOOKQXQmDMoJL9vJzHH8/2JY=+github.com/jackc/pgconn v1.9.1-0.20210724152538-d89c8390a530/go.mod h1:4z2w8XhRbP1hYxkpTuBjTS3ne3J48K83+u0zoyvg2pI=+github.com/jackc/pgconn v1.14.3 h1:bVoTr12EGANZz66nZPkMInAV/KHD2TxH9npjXXgiB3w=+github.com/jackc/pgconn v1.14.3/go.mod h1:RZbme4uasqzybK2RK5c65VsHxoyaml09lx3tXOcO/VM=+github.com/jackc/pgio v1.0.0 h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE=+github.com/jackc/pgio v1.0.0/go.mod h1:oP+2QK2wFfUWgr+gxjoBH9KGBb31Eio69xUb0w5bYf8=+github.com/jackc/pgmock v0.0.0-20190831213851-13a1b77aafa2/go.mod h1:fGZlG77KXmcq05nJLRkk0+p82V8B8Dw8KN2/V9c/OAE=+github.com/jackc/pgmock v0.0.0-20201204152224-4fe30f7445fd/go.mod h1:hrBW0Enj2AZTNpt/7Y5rr2xe/9Mn757Wtb2xeBzPv2c=+github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65 h1:DadwsjnMwFjfWc9y5Wi/+Zz7xoE5ALHsRQlOctkOiHc=+github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65/go.mod h1:5R2h2EEX+qri8jOWMbJCtaPWkrrNc7OHwsp2TCqp7ak=+github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=+github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=+github.com/jackc/pgproto3 v1.1.0/go.mod h1:eR5FA3leWg7p9aeAqi37XOTgTIbkABlvcPB3E5rlc78=+github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190420180111-c116219b62db/go.mod h1:bhq50y+xrl9n5mRYyCBFKkpRVTLYJVWeCc+mEAI3yXA=+github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190609003834-432c2951c711/go.mod h1:uH0AWtUmuShn0bcesswc4aBTWGvw0cAxIJp+6OB//Wg=+github.com/jackc/pgproto3/v2 v2.0.0-rc3/go.mod h1:ryONWYqW6dqSg1Lw6vXNMXoBJhpzvWKnT95C46ckYeM=+github.com/jackc/pgproto3/v2 v2.0.0-rc3.0.20190831210041-4c03ce451f29/go.mod h1:ryONWYqW6dqSg1Lw6vXNMXoBJhpzvWKnT95C46ckYeM=+github.com/jackc/pgproto3/v2 v2.0.6/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA=+github.com/jackc/pgproto3/v2 v2.1.1/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA=+github.com/jackc/pgproto3/v2 v2.3.3 h1:1HLSx5H+tXR9pW3in3zaztoEwQYRC9SQaYUHjTSUOag=+github.com/jackc/pgproto3/v2 v2.3.3/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA=+github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b/go.mod h1:vsD4gTJCa9TptPL8sPkXrLZ+hDuNrZCnj29CQpr4X1E=+github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=+github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7UlwOQYpKFhBabPMi4aNAfoODPEFNiAnClxo=+github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=+github.com/jackc/pgtype v0.0.0-20190421001408-4ed0de4755e0/go.mod h1:hdSHsc1V01CGwFsrv11mJRHWJ6aifDLfdV3aVjFF0zg=+github.com/jackc/pgtype v0.0.0-20190824184912-ab885b375b90/go.mod h1:KcahbBH1nCMSo2DXpzsoWOAfFkdEtEJpPbVLq8eE+mc=+github.com/jackc/pgtype v0.0.0-20190828014616-a8802b16cc59/go.mod h1:MWlu30kVJrUS8lot6TQqcg7mtthZ9T0EoIBFiJcmcyw=+github.com/jackc/pgtype v1.8.1-0.20210724151600-32e20a603178/go.mod h1:C516IlIV9NKqfsMCXTdChteoXmwgUceqaLfjg2e3NlM=+github.com/jackc/pgtype v1.14.0/go.mod h1:LUMuVrfsFfdKGLw+AFFVv6KtHOFMwRgDDzBt76IqCA4=+github.com/jackc/pgtype v1.14.4 h1:fKuNiCumbKTAIxQwXfB/nsrnkEI6bPJrrSiMKgbJ2j8=+github.com/jackc/pgtype v1.14.4/go.mod h1:aKeozOde08iifGosdJpz9MBZonJOUJxqNpPBcMJTlVA=+github.com/jackc/pgx/v4 v4.0.0-20190420224344-cc3461e65d96/go.mod h1:mdxmSJJuR08CZQyj1PVQBHy9XOp5p8/SHH6a0psbY9Y=+github.com/jackc/pgx/v4 v4.0.0-20190421002000-1b8f0016e912/go.mod h1:no/Y67Jkk/9WuGR0JG/JseM9irFbnEPbuWV2EELPNuM=+github.com/jackc/pgx/v4 v4.0.0-pre1.0.20190824185557-6972a5742186/go.mod h1:X+GQnOEnf1dqHGpw7JmHqHc1NxDoalibchSk9/RWuDc=+github.com/jackc/pgx/v4 v4.12.1-0.20210724153913-640aa07df17c/go.mod h1:1QD0+tgSXP7iUjYm9C1NxKhny7lq6ee99u/z+IHFcgs=+github.com/jackc/pgx/v4 v4.18.2/go.mod h1:Ey4Oru5tH5sB6tV7hDmfWFahwF15Eb7DNXlRKx2CkVw=+github.com/jackc/pgx/v4 v4.18.3 h1:dE2/TrEsGX3RBprb3qryqSV9Y60iZN1C6i8IrmW9/BA=+github.com/jackc/pgx/v4 v4.18.3/go.mod h1:Ey4Oru5tH5sB6tV7hDmfWFahwF15Eb7DNXlRKx2CkVw=+github.com/jackc/pgx/v5 v5.8.0 h1:TYPDoleBBme0xGSAX3/+NujXXtpZn9HBONkQC7IEZSo=+github.com/jackc/pgx/v5 v5.8.0/go.mod h1:QVeDInX2m9VyzvNeiCJVjCkNFqzsNb43204HshNSZKw=+github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=+github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=+github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=+github.com/jackc/puddle v1.3.0/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=+github.com/jackc/puddle/v2 v2.2.2 h1:PR8nw+E/1w0GLuRFSmiioY6UooMp6KJv0/61nB7icHo=+github.com/jackc/puddle/v2 v2.2.2/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4=github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=+github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=github.com/knadh/koanf/maps v0.1.2 h1:RBfmAW5CnZT+PJ1CVc1QSJKf4Xu9kxfQgYVQSu8hpbo=github.com/knadh/koanf/maps v0.1.2/go.mod h1:npD/QZY3V6ghQDdcQzl1W4ICNVTkohC8E73eI2xW4yI=github.com/knadh/koanf/parsers/dotenv v1.1.1 h1:vfiRFsxq0ouiVs4t+R/VVA3TMrX5+VH14iEX6J5B1s4=@@ -30,36 +104,178 @@ github.com/knadh/koanf/providers/file v1.2.1 h1:bEWbtQwYrA+W2DtdBrQWyXqJaJSG3KrPgithub.com/knadh/koanf/providers/file v1.2.1/go.mod h1:bp1PM5f83Q+TOUu10J/0ApLBd9uIzg+n9UgthfY+nRA=github.com/knadh/koanf/v2 v2.3.3 h1:jLJC8XCRfLC7n4F+ZKKdBsbq1bfXTpuFhf4L7t94D94=github.com/knadh/koanf/v2 v2.3.3/go.mod h1:gRb40VRAbd4iJMYYD5IxZ6hfuopFcXBpc9bbQpZwo28=-github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=-github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=+github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=+github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=+github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=+github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=+github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=+github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=+github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw=+github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=+github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=+github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=+github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=+github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=+github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw=+github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=github.com/manveru/faker v0.0.0-20171103152722-9fbc68a78c4d h1:Zj+PHjnhRYWBK6RqCDBcAhLXoi3TzC27Zad/Vn+gnVQ=github.com/manveru/faker v0.0.0-20171103152722-9fbc68a78c4d/go.mod h1:WZy8Q5coAB1zhY9AOBJP0O6J4BuDfbupUDavKY+I3+s=github.com/manveru/gobdd v0.0.0-20131210092515-f1a17fdd710b h1:3E44bLeN8uKYdfQqVQycPnaVviZdBLbizFhU49mtbe4=github.com/manveru/gobdd v0.0.0-20131210092515-f1a17fdd710b/go.mod h1:Bj8LjjP0ReT1eKt5QlKjwgi5AFm5mI6O1A2G4ChI0Ag=+github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=+github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=+github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=+github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=+github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=+github.com/mattn/go-sqlite3 v1.14.28 h1:ThEiQrnbtumT+QMknw63Befp/ce/nUPgBPMlRFEum7A=+github.com/mattn/go-sqlite3 v1.14.28/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw=github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s=github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ=github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=+github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=+github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=+github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=+github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc=+github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ=+github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU=+github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc=+github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=+github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4=+github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=+github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=+github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=+github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=+github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=+github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=+github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=+github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=+github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=+github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=+github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=+github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=+github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=+github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=+github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=+go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=+go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=+go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=+go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=+go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=+go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4=+go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU=+go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA=+go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=+go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=+go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM=goa.design/goa/v3 v3.25.3 h1:gnOm2Vu0HMvveKpcqL6aWYQTP2puiwrEJWLQc79/294=goa.design/goa/v3 v3.25.3/go.mod h1:VZ8CcXJRZh09ijtNJJS2gNyKufpmrM+Ul/Qy3viwcOU=+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=+golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE=+golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=+golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=+golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=+golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=+golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=+golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=+golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=+golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=+golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=+golang.org/x/crypto v0.20.0/go.mod h1:Xwo95rrVNIoSMx9wa1JroENMToLWn3RNVrTBpLHgZPQ=+golang.org/x/crypto v0.35.0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs=+golang.org/x/crypto v0.35.0/go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ=+golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=+golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=+golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=+golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=+golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=golang.org/x/mod v0.34.0 h1:xIHgNUUnW6sYkcM5Jleh05DvLOtwc6RitGHbDk4akRI=golang.org/x/mod v0.34.0/go.mod h1:ykgH52iCZe79kzLLMhyCUzhMci+nQj+0XkbXpNYtVjY=+golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=+golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=+golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=+golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=+golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=+golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=+golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=+golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=+golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=+golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=+golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=+golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4=golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=+golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=+golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=+golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=+golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=+golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=+golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=+golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=+golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=+golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=+golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=+golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=+golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=+golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=+golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=+golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=+golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=golang.org/x/sys v0.42.0 h1:omrd2nAlyT5ESRdCLYdm3+fMfNFE/+Rf4bDIQImRJeo=golang.org/x/sys v0.42.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=+golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=+golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=+golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=+golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=+golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=+golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=+golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=+golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=+golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=+golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=+golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=+golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=+golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=+golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=golang.org/x/text v0.35.0 h1:JOVx6vVDFokkpaq1AEptVzLTpDe9KGpj5tR4/X+ybL8=golang.org/x/text v0.35.0/go.mod h1:khi/HExzZJ2pGnjenulevKNX1W67CUy0AsXcNubPGCA=+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=+golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=+golang.org/x/tools v0.0.0-20190425163242-31fd60d6bfdc/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=+golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=+golang.org/x/tools v0.0.0-20190823170909-c4a336ef6a2f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=+golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=+golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=+golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=+golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=+golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=+golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=golang.org/x/tools v0.43.0 h1:12BdW9CeB3Z+J/I/wj34VMl8X+fEXBxVR90JeMX5E7s=golang.org/x/tools v0.43.0/go.mod h1:uHkMso649BX2cZK6+RpuIPXS3ho2hZo4FVwfoy1vIk0=+golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=+golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=+golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=+golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=+golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=-gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=-gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=+gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=+gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=+gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=+gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=+gopkg.in/inconshreveable/log15.v2 v2.0.0-20180818164646-67afb5ed74ec/go.mod h1:aPpfJ7XW+gOuirDoZ8gHhLh3kZ1B08FtV2bbmy7Jv3s=+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=+honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=diff --git a/backend-go/internal/config/config.go b/backend-go/internal/config/config.goindex e923174dfc..76746a3fe9 100644--- a/backend-go/internal/config/config.go+++ b/backend-go/internal/config/config.go@@ -1,7 +1,7 @@package configimport (- "errors"+ "encoding/json""fmt""log/slog""os"@@ -13,6 +13,18 @@ import ("github.com/knadh/koanf/v2")+// DBReadReplica represents a single Postgres read replica connection.+type DBReadReplica struct {+ DBConnectionURI string `json:"DB_CONNECTION_URI"`+ DBRootCert string `json:"DB_ROOT_CERT,omitempty"`+}++// RedisHostPort represents a parsed host:port pair for Redis Sentinel/Cluster/Replica nodes.+type RedisHostPort struct {+ Host string+ Port int+}+type NodeEnv stringconst (@@ -23,31 +35,66 @@ const (type Config struct {// Server- NodeEnv NodeEnv `koanf:"NODE_ENV"`- Port int `koanf:"PORT"`- Host string `koanf:"HOST"`+ InfisicalPlatformVersion string `koanf:"INFISICAL_PLATFORM_VERSION"`+ KubernetesAutoFetchServiceAccountToken bool `koanf:"KUBERNETES_AUTO_FETCH_SERVICE_ACCOUNT_TOKEN"`+ NodeEnv NodeEnv `koanf:"NODE_ENV"`+ Port int `koanf:"PORT"`+ Host string `koanf:"HOST"`+ StandaloneMode bool `koanf:"STANDALONE_MODE"`+ InfisicalCloud bool `koanf:"INFISICAL_CLOUD"`+ MaintenanceMode bool `koanf:"MAINTENANCE_MODE"`+ DisableSecretScanning bool `koanf:"DISABLE_SECRET_SCANNING"`// LoggingLogLevel string `koanf:"LOG_LEVEL"`// Database- DBConnectionURI string `koanf:"DB_CONNECTION_URI"`- DBRootCert string `koanf:"DB_ROOT_CERT"`- DBHost string `koanf:"DB_HOST"`- DBPort string `koanf:"DB_PORT"`- DBUser string `koanf:"DB_USER"`- DBPassword string `koanf:"DB_PASSWORD"`- DBName string `koanf:"DB_NAME"`+ DBConnectionURI string `koanf:"DB_CONNECTION_URI"`+ DBRootCert string `koanf:"DB_ROOT_CERT"`+ DBHost string `koanf:"DB_HOST"`+ DBPort string `koanf:"DB_PORT"`+ DBUser string `koanf:"DB_USER"`+ DBPassword string `koanf:"DB_PASSWORD"`+ DBName string `koanf:"DB_NAME"`+ DBReadReplicas string `koanf:"DB_READ_REPLICAS"`+ AuditLogsDBConnectionURI string `koanf:"AUDIT_LOGS_DB_CONNECTION_URI"`+ AuditLogsDBRootCert string `koanf:"AUDIT_LOGS_DB_ROOT_CERT"`++ // ClickHouse+ ClickhouseURL string `koanf:"CLICKHOUSE_URL"`+ ClickhouseAuditLogEngine string `koanf:"CLICKHOUSE_AUDIT_LOG_ENGINE"`+ ClickhouseAuditLogTableName string `koanf:"CLICKHOUSE_AUDIT_LOG_TABLE_NAME"`+ ClickhouseAuditLogEnabled bool `koanf:"CLICKHOUSE_AUDIT_LOG_ENABLED"`+ ClickhouseAuditLogQueryEnabled bool `koanf:"CLICKHOUSE_AUDIT_LOG_QUERY_ENABLED"`+ ClickhouseAuditLogInsertSettings string `koanf:"CLICKHOUSE_AUDIT_LOG_INSERT_SETTINGS"`// Redis- RedisURL string `koanf:"REDIS_URL"`+ RedisURL string `koanf:"REDIS_URL"`+ RedisUsername string `koanf:"REDIS_USERNAME"`+ RedisPassword string `koanf:"REDIS_PASSWORD"`+ RedisSentinelHosts string `koanf:"REDIS_SENTINEL_HOSTS"`+ RedisSentinelMasterName string `koanf:"REDIS_SENTINEL_MASTER_NAME"`+ RedisSentinelEnableTLS bool `koanf:"REDIS_SENTINEL_ENABLE_TLS"`+ RedisSentinelUsername string `koanf:"REDIS_SENTINEL_USERNAME"`+ RedisSentinelPassword string `koanf:"REDIS_SENTINEL_PASSWORD"`+ RedisClusterHosts string `koanf:"REDIS_CLUSTER_HOSTS"`+ RedisClusterEnableTLS bool `koanf:"REDIS_CLUSTER_ENABLE_TLS"`+ RedisClusterAWSElastiCacheDNSLookupMode bool `koanf:"REDIS_CLUSTER_AWS_ELASTICACHE_DNS_LOOKUP_MODE"`+ RedisReadReplicas string `koanf:"REDIS_READ_REPLICAS"`// EncryptionEncryptionKey string `koanf:"ENCRYPTION_KEY"`RootEncryptionKey string `koanf:"ROOT_ENCRYPTION_KEY"`// Auth- AuthSecret string `koanf:"AUTH_SECRET"`+ AuthSecret string `koanf:"AUTH_SECRET"`+ CookieSecretSignKey string `koanf:"COOKIE_SECRET_SIGN_KEY"`+ JWTAuthLifetime string `koanf:"JWT_AUTH_LIFETIME"`+ JWTSignupLifetime string `koanf:"JWT_SIGNUP_LIFETIME"`+ JWTRefreshLifetime string `koanf:"JWT_REFRESH_LIFETIME"`+ JWTInviteLifetime string `koanf:"JWT_INVITE_LIFETIME"`+ JWTMfaLifetime string `koanf:"JWT_MFA_LIFETIME"`+ JWTProviderAuthLifetime string `koanf:"JWT_PROVIDER_AUTH_LIFETIME"`// SiteSiteURL string `koanf:"SITE_URL"`@@ -56,26 +103,283 @@ type Config struct {// TelemetryTelemetryEnabled bool `koanf:"TELEMETRY_ENABLED"`+ // PostHog+ PosthogHost string `koanf:"POSTHOG_HOST"`+ PosthogProjectAPIKey string `koanf:"POSTHOG_PROJECT_API_KEY"`++ // OpenTelemetry+ OTELTelemetryCollectionEnabled bool `koanf:"OTEL_TELEMETRY_COLLECTION_ENABLED"`+ OTELExportOTLPEndpoint string `koanf:"OTEL_EXPORT_OTLP_ENDPOINT"`+ OTELOTLPPushInterval int `koanf:"OTEL_OTLP_PUSH_INTERVAL"`+ OTELCollectorBasicAuthUsername string `koanf:"OTEL_COLLECTOR_BASIC_AUTH_USERNAME"`+ OTELCollectorBasicAuthPassword string `koanf:"OTEL_COLLECTOR_BASIC_AUTH_PASSWORD"`+ OTELExportType string `koanf:"OTEL_EXPORT_TYPE"`+// SMTP- SMTPHost string `koanf:"SMTP_HOST"`- SMTPPort int `koanf:"SMTP_PORT"`- SMTPUsername string `koanf:"SMTP_USERNAME"`- SMTPPassword string `koanf:"SMTP_PASSWORD"`+ SMTPHost string `koanf:"SMTP_HOST"`+ SMTPPort int `koanf:"SMTP_PORT"`+ SMTPUsername string `koanf:"SMTP_USERNAME"`+ SMTPPassword string `koanf:"SMTP_PASSWORD"`+ SMTPFromAddress string `koanf:"SMTP_FROM_ADDRESS"`+ SMTPFromName string `koanf:"SMTP_FROM_NAME"`+ SMTPIgnoreTLS bool `koanf:"SMTP_IGNORE_TLS"`+ SMTPRequireTLS bool `koanf:"SMTP_REQUIRE_TLS"`+ SMTPTLSRejectUnauthorized bool `koanf:"SMTP_TLS_REJECT_UNAUTHORIZED"`+ SMTPCustomCACert string `koanf:"SMTP_CUSTOM_CA_CERT"`++ // Crypto+ SaltRounds int `koanf:"SALT_ROUNDS"`++ // Queue+ QueueWorkersEnabled bool `koanf:"QUEUE_WORKERS_ENABLED"`+ QueueWorkerProfile string `koanf:"QUEUE_WORKER_PROFILE"`+ UsePGQueue bool `koanf:"USE_PG_QUEUE"`+ ShouldInitPGQueue bool `koanf:"SHOULD_INIT_PG_QUEUE"`++ // SSO - Google+ ClientIDGoogleLogin string `koanf:"CLIENT_ID_GOOGLE_LOGIN"`+ ClientSecretGoogleLogin string `koanf:"CLIENT_SECRET_GOOGLE_LOGIN"`++ // SSO - GitHub+ ClientIDGithubLogin string `koanf:"CLIENT_ID_GITHUB_LOGIN"`+ ClientSecretGithubLogin string `koanf:"CLIENT_SECRET_GITHUB_LOGIN"`++ // SSO - GitLab+ ClientIDGitlabLogin string `koanf:"CLIENT_ID_GITLAB_LOGIN"`+ ClientSecretGitlabLogin string `koanf:"CLIENT_SECRET_GITLAB_LOGIN"`+ ClientGitlabLoginURL string `koanf:"CLIENT_GITLAB_LOGIN_URL"`+ DefaultSAMLOrgSlug string `koanf:"DEFAULT_SAML_ORG_SLUG"`++ // Integration - Heroku+ ClientIDHeroku string `koanf:"CLIENT_ID_HEROKU"`+ ClientSecretHeroku string `koanf:"CLIENT_SECRET_HEROKU"`++ // Integration - Vercel+ ClientIDVercel string `koanf:"CLIENT_ID_VERCEL"`+ ClientSecretVercel string `koanf:"CLIENT_SECRET_VERCEL"`+ ClientSlugVercel string `koanf:"CLIENT_SLUG_VERCEL"`++ // Integration - Netlify+ ClientIDNetlify string `koanf:"CLIENT_ID_NETLIFY"`+ ClientSecretNetlify string `koanf:"CLIENT_SECRET_NETLIFY"`++ // Integration - Bitbucket+ ClientIDBitbucket string `koanf:"CLIENT_ID_BITBUCKET"`+ ClientSecretBitbucket string `koanf:"CLIENT_SECRET_BITBUCKET"`++ // Integration - GCP Secret Manager+ ClientIDGCPSecretManager string `koanf:"CLIENT_ID_GCP_SECRET_MANAGER"`+ ClientSecretGCPSecretManager string `koanf:"CLIENT_SECRET_GCP_SECRET_MANAGER"`++ // Integration - GitHub OAuth+ ClientIDGithub string `koanf:"CLIENT_ID_GITHUB"`+ ClientSecretGithub string `koanf:"CLIENT_SECRET_GITHUB"`++ // Integration - GitHub App+ ClientIDGithubApp string `koanf:"CLIENT_ID_GITHUB_APP"`+ ClientSecretGithubApp string `koanf:"CLIENT_SECRET_GITHUB_APP"`+ ClientPrivateKeyGithubApp string `koanf:"CLIENT_PRIVATE_KEY_GITHUB_APP"`+ ClientAppIDGithubApp int `koanf:"CLIENT_APP_ID_GITHUB_APP"`+ ClientSlugGithubApp string `koanf:"CLIENT_SLUG_GITHUB_APP"`++ // Integration - Azure+ ClientIDAzure string `koanf:"CLIENT_ID_AZURE"`+ ClientSecretAzure string `koanf:"CLIENT_SECRET_AZURE"`++ // Integration - AWS+ ClientIDAWSIntegration string `koanf:"CLIENT_ID_AWS_INTEGRATION"`+ ClientSecretAWSIntegration string `koanf:"CLIENT_SECRET_AWS_INTEGRATION"`++ // Integration - GitLab+ ClientIDGitlab string `koanf:"CLIENT_ID_GITLAB"`+ ClientSecretGitlab string `koanf:"CLIENT_SECRET_GITLAB"`+ URLGitlabURL string `koanf:"URL_GITLAB_URL"`++ // Secret Scanning+ SecretScanningWebhookProxy string `koanf:"SECRET_SCANNING_WEBHOOK_PROXY"`+ SecretScanningWebhookSecret string `koanf:"SECRET_SCANNING_WEBHOOK_SECRET"`+ SecretScanningGitAppID string `koanf:"SECRET_SCANNING_GIT_APP_ID"`+ SecretScanningPrivateKey string `koanf:"SECRET_SCANNING_PRIVATE_KEY"`+ SecretScanningOrgWhitelist string `koanf:"SECRET_SCANNING_ORG_WHITELIST"`+ SecretScanningGitAppSlug string `koanf:"SECRET_SCANNING_GIT_APP_SLUG"`++ // License+ LicenseServerURL string `koanf:"LICENSE_SERVER_URL"`+ LicenseServerKey string `koanf:"LICENSE_SERVER_KEY"`+ LicenseKey string `koanf:"LICENSE_KEY"`+ LicenseKeyOffline string `koanf:"LICENSE_KEY_OFFLINE"`++ // Captcha+ CaptchaSecret string `koanf:"CAPTCHA_SECRET"`+ CaptchaSiteKey string `koanf:"CAPTCHA_SITE_KEY"`++ // Misc+ InitialOrganizationName string `koanf:"INITIAL_ORGANIZATION_NAME"`+ MaxLeaseLimit int `koanf:"MAX_LEASE_LIMIT"`+ IntercomID string `koanf:"INTERCOM_ID"`+ CDNHost string `koanf:"CDN_HOST"`+ LoopsAPIKey string `koanf:"LOOPS_API_KEY"`+ GithubAPIToken string `koanf:"GITHUB_API_TOKEN"`+ PylonAPIKey string `koanf:"PYLON_API_KEY"`+ DisableAuditLogGeneration bool `koanf:"DISABLE_AUDIT_LOG_GENERATION"`+ DisableAuditLogStorage bool `koanf:"DISABLE_AUDIT_LOG_STORAGE"`+ GenerateSanitizedSchema bool `koanf:"GENERATE_SANITIZED_SCHEMA"`+ SanitizedSchemaRole string `koanf:"SANITIZED_SCHEMA_ROLE"`++ // TLS / Certificates+ SSLClientCertificateHeaderKey string `koanf:"SSL_CLIENT_CERTIFICATE_HEADER_KEY"`+ IdentityTLSCertAuthClientCertificateHeaderKey string `koanf:"IDENTITY_TLS_CERT_AUTH_CLIENT_CERTIFICATE_HEADER_KEY"`++ // Slack+ WorkflowSlackClientID string `koanf:"WORKFLOW_SLACK_CLIENT_ID"`+ WorkflowSlackClientSecret string `koanf:"WORKFLOW_SLACK_CLIENT_SECRET"`++ // MSSQL+ EnableMSSQLSecretRotationEncrypt bool `koanf:"ENABLE_MSSQL_SECRET_ROTATION_ENCRYPT"`++ // Secret Detection+ ParamsFolderSecretDetectionPaths string `koanf:"PARAMS_FOLDER_SECRET_DETECTION_PATHS"`+ ParamsFolderSecretDetectionEntropy float64 `koanf:"PARAMS_FOLDER_SECRET_DETECTION_ENTROPY"`++ // Secondary Instance+ InfisicalPrimaryInstanceURL string `koanf:"INFISICAL_PRIMARY_INSTANCE_URL"`++ // HSM+ HSMLibPath string `koanf:"HSM_LIB_PATH"`+ HSMPin string `koanf:"HSM_PIN"`+ HSMKeyLabel string `koanf:"HSM_KEY_LABEL"`+ HSMSlot int `koanf:"HSM_SLOT"`++ // Gateway+ GatewayInfisicalStaticIPAddress string `koanf:"GATEWAY_INFISICAL_STATIC_IP_ADDRESS"`+ GatewayRelayAddress string `koanf:"GATEWAY_RELAY_ADDRESS"`+ GatewayRelayRealm string `koanf:"GATEWAY_RELAY_REALM"`+ GatewayRelayAuthSecret string `koanf:"GATEWAY_RELAY_AUTH_SECRET"`+ RelayAuthSecret string `koanf:"RELAY_AUTH_SECRET"`++ // Dynamic Secrets+ DynamicSecretAllowInternalIP bool `koanf:"DYNAMIC_SECRET_ALLOW_INTERNAL_IP"`+ DynamicSecretAWSAccessKeyID string `koanf:"DYNAMIC_SECRET_AWS_ACCESS_KEY_ID"`+ DynamicSecretAWSSecretAccessKey string `koanf:"DYNAMIC_SECRET_AWS_SECRET_ACCESS_KEY"`++ // PAM AWS+ PAMAWSAccessKeyID string `koanf:"PAM_AWS_ACCESS_KEY_ID"`+ PAMAWSSecretAccessKey string `koanf:"PAM_AWS_SECRET_ACCESS_KEY"`++ // App Connections+ AllowInternalIPConnections bool `koanf:"ALLOW_INTERNAL_IP_CONNECTIONS"`++ // App Connection - AWS+ InfAppConnectionAWSAccessKeyID string `koanf:"INF_APP_CONNECTION_AWS_ACCESS_KEY_ID"`+ InfAppConnectionAWSSecretAccessKey string `koanf:"INF_APP_CONNECTION_AWS_SECRET_ACCESS_KEY"`++ // App Connection - GitHub OAuth+ InfAppConnectionGithubOAuthClientID string `koanf:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_ID"`+ InfAppConnectionGithubOAuthClientSecret string `koanf:"INF_APP_CONNECTION_GITHUB_OAUTH_CLIENT_SECRET"`++ // App Connection - GitHub App+ InfAppConnectionGithubAppClientID string `koanf:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_ID"`+ InfAppConnectionGithubAppClientSecret string `koanf:"INF_APP_CONNECTION_GITHUB_APP_CLIENT_SECRET"`+ InfAppConnectionGithubAppPrivateKey string `koanf:"INF_APP_CONNECTION_GITHUB_APP_PRIVATE_KEY"`+ InfAppConnectionGithubAppSlug string `koanf:"INF_APP_CONNECTION_GITHUB_APP_SLUG"`+ InfAppConnectionGithubAppID string `koanf:"INF_APP_CONNECTION_GITHUB_APP_ID"`++ // App Connection - GitHub Radar App+ InfAppConnectionGithubRadarAppClientID string `koanf:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_ID"`+ InfAppConnectionGithubRadarAppClientSecret string `koanf:"INF_APP_CONNECTION_GITHUB_RADAR_APP_CLIENT_SECRET"`+ InfAppConnectionGithubRadarAppPrivateKey string `koanf:"INF_APP_CONNECTION_GITHUB_RADAR_APP_PRIVATE_KEY"`+ InfAppConnectionGithubRadarAppSlug string `koanf:"INF_APP_CONNECTION_GITHUB_RADAR_APP_SLUG"`+ InfAppConnectionGithubRadarAppID string `koanf:"INF_APP_CONNECTION_GITHUB_RADAR_APP_ID"`+ InfAppConnectionGithubRadarAppWebhookSecret string `koanf:"INF_APP_CONNECTION_GITHUB_RADAR_APP_WEBHOOK_SECRET"`++ // App Connection - GitLab OAuth+ InfAppConnectionGitlabOAuthClientID string `koanf:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_ID"`+ InfAppConnectionGitlabOAuthClientSecret string `koanf:"INF_APP_CONNECTION_GITLAB_OAUTH_CLIENT_SECRET"`++ // App Connection - GCP+ InfAppConnectionGCPServiceAccountCredential string `koanf:"INF_APP_CONNECTION_GCP_SERVICE_ACCOUNT_CREDENTIAL"`++ // App Connection - Azure (Legacy)+ InfAppConnectionAzureClientID string `koanf:"INF_APP_CONNECTION_AZURE_CLIENT_ID"`+ InfAppConnectionAzureClientSecret string `koanf:"INF_APP_CONNECTION_AZURE_CLIENT_SECRET"`++ // App Connection - Azure App Configuration+ InfAppConnectionAzureAppConfigurationClientID string `koanf:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_ID"`+ InfAppConnectionAzureAppConfigurationClientSecret string `koanf:"INF_APP_CONNECTION_AZURE_APP_CONFIGURATION_CLIENT_SECRET"`++ // App Connection - Azure Key Vault+ InfAppConnectionAzureKeyVaultClientID string `koanf:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_ID"`+ InfAppConnectionAzureKeyVaultClientSecret string `koanf:"INF_APP_CONNECTION_AZURE_KEY_VAULT_CLIENT_SECRET"`++ // App Connection - Azure Client Secrets+ InfAppConnectionAzureClientSecretsClientID string `koanf:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_ID"`+ InfAppConnectionAzureClientSecretsClientSecret string `koanf:"INF_APP_CONNECTION_AZURE_CLIENT_SECRETS_CLIENT_SECRET"`++ // App Connection - Azure DevOps+ InfAppConnectionAzureDevOpsClientID string `koanf:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_ID"`+ InfAppConnectionAzureDevOpsClientSecret string `koanf:"INF_APP_CONNECTION_AZURE_DEVOPS_CLIENT_SECRET"`++ // App Connection - Heroku+ InfAppConnectionHerokuOAuthClientID string `koanf:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_ID"`+ InfAppConnectionHerokuOAuthClientSecret string `koanf:"INF_APP_CONNECTION_HEROKU_OAUTH_CLIENT_SECRET"`++ // Datadog+ ShouldUseDatadogTracer bool `koanf:"SHOULD_USE_DATADOG_TRACER"`+ DatadogProfilingEnabled bool `koanf:"DATADOG_PROFILING_ENABLED"`+ DatadogEnv string `koanf:"DATADOG_ENV"`+ DatadogService string `koanf:"DATADOG_SERVICE"`+ DatadogHostname string `koanf:"DATADOG_HOSTNAME"`++ // PIT (Point-in-Time)+ PITCheckpointWindow string `koanf:"PIT_CHECKPOINT_WINDOW"`+ PITTreeCheckpointWindow string `koanf:"PIT_TREE_CHECKPOINT_WINDOW"`++ // CORS+ CORSAllowedOrigins string `koanf:"CORS_ALLOWED_ORIGINS"`+ CORSAllowedHeaders string `koanf:"CORS_ALLOWED_HEADERS"`++ // OracleDB+ TNSAdmin string `koanf:"TNS_ADMIN"`++ // Internal+ InternalRegion string `koanf:"INTERNAL_REGION"`++ // Development flags+ RotationDevelopmentMode bool `koanf:"ROTATION_DEVELOPMENT_MODE"`+ DailyResourceCleanUpDevelopmentMode bool `koanf:"DAILY_RESOURCE_CLEAN_UP_DEVELOPMENT_MODE"`+ BDDNockAPIEnabled bool `koanf:"BDD_NOCK_API_ENABLED"`+ ACMEDevelopmentMode bool `koanf:"ACME_DEVELOPMENT_MODE"`+ ACMESkipUpstreamValidation bool `koanf:"ACME_SKIP_UPSTREAM_VALIDATION"`+ ACMEDevelopmentHTTP01ChallengeHostOverrides string `koanf:"ACME_DEVELOPMENT_HTTP01_CHALLENGE_HOST_OVERRIDES"`+ ACMEDNSResolverServers string `koanf:"ACME_DNS_RESOLVER_SERVERS"`+ ACMEDNSResolveResolverServersHostEnabled bool `koanf:"ACME_DNS_RESOLVE_RESOLVER_SERVERS_HOST_ENABLED"`+ DNSMadeEasySandboxEnabled bool `koanf:"DNS_MADE_EASY_SANDBOX_ENABLED"`// Derived (not from env)- IsCloud bool- IsSmtpConfigured bool- IsRedisConfigured bool- IsDevelopmentMode bool- IsProductionMode bool+ IsCloud bool+ IsSmtpConfigured bool+ IsRedisConfigured bool+ IsClickHouseConfigured bool+ IsDevelopmentMode bool+ IsTestMode bool+ IsProductionMode bool+ IsRedisSentinelMode bool+ IsSecondaryInstance bool+ IsHsmConfigured bool+ IsSecretScanningConfigured bool+ IsSecretScanningV2Configured bool+ ParsedDBReadReplicas []DBReadReplica+ ParsedRedisSentinelHosts []RedisHostPort+ ParsedRedisClusterHosts []RedisHostPort+ ParsedRedisReadReplicas []RedisHostPort}func (c *Config) Addr() string {return fmt.Sprintf("%s:%d", c.Host, c.Port)}-func (c *Config) SlogLevel() slog.Level {- switch strings.ToLower(c.LogLevel) {+func GetConfiguredSlogLevel() slog.Level {+ switch strings.ToLower(os.Getenv("LOG_LEVEL")) {case "debug":return slog.LevelDebugcase "warn":@@ -97,7 +401,38 @@ func LoadConfig() (*Config, error) {k.Set("LOG_LEVEL", "info")k.Set("DB_PORT", "5432")k.Set("SMTP_PORT", 587)+ k.Set("SMTP_FROM_NAME", "Infisical")+ k.Set("SMTP_REQUIRE_TLS", true)+ k.Set("SMTP_TLS_REJECT_UNAUTHORIZED", true)k.Set("TELEMETRY_ENABLED", true)+ k.Set("POSTHOG_HOST", "https://app.posthog.com")+ k.Set("POSTHOG_PROJECT_API_KEY", "phc_nSin8j5q2zdhpFDI1ETmFNUIuTG4DwKVyIigrY10XiE")+ k.Set("SALT_ROUNDS", 10)+ k.Set("MAX_LEASE_LIMIT", 10000)+ k.Set("QUEUE_WORKERS_ENABLED", true)+ k.Set("JWT_AUTH_LIFETIME", "10d")+ k.Set("JWT_SIGNUP_LIFETIME", "15m")+ k.Set("JWT_REFRESH_LIFETIME", "90d")+ k.Set("JWT_INVITE_LIFETIME", "1d")+ k.Set("JWT_MFA_LIFETIME", "5m")+ k.Set("JWT_PROVIDER_AUTH_LIFETIME", "15m")+ k.Set("REDIS_SENTINEL_MASTER_NAME", "mymaster")+ k.Set("LICENSE_SERVER_URL", "https://portal.infisical.com")+ k.Set("SECRET_SCANNING_GIT_APP_SLUG", "infisical-radar")+ k.Set("URL_GITLAB_URL", "https://gitlab.com")+ k.Set("OTEL_OTLP_PUSH_INTERVAL", 30000)+ k.Set("SSL_CLIENT_CERTIFICATE_HEADER_KEY", "x-ssl-client-cert")+ k.Set("IDENTITY_TLS_CERT_AUTH_CLIENT_CERTIFICATE_HEADER_KEY", "x-identity-tls-cert-auth-client-cert")+ k.Set("ENABLE_MSSQL_SECRET_ROTATION_ENCRYPT", true)+ k.Set("CLICKHOUSE_AUDIT_LOG_ENGINE", "ReplacingMergeTree")+ k.Set("CLICKHOUSE_AUDIT_LOG_TABLE_NAME", "audit_logs")+ k.Set("CLICKHOUSE_AUDIT_LOG_ENABLED", true)+ k.Set("DATADOG_ENV", "prod")+ k.Set("DATADOG_SERVICE", "infisical-core")+ k.Set("PIT_CHECKPOINT_WINDOW", "100")+ k.Set("PIT_TREE_CHECKPOINT_WINDOW", "200")+ k.Set("PARAMS_FOLDER_SECRET_DETECTION_ENTROPY", 3.7)+ k.Set("HSM_SLOT", 0)// In non-production, load .env file if it exists.nodeEnv := os.Getenv("NODE_ENV")@@ -121,51 +456,144 @@ func LoadConfig() (*Config, error) {}// Validate required fields.- if err := cfg.validate(); err != nil {- return nil, fmt.Errorf("config validation: %w", err)+ if issues := cfg.validate(); len(issues) > 0 {+ return nil, &ValidationError{Issues: issues}}// Compute derived fields.cfg.IsDevelopmentMode = cfg.NodeEnv == NodeEnvDevelopment+ cfg.IsTestMode = cfg.NodeEnv == NodeEnvTestcfg.IsProductionMode = cfg.NodeEnv == NodeEnvProduction- cfg.IsRedisConfigured = cfg.RedisURL != ""+ cfg.IsRedisConfigured = cfg.RedisURL != "" || cfg.RedisSentinelHosts != "" || cfg.RedisClusterHosts != ""+ cfg.IsRedisSentinelMode = cfg.RedisSentinelHosts != ""cfg.IsSmtpConfigured = cfg.SMTPHost != ""+ cfg.IsCloud = cfg.LicenseServerKey != ""+ cfg.IsClickHouseConfigured = cfg.ClickhouseURL != ""+ cfg.IsSecondaryInstance = cfg.InfisicalPrimaryInstanceURL != ""+ cfg.IsHsmConfigured = cfg.HSMLibPath != "" && cfg.HSMPin != "" && cfg.HSMKeyLabel != ""+ cfg.IsSecretScanningConfigured = cfg.SecretScanningGitAppID != "" &&+ cfg.SecretScanningPrivateKey != "" &&+ cfg.SecretScanningWebhookSecret != ""+ cfg.IsSecretScanningV2Configured = cfg.InfAppConnectionGithubRadarAppID != "" &&+ cfg.InfAppConnectionGithubRadarAppPrivateKey != "" &&+ cfg.InfAppConnectionGithubRadarAppSlug != "" &&+ cfg.InfAppConnectionGithubRadarAppClientID != "" &&+ cfg.InfAppConnectionGithubRadarAppClientSecret != "" &&+ cfg.InfAppConnectionGithubRadarAppWebhookSecret != ""++ // Azure fallbacks (legacy single app → per-service apps).+ if cfg.InfAppConnectionAzureDevOpsClientID == "" {+ cfg.InfAppConnectionAzureDevOpsClientID = cfg.InfAppConnectionAzureClientID+ }+ if cfg.InfAppConnectionAzureDevOpsClientSecret == "" {+ cfg.InfAppConnectionAzureDevOpsClientSecret = cfg.InfAppConnectionAzureClientSecret+ }+ if cfg.InfAppConnectionAzureClientSecretsClientID == "" {+ cfg.InfAppConnectionAzureClientSecretsClientID = cfg.InfAppConnectionAzureClientID+ }+ if cfg.InfAppConnectionAzureClientSecretsClientSecret == "" {+ cfg.InfAppConnectionAzureClientSecretsClientSecret = cfg.InfAppConnectionAzureClientSecret+ }+ if cfg.InfAppConnectionAzureKeyVaultClientID == "" {+ cfg.InfAppConnectionAzureKeyVaultClientID = cfg.InfAppConnectionAzureClientID+ }+ if cfg.InfAppConnectionAzureKeyVaultClientSecret == "" {+ cfg.InfAppConnectionAzureKeyVaultClientSecret = cfg.InfAppConnectionAzureClientSecret+ }+ if cfg.InfAppConnectionAzureAppConfigurationClientID == "" {+ cfg.InfAppConnectionAzureAppConfigurationClientID = cfg.InfAppConnectionAzureClientID+ }+ if cfg.InfAppConnectionAzureAppConfigurationClientSecret == "" {+ cfg.InfAppConnectionAzureAppConfigurationClientSecret = cfg.InfAppConnectionAzureClientSecret+ }++ // Heroku fallback.+ if cfg.InfAppConnectionHerokuOAuthClientID == "" {+ cfg.InfAppConnectionHerokuOAuthClientID = cfg.ClientIDHeroku+ }+ if cfg.InfAppConnectionHerokuOAuthClientSecret == "" {+ cfg.InfAppConnectionHerokuOAuthClientSecret = cfg.ClientSecretHeroku+ }++ // Parse DB_READ_REPLICAS JSON: [{ "DB_CONNECTION_URI": "...", "DB_ROOT_CERT": "..." }, ...]+ if cfg.DBReadReplicas != "" {+ if err := json.Unmarshal([]byte(cfg.DBReadReplicas), &cfg.ParsedDBReadReplicas); err != nil {+ return nil, fmt.Errorf("parsing DB_READ_REPLICAS: %w", err)+ }+ }++ // Parse comma-separated host:port lists for Redis Sentinel, Cluster, and Read Replicas.+ if cfg.RedisSentinelHosts != "" {+ cfg.ParsedRedisSentinelHosts = parseHostPortList(cfg.RedisSentinelHosts)+ }+ if cfg.RedisClusterHosts != "" {+ cfg.ParsedRedisClusterHosts = parseHostPortList(cfg.RedisClusterHosts)+ }+ if cfg.RedisReadReplicas != "" {+ cfg.ParsedRedisReadReplicas = parseHostPortList(cfg.RedisReadReplicas)+ }return &cfg, nil}-func (c *Config) validate() error {- var errs []error+// ValidationError holds a list of config validation issues.+type ValidationError struct {+ Issues []string+}++func (e *ValidationError) Error() string {+ return fmt.Sprintf("invalid environment variables:\n - %s", strings.Join(e.Issues, "\n - "))+}++// parseHostPortList parses a comma-separated "host:port" string into []RedisHostPort.+// Matches the Node.js transform: val.split(",").map(el => { host, port }).+func parseHostPortList(raw string) []RedisHostPort {+ var result []RedisHostPort+ for _, entry := range strings.Split(raw, ",") {+ entry = strings.TrimSpace(entry)+ if entry == "" {+ continue+ }+ host, portStr, found := strings.Cut(entry, ":")+ hp := RedisHostPort{Host: strings.TrimSpace(host)}+ if found {+ fmt.Sscanf(strings.TrimSpace(portStr), "%d", &hp.Port)+ }+ result = append(result, hp)+ }+ return result+}++func (c *Config) validate() []string {+ var issues []string- // NODE_ENV must be a known value.switch c.NodeEnv {case NodeEnvDevelopment, NodeEnvTest, NodeEnvProduction:default:- errs = append(errs, fmt.Errorf("NODE_ENV must be one of: development, test, production (got %q)", c.NodeEnv))+ issues = append(issues, fmt.Sprintf("NODE_ENV must be one of: development, test, production (got %q)", c.NodeEnv))}if c.Port <= 0 || c.Port > 65535 {- errs = append(errs, fmt.Errorf("PORT must be between 1 and 65535 (got %d)", c.Port))+ issues = append(issues, fmt.Sprintf("PORT must be between 1 and 65535 (got %d)", c.Port))}- // DB_CONNECTION_URI is required unless individual DB fields are all set.if c.DBConnectionURI == "" {if c.DBHost == "" || c.DBUser == "" || c.DBName == "" {- errs = append(errs, fmt.Errorf("DB_CONNECTION_URI is required (or set DB_HOST, DB_USER, and DB_NAME)"))+ issues = append(issues, "DB_CONNECTION_URI is required (or set DB_HOST, DB_USER, and DB_NAME)")}}- if c.RedisURL == "" {- errs = append(errs, fmt.Errorf("REDIS_URL is required"))+ if c.RedisURL == "" && c.RedisSentinelHosts == "" && c.RedisClusterHosts == "" {+ issues = append(issues, "Either REDIS_URL, REDIS_SENTINEL_HOSTS, or REDIS_CLUSTER_HOSTS is required")}if c.EncryptionKey == "" && c.RootEncryptionKey == "" {- errs = append(errs, fmt.Errorf("either ENCRYPTION_KEY or ROOT_ENCRYPTION_KEY is required"))+ issues = append(issues, "Either ENCRYPTION_KEY or ROOT_ENCRYPTION_KEY is required")}if c.AuthSecret == "" {- errs = append(errs, fmt.Errorf("AUTH_SECRET is required"))+ issues = append(issues, "AUTH_SECRET is required")}- return errors.Join(errs...)+ return issues}diff --git a/backend-go/internal/database/pg/gen/model/access_approval_policies.go b/backend-go/internal/database/pg/gen/model/access_approval_policies.gonew file mode 100644index 0000000000..52c2f5a5c3--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/access_approval_policies.go@@ -0,0 +1,27 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AccessApprovalPolicies struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ Approvals int32+ SecretPath string+ EnvId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ EnforcementLevel string+ DeletedAt *time.Time+ AllowedSelfApprovals bool+ MaxTimePeriod *string+}diff --git a/backend-go/internal/database/pg/gen/model/access_approval_policies_approvers.go b/backend-go/internal/database/pg/gen/model/access_approval_policies_approvers.gonew file mode 100644index 0000000000..ea98a17d87--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/access_approval_policies_approvers.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AccessApprovalPoliciesApprovers struct {+ ID uuid.UUID `sql:"primary_key"`+ PolicyId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ ApproverUserId *uuid.UUID+ ApproverGroupId *uuid.UUID+ Sequence *int32+ ApprovalsRequired *int32+}diff --git a/backend-go/internal/database/pg/gen/model/access_approval_policies_bypassers.go b/backend-go/internal/database/pg/gen/model/access_approval_policies_bypassers.gonew file mode 100644index 0000000000..ff6a871586--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/access_approval_policies_bypassers.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AccessApprovalPoliciesBypassers struct {+ ID uuid.UUID `sql:"primary_key"`+ BypasserGroupId *uuid.UUID+ BypasserUserId *uuid.UUID+ PolicyId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/access_approval_policies_environments.go b/backend-go/internal/database/pg/gen/model/access_approval_policies_environments.gonew file mode 100644index 0000000000..6b2b7dd2b1--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/access_approval_policies_environments.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AccessApprovalPoliciesEnvironments struct {+ ID uuid.UUID `sql:"primary_key"`+ PolicyId uuid.UUID+ EnvId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/access_approval_requests.go b/backend-go/internal/database/pg/gen/model/access_approval_requests.gonew file mode 100644index 0000000000..7293da507b--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/access_approval_requests.go@@ -0,0 +1,30 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AccessApprovalRequests struct {+ ID uuid.UUID `sql:"primary_key"`+ PolicyId uuid.UUID+ PrivilegeId *uuid.UUID+ IsTemporary bool+ TemporaryRange *string+ Permissions string+ CreatedAt time.Time+ UpdatedAt time.Time+ RequestedByUserId uuid.UUID+ Note *string+ PrivilegeDeletedAt *time.Time+ Status string+ EditedByUserId *uuid.UUID+ EditNote *string+}diff --git a/backend-go/internal/database/pg/gen/model/access_approval_requests_reviewers.go b/backend-go/internal/database/pg/gen/model/access_approval_requests_reviewers.gonew file mode 100644index 0000000000..f2db487bd1--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/access_approval_requests_reviewers.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AccessApprovalRequestsReviewers struct {+ ID uuid.UUID `sql:"primary_key"`+ Status string+ RequestId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ ReviewerUserId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/additional_privileges.go b/backend-go/internal/database/pg/gen/model/additional_privileges.gonew file mode 100644index 0000000000..c2025dff08--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/additional_privileges.go@@ -0,0 +1,30 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AdditionalPrivileges struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ IsTemporary bool+ TemporaryMode *string+ TemporaryRange *string+ TemporaryAccessStartTime *time.Time+ TemporaryAccessEndTime *time.Time+ Permissions string+ ActorUserId *uuid.UUID+ ActorIdentityId *uuid.UUID+ OrgId *uuid.UUID+ ProjectId *string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/ai_mcp_activity_logs.go b/backend-go/internal/database/pg/gen/model/ai_mcp_activity_logs.gonew file mode 100644index 0000000000..7d46ef5779--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ai_mcp_activity_logs.go@@ -0,0 +1,26 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AiMcpActivityLogs struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ EndpointName string+ ServerName string+ ToolName string+ Actor string+ Request string+ Response string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/ai_mcp_endpoint_server_tools.go b/backend-go/internal/database/pg/gen/model/ai_mcp_endpoint_server_tools.gonew file mode 100644index 0000000000..642c4edd1d--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ai_mcp_endpoint_server_tools.go@@ -0,0 +1,19 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type AiMcpEndpointServerTools struct {+ ID uuid.UUID `sql:"primary_key"`+ AiMcpEndpointId uuid.UUID+ AiMcpServerToolId uuid.UUID+ IsEnabled bool+}diff --git a/backend-go/internal/database/pg/gen/model/ai_mcp_endpoint_servers.go b/backend-go/internal/database/pg/gen/model/ai_mcp_endpoint_servers.gonew file mode 100644index 0000000000..efa888e2f2--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ai_mcp_endpoint_servers.go@@ -0,0 +1,18 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type AiMcpEndpointServers struct {+ ID uuid.UUID `sql:"primary_key"`+ AiMcpEndpointId uuid.UUID+ AiMcpServerId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/ai_mcp_endpoints.go b/backend-go/internal/database/pg/gen/model/ai_mcp_endpoints.gonew file mode 100644index 0000000000..eb5656ff6e--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ai_mcp_endpoints.go@@ -0,0 +1,27 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type AiMcpEndpoints struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ Description *string+ Status *string+ ProjectId string+ CreatedAt time.Time+ UpdatedAt time.Time+ PiiRequestFiltering bool+ PiiResponseFiltering bool+ PiiEntityTypes *pq.StringArray+}diff --git a/backend-go/internal/database/pg/gen/model/ai_mcp_server_tools.go b/backend-go/internal/database/pg/gen/model/ai_mcp_server_tools.gonew file mode 100644index 0000000000..7c547222b3--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ai_mcp_server_tools.go@@ -0,0 +1,20 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type AiMcpServerTools struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ Description *string+ InputSchema *string+ AiMcpServerId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/ai_mcp_server_user_credentials.go b/backend-go/internal/database/pg/gen/model/ai_mcp_server_user_credentials.gonew file mode 100644index 0000000000..d1d4ba6712--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ai_mcp_server_user_credentials.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AiMcpServerUserCredentials struct {+ ID uuid.UUID `sql:"primary_key"`+ UserId uuid.UUID+ AiMcpServerId uuid.UUID+ EncryptedCredentials []byte+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/ai_mcp_servers.go b/backend-go/internal/database/pg/gen/model/ai_mcp_servers.gonew file mode 100644index 0000000000..0b75c53a90--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ai_mcp_servers.go@@ -0,0 +1,29 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AiMcpServers struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ URL string+ Description *string+ Status *string+ CredentialMode *string+ AuthMethod *string+ EncryptedCredentials *[]byte+ EncryptedOauthConfig *[]byte+ ProjectId string+ CreatedAt time.Time+ UpdatedAt time.Time+ GatewayId *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/api_keys.go b/backend-go/internal/database/pg/gen/model/api_keys.gonew file mode 100644index 0000000000..6407b2132a--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/api_keys.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type APIKeys struct {+ ID string `sql:"primary_key"`+ Name string+ LastUsed *time.Time+ ExpiresAt *time.Time+ SecretHash string+ CreatedAt time.Time+ UpdatedAt time.Time+ UserId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/app_connection_credential_rotations.go b/backend-go/internal/database/pg/gen/model/app_connection_credential_rotations.gonew file mode 100644index 0000000000..a7f94965d1--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/app_connection_credential_rotations.go@@ -0,0 +1,32 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AppConnectionCredentialRotations struct {+ ID uuid.UUID `sql:"primary_key"`+ ConnectionId uuid.UUID+ Strategy string+ EncryptedStrategyConfig []byte+ RotationInterval int32+ RotateAtUtc string+ RotationStatus string+ LastRotationAttemptedAt *time.Time+ LastRotatedAt *time.Time+ EncryptedLastRotationMessage *[]byte+ LastRotationJobId *string+ NextRotationAt *time.Time+ ActiveIndex int32+ EncryptedGeneratedCredentials []byte+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/app_connections.go b/backend-go/internal/database/pg/gen/model/app_connections.gonew file mode 100644index 0000000000..3ef3977ccb--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/app_connections.go@@ -0,0 +1,30 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AppConnections struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ Description *string+ App string+ Method string+ EncryptedCredentials []byte+ Version int32+ OrgId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ IsPlatformManagedCredentials *bool+ GatewayId *uuid.UUID+ ProjectId *string+ IsAutoRotationEnabled bool+}diff --git a/backend-go/internal/database/pg/gen/model/approval_policies.go b/backend-go/internal/database/pg/gen/model/approval_policies.gonew file mode 100644index 0000000000..8eccdc15b2--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/approval_policies.go@@ -0,0 +1,28 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ApprovalPolicies struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ OrganizationId uuid.UUID+ Type string+ Name string+ IsActive *bool+ MaxRequestTtl *string+ Conditions string+ Constraints string+ CreatedAt time.Time+ UpdatedAt time.Time+ BypassForMachineIdentities *bool+}diff --git a/backend-go/internal/database/pg/gen/model/approval_policy_step_approvers.go b/backend-go/internal/database/pg/gen/model/approval_policy_step_approvers.gonew file mode 100644index 0000000000..00bf432947--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/approval_policy_step_approvers.go@@ -0,0 +1,19 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type ApprovalPolicyStepApprovers struct {+ ID uuid.UUID `sql:"primary_key"`+ PolicyStepId uuid.UUID+ UserId *uuid.UUID+ GroupId *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/approval_policy_steps.go b/backend-go/internal/database/pg/gen/model/approval_policy_steps.gonew file mode 100644index 0000000000..38b2008ff9--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/approval_policy_steps.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type ApprovalPolicySteps struct {+ ID uuid.UUID `sql:"primary_key"`+ PolicyId uuid.UUID+ Name *string+ StepNumber int32+ RequiredApprovals int32+ NotifyApprovers *bool+}diff --git a/backend-go/internal/database/pg/gen/model/approval_request_approvals.go b/backend-go/internal/database/pg/gen/model/approval_request_approvals.gonew file mode 100644index 0000000000..6710b8a238--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/approval_request_approvals.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ApprovalRequestApprovals struct {+ ID uuid.UUID `sql:"primary_key"`+ StepId uuid.UUID+ ApproverUserId uuid.UUID+ Decision string+ Comment *string+ CreatedAt *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/approval_request_grants.go b/backend-go/internal/database/pg/gen/model/approval_request_grants.gonew file mode 100644index 0000000000..e75aa8df4e--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/approval_request_grants.go@@ -0,0 +1,28 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ApprovalRequestGrants struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ RequestId *uuid.UUID+ GranteeUserId *uuid.UUID+ RevokedByUserId *uuid.UUID+ RevocationReason *string+ Status string+ Type string+ Attributes string+ CreatedAt *time.Time+ ExpiresAt *time.Time+ RevokedAt *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/approval_request_step_eligible_approvers.go b/backend-go/internal/database/pg/gen/model/approval_request_step_eligible_approvers.gonew file mode 100644index 0000000000..8eb6aa165e--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/approval_request_step_eligible_approvers.go@@ -0,0 +1,19 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type ApprovalRequestStepEligibleApprovers struct {+ ID uuid.UUID `sql:"primary_key"`+ StepId uuid.UUID+ UserId *uuid.UUID+ GroupId *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/approval_request_steps.go b/backend-go/internal/database/pg/gen/model/approval_request_steps.gonew file mode 100644index 0000000000..2c193105cc--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/approval_request_steps.go@@ -0,0 +1,25 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ApprovalRequestSteps struct {+ ID uuid.UUID `sql:"primary_key"`+ RequestId uuid.UUID+ StepNumber int32+ Name *string+ Status string+ RequiredApprovals int32+ NotifyApprovers *bool+ StartedAt *time.Time+ CompletedAt *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/approval_requests.go b/backend-go/internal/database/pg/gen/model/approval_requests.gonew file mode 100644index 0000000000..d31bae6fc3--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/approval_requests.go@@ -0,0 +1,32 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ApprovalRequests struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ OrganizationId uuid.UUID+ PolicyId *uuid.UUID+ RequesterId *uuid.UUID+ RequesterName string+ RequesterEmail string+ Type string+ Status string+ Justification *string+ CurrentStep int32+ RequestData string+ ExpiresAt *time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+ MachineIdentityId *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/audit_log_streams.go b/backend-go/internal/database/pg/gen/model/audit_log_streams.gonew file mode 100644index 0000000000..1be88402eb--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/audit_log_streams.go@@ -0,0 +1,28 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AuditLogStreams struct {+ ID uuid.UUID `sql:"primary_key"`+ URL *string+ EncryptedHeadersCiphertext *string+ EncryptedHeadersIV *string+ EncryptedHeadersTag *string+ EncryptedHeadersAlgorithm *string+ EncryptedHeadersKeyEncoding *string+ OrgId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ Provider string+ EncryptedCredentials []byte+}diff --git a/backend-go/internal/database/pg/gen/model/audit_logs.go b/backend-go/internal/database/pg/gen/model/audit_logs.gonew file mode 100644index 0000000000..1e2fb6aa20--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/audit_logs.go@@ -0,0 +1,30 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AuditLogs struct {+ ID uuid.UUID `sql:"primary_key"`+ Actor string+ ActorMetadata string+ IpAddress *string+ EventType string+ EventMetadata *string+ UserAgent *string+ UserAgentType *string+ ExpiresAt *time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+ OrgId *uuid.UUID+ ProjectId *string+ ProjectName *string+}diff --git a/backend-go/internal/database/pg/gen/model/auth_token_sessions.go b/backend-go/internal/database/pg/gen/model/auth_token_sessions.gonew file mode 100644index 0000000000..677adf6fa0--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/auth_token_sessions.go@@ -0,0 +1,25 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AuthTokenSessions struct {+ ID uuid.UUID `sql:"primary_key"`+ IP string+ UserAgent *string+ RefreshVersion int32+ AccessVersion int32+ LastUsed time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+ UserId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/auth_tokens.go b/backend-go/internal/database/pg/gen/model/auth_tokens.gonew file mode 100644index 0000000000..d8a4272a66--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/auth_tokens.go@@ -0,0 +1,28 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type AuthTokens struct {+ ID uuid.UUID `sql:"primary_key"`+ Type string+ PhoneNumber *string+ TokenHash string+ TriesLeft *int32+ ExpiresAt time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+ UserId *uuid.UUID+ OrgId *uuid.UUID+ AliasId *string+ Payload *string+}diff --git a/backend-go/internal/database/pg/gen/model/backup_private_key.go b/backend-go/internal/database/pg/gen/model/backup_private_key.gonew file mode 100644index 0000000000..316d665360--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/backup_private_key.go@@ -0,0 +1,27 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type BackupPrivateKey struct {+ ID uuid.UUID `sql:"primary_key"`+ EncryptedPrivateKey string+ Iv string+ Tag string+ Algorithm string+ KeyEncoding string+ Salt string+ Verifier string+ CreatedAt time.Time+ UpdatedAt time.Time+ UserId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/ca_signing_configs.go b/backend-go/internal/database/pg/gen/model/ca_signing_configs.gonew file mode 100644index 0000000000..23bebda8d3--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ca_signing_configs.go@@ -0,0 +1,25 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type CaSigningConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ CaId uuid.UUID+ Type string+ ParentCaId *uuid.UUID+ AppConnectionId *uuid.UUID+ DestinationConfig *string+ LastExternalCertificateId *string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/certificate_authorities.go b/backend-go/internal/database/pg/gen/model/certificate_authorities.gonew file mode 100644index 0000000000..f9a21ed9e0--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/certificate_authorities.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type CertificateAuthorities struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ ProjectId string+ Status string+ EnableDirectIssuance bool+ Name string+}diff --git a/backend-go/internal/database/pg/gen/model/certificate_authority_certs.go b/backend-go/internal/database/pg/gen/model/certificate_authority_certs.gonew file mode 100644index 0000000000..86b9ded1b6--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/certificate_authority_certs.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type CertificateAuthorityCerts struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ CaId uuid.UUID+ EncryptedCertificate []byte+ EncryptedCertificateChain []byte+ Version int32+ CaSecretId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/certificate_authority_crl.go b/backend-go/internal/database/pg/gen/model/certificate_authority_crl.gonew file mode 100644index 0000000000..4750b65e03--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/certificate_authority_crl.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type CertificateAuthorityCrl struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ CaId uuid.UUID+ EncryptedCrl []byte+ CaSecretId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/certificate_authority_secret.go b/backend-go/internal/database/pg/gen/model/certificate_authority_secret.gonew file mode 100644index 0000000000..a2a832caaa--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/certificate_authority_secret.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type CertificateAuthoritySecret struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ CaId uuid.UUID+ EncryptedPrivateKey []byte+}diff --git a/backend-go/internal/database/pg/gen/model/certificate_bodies.go b/backend-go/internal/database/pg/gen/model/certificate_bodies.gonew file mode 100644index 0000000000..8190b4b51b--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/certificate_bodies.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type CertificateBodies struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ CertId uuid.UUID+ EncryptedCertificate []byte+ EncryptedCertificateChain *[]byte+}diff --git a/backend-go/internal/database/pg/gen/model/certificate_requests.go b/backend-go/internal/database/pg/gen/model/certificate_requests.gonew file mode 100644index 0000000000..95183a593a--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/certificate_requests.go@@ -0,0 +1,46 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type CertificateRequests struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time `sql:"primary_key"`+ UpdatedAt time.Time+ Status string+ ProjectId string+ ProfileId *uuid.UUID+ CaId *uuid.UUID+ CertificateId *uuid.UUID+ Csr *string+ CommonName *string+ KeyUsages *pq.StringArray+ ExtendedKeyUsages *pq.StringArray+ NotBefore *time.Time+ NotAfter *time.Time+ KeyAlgorithm *string+ SignatureAlgorithm *string+ ErrorMessage *string+ Metadata *string+ AcmeOrderId *uuid.UUID+ BasicConstraints *string+ ApprovalRequestId *uuid.UUID+ TTL *string+ EnrollmentType *string+ AltNames *string+ Organization *string+ OrganizationalUnit *string+ Country *string+ State *string+ Locality *string+}diff --git a/backend-go/internal/database/pg/gen/model/certificate_secrets.go b/backend-go/internal/database/pg/gen/model/certificate_secrets.gonew file mode 100644index 0000000000..354e5aa07d--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/certificate_secrets.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type CertificateSecrets struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ CertId uuid.UUID+ EncryptedPrivateKey []byte+}diff --git a/backend-go/internal/database/pg/gen/model/certificate_syncs.go b/backend-go/internal/database/pg/gen/model/certificate_syncs.gonew file mode 100644index 0000000000..69771da121--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/certificate_syncs.go@@ -0,0 +1,26 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type CertificateSyncs struct {+ ID uuid.UUID `sql:"primary_key"`+ PkiSyncId uuid.UUID+ CertificateId uuid.UUID+ SyncStatus *string+ LastSyncMessage *string+ LastSyncedAt *time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+ ExternalIdentifier *string+ SyncMetadata *string+}diff --git a/backend-go/internal/database/pg/gen/model/certificate_template_est_configs.go b/backend-go/internal/database/pg/gen/model/certificate_template_est_configs.gonew file mode 100644index 0000000000..385c499c6b--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/certificate_template_est_configs.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type CertificateTemplateEstConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ CertificateTemplateId uuid.UUID+ EncryptedCaChain *[]byte+ HashedPassphrase string+ IsEnabled bool+ CreatedAt time.Time+ UpdatedAt time.Time+ DisableBootstrapCertValidation bool+}diff --git a/backend-go/internal/database/pg/gen/model/certificate_templates.go b/backend-go/internal/database/pg/gen/model/certificate_templates.gonew file mode 100644index 0000000000..d71968be66--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/certificate_templates.go@@ -0,0 +1,28 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type CertificateTemplates struct {+ ID uuid.UUID `sql:"primary_key"`+ CaId uuid.UUID+ PkiCollectionId *uuid.UUID+ Name string+ CommonName string+ SubjectAlternativeName string+ TTL string+ CreatedAt time.Time+ UpdatedAt time.Time+ KeyUsages *pq.StringArray+ ExtendedKeyUsages *pq.StringArray+}diff --git a/backend-go/internal/database/pg/gen/model/certificates.go b/backend-go/internal/database/pg/gen/model/certificates.gonew file mode 100644index 0000000000..62131a8e02--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/certificates.go@@ -0,0 +1,54 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type Certificates struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ CaId *uuid.UUID+ Status string+ SerialNumber string+ FriendlyName string+ CommonName string+ NotBefore time.Time+ NotAfter time.Time+ RevokedAt *time.Time+ RevocationReason *int32+ AltNames *string+ CaCertId *uuid.UUID+ CertificateTemplateId *uuid.UUID+ KeyUsages *pq.StringArray+ ExtendedKeyUsages *pq.StringArray+ ProjectId string+ PkiSubscriberId *uuid.UUID+ ProfileId *uuid.UUID+ RenewBeforeDays *int32+ RenewedFromCertificateId *uuid.UUID+ RenewedByCertificateId *uuid.UUID+ RenewalError *string+ KeyAlgorithm *string+ SignatureAlgorithm *string+ SubjectOrganization *string+ SubjectOrganizationalUnit *string+ SubjectCountry *string+ SubjectState *string+ SubjectLocality *string+ FingerprintSha256 *string+ FingerprintSha1 *string+ IsCA *bool+ PathLength *int32+ Source *string+ DiscoveryMetadata *string+}diff --git a/backend-go/internal/database/pg/gen/model/dynamic_secret_leases.go b/backend-go/internal/database/pg/gen/model/dynamic_secret_leases.gonew file mode 100644index 0000000000..863f27ad93--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/dynamic_secret_leases.go@@ -0,0 +1,26 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type DynamicSecretLeases struct {+ ID uuid.UUID `sql:"primary_key"`+ Version int32+ ExternalEntityId string+ ExpireAt time.Time+ Status *string+ StatusDetails *string+ DynamicSecretId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ Config *string+}diff --git a/backend-go/internal/database/pg/gen/model/dynamic_secrets.go b/backend-go/internal/database/pg/gen/model/dynamic_secrets.gonew file mode 100644index 0000000000..c01975cd9d--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/dynamic_secrets.go@@ -0,0 +1,37 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type DynamicSecrets struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ Version int32+ Type string+ DefaultTTL string+ MaxTTL *string+ InputIV *string+ InputCiphertext *string+ InputTag *string+ Algorithm string+ KeyEncoding string+ FolderId uuid.UUID+ Status *string+ StatusDetails *string+ CreatedAt time.Time+ UpdatedAt time.Time+ EncryptedInput []byte+ ProjectGatewayId *uuid.UUID+ GatewayId *uuid.UUID+ UsernameTemplate *string+ GatewayV2Id *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/external_certificate_authorities.go b/backend-go/internal/database/pg/gen/model/external_certificate_authorities.gonew file mode 100644index 0000000000..afc2bed2a1--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/external_certificate_authorities.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type ExternalCertificateAuthorities struct {+ ID uuid.UUID `sql:"primary_key"`+ Type string+ AppConnectionId *uuid.UUID+ DnsAppConnectionId *uuid.UUID+ CaId uuid.UUID+ Credentials *[]byte+ Configuration *string+}diff --git a/backend-go/internal/database/pg/gen/model/external_group_org_role_mappings.go b/backend-go/internal/database/pg/gen/model/external_group_org_role_mappings.gonew file mode 100644index 0000000000..a37d05b682--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/external_group_org_role_mappings.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ExternalGroupOrgRoleMappings struct {+ ID uuid.UUID `sql:"primary_key"`+ GroupName string+ Role string+ RoleId *uuid.UUID+ OrgId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/external_kms.go b/backend-go/internal/database/pg/gen/model/external_kms.gonew file mode 100644index 0000000000..06cf7c5ee5--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/external_kms.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type ExternalKms struct {+ ID uuid.UUID `sql:"primary_key"`+ Provider string+ EncryptedProviderInputs []byte+ Status *string+ StatusDetails *string+ KmsKeyId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/folder_checkpoint_resources.go b/backend-go/internal/database/pg/gen/model/folder_checkpoint_resources.gonew file mode 100644index 0000000000..d2dbd3355f--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/folder_checkpoint_resources.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type FolderCheckpointResources struct {+ ID uuid.UUID `sql:"primary_key"`+ FolderCheckpointId uuid.UUID+ SecretVersionId *uuid.UUID+ FolderVersionId *uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/folder_checkpoints.go b/backend-go/internal/database/pg/gen/model/folder_checkpoints.gonew file mode 100644index 0000000000..5b789d34e2--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/folder_checkpoints.go@@ -0,0 +1,20 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type FolderCheckpoints struct {+ ID uuid.UUID `sql:"primary_key"`+ FolderCommitId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/folder_commit_changes.go b/backend-go/internal/database/pg/gen/model/folder_commit_changes.gonew file mode 100644index 0000000000..a0ac34e37d--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/folder_commit_changes.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type FolderCommitChanges struct {+ ID uuid.UUID `sql:"primary_key"`+ FolderCommitId uuid.UUID+ ChangeType string+ IsUpdate bool+ SecretVersionId *uuid.UUID+ FolderVersionId *uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/folder_commits.go b/backend-go/internal/database/pg/gen/model/folder_commits.gonew file mode 100644index 0000000000..1885f3c90e--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/folder_commits.go@@ -0,0 +1,25 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type FolderCommits struct {+ ID uuid.UUID `sql:"primary_key"`+ CommitId int64+ ActorMetadata string+ ActorType string+ Message *string+ FolderId uuid.UUID+ EnvId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/folder_tree_checkpoint_resources.go b/backend-go/internal/database/pg/gen/model/folder_tree_checkpoint_resources.gonew file mode 100644index 0000000000..fc03118e77--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/folder_tree_checkpoint_resources.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type FolderTreeCheckpointResources struct {+ ID uuid.UUID `sql:"primary_key"`+ FolderTreeCheckpointId uuid.UUID+ FolderId uuid.UUID+ FolderCommitId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/folder_tree_checkpoints.go b/backend-go/internal/database/pg/gen/model/folder_tree_checkpoints.gonew file mode 100644index 0000000000..1314c193d0--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/folder_tree_checkpoints.go@@ -0,0 +1,20 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type FolderTreeCheckpoints struct {+ ID uuid.UUID `sql:"primary_key"`+ FolderCommitId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/gateways.go b/backend-go/internal/database/pg/gen/model/gateways.gonew file mode 100644index 0000000000..1f5115b113--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/gateways.go@@ -0,0 +1,28 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type Gateways struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ SerialNumber string+ KeyAlgorithm string+ IssuedAt time.Time+ Expiration time.Time+ Heartbeat *time.Time+ RelayAddress []byte+ OrgGatewayRootCaId uuid.UUID+ IdentityId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/gateways_v2.go b/backend-go/internal/database/pg/gen/model/gateways_v2.gonew file mode 100644index 0000000000..6c4994145f--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/gateways_v2.go@@ -0,0 +1,26 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type GatewaysV2 struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ OrgId uuid.UUID+ IdentityId uuid.UUID+ RelayId *uuid.UUID+ Name string+ Heartbeat *time.Time+ EncryptedPamSessionKey *[]byte+ HealthAlertedAt *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/git_app_install_sessions.go b/backend-go/internal/database/pg/gen/model/git_app_install_sessions.gonew file mode 100644index 0000000000..8b02a245e0--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/git_app_install_sessions.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type GitAppInstallSessions struct {+ ID uuid.UUID `sql:"primary_key"`+ SessionId string+ UserId *uuid.UUID+ OrgId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/git_app_org.go b/backend-go/internal/database/pg/gen/model/git_app_org.gonew file mode 100644index 0000000000..b0b985354e--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/git_app_org.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type GitAppOrg struct {+ ID uuid.UUID `sql:"primary_key"`+ InstallationId string+ UserId uuid.UUID+ OrgId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/github_org_sync_configs.go b/backend-go/internal/database/pg/gen/model/github_org_sync_configs.gonew file mode 100644index 0000000000..b5d1754918--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/github_org_sync_configs.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type GithubOrgSyncConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ GithubOrgName string+ IsActive *bool+ EncryptedGithubOrgAccessToken *[]byte+ OrgId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/groups.go b/backend-go/internal/database/pg/gen/model/groups.gonew file mode 100644index 0000000000..2333c21446--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/groups.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type Groups struct {+ ID uuid.UUID `sql:"primary_key"`+ OrgId uuid.UUID+ Name string+ Slug string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/identities.go b/backend-go/internal/database/pg/gen/model/identities.gonew file mode 100644index 0000000000..53896eeb81--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identities.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type Identities struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ AuthMethod *string+ CreatedAt time.Time+ UpdatedAt time.Time+ HasDeleteProtection bool+ OrgId uuid.UUID+ ProjectId *string+}diff --git a/backend-go/internal/database/pg/gen/model/identity_access_tokens.go b/backend-go/internal/database/pg/gen/model/identity_access_tokens.gonew file mode 100644index 0000000000..f0c06edc42--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_access_tokens.go@@ -0,0 +1,32 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityAccessTokens struct {+ ID string `sql:"primary_key"`+ AccessTokenTTL int64+ AccessTokenMaxTTL int64+ AccessTokenNumUses int64+ AccessTokenNumUsesLimit int64+ AccessTokenLastUsedAt *time.Time+ AccessTokenLastRenewedAt *time.Time+ IsAccessTokenRevoked bool+ IdentityUAClientSecretId *string+ IdentityId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ Name *string+ AuthMethod string+ AccessTokenPeriod int64+ SubOrganizationId *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/identity_alicloud_auths.go b/backend-go/internal/database/pg/gen/model/identity_alicloud_auths.gonew file mode 100644index 0000000000..f28330e331--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_alicloud_auths.go@@ -0,0 +1,26 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityAlicloudAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ AccessTokenTTL int64+ AccessTokenMaxTTL int64+ AccessTokenNumUsesLimit int64+ AccessTokenTrustedIps string+ CreatedAt time.Time+ UpdatedAt time.Time+ IdentityId uuid.UUID+ Type string+ AllowedArns string+}diff --git a/backend-go/internal/database/pg/gen/model/identity_auth_templates.go b/backend-go/internal/database/pg/gen/model/identity_auth_templates.gonew file mode 100644index 0000000000..0760adc1ed--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_auth_templates.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityAuthTemplates struct {+ ID uuid.UUID `sql:"primary_key"`+ TemplateFields []byte+ OrgId uuid.UUID+ Name string+ AuthMethod string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/identity_aws_auths.go b/backend-go/internal/database/pg/gen/model/identity_aws_auths.gonew file mode 100644index 0000000000..7cba4c554e--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_aws_auths.go@@ -0,0 +1,29 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityAwsAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ AccessTokenTTL int64+ AccessTokenMaxTTL int64+ AccessTokenNumUsesLimit int64+ AccessTokenTrustedIps string+ CreatedAt time.Time+ UpdatedAt time.Time+ IdentityId uuid.UUID+ Type string+ StsEndpoint string+ AllowedPrincipalArns string+ AllowedAccountIds string+ AccessTokenPeriod int64+}diff --git a/backend-go/internal/database/pg/gen/model/identity_azure_auths.go b/backend-go/internal/database/pg/gen/model/identity_azure_auths.gonew file mode 100644index 0000000000..dd7541baa0--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_azure_auths.go@@ -0,0 +1,28 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityAzureAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ AccessTokenTTL int64+ AccessTokenMaxTTL int64+ AccessTokenNumUsesLimit int64+ AccessTokenTrustedIps string+ CreatedAt time.Time+ UpdatedAt time.Time+ IdentityId uuid.UUID+ TenantId string+ Resource string+ AllowedServicePrincipalIds string+ AccessTokenPeriod int64+}diff --git a/backend-go/internal/database/pg/gen/model/identity_gcp_auths.go b/backend-go/internal/database/pg/gen/model/identity_gcp_auths.gonew file mode 100644index 0000000000..93d980d33a--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_gcp_auths.go@@ -0,0 +1,29 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityGcpAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ AccessTokenTTL int64+ AccessTokenMaxTTL int64+ AccessTokenNumUsesLimit int64+ AccessTokenTrustedIps string+ CreatedAt time.Time+ UpdatedAt time.Time+ IdentityId uuid.UUID+ Type string+ AllowedServiceAccounts *string+ AllowedProjects *string+ AllowedZones *string+ AccessTokenPeriod int64+}diff --git a/backend-go/internal/database/pg/gen/model/identity_group_membership.go b/backend-go/internal/database/pg/gen/model/identity_group_membership.gonew file mode 100644index 0000000000..d66299ca71--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_group_membership.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityGroupMembership struct {+ ID uuid.UUID `sql:"primary_key"`+ IdentityId uuid.UUID+ GroupId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/identity_jwt_auths.go b/backend-go/internal/database/pg/gen/model/identity_jwt_auths.gonew file mode 100644index 0000000000..5f87673c79--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_jwt_auths.go@@ -0,0 +1,33 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityJwtAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ AccessTokenTTL int64+ AccessTokenMaxTTL int64+ AccessTokenNumUsesLimit int64+ AccessTokenTrustedIps string+ IdentityId uuid.UUID+ ConfigurationType string+ JwksUrl string+ EncryptedJwksCaCert []byte+ EncryptedPublicKeys []byte+ BoundIssuer string+ BoundAudiences string+ BoundClaims string+ BoundSubject string+ CreatedAt time.Time+ UpdatedAt time.Time+ AccessTokenPeriod int64+}diff --git a/backend-go/internal/database/pg/gen/model/identity_kubernetes_auths.go b/backend-go/internal/database/pg/gen/model/identity_kubernetes_auths.gonew file mode 100644index 0000000000..0554a168a6--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_kubernetes_auths.go@@ -0,0 +1,40 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityKubernetesAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ AccessTokenTTL int64+ AccessTokenMaxTTL int64+ AccessTokenNumUsesLimit int64+ AccessTokenTrustedIps string+ CreatedAt time.Time+ UpdatedAt time.Time+ IdentityId uuid.UUID+ KubernetesHost *string+ EncryptedCaCert *string+ CaCertIV *string+ CaCertTag *string+ EncryptedTokenReviewerJwt *string+ TokenReviewerJwtIV *string+ TokenReviewerJwtTag *string+ AllowedNamespaces string+ AllowedNames string+ AllowedAudience string+ EncryptedKubernetesTokenReviewerJwt *[]byte+ EncryptedKubernetesCaCertificate *[]byte+ GatewayId *uuid.UUID+ AccessTokenPeriod int64+ TokenReviewMode string+ GatewayV2Id *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/identity_ldap_auths.go b/backend-go/internal/database/pg/gen/model/identity_ldap_auths.gonew file mode 100644index 0000000000..d81c239ba5--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_ldap_auths.go@@ -0,0 +1,37 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityLdapAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ AccessTokenTTL int64+ AccessTokenMaxTTL int64+ AccessTokenNumUsesLimit int64+ AccessTokenTrustedIps string+ IdentityId uuid.UUID+ EncryptedBindDN []byte+ EncryptedBindPass []byte+ EncryptedLdapCaCertificate *[]byte+ URL string+ SearchBase string+ SearchFilter string+ AllowedFields *string+ CreatedAt time.Time+ UpdatedAt time.Time+ AccessTokenPeriod int64+ TemplateId *uuid.UUID+ LockoutEnabled bool+ LockoutThreshold int32+ LockoutDurationSeconds int32+ LockoutCounterResetSeconds int32+}diff --git a/backend-go/internal/database/pg/gen/model/identity_metadata.go b/backend-go/internal/database/pg/gen/model/identity_metadata.gonew file mode 100644index 0000000000..30240fb0a1--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_metadata.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityMetadata struct {+ ID uuid.UUID `sql:"primary_key"`+ Key string+ Value string+ OrgId uuid.UUID+ UserId *uuid.UUID+ IdentityId *uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/identity_oci_auths.go b/backend-go/internal/database/pg/gen/model/identity_oci_auths.gonew file mode 100644index 0000000000..bab8e96fed--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_oci_auths.go@@ -0,0 +1,28 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityOciAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ AccessTokenTTL int64+ AccessTokenMaxTTL int64+ AccessTokenNumUsesLimit int64+ AccessTokenTrustedIps string+ CreatedAt time.Time+ UpdatedAt time.Time+ IdentityId uuid.UUID+ Type string+ TenancyOcid string+ AllowedUsernames *string+ AccessTokenPeriod int64+}diff --git a/backend-go/internal/database/pg/gen/model/identity_oidc_auths.go b/backend-go/internal/database/pg/gen/model/identity_oidc_auths.gonew file mode 100644index 0000000000..a73d3b84d5--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_oidc_auths.go@@ -0,0 +1,35 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityOidcAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ AccessTokenTTL int64+ AccessTokenMaxTTL int64+ AccessTokenNumUsesLimit int64+ AccessTokenTrustedIps string+ IdentityId uuid.UUID+ OidcDiscoveryUrl string+ EncryptedCaCert *string+ CaCertIV *string+ CaCertTag *string+ BoundIssuer string+ BoundAudiences string+ BoundClaims string+ BoundSubject *string+ CreatedAt time.Time+ UpdatedAt time.Time+ EncryptedCaCertificate *[]byte+ ClaimMetadataMapping *string+ AccessTokenPeriod int64+}diff --git a/backend-go/internal/database/pg/gen/model/identity_spiffe_auths.go b/backend-go/internal/database/pg/gen/model/identity_spiffe_auths.gonew file mode 100644index 0000000000..4abb8168fb--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_spiffe_auths.go@@ -0,0 +1,34 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentitySpiffeAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ IdentityId uuid.UUID+ TrustDomain string+ AllowedSpiffeIds string+ AllowedAudiences string+ ConfigurationType string+ EncryptedCaBundleJwks *[]byte+ BundleEndpointUrl *string+ EncryptedBundleEndpointCaCert *[]byte+ EncryptedCachedBundleJwks *[]byte+ CachedBundleLastRefreshedAt *time.Time+ BundleRefreshHintSeconds int32+ AccessTokenTTL int64+ AccessTokenMaxTTL int64+ AccessTokenNumUsesLimit int64+ AccessTokenTrustedIps string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/identity_tls_cert_auths.go b/backend-go/internal/database/pg/gen/model/identity_tls_cert_auths.gonew file mode 100644index 0000000000..bef2719fe7--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_tls_cert_auths.go@@ -0,0 +1,26 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityTLSCertAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ AccessTokenTTL int64+ AccessTokenMaxTTL int64+ AccessTokenNumUsesLimit int64+ AccessTokenTrustedIps string+ CreatedAt time.Time+ UpdatedAt time.Time+ IdentityId uuid.UUID+ AllowedCommonNames *string+ EncryptedCaCertificate []byte+}diff --git a/backend-go/internal/database/pg/gen/model/identity_token_auths.go b/backend-go/internal/database/pg/gen/model/identity_token_auths.gonew file mode 100644index 0000000000..b8a2fa94d0--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_token_auths.go@@ -0,0 +1,25 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityTokenAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ AccessTokenTTL int64+ AccessTokenMaxTTL int64+ AccessTokenNumUsesLimit int64+ AccessTokenTrustedIps string+ CreatedAt time.Time+ UpdatedAt time.Time+ IdentityId uuid.UUID+ AccessTokenPeriod int64+}diff --git a/backend-go/internal/database/pg/gen/model/identity_ua_client_secrets.go b/backend-go/internal/database/pg/gen/model/identity_ua_client_secrets.gonew file mode 100644index 0000000000..16c385ebda--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_ua_client_secrets.go@@ -0,0 +1,28 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityUaClientSecrets struct {+ ID string `sql:"primary_key"`+ Description string+ ClientSecretPrefix string+ ClientSecretHash string+ ClientSecretLastUsedAt *time.Time+ ClientSecretNumUses int64+ ClientSecretNumUsesLimit int64+ ClientSecretTTL int64+ IsClientSecretRevoked bool+ CreatedAt time.Time+ UpdatedAt time.Time+ IdentityUAId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/identity_universal_auths.go b/backend-go/internal/database/pg/gen/model/identity_universal_auths.gonew file mode 100644index 0000000000..777f37650b--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/identity_universal_auths.go@@ -0,0 +1,31 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IdentityUniversalAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ ClientId string+ AccessTokenTTL int64+ AccessTokenMaxTTL int64+ AccessTokenNumUsesLimit int64+ ClientSecretTrustedIps string+ AccessTokenTrustedIps string+ CreatedAt time.Time+ UpdatedAt time.Time+ IdentityId uuid.UUID+ AccessTokenPeriod int64+ LockoutEnabled bool+ LockoutThreshold int32+ LockoutDurationSeconds int32+ LockoutCounterResetSeconds int32+}diff --git a/backend-go/internal/database/pg/gen/model/incident_contacts.go b/backend-go/internal/database/pg/gen/model/incident_contacts.gonew file mode 100644index 0000000000..fa344c72f7--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/incident_contacts.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IncidentContacts struct {+ ID uuid.UUID `sql:"primary_key"`+ Email string+ CreatedAt time.Time+ UpdatedAt time.Time+ OrgId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/infisical_migrations.go b/backend-go/internal/database/pg/gen/model/infisical_migrations.gonew file mode 100644index 0000000000..2fcd451beb--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/infisical_migrations.go@@ -0,0 +1,19 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "time"+)++type InfisicalMigrations struct {+ ID int32 `sql:"primary_key"`+ Name *string+ Batch *int32+ MigrationTime *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/infisical_migrations_lock.go b/backend-go/internal/database/pg/gen/model/infisical_migrations_lock.gonew file mode 100644index 0000000000..4ad63bd368--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/infisical_migrations_lock.go@@ -0,0 +1,13 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++type InfisicalMigrationsLock struct {+ Index int32 `sql:"primary_key"`+ IsLocked *int32+}diff --git a/backend-go/internal/database/pg/gen/model/infisical_migrations_startup_lock.go b/backend-go/internal/database/pg/gen/model/infisical_migrations_startup_lock.gonew file mode 100644index 0000000000..820ae091ab--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/infisical_migrations_startup_lock.go@@ -0,0 +1,20 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "time"+)++type InfisicalMigrationsStartupLock struct {+ Index int32 `sql:"primary_key"`+ IsLocked *int32+ SessionID *string+ Node *string+ HeartbeatUpdatedAt *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/instance_relay_config.go b/backend-go/internal/database/pg/gen/model/instance_relay_config.gonew file mode 100644index 0000000000..b818cf61da--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/instance_relay_config.go@@ -0,0 +1,37 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type InstanceRelayConfig struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ EncryptedRootRelayPkiCaPrivateKey []byte+ EncryptedRootRelayPkiCaCertificate []byte+ EncryptedInstanceRelayPkiCaPrivateKey []byte+ EncryptedInstanceRelayPkiCaCertificate []byte+ EncryptedInstanceRelayPkiCaCertificateChain []byte+ EncryptedInstanceRelayPkiClientCaPrivateKey []byte+ EncryptedInstanceRelayPkiClientCaCertificate []byte+ EncryptedInstanceRelayPkiClientCaCertificateChain []byte+ EncryptedInstanceRelayPkiServerCaPrivateKey []byte+ EncryptedInstanceRelayPkiServerCaCertificate []byte+ EncryptedInstanceRelayPkiServerCaCertificateChain []byte+ EncryptedOrgRelayPkiCaPrivateKey []byte+ EncryptedOrgRelayPkiCaCertificate []byte+ EncryptedOrgRelayPkiCaCertificateChain []byte+ EncryptedInstanceRelaySshClientCaPrivateKey []byte+ EncryptedInstanceRelaySshClientCaPublicKey []byte+ EncryptedInstanceRelaySshServerCaPrivateKey []byte+ EncryptedInstanceRelaySshServerCaPublicKey []byte+}diff --git a/backend-go/internal/database/pg/gen/model/integration_auths.go b/backend-go/internal/database/pg/gen/model/integration_auths.gonew file mode 100644index 0000000000..a36927fd59--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/integration_auths.go@@ -0,0 +1,45 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type IntegrationAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ Integration string+ TeamId *string+ URL *string+ Namespace *string+ AccountId *string+ RefreshCiphertext *string+ RefreshIV *string+ RefreshTag *string+ AccessIdCiphertext *string+ AccessIdIV *string+ AccessIdTag *string+ AccessCiphertext *string+ AccessIV *string+ AccessTag *string+ AccessExpiresAt *time.Time+ Metadata *string+ Algorithm string+ KeyEncoding string+ ProjectId string+ CreatedAt time.Time+ UpdatedAt time.Time+ AwsAssumeIamRoleArnCipherText *string+ AwsAssumeIamRoleArnIV *string+ AwsAssumeIamRoleArnTag *string+ EncryptedAccess *[]byte+ EncryptedAccessId *[]byte+ EncryptedRefresh *[]byte+ EncryptedAwsAssumeIamRoleArn *[]byte+}diff --git a/backend-go/internal/database/pg/gen/model/integrations.go b/backend-go/internal/database/pg/gen/model/integrations.gonew file mode 100644index 0000000000..f6e29cd6c0--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/integrations.go@@ -0,0 +1,40 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type Integrations struct {+ ID uuid.UUID `sql:"primary_key"`+ IsActive bool+ URL *string+ App *string+ AppId *string+ TargetEnvironment *string+ TargetEnvironmentId *string+ TargetService *string+ TargetServiceId *string+ Owner *string+ Path *string+ Region *string+ Scope *string+ Integration string+ Metadata *string+ IntegrationAuthId uuid.UUID+ EnvId uuid.UUID+ SecretPath string+ CreatedAt time.Time+ UpdatedAt time.Time+ LastUsed *time.Time+ IsSynced *bool+ SyncMessage *string+ LastSyncJobId *string+}diff --git a/backend-go/internal/database/pg/gen/model/intermediate_certificate_requests.go b/backend-go/internal/database/pg/gen/model/intermediate_certificate_requests.gonew file mode 100644index 0000000000..2439e06985--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/intermediate_certificate_requests.go@@ -0,0 +1,46 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type IntermediateCertificateRequests struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time `sql:"primary_key"`+ UpdatedAt time.Time+ Status string+ ProjectId string+ ProfileId *uuid.UUID+ CaId *uuid.UUID+ CertificateId *uuid.UUID+ Csr *string+ CommonName *string+ KeyUsages *pq.StringArray+ ExtendedKeyUsages *pq.StringArray+ NotBefore *time.Time+ NotAfter *time.Time+ KeyAlgorithm *string+ SignatureAlgorithm *string+ ErrorMessage *string+ Metadata *string+ AcmeOrderId *uuid.UUID+ BasicConstraints *string+ ApprovalRequestId *uuid.UUID+ TTL *string+ EnrollmentType *string+ AltNames *string+ Organization *string+ OrganizationalUnit *string+ Country *string+ State *string+ Locality *string+}diff --git a/backend-go/internal/database/pg/gen/model/internal_certificate_authorities.go b/backend-go/internal/database/pg/gen/model/internal_certificate_authorities.gonew file mode 100644index 0000000000..9f80133be8--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/internal_certificate_authorities.go@@ -0,0 +1,39 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type InternalCertificateAuthorities struct {+ ID uuid.UUID `sql:"primary_key"`+ ParentCaId *uuid.UUID+ Type string+ FriendlyName string+ Organization string+ Ou string+ Country string+ Province string+ Locality string+ CommonName string+ Dn string+ SerialNumber *string+ MaxPathLength *int32+ KeyAlgorithm string+ NotBefore *time.Time+ NotAfter *time.Time+ ActiveCaCertId *uuid.UUID+ CaId uuid.UUID+ AutoRenewalEnabled bool+ AutoRenewalDaysBeforeExpiry *int32+ LastRenewalStatus *string+ LastRenewalMessage *string+ LastRenewalAt *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/internal_kms.go b/backend-go/internal/database/pg/gen/model/internal_kms.gonew file mode 100644index 0000000000..ea6b734102--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/internal_kms.go@@ -0,0 +1,20 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type InternalKms struct {+ ID uuid.UUID `sql:"primary_key"`+ EncryptedKey []byte+ EncryptionAlgorithm string+ Version int32+ KmsKeyId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/internal_kms_key_version.go b/backend-go/internal/database/pg/gen/model/internal_kms_key_version.gonew file mode 100644index 0000000000..c7ade07608--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/internal_kms_key_version.go@@ -0,0 +1,19 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type InternalKmsKeyVersion struct {+ ID uuid.UUID `sql:"primary_key"`+ EncryptedKey []byte+ Version int32+ InternalKmsId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/key_value_store.go b/backend-go/internal/database/pg/gen/model/key_value_store.gonew file mode 100644index 0000000000..36df08a4e0--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/key_value_store.go@@ -0,0 +1,20 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "time"+)++type KeyValueStore struct {+ Key string `sql:"primary_key"`+ IntegerValue *int64+ ExpiresAt *time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/kmip_client_certificates.go b/backend-go/internal/database/pg/gen/model/kmip_client_certificates.gonew file mode 100644index 0000000000..7145af17b2--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/kmip_client_certificates.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type KmipClientCertificates struct {+ ID uuid.UUID `sql:"primary_key"`+ KmipClientId uuid.UUID+ SerialNumber string+ KeyAlgorithm string+ IssuedAt time.Time+ Expiration time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/kmip_clients.go b/backend-go/internal/database/pg/gen/model/kmip_clients.gonew file mode 100644index 0000000000..185546d3e5--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/kmip_clients.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+)++type KmipClients struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ Permissions *pq.StringArray+ Description *string+ ProjectId string+}diff --git a/backend-go/internal/database/pg/gen/model/kmip_org_configs.go b/backend-go/internal/database/pg/gen/model/kmip_org_configs.gonew file mode 100644index 0000000000..7fccbfdefd--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/kmip_org_configs.go@@ -0,0 +1,38 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type KmipOrgConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ OrgId uuid.UUID+ CaKeyAlgorithm string+ RootCaIssuedAt time.Time+ RootCaExpiration time.Time+ RootCaSerialNumber string+ EncryptedRootCaCertificate []byte+ EncryptedRootCaPrivateKey []byte+ ServerIntermediateCaIssuedAt time.Time+ ServerIntermediateCaExpiration time.Time+ ServerIntermediateCaSerialNumber *string+ EncryptedServerIntermediateCaCertificate []byte+ EncryptedServerIntermediateCaChain []byte+ EncryptedServerIntermediateCaPrivateKey []byte+ ClientIntermediateCaIssuedAt time.Time+ ClientIntermediateCaExpiration time.Time+ ClientIntermediateCaSerialNumber string+ EncryptedClientIntermediateCaCertificate []byte+ EncryptedClientIntermediateCaChain []byte+ EncryptedClientIntermediateCaPrivateKey []byte+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/kmip_org_server_certificates.go b/backend-go/internal/database/pg/gen/model/kmip_org_server_certificates.gonew file mode 100644index 0000000000..1df4c9700a--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/kmip_org_server_certificates.go@@ -0,0 +1,26 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type KmipOrgServerCertificates struct {+ ID uuid.UUID `sql:"primary_key"`+ OrgId uuid.UUID+ CommonName string+ AltNames *string+ SerialNumber string+ KeyAlgorithm string+ IssuedAt time.Time+ Expiration time.Time+ EncryptedCertificate []byte+ EncryptedChain []byte+}diff --git a/backend-go/internal/database/pg/gen/model/kms_keys.go b/backend-go/internal/database/pg/gen/model/kms_keys.gonew file mode 100644index 0000000000..c92462e9f9--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/kms_keys.go@@ -0,0 +1,27 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type KmsKeys struct {+ ID uuid.UUID `sql:"primary_key"`+ Description *string+ IsDisabled *bool+ IsReserved *bool+ OrgId uuid.UUID+ Name string+ CreatedAt time.Time+ UpdatedAt time.Time+ ProjectId *string+ KeyUsage string+ KmipMetadata *string+}diff --git a/backend-go/internal/database/pg/gen/model/kms_root_config.go b/backend-go/internal/database/pg/gen/model/kms_root_config.gonew file mode 100644index 0000000000..820dcec989--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/kms_root_config.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type KmsRootConfig struct {+ ID uuid.UUID `sql:"primary_key"`+ EncryptedRootKey []byte+ EncryptionStrategy *string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/ldap_configs.go b/backend-go/internal/database/pg/gen/model/ldap_configs.gonew file mode 100644index 0000000000..fc2776547c--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ldap_configs.go@@ -0,0 +1,39 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type LdapConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ OrgId uuid.UUID+ IsActive bool+ URL string+ EncryptedBindDN *string+ BindDNIV *string+ BindDNTag *string+ EncryptedBindPass *string+ BindPassIV *string+ BindPassTag *string+ SearchBase string+ EncryptedCACert *string+ CaCertIV *string+ CaCertTag *string+ CreatedAt time.Time+ UpdatedAt time.Time+ GroupSearchBase string+ GroupSearchFilter string+ SearchFilter string+ UniqueUserAttribute string+ EncryptedLdapBindDN []byte+ EncryptedLdapBindPass []byte+ EncryptedLdapCaCertificate *[]byte+}diff --git a/backend-go/internal/database/pg/gen/model/ldap_group_maps.go b/backend-go/internal/database/pg/gen/model/ldap_group_maps.gonew file mode 100644index 0000000000..97f04fa3f4--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ldap_group_maps.go@@ -0,0 +1,19 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type LdapGroupMaps struct {+ ID uuid.UUID `sql:"primary_key"`+ LdapConfigId uuid.UUID+ LdapGroupCN string+ GroupId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/membership_roles.go b/backend-go/internal/database/pg/gen/model/membership_roles.gonew file mode 100644index 0000000000..d1cb858e52--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/membership_roles.go@@ -0,0 +1,27 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type MembershipRoles struct {+ ID uuid.UUID `sql:"primary_key"`+ Role string+ IsTemporary bool+ TemporaryMode *string+ TemporaryRange *string+ TemporaryAccessStartTime *time.Time+ TemporaryAccessEndTime *time.Time+ CustomRoleId *uuid.UUID+ MembershipId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/memberships.go b/backend-go/internal/database/pg/gen/model/memberships.gonew file mode 100644index 0000000000..57a0f83068--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/memberships.go@@ -0,0 +1,33 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type Memberships struct {+ ID uuid.UUID `sql:"primary_key"`+ Scope string+ ActorUserId *uuid.UUID+ ActorIdentityId *uuid.UUID+ ActorGroupId *uuid.UUID+ ScopeOrgId uuid.UUID+ ScopeProjectId *string+ IsActive bool+ Status *string+ InviteEmail *string+ LastInvitedAt *time.Time+ LastLoginAuthMethod *string+ LastLoginTime *time.Time+ ProjectFavorites *pq.StringArray+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/microsoft_teams_integrations.go b/backend-go/internal/database/pg/gen/model/microsoft_teams_integrations.gonew file mode 100644index 0000000000..f66b9c35a1--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/microsoft_teams_integrations.go@@ -0,0 +1,25 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type MicrosoftTeamsIntegrations struct {+ ID uuid.UUID `sql:"primary_key"`+ InternalTeamsAppId *string+ TenantId string+ EncryptedAccessToken *[]byte+ EncryptedBotAccessToken *[]byte+ AccessTokenExpiresAt *time.Time+ BotAccessTokenExpiresAt *time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/oidc_configs.go b/backend-go/internal/database/pg/gen/model/oidc_configs.gonew file mode 100644index 0000000000..378a66400c--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/oidc_configs.go@@ -0,0 +1,40 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type OidcConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ DiscoveryURL *string+ Issuer *string+ AuthorizationEndpoint *string+ JwksUri *string+ TokenEndpoint *string+ UserinfoEndpoint *string+ EncryptedClientId *string+ ConfigurationType string+ ClientIdIV *string+ ClientIdTag *string+ EncryptedClientSecret *string+ ClientSecretIV *string+ ClientSecretTag *string+ AllowedEmailDomains *string+ IsActive bool+ CreatedAt time.Time+ UpdatedAt time.Time+ OrgId uuid.UUID+ LastUsed *time.Time+ ManageGroupMemberships bool+ EncryptedOidcClientId []byte+ EncryptedOidcClientSecret []byte+ JwtSignatureAlgorithm string+}diff --git a/backend-go/internal/database/pg/gen/model/org_bots.go b/backend-go/internal/database/pg/gen/model/org_bots.gonew file mode 100644index 0000000000..8adaa72d3b--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/org_bots.go@@ -0,0 +1,32 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type OrgBots struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ PublicKey string+ EncryptedSymmetricKey string+ SymmetricKeyIV string+ SymmetricKeyTag string+ SymmetricKeyAlgorithm string+ SymmetricKeyKeyEncoding string+ EncryptedPrivateKey string+ PrivateKeyIV string+ PrivateKeyTag string+ PrivateKeyAlgorithm string+ PrivateKeyKeyEncoding string+ OrgId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/org_gateway_config.go b/backend-go/internal/database/pg/gen/model/org_gateway_config.gonew file mode 100644index 0000000000..5ce37e7fd7--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/org_gateway_config.go@@ -0,0 +1,42 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type OrgGatewayConfig struct {+ ID uuid.UUID `sql:"primary_key"`+ RootCaKeyAlgorithm string+ RootCaIssuedAt time.Time+ RootCaExpiration time.Time+ RootCaSerialNumber string+ EncryptedRootCaCertificate []byte+ EncryptedRootCaPrivateKey []byte+ ClientCaIssuedAt time.Time+ ClientCaExpiration time.Time+ ClientCaSerialNumber *string+ EncryptedClientCaCertificate []byte+ EncryptedClientCaPrivateKey []byte+ ClientCertSerialNumber string+ ClientCertKeyAlgorithm string+ ClientCertIssuedAt time.Time+ ClientCertExpiration time.Time+ EncryptedClientCertificate []byte+ EncryptedClientPrivateKey []byte+ GatewayCaIssuedAt time.Time+ GatewayCaExpiration time.Time+ GatewayCaSerialNumber string+ EncryptedGatewayCaCertificate []byte+ EncryptedGatewayCaPrivateKey []byte+ OrgId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/org_gateway_config_v2.go b/backend-go/internal/database/pg/gen/model/org_gateway_config_v2.gonew file mode 100644index 0000000000..094576f5f3--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/org_gateway_config_v2.go@@ -0,0 +1,28 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type OrgGatewayConfigV2 struct {+ ID uuid.UUID `sql:"primary_key"`+ OrgId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ EncryptedRootGatewayCaPrivateKey []byte+ EncryptedRootGatewayCaCertificate []byte+ EncryptedGatewayServerCaPrivateKey []byte+ EncryptedGatewayServerCaCertificate []byte+ EncryptedGatewayServerCaCertificateChain []byte+ EncryptedGatewayClientCaPrivateKey []byte+ EncryptedGatewayClientCaCertificate []byte+ EncryptedGatewayClientCaCertificateChain []byte+}diff --git a/backend-go/internal/database/pg/gen/model/org_relay_config.go b/backend-go/internal/database/pg/gen/model/org_relay_config.gonew file mode 100644index 0000000000..6182ff69ac--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/org_relay_config.go@@ -0,0 +1,30 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type OrgRelayConfig struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ OrgId uuid.UUID+ EncryptedRelayPkiClientCaPrivateKey []byte+ EncryptedRelayPkiClientCaCertificate []byte+ EncryptedRelayPkiClientCaCertificateChain []byte+ EncryptedRelayPkiServerCaPrivateKey []byte+ EncryptedRelayPkiServerCaCertificate []byte+ EncryptedRelayPkiServerCaCertificateChain []byte+ EncryptedRelaySshClientCaPrivateKey []byte+ EncryptedRelaySshClientCaPublicKey []byte+ EncryptedRelaySshServerCaPrivateKey []byte+ EncryptedRelaySshServerCaPublicKey []byte+}diff --git a/backend-go/internal/database/pg/gen/model/organization_assets.go b/backend-go/internal/database/pg/gen/model/organization_assets.gonew file mode 100644index 0000000000..22069bf99b--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/organization_assets.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type OrganizationAssets struct {+ ID uuid.UUID `sql:"primary_key"`+ OrgId uuid.UUID+ AssetType string+ Data []byte+ ContentType string+ Size int32+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/organizations.go b/backend-go/internal/database/pg/gen/model/organizations.gonew file mode 100644index 0000000000..e3551f10ea--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/organizations.go@@ -0,0 +1,49 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type Organizations struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ CustomerId *string+ Slug string+ CreatedAt time.Time+ UpdatedAt time.Time+ AuthEnforced *bool+ ScimEnabled *bool+ KmsDefaultKeyId *uuid.UUID+ KmsEncryptedDataKey *[]byte+ DefaultMembershipRole string+ EnforceMfa bool+ SelectedMfaMethod *string+ AllowSecretSharingOutsideOrganization *bool+ ShouldUseNewPrivilegeSystem bool+ PrivilegeUpgradeInitiatedByUsername *string+ PrivilegeUpgradeInitiatedAt *time.Time+ BypassOrgAuthEnabled bool+ UserTokenExpiration *string+ SecretsProductEnabled *bool+ PkiProductEnabled *bool+ KmsProductEnabled *bool+ SshProductEnabled *bool+ ScannerProductEnabled *bool+ ShareSecretsProductEnabled *bool+ MaxSharedSecretLifetime *int32+ MaxSharedSecretViewLimit *int32+ GoogleSsoAuthEnforced bool+ GoogleSsoAuthLastUsed *time.Time+ ParentOrgId *uuid.UUID+ RootOrgId *uuid.UUID+ BlockDuplicateSecretSyncDestinations bool+ SecretShareBrandConfig *string+}diff --git a/backend-go/internal/database/pg/gen/model/pam_account_dependencies.go b/backend-go/internal/database/pg/gen/model/pam_account_dependencies.gonew file mode 100644index 0000000000..9ef3d3dcb6--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pam_account_dependencies.go@@ -0,0 +1,28 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PamAccountDependencies struct {+ ID uuid.UUID `sql:"primary_key"`+ AccountId uuid.UUID+ ResourceId uuid.UUID+ DependencyType string+ Name string+ DisplayName *string+ State *string+ Data string+ Source string+ IsEnabled *bool+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pam_accounts.go b/backend-go/internal/database/pg/gen/model/pam_accounts.gonew file mode 100644index 0000000000..0e67a0a1f7--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pam_accounts.go@@ -0,0 +1,33 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PamAccounts struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ FolderId *uuid.UUID+ ResourceId uuid.UUID+ Name string+ Description *string+ EncryptedCredentials []byte+ CreatedAt time.Time+ UpdatedAt time.Time+ RotationEnabled bool+ RotationIntervalSeconds *int32+ LastRotatedAt *time.Time+ RotationStatus *string+ EncryptedLastRotationMessage *[]byte+ RequireMfa *bool+ InternalMetadata *string+ DiscoveryFingerprint *string+}diff --git a/backend-go/internal/database/pg/gen/model/pam_discovery_source_accounts.go b/backend-go/internal/database/pg/gen/model/pam_discovery_source_accounts.gonew file mode 100644index 0000000000..463958ecd1--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pam_discovery_source_accounts.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PamDiscoverySourceAccounts struct {+ ID uuid.UUID `sql:"primary_key"`+ DiscoverySourceId uuid.UUID+ AccountId uuid.UUID+ LastDiscoveredAt time.Time+ LastDiscoveredRunId *uuid.UUID+ IsStale *bool+ CreatedAt *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pam_discovery_source_dependencies.go b/backend-go/internal/database/pg/gen/model/pam_discovery_source_dependencies.gonew file mode 100644index 0000000000..0266ef2691--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pam_discovery_source_dependencies.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PamDiscoverySourceDependencies struct {+ ID uuid.UUID `sql:"primary_key"`+ DiscoverySourceId uuid.UUID+ DependencyId uuid.UUID+ LastSeenAt time.Time+ LastSeenRunId *uuid.UUID+ IsStale *bool+ CreatedAt *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pam_discovery_source_resources.go b/backend-go/internal/database/pg/gen/model/pam_discovery_source_resources.gonew file mode 100644index 0000000000..b735fdd4c1--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pam_discovery_source_resources.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PamDiscoverySourceResources struct {+ ID uuid.UUID `sql:"primary_key"`+ DiscoverySourceId uuid.UUID+ ResourceId uuid.UUID+ LastDiscoveredAt time.Time+ LastDiscoveredRunId *uuid.UUID+ IsStale *bool+ CreatedAt *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pam_discovery_source_runs.go b/backend-go/internal/database/pg/gen/model/pam_discovery_source_runs.gonew file mode 100644index 0000000000..53d0881283--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pam_discovery_source_runs.go@@ -0,0 +1,35 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PamDiscoverySourceRuns struct {+ ID uuid.UUID `sql:"primary_key"`+ DiscoverySourceId uuid.UUID+ Status string+ TriggeredBy string+ ResourcesDiscoveredCount *int32+ AccountsDiscoveredCount *int32+ DependenciesDiscoveredCount *int32+ NewResourcesCount *int32+ StaleResourcesCount *int32+ NewAccountsCount *int32+ StaleAccountsCount *int32+ NewDependenciesCount *int32+ StaleDependenciesCount *int32+ Progress string+ ErrorMessage *string+ StartedAt *time.Time+ CompletedAt *time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pam_discovery_sources.go b/backend-go/internal/database/pg/gen/model/pam_discovery_sources.gonew file mode 100644index 0000000000..ce790823cb--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pam_discovery_sources.go@@ -0,0 +1,28 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PamDiscoverySources struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ Name string+ DiscoveryType string+ GatewayId uuid.UUID+ EncryptedDiscoveryCredentials []byte+ DiscoveryConfiguration string+ Schedule string+ LastRunAt *time.Time+ Status string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pam_folders.go b/backend-go/internal/database/pg/gen/model/pam_folders.gonew file mode 100644index 0000000000..67cf7aa6ab--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pam_folders.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PamFolders struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ ParentId *uuid.UUID+ Name string+ Description *string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pam_resources.go b/backend-go/internal/database/pg/gen/model/pam_resources.gonew file mode 100644index 0000000000..0404a66741--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pam_resources.go@@ -0,0 +1,28 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PamResources struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ Name string+ GatewayId *uuid.UUID+ ResourceType string+ EncryptedConnectionDetails []byte+ CreatedAt time.Time+ UpdatedAt time.Time+ EncryptedRotationAccountCredentials *[]byte+ EncryptedResourceMetadata *[]byte+ AdServerResourceId *uuid.UUID+ DiscoveryFingerprint *string+}diff --git a/backend-go/internal/database/pg/gen/model/pam_sessions.go b/backend-go/internal/database/pg/gen/model/pam_sessions.gonew file mode 100644index 0000000000..bdef5b4064--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pam_sessions.go@@ -0,0 +1,35 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PamSessions struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ AccountId *uuid.UUID+ ResourceType string+ ResourceName string+ AccountName string+ UserId *uuid.UUID+ ActorName string+ ActorEmail string+ ActorIp string+ ActorUserAgent string+ Status string+ EncryptedLogsBlob *[]byte+ ExpiresAt time.Time+ StartedAt *time.Time+ EndedAt *time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+ AccessMethod *string+}diff --git a/backend-go/internal/database/pg/gen/model/pki_acme_accounts.go b/backend-go/internal/database/pg/gen/model/pki_acme_accounts.gonew file mode 100644index 0000000000..f9a182ad7a--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_acme_accounts.go@@ -0,0 +1,25 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type PkiAcmeAccounts struct {+ ID uuid.UUID `sql:"primary_key"`+ ProfileId uuid.UUID+ Emails pq.StringArray+ PublicKey string+ PublicKeyThumbprint string+ Alg string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pki_acme_auths.go b/backend-go/internal/database/pg/gen/model/pki_acme_auths.gonew file mode 100644index 0000000000..124a5f5f7f--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_acme_auths.go@@ -0,0 +1,26 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiAcmeAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ AccountId uuid.UUID+ Status string+ Token *string+ IdentifierType string+ IdentifierValue string+ ExpiresAt time.Time+ CertificateId *uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pki_acme_challenges.go b/backend-go/internal/database/pg/gen/model/pki_acme_challenges.gonew file mode 100644index 0000000000..29c6983667--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_acme_challenges.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiAcmeChallenges struct {+ ID uuid.UUID `sql:"primary_key"`+ AuthId uuid.UUID+ Type string+ Status string+ Error *string+ ValidatedAt *time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pki_acme_enrollment_configs.go b/backend-go/internal/database/pg/gen/model/pki_acme_enrollment_configs.gonew file mode 100644index 0000000000..c12daacdf9--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_acme_enrollment_configs.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiAcmeEnrollmentConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ EncryptedEabSecret []byte+ CreatedAt time.Time+ UpdatedAt time.Time+ SkipDnsOwnershipVerification bool+ SkipEabBinding bool+}diff --git a/backend-go/internal/database/pg/gen/model/pki_acme_order_auths.go b/backend-go/internal/database/pg/gen/model/pki_acme_order_auths.gonew file mode 100644index 0000000000..92ed2d7e06--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_acme_order_auths.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiAcmeOrderAuths struct {+ ID uuid.UUID `sql:"primary_key"`+ OrderId uuid.UUID+ AuthId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pki_acme_orders.go b/backend-go/internal/database/pg/gen/model/pki_acme_orders.gonew file mode 100644index 0000000000..91a3ce83a3--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_acme_orders.go@@ -0,0 +1,27 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiAcmeOrders struct {+ ID uuid.UUID `sql:"primary_key"`+ AccountId uuid.UUID+ CertificateId *uuid.UUID+ NotBefore *time.Time+ NotAfter *time.Time+ ExpiresAt time.Time+ Csr *string+ Error *string+ Status string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pki_alert_channels.go b/backend-go/internal/database/pg/gen/model/pki_alert_channels.gonew file mode 100644index 0000000000..0e72bb033f--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_alert_channels.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiAlertChannels struct {+ ID uuid.UUID `sql:"primary_key"`+ AlertId uuid.UUID+ ChannelType string+ Config *string+ Enabled *bool+ CreatedAt time.Time+ UpdatedAt time.Time+ EncryptedConfig *[]byte+}diff --git a/backend-go/internal/database/pg/gen/model/pki_alert_history.go b/backend-go/internal/database/pg/gen/model/pki_alert_history.gonew file mode 100644index 0000000000..ba8e8d6523--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_alert_history.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiAlertHistory struct {+ ID uuid.UUID `sql:"primary_key"`+ AlertId uuid.UUID+ TriggeredAt *time.Time+ HasNotificationSent *bool+ NotificationError *string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pki_alert_history_certificate.go b/backend-go/internal/database/pg/gen/model/pki_alert_history_certificate.gonew file mode 100644index 0000000000..43b50ff207--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_alert_history_certificate.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiAlertHistoryCertificate struct {+ ID uuid.UUID `sql:"primary_key"`+ AlertHistoryId uuid.UUID+ CertificateId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pki_alerts.go b/backend-go/internal/database/pg/gen/model/pki_alerts.gonew file mode 100644index 0000000000..f256986c82--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_alerts.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiAlerts struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ ProjectId string+ PkiCollectionId uuid.UUID+ Name string+ AlertBeforeDays int32+ RecipientEmails string+}diff --git a/backend-go/internal/database/pg/gen/model/pki_alerts_v2.go b/backend-go/internal/database/pg/gen/model/pki_alerts_v2.gonew file mode 100644index 0000000000..7f237c79db--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_alerts_v2.go@@ -0,0 +1,27 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiAlertsV2 struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ Description *string+ EventType string+ AlertBefore *string+ Filters *string+ Enabled *bool+ ProjectId string+ CreatedAt time.Time+ UpdatedAt time.Time+ NotificationConfig *string+}diff --git a/backend-go/internal/database/pg/gen/model/pki_api_enrollment_configs.go b/backend-go/internal/database/pg/gen/model/pki_api_enrollment_configs.gonew file mode 100644index 0000000000..c1fdf46d1d--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_api_enrollment_configs.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiAPIEnrollmentConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ AutoRenew *bool+ RenewBeforeDays *int32+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pki_certificate_installation_certs.go b/backend-go/internal/database/pg/gen/model/pki_certificate_installation_certs.gonew file mode 100644index 0000000000..b8be04af4f--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_certificate_installation_certs.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiCertificateInstallationCerts struct {+ ID uuid.UUID `sql:"primary_key"`+ InstallationId uuid.UUID+ CertificateId uuid.UUID+ FirstSeenAt time.Time+ LastSeenAt time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pki_certificate_installations.go b/backend-go/internal/database/pg/gen/model/pki_certificate_installations.gonew file mode 100644index 0000000000..0336cfe28e--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_certificate_installations.go@@ -0,0 +1,27 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiCertificateInstallations struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ LocationType string+ LocationDetails string+ LocationFingerprint string+ Name *string+ Type string+ Metadata *string+ LastSeenAt time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pki_certificate_policies.go b/backend-go/internal/database/pg/gen/model/pki_certificate_policies.gonew file mode 100644index 0000000000..7553e1e3d0--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_certificate_policies.go@@ -0,0 +1,29 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiCertificatePolicies struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ Name string+ Description *string+ Subject *string+ Sans *string+ KeyUsages *string+ ExtendedKeyUsages *string+ Algorithms *string+ Validity *string+ CreatedAt time.Time+ UpdatedAt time.Time+ BasicConstraints *string+}diff --git a/backend-go/internal/database/pg/gen/model/pki_certificate_profiles.go b/backend-go/internal/database/pg/gen/model/pki_certificate_profiles.gonew file mode 100644index 0000000000..4f57cb61e4--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_certificate_profiles.go@@ -0,0 +1,31 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiCertificateProfiles struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ CaId *uuid.UUID+ CertificatePolicyId uuid.UUID+ Slug string+ Description *string+ EnrollmentType string+ EstConfigId *uuid.UUID+ ApiConfigId *uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ AcmeConfigId *uuid.UUID+ IssuerType string+ ExternalConfigs *string+ Defaults *string+}diff --git a/backend-go/internal/database/pg/gen/model/pki_collection_items.go b/backend-go/internal/database/pg/gen/model/pki_collection_items.gonew file mode 100644index 0000000000..9097b9f2be--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_collection_items.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiCollectionItems struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ PkiCollectionId uuid.UUID+ CaId *uuid.UUID+ CertId *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/pki_collections.go b/backend-go/internal/database/pg/gen/model/pki_collections.gonew file mode 100644index 0000000000..7710d85dbb--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_collections.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiCollections struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ ProjectId string+ Name string+ Description string+}diff --git a/backend-go/internal/database/pg/gen/model/pki_discovery_configs.go b/backend-go/internal/database/pg/gen/model/pki_discovery_configs.gonew file mode 100644index 0000000000..89fa626203--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_discovery_configs.go@@ -0,0 +1,32 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiDiscoveryConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ Name string+ Description *string+ DiscoveryType string+ TargetConfig string+ IsAutoScanEnabled bool+ ScanIntervalDays *int32+ GatewayId *uuid.UUID+ IsActive bool+ LastScanStatus *string+ LastScanJobId *string+ LastScanMessage *string+ LastScannedAt *time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pki_discovery_installations.go b/backend-go/internal/database/pg/gen/model/pki_discovery_installations.gonew file mode 100644index 0000000000..a593fadbbd--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_discovery_installations.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiDiscoveryInstallations struct {+ ID uuid.UUID `sql:"primary_key"`+ DiscoveryId uuid.UUID+ InstallationId uuid.UUID+ LastScannedAt time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pki_discovery_scan_history.go b/backend-go/internal/database/pg/gen/model/pki_discovery_scan_history.gonew file mode 100644index 0000000000..f53880abc0--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_discovery_scan_history.go@@ -0,0 +1,27 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiDiscoveryScanHistory struct {+ ID uuid.UUID `sql:"primary_key"`+ DiscoveryConfigId uuid.UUID+ StartedAt time.Time+ CompletedAt *time.Time+ Status string+ TargetsScannedCount int32+ CertificatesFoundCount int32+ InstallationsFoundCount int32+ ErrorMessage *string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pki_est_enrollment_configs.go b/backend-go/internal/database/pg/gen/model/pki_est_enrollment_configs.gonew file mode 100644index 0000000000..b6564a6a8a--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_est_enrollment_configs.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiEstEnrollmentConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ DisableBootstrapCaValidation *bool+ HashedPassphrase string+ EncryptedCaChain *[]byte+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/pki_subscribers.go b/backend-go/internal/database/pg/gen/model/pki_subscribers.gonew file mode 100644index 0000000000..0940105175--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_subscribers.go@@ -0,0 +1,36 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type PkiSubscribers struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ ProjectId string+ CaId *uuid.UUID+ Name string+ CommonName string+ SubjectAlternativeNames pq.StringArray+ TTL *string+ KeyUsages pq.StringArray+ ExtendedKeyUsages pq.StringArray+ Status string+ EnableAutoRenewal bool+ AutoRenewalPeriodInDays *int32+ LastAutoRenewAt *time.Time+ LastOperationStatus *string+ LastOperationMessage *string+ LastOperationAt *time.Time+ Properties *string+}diff --git a/backend-go/internal/database/pg/gen/model/pki_syncs.go b/backend-go/internal/database/pg/gen/model/pki_syncs.gonew file mode 100644index 0000000000..44948a09cc--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/pki_syncs.go@@ -0,0 +1,41 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type PkiSyncs struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ Description *string+ Destination string+ IsAutoSyncEnabled bool+ Version int32+ DestinationConfig string+ SyncOptions string+ ProjectId string+ SubscriberId *uuid.UUID+ ConnectionId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ SyncStatus *string+ LastSyncJobId *string+ LastSyncMessage *string+ LastSyncedAt *time.Time+ ImportStatus *string+ LastImportJobId *string+ LastImportMessage *string+ LastImportedAt *time.Time+ RemoveStatus *string+ LastRemoveJobId *string+ LastRemoveMessage *string+ LastRemovedAt *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/project_bots.go b/backend-go/internal/database/pg/gen/model/project_bots.gonew file mode 100644index 0000000000..a39aff6019--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/project_bots.go@@ -0,0 +1,31 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ProjectBots struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ IsActive bool+ EncryptedPrivateKey string+ PublicKey string+ Iv string+ Tag string+ Algorithm string+ KeyEncoding string+ EncryptedProjectKey *string+ EncryptedProjectKeyNonce *string+ ProjectId string+ SenderId *uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/project_environments.go b/backend-go/internal/database/pg/gen/model/project_environments.gonew file mode 100644index 0000000000..c3b05eb773--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/project_environments.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ProjectEnvironments struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ Slug string+ Position int32+ ProjectId string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/project_gateways.go b/backend-go/internal/database/pg/gen/model/project_gateways.gonew file mode 100644index 0000000000..1ab48d15e8--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/project_gateways.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ProjectGateways struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ GatewayId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/project_keys.go b/backend-go/internal/database/pg/gen/model/project_keys.gonew file mode 100644index 0000000000..d77966c889--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/project_keys.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ProjectKeys struct {+ ID uuid.UUID `sql:"primary_key"`+ EncryptedKey string+ Nonce string+ ReceiverId uuid.UUID+ SenderId *uuid.UUID+ ProjectId string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/project_microsoft_teams_configs.go b/backend-go/internal/database/pg/gen/model/project_microsoft_teams_configs.gonew file mode 100644index 0000000000..538a25cbdc--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/project_microsoft_teams_configs.go@@ -0,0 +1,25 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ProjectMicrosoftTeamsConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ MicrosoftTeamsIntegrationId uuid.UUID+ IsAccessRequestNotificationEnabled bool+ IsSecretRequestNotificationEnabled bool+ AccessRequestChannels string+ SecretRequestChannels string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/project_slack_configs.go b/backend-go/internal/database/pg/gen/model/project_slack_configs.gonew file mode 100644index 0000000000..5f677d1a8a--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/project_slack_configs.go@@ -0,0 +1,27 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ProjectSlackConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ SlackIntegrationId uuid.UUID+ IsAccessRequestNotificationEnabled bool+ AccessRequestChannels string+ IsSecretRequestNotificationEnabled bool+ SecretRequestChannels string+ CreatedAt time.Time+ UpdatedAt time.Time+ IsSecretSyncErrorNotificationEnabled bool+ SecretSyncErrorChannels string+}diff --git a/backend-go/internal/database/pg/gen/model/project_split_backfill_ids.go b/backend-go/internal/database/pg/gen/model/project_split_backfill_ids.gonew file mode 100644index 0000000000..e84a3dcab6--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/project_split_backfill_ids.go@@ -0,0 +1,19 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type ProjectSplitBackfillIds struct {+ ID uuid.UUID `sql:"primary_key"`+ SourceProjectId string+ DestinationProjectType string+ DestinationProjectId string+}diff --git a/backend-go/internal/database/pg/gen/model/project_ssh_configs.go b/backend-go/internal/database/pg/gen/model/project_ssh_configs.gonew file mode 100644index 0000000000..56bc85eaee--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/project_ssh_configs.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ProjectSSHConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ ProjectId string+ DefaultUserSshCaId *uuid.UUID+ DefaultHostSshCaId *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/project_template_group_memberships.go b/backend-go/internal/database/pg/gen/model/project_template_group_memberships.gonew file mode 100644index 0000000000..d91d846d9f--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/project_template_group_memberships.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type ProjectTemplateGroupMemberships struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectTemplateId uuid.UUID+ GroupId uuid.UUID+ Roles pq.StringArray+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/project_template_identity_memberships.go b/backend-go/internal/database/pg/gen/model/project_template_identity_memberships.gonew file mode 100644index 0000000000..2f74c94a03--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/project_template_identity_memberships.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type ProjectTemplateIdentityMemberships struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectTemplateId uuid.UUID+ IdentityId uuid.UUID+ Roles pq.StringArray+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/project_template_user_memberships.go b/backend-go/internal/database/pg/gen/model/project_template_user_memberships.gonew file mode 100644index 0000000000..3feee4d823--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/project_template_user_memberships.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type ProjectTemplateUserMemberships struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectTemplateId uuid.UUID+ MembershipId uuid.UUID+ Roles pq.StringArray+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/project_templates.go b/backend-go/internal/database/pg/gen/model/project_templates.gonew file mode 100644index 0000000000..617f618caf--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/project_templates.go@@ -0,0 +1,26 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ProjectTemplates struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ Description *string+ Roles string+ Environments *string+ OrgId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ Type string+ ProjectManagedIdentities *string+}diff --git a/backend-go/internal/database/pg/gen/model/projects.go b/backend-go/internal/database/pg/gen/model/projects.gonew file mode 100644index 0000000000..dc7e9514f4--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/projects.go@@ -0,0 +1,40 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type Projects struct {+ ID string `sql:"primary_key"`+ Name string+ Slug string+ AutoCapitalization *bool+ OrgId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ Version int32+ UpgradeStatus *string+ PitVersionLimit int32+ KmsCertificateKeyId *uuid.UUID+ AuditLogsRetentionDays *int32+ KmsSecretManagerKeyId *uuid.UUID+ KmsSecretManagerEncryptedDataKey *[]byte+ Description *string+ Type string+ EnforceCapitalization bool+ HasDeleteProtection *bool+ SecretSharing bool+ ShowSnapshotsLegacy bool+ DefaultProduct *string+ SecretDetectionIgnoreValues *pq.StringArray+ EnforceEncryptedSecretManagerSecretMetadata *bool+}diff --git a/backend-go/internal/database/pg/gen/model/queue_jobs.go b/backend-go/internal/database/pg/gen/model/queue_jobs.gonew file mode 100644index 0000000000..d49dfb88de--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/queue_jobs.go@@ -0,0 +1,32 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type QueueJobs struct {+ ID uuid.UUID `sql:"primary_key"`+ QueueName string+ QueueType string+ QueueJobName string+ JobId string+ QueueData string+ QueueOptions *string+ Status string+ Attempts int32+ MaxAttempts int32+ ErrorMessage *string+ LastHeartBeat *time.Time+ StartedAt *time.Time+ CompletedAt *time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/rate_limit.go b/backend-go/internal/database/pg/gen/model/rate_limit.gonew file mode 100644index 0000000000..b39c93327c--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/rate_limit.go@@ -0,0 +1,28 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type RateLimit struct {+ ID uuid.UUID `sql:"primary_key"`+ ReadRateLimit int32+ WriteRateLimit int32+ SecretsRateLimit int32+ AuthRateLimit int32+ InviteUserRateLimit int32+ MfaRateLimit int32+ PublicEndpointLimit int32+ CreatedAt time.Time+ UpdatedAt time.Time+ IdentityCreationLimit int32+ ProjectCreationLimit int32+}diff --git a/backend-go/internal/database/pg/gen/model/relays.go b/backend-go/internal/database/pg/gen/model/relays.gonew file mode 100644index 0000000000..077a9d289d--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/relays.go@@ -0,0 +1,25 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type Relays struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ OrgId *uuid.UUID+ IdentityId *uuid.UUID+ Name string+ Host string+ Heartbeat *time.Time+ HealthAlertedAt *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/reminders.go b/backend-go/internal/database/pg/gen/model/reminders.gonew file mode 100644index 0000000000..77374e4549--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/reminders.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type Reminders struct {+ ID uuid.UUID `sql:"primary_key"`+ SecretId *uuid.UUID+ Message *string+ RepeatDays *int32+ NextReminderDate time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+ FromDate *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/reminders_recipients.go b/backend-go/internal/database/pg/gen/model/reminders_recipients.gonew file mode 100644index 0000000000..01f41faacd--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/reminders_recipients.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type RemindersRecipients struct {+ ID uuid.UUID `sql:"primary_key"`+ ReminderId uuid.UUID+ UserId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/resource_metadata.go b/backend-go/internal/database/pg/gen/model/resource_metadata.gonew file mode 100644index 0000000000..52631f7ba5--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/resource_metadata.go@@ -0,0 +1,32 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ResourceMetadata struct {+ ID uuid.UUID `sql:"primary_key"`+ Key string+ Value *string+ OrgId uuid.UUID+ UserId *uuid.UUID+ IdentityId *uuid.UUID+ SecretId *uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ DynamicSecretId *uuid.UUID+ EncryptedValue *[]byte+ CertificateId *uuid.UUID+ CertificateRequestId *uuid.UUID+ CertificateRequestCreatedAt *time.Time+ PamResourceId *uuid.UUID+ PamAccountId *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/roles.go b/backend-go/internal/database/pg/gen/model/roles.gonew file mode 100644index 0000000000..5674d08cbd--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/roles.go@@ -0,0 +1,25 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type Roles struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ Description *string+ Slug string+ Permissions string+ OrgId *uuid.UUID+ ProjectId *string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/saml_configs.go b/backend-go/internal/database/pg/gen/model/saml_configs.gonew file mode 100644index 0000000000..410070a1b7--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/saml_configs.go@@ -0,0 +1,36 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SamlConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ AuthProvider string+ IsActive bool+ EncryptedEntryPoint *string+ EntryPointIV *string+ EntryPointTag *string+ EncryptedIssuer *string+ IssuerTag *string+ IssuerIV *string+ EncryptedCert *string+ CertIV *string+ CertTag *string+ CreatedAt time.Time+ UpdatedAt time.Time+ OrgId uuid.UUID+ LastUsed *time.Time+ EncryptedSamlEntryPoint []byte+ EncryptedSamlIssuer []byte+ EncryptedSamlCertificate []byte+ EnableGroupSync bool+}diff --git a/backend-go/internal/database/pg/gen/model/scim_events.go b/backend-go/internal/database/pg/gen/model/scim_events.gonew file mode 100644index 0000000000..2a3a86fe02--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/scim_events.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ScimEvents struct {+ ID uuid.UUID `sql:"primary_key"`+ OrgId uuid.UUID+ EventType *string+ Event *string+ CreatedAt time.Time `sql:"primary_key"`+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/scim_tokens.go b/backend-go/internal/database/pg/gen/model/scim_tokens.gonew file mode 100644index 0000000000..ac39f6fe7b--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/scim_tokens.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type ScimTokens struct {+ ID string `sql:"primary_key"`+ TtlDays int64+ Description string+ OrgId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ ExpiryNotificationSent *bool+}diff --git a/backend-go/internal/database/pg/gen/model/secret_approval_policies.go b/backend-go/internal/database/pg/gen/model/secret_approval_policies.gonew file mode 100644index 0000000000..7f10b0d31c--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_approval_policies.go@@ -0,0 +1,26 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretApprovalPolicies struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ SecretPath string+ Approvals int32+ EnvId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ EnforcementLevel string+ DeletedAt *time.Time+ AllowedSelfApprovals bool+}diff --git a/backend-go/internal/database/pg/gen/model/secret_approval_policies_approvers.go b/backend-go/internal/database/pg/gen/model/secret_approval_policies_approvers.gonew file mode 100644index 0000000000..13c98141fa--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_approval_policies_approvers.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretApprovalPoliciesApprovers struct {+ ID uuid.UUID `sql:"primary_key"`+ PolicyId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ ApproverUserId *uuid.UUID+ ApproverGroupId *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/secret_approval_policies_bypassers.go b/backend-go/internal/database/pg/gen/model/secret_approval_policies_bypassers.gonew file mode 100644index 0000000000..cc00bea088--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_approval_policies_bypassers.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretApprovalPoliciesBypassers struct {+ ID uuid.UUID `sql:"primary_key"`+ BypasserGroupId *uuid.UUID+ BypasserUserId *uuid.UUID+ PolicyId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_approval_policies_environments.go b/backend-go/internal/database/pg/gen/model/secret_approval_policies_environments.gonew file mode 100644index 0000000000..a62b9c92be--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_approval_policies_environments.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretApprovalPoliciesEnvironments struct {+ ID uuid.UUID `sql:"primary_key"`+ PolicyId uuid.UUID+ EnvId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_approval_request_secret_tags.go b/backend-go/internal/database/pg/gen/model/secret_approval_request_secret_tags.gonew file mode 100644index 0000000000..9e0da09e38--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_approval_request_secret_tags.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretApprovalRequestSecretTags struct {+ ID uuid.UUID `sql:"primary_key"`+ SecretId uuid.UUID+ TagId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_approval_request_secret_tags_v2.go b/backend-go/internal/database/pg/gen/model/secret_approval_request_secret_tags_v2.gonew file mode 100644index 0000000000..1eff821923--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_approval_request_secret_tags_v2.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretApprovalRequestSecretTagsV2 struct {+ ID uuid.UUID `sql:"primary_key"`+ SecretId uuid.UUID+ TagId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_approval_requests.go b/backend-go/internal/database/pg/gen/model/secret_approval_requests.gonew file mode 100644index 0000000000..e1f864f736--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_approval_requests.go@@ -0,0 +1,29 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretApprovalRequests struct {+ ID uuid.UUID `sql:"primary_key"`+ PolicyId uuid.UUID+ HasMerged bool+ Status string+ Conflicts *string+ Slug string+ FolderId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ IsReplicated *bool+ CommitterUserId *uuid.UUID+ StatusChangedByUserId *uuid.UUID+ BypassReason *string+}diff --git a/backend-go/internal/database/pg/gen/model/secret_approval_requests_reviewers.go b/backend-go/internal/database/pg/gen/model/secret_approval_requests_reviewers.gonew file mode 100644index 0000000000..d44374995b--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_approval_requests_reviewers.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretApprovalRequestsReviewers struct {+ ID uuid.UUID `sql:"primary_key"`+ Status string+ RequestId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ ReviewerUserId uuid.UUID+ Comment *string+}diff --git a/backend-go/internal/database/pg/gen/model/secret_approval_requests_secrets.go b/backend-go/internal/database/pg/gen/model/secret_approval_requests_secrets.gonew file mode 100644index 0000000000..5872d88450--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_approval_requests_secrets.go@@ -0,0 +1,40 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretApprovalRequestsSecrets struct {+ ID uuid.UUID `sql:"primary_key"`+ Version *int32+ SecretBlindIndex *string+ SecretKeyCiphertext string+ SecretKeyIV string+ SecretKeyTag string+ SecretValueCiphertext string+ SecretValueIV string+ SecretValueTag string+ SecretCommentCiphertext *string+ SecretCommentIV *string+ SecretCommentTag *string+ SecretReminderNote *string+ SecretReminderRepeatDays *int32+ SkipMultilineEncoding *bool+ Algorithm string+ KeyEncoding string+ Metadata *string+ CreatedAt time.Time+ UpdatedAt time.Time+ RequestId uuid.UUID+ Op string+ SecretId *uuid.UUID+ SecretVersion *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/secret_approval_requests_secrets_v2.go b/backend-go/internal/database/pg/gen/model/secret_approval_requests_secrets_v2.gonew file mode 100644index 0000000000..fca30a84c7--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_approval_requests_secrets_v2.go@@ -0,0 +1,33 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretApprovalRequestsSecretsV2 struct {+ ID uuid.UUID `sql:"primary_key"`+ Version *int32+ Key string+ EncryptedValue *[]byte+ EncryptedComment *[]byte+ ReminderNote *string+ ReminderRepeatDays *int32+ SkipMultilineEncoding *bool+ Metadata *string+ CreatedAt time.Time+ UpdatedAt time.Time+ RequestId uuid.UUID+ Op string+ SecretId *uuid.UUID+ SecretVersion *uuid.UUID+ SecretMetadata *string+ InternalMetadata *string+}diff --git a/backend-go/internal/database/pg/gen/model/secret_blind_indexes.go b/backend-go/internal/database/pg/gen/model/secret_blind_indexes.gonew file mode 100644index 0000000000..542602185b--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_blind_indexes.go@@ -0,0 +1,25 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretBlindIndexes struct {+ ID uuid.UUID `sql:"primary_key"`+ EncryptedSaltCipherText string+ SaltIV string+ SaltTag string+ Algorithm string+ KeyEncoding string+ ProjectId string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_folder_versions.go b/backend-go/internal/database/pg/gen/model/secret_folder_versions.gonew file mode 100644index 0000000000..4f058af890--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_folder_versions.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretFolderVersions struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ Version *int32+ CreatedAt time.Time+ UpdatedAt time.Time+ EnvId uuid.UUID+ FolderId uuid.UUID+ Description *string+}diff --git a/backend-go/internal/database/pg/gen/model/secret_folders.go b/backend-go/internal/database/pg/gen/model/secret_folders.gonew file mode 100644index 0000000000..f4764b44a2--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_folders.go@@ -0,0 +1,26 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretFolders struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ Version *int32+ CreatedAt time.Time+ UpdatedAt time.Time+ EnvId uuid.UUID+ ParentId *uuid.UUID+ IsReserved *bool+ Description *string+ LastSecretModified *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_imports.go b/backend-go/internal/database/pg/gen/model/secret_imports.gonew file mode 100644index 0000000000..deb63f7b9b--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_imports.go@@ -0,0 +1,29 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretImports struct {+ ID uuid.UUID `sql:"primary_key"`+ Version *int32+ ImportPath string+ ImportEnv uuid.UUID+ Position int32+ CreatedAt time.Time+ UpdatedAt time.Time+ FolderId uuid.UUID+ IsReplication *bool+ IsReplicationSuccess *bool+ ReplicationStatus *string+ LastReplicated *time.Time+ IsReserved *bool+}diff --git a/backend-go/internal/database/pg/gen/model/secret_references.go b/backend-go/internal/database/pg/gen/model/secret_references.gonew file mode 100644index 0000000000..dcc975e2f8--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_references.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretReferences struct {+ ID uuid.UUID `sql:"primary_key"`+ Environment string+ SecretPath string+ SecretId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_references_v2.go b/backend-go/internal/database/pg/gen/model/secret_references_v2.gonew file mode 100644index 0000000000..097e36182c--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_references_v2.go@@ -0,0 +1,20 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type SecretReferencesV2 struct {+ ID uuid.UUID `sql:"primary_key"`+ Environment string+ SecretPath string+ SecretKey string+ SecretId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/secret_reminder_recipients.go b/backend-go/internal/database/pg/gen/model/secret_reminder_recipients.gonew file mode 100644index 0000000000..8f27171204--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_reminder_recipients.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretReminderRecipients struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ SecretId uuid.UUID+ UserId uuid.UUID+ ProjectId string+}diff --git a/backend-go/internal/database/pg/gen/model/secret_rotation_output_v2.go b/backend-go/internal/database/pg/gen/model/secret_rotation_output_v2.gonew file mode 100644index 0000000000..90941c8806--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_rotation_output_v2.go@@ -0,0 +1,19 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type SecretRotationOutputV2 struct {+ ID uuid.UUID `sql:"primary_key"`+ Key string+ SecretId uuid.UUID+ RotationId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/secret_rotation_outputs.go b/backend-go/internal/database/pg/gen/model/secret_rotation_outputs.gonew file mode 100644index 0000000000..11ae22b3b8--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_rotation_outputs.go@@ -0,0 +1,19 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type SecretRotationOutputs struct {+ ID uuid.UUID `sql:"primary_key"`+ Key string+ SecretId uuid.UUID+ RotationId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/secret_rotation_v2_secret_mappings.go b/backend-go/internal/database/pg/gen/model/secret_rotation_v2_secret_mappings.gonew file mode 100644index 0000000000..6ea938400d--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_rotation_v2_secret_mappings.go@@ -0,0 +1,18 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type SecretRotationV2SecretMappings struct {+ ID uuid.UUID `sql:"primary_key"`+ SecretId uuid.UUID+ RotationId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/secret_rotations.go b/backend-go/internal/database/pg/gen/model/secret_rotations.gonew file mode 100644index 0000000000..a11546a835--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_rotations.go@@ -0,0 +1,32 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretRotations struct {+ ID uuid.UUID `sql:"primary_key"`+ Provider string+ SecretPath string+ Interval int32+ LastRotatedAt *time.Time+ Status *string+ StatusMessage *string+ EncryptedData *string+ EncryptedDataIV *string+ EncryptedDataTag *string+ Algorithm *string+ KeyEncoding *string+ EnvId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ EncryptedRotationData []byte+}diff --git a/backend-go/internal/database/pg/gen/model/secret_rotations_v2.go b/backend-go/internal/database/pg/gen/model/secret_rotations_v2.gonew file mode 100644index 0000000000..c9410bf997--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_rotations_v2.go@@ -0,0 +1,38 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretRotationsV2 struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ Description *string+ Type string+ Parameters string+ SecretsMapping string+ EncryptedGeneratedCredentials []byte+ IsAutoRotationEnabled bool+ ActiveIndex int32+ FolderId uuid.UUID+ ConnectionId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ RotationInterval int32+ RotateAtUtc string+ RotationStatus string+ LastRotationAttemptedAt time.Time+ LastRotatedAt time.Time+ EncryptedLastRotationMessage *[]byte+ LastRotationJobId *string+ NextRotationAt *time.Time+ IsLastRotationManual bool+}diff --git a/backend-go/internal/database/pg/gen/model/secret_scanning_configs.go b/backend-go/internal/database/pg/gen/model/secret_scanning_configs.gonew file mode 100644index 0000000000..53aba67444--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_scanning_configs.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretScanningConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ ProjectId string+ Content *string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_scanning_data_sources.go b/backend-go/internal/database/pg/gen/model/secret_scanning_data_sources.gonew file mode 100644index 0000000000..53c8bf7529--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_scanning_data_sources.go@@ -0,0 +1,29 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretScanningDataSources struct {+ ID uuid.UUID `sql:"primary_key"`+ ExternalId *string+ Name string+ Description *string+ Type string+ Config string+ EncryptedCredentials *[]byte+ ConnectionId *uuid.UUID+ IsAutoScanEnabled *bool+ ProjectId string+ CreatedAt time.Time+ UpdatedAt time.Time+ IsDisconnected bool+}diff --git a/backend-go/internal/database/pg/gen/model/secret_scanning_findings.go b/backend-go/internal/database/pg/gen/model/secret_scanning_findings.gonew file mode 100644index 0000000000..dbf2a831b6--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_scanning_findings.go@@ -0,0 +1,31 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretScanningFindings struct {+ ID uuid.UUID `sql:"primary_key"`+ DataSourceName string+ DataSourceType string+ ResourceName string+ ResourceType string+ Rule string+ Severity string+ Status string+ Remarks *string+ Fingerprint string+ Details string+ ProjectId string+ ScanId *uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_scanning_git_risks.go b/backend-go/internal/database/pg/gen/model/secret_scanning_git_risks.gonew file mode 100644index 0000000000..8614b1c7f6--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_scanning_git_risks.go@@ -0,0 +1,48 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type SecretScanningGitRisks struct {+ ID uuid.UUID `sql:"primary_key"`+ Description *string+ StartLine *string+ EndLine *string+ StartColumn *string+ EndColumn *string+ File *string+ SymlinkFile *string+ Commit *string+ Entropy *string+ Author *string+ Email *string+ Date *string+ Message *string+ Tags *pq.StringArray+ RuleID *string+ Fingerprint *string+ FingerPrintWithoutCommitId *string+ IsFalsePositive *bool+ IsResolved *bool+ RiskOwner *string+ InstallationId string+ RepositoryId *string+ RepositoryLink *string+ RepositoryFullName *string+ PusherName *string+ PusherEmail *string+ Status *string+ OrgId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_scanning_resources.go b/backend-go/internal/database/pg/gen/model/secret_scanning_resources.gonew file mode 100644index 0000000000..8c91dd27b0--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_scanning_resources.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretScanningResources struct {+ ID uuid.UUID `sql:"primary_key"`+ ExternalId string+ Name string+ Type string+ DataSourceId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_scanning_scans.go b/backend-go/internal/database/pg/gen/model/secret_scanning_scans.gonew file mode 100644index 0000000000..d00c5a1575--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_scanning_scans.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretScanningScans struct {+ ID uuid.UUID `sql:"primary_key"`+ Status string+ StatusMessage *string+ Type string+ ResourceId uuid.UUID+ CreatedAt *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_sharing.go b/backend-go/internal/database/pg/gen/model/secret_sharing.gonew file mode 100644index 0000000000..6ef3cb2a02--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_sharing.go@@ -0,0 +1,36 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretSharing struct {+ ID uuid.UUID `sql:"primary_key"`+ EncryptedValue *string+ Iv *string+ Tag *string+ HashedHex *string+ ExpiresAt time.Time+ UserId *uuid.UUID+ OrgId *uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ ExpiresAfterViews *int32+ AccessType string+ Name *string+ LastViewedAt *time.Time+ Password *string+ EncryptedSecret *[]byte+ Identifier *string+ Type string+ AuthorizedEmails *string+ IdentityId *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/secret_snapshot_folders.go b/backend-go/internal/database/pg/gen/model/secret_snapshot_folders.gonew file mode 100644index 0000000000..71869f7a6f--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_snapshot_folders.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretSnapshotFolders struct {+ ID uuid.UUID `sql:"primary_key"`+ EnvId uuid.UUID+ FolderVersionId uuid.UUID+ SnapshotId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_snapshot_secrets.go b/backend-go/internal/database/pg/gen/model/secret_snapshot_secrets.gonew file mode 100644index 0000000000..fb4dfc6bd0--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_snapshot_secrets.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretSnapshotSecrets struct {+ ID uuid.UUID `sql:"primary_key"`+ EnvId uuid.UUID+ SecretVersionId uuid.UUID+ SnapshotId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_snapshot_secrets_v2.go b/backend-go/internal/database/pg/gen/model/secret_snapshot_secrets_v2.gonew file mode 100644index 0000000000..7a3f2a2066--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_snapshot_secrets_v2.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretSnapshotSecretsV2 struct {+ ID uuid.UUID `sql:"primary_key"`+ EnvId uuid.UUID+ SecretVersionId uuid.UUID+ SnapshotId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_snapshots.go b/backend-go/internal/database/pg/gen/model/secret_snapshots.gonew file mode 100644index 0000000000..31a7bae358--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_snapshots.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretSnapshots struct {+ ID uuid.UUID `sql:"primary_key"`+ EnvId uuid.UUID+ FolderId uuid.UUID+ ParentFolderId *uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_syncs.go b/backend-go/internal/database/pg/gen/model/secret_syncs.gonew file mode 100644index 0000000000..1acac595ba--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_syncs.go@@ -0,0 +1,41 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretSyncs struct {+ ID uuid.UUID `sql:"primary_key"`+ Name string+ Description *string+ Destination string+ IsAutoSyncEnabled bool+ Version int32+ DestinationConfig string+ SyncOptions string+ ProjectId string+ FolderId *uuid.UUID+ ConnectionId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ SyncStatus *string+ LastSyncJobId *string+ LastSyncMessage *string+ LastSyncedAt *time.Time+ ImportStatus *string+ LastImportJobId *string+ LastImportMessage *string+ LastImportedAt *time.Time+ RemoveStatus *string+ LastRemoveJobId *string+ LastRemoveMessage *string+ LastRemovedAt *time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_tag_junction.go b/backend-go/internal/database/pg/gen/model/secret_tag_junction.gonew file mode 100644index 0000000000..30c026b3a4--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_tag_junction.go@@ -0,0 +1,18 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type SecretTagJunction struct {+ ID uuid.UUID `sql:"primary_key"`+ SecretsId uuid.UUID+ SecretTagsid uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/secret_tags.go b/backend-go/internal/database/pg/gen/model/secret_tags.gonew file mode 100644index 0000000000..e6e775b42b--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_tags.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretTags struct {+ ID uuid.UUID `sql:"primary_key"`+ Slug string+ Color *string+ CreatedAt time.Time+ UpdatedAt time.Time+ CreatedBy *uuid.UUID+ ProjectId string+ CreatedByActorType string+}diff --git a/backend-go/internal/database/pg/gen/model/secret_v2_tag_junction.go b/backend-go/internal/database/pg/gen/model/secret_v2_tag_junction.gonew file mode 100644index 0000000000..746431c237--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_v2_tag_junction.go@@ -0,0 +1,18 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type SecretV2TagJunction struct {+ ID uuid.UUID `sql:"primary_key"`+ SecretsV2id uuid.UUID+ SecretTagsid uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/secret_version_tag_junction.go b/backend-go/internal/database/pg/gen/model/secret_version_tag_junction.gonew file mode 100644index 0000000000..0ab10007f1--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_version_tag_junction.go@@ -0,0 +1,18 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type SecretVersionTagJunction struct {+ ID uuid.UUID `sql:"primary_key"`+ SecretVersionsid uuid.UUID+ SecretTagsid uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/secret_version_v2_tag_junction.go b/backend-go/internal/database/pg/gen/model/secret_version_v2_tag_junction.gonew file mode 100644index 0000000000..02f566b2e7--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_version_v2_tag_junction.go@@ -0,0 +1,18 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type SecretVersionV2TagJunction struct {+ ID uuid.UUID `sql:"primary_key"`+ SecretVersionsV2id uuid.UUID+ SecretTagsid uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/secret_versions.go b/backend-go/internal/database/pg/gen/model/secret_versions.gonew file mode 100644index 0000000000..6db6286425--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_versions.go@@ -0,0 +1,41 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretVersions struct {+ ID uuid.UUID `sql:"primary_key"`+ Version int32+ Type string+ SecretBlindIndex *string+ SecretKeyCiphertext string+ SecretKeyIV string+ SecretKeyTag string+ SecretValueCiphertext string+ SecretValueIV string+ SecretValueTag string+ SecretCommentCiphertext *string+ SecretCommentIV *string+ SecretCommentTag *string+ SecretReminderNote *string+ SecretReminderRepeatDays *int32+ SkipMultilineEncoding *bool+ Algorithm string+ KeyEncoding string+ Metadata *string+ EnvId *uuid.UUID+ SecretId uuid.UUID+ FolderId uuid.UUID+ UserId *uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secret_versions_v2.go b/backend-go/internal/database/pg/gen/model/secret_versions_v2.gonew file mode 100644index 0000000000..03fbead8eb--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secret_versions_v2.go@@ -0,0 +1,39 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretVersionsV2 struct {+ ID uuid.UUID `sql:"primary_key"`+ Version int32+ Type string+ Key string+ EncryptedValue *[]byte+ EncryptedComment *[]byte+ ReminderNote *string+ ReminderRepeatDays *int32+ SkipMultilineEncoding *bool+ Metadata *string+ EnvId *uuid.UUID+ SecretId uuid.UUID+ FolderId uuid.UUID+ UserId *uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ UserActorId *uuid.UUID+ IdentityActorId *uuid.UUID+ ActorType *string+ ParentVersionId *uuid.UUID+ IsRedacted bool+ RedactedAt *time.Time+ RedactedByUserId *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/secrets.go b/backend-go/internal/database/pg/gen/model/secrets.gonew file mode 100644index 0000000000..270486d261--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secrets.go@@ -0,0 +1,39 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type Secrets struct {+ ID uuid.UUID `sql:"primary_key"`+ Version int32+ Type string+ SecretBlindIndex *string+ SecretKeyCiphertext string+ SecretKeyIV string+ SecretKeyTag string+ SecretValueCiphertext string+ SecretValueIV string+ SecretValueTag string+ SecretCommentCiphertext *string+ SecretCommentIV *string+ SecretCommentTag *string+ SecretReminderNote *string+ SecretReminderRepeatDays *int32+ SkipMultilineEncoding *bool+ Algorithm string+ KeyEncoding string+ Metadata *string+ UserId *uuid.UUID+ FolderId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/secrets_v2.go b/backend-go/internal/database/pg/gen/model/secrets_v2.gonew file mode 100644index 0000000000..5808f90eaf--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/secrets_v2.go@@ -0,0 +1,30 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SecretsV2 struct {+ ID uuid.UUID `sql:"primary_key"`+ Version int32+ Type string+ Key string+ EncryptedValue *[]byte+ EncryptedComment *[]byte+ ReminderNote *string+ ReminderRepeatDays *int32+ SkipMultilineEncoding *bool+ Metadata *string+ UserId *uuid.UUID+ FolderId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/service_tokens.go b/backend-go/internal/database/pg/gen/model/service_tokens.gonew file mode 100644index 0000000000..e18781c69d--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/service_tokens.go@@ -0,0 +1,31 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/lib/pq"+ "time"+)++type ServiceTokens struct {+ ID string `sql:"primary_key"`+ Name string+ Scopes string+ Permissions pq.StringArray+ LastUsed *time.Time+ ExpiresAt *time.Time+ SecretHash string+ EncryptedKey *string+ Iv *string+ Tag *string+ CreatedAt time.Time+ UpdatedAt time.Time+ CreatedBy string+ ProjectId string+ ExpiryNotificationSent *bool+}diff --git a/backend-go/internal/database/pg/gen/model/slack_integrations.go b/backend-go/internal/database/pg/gen/model/slack_integrations.gonew file mode 100644index 0000000000..e47a8e9d98--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/slack_integrations.go@@ -0,0 +1,26 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SlackIntegrations struct {+ ID uuid.UUID `sql:"primary_key"`+ TeamId string+ TeamName string+ SlackUserId string+ SlackAppId string+ EncryptedBotAccessToken []byte+ SlackBotId string+ SlackBotUserId string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/ssh_certificate_authorities.go b/backend-go/internal/database/pg/gen/model/ssh_certificate_authorities.gonew file mode 100644index 0000000000..8fcd6d7189--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ssh_certificate_authorities.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SSHCertificateAuthorities struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ ProjectId string+ Status string+ FriendlyName string+ KeyAlgorithm string+ KeySource string+}diff --git a/backend-go/internal/database/pg/gen/model/ssh_certificate_authority_secrets.go b/backend-go/internal/database/pg/gen/model/ssh_certificate_authority_secrets.gonew file mode 100644index 0000000000..80e9597d92--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ssh_certificate_authority_secrets.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SSHCertificateAuthoritySecrets struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ SshCaId uuid.UUID+ EncryptedPrivateKey []byte+}diff --git a/backend-go/internal/database/pg/gen/model/ssh_certificate_bodies.go b/backend-go/internal/database/pg/gen/model/ssh_certificate_bodies.gonew file mode 100644index 0000000000..320ed021ac--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ssh_certificate_bodies.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SSHCertificateBodies struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ SshCertId uuid.UUID+ EncryptedCertificate []byte+}diff --git a/backend-go/internal/database/pg/gen/model/ssh_certificate_templates.go b/backend-go/internal/database/pg/gen/model/ssh_certificate_templates.gonew file mode 100644index 0000000000..6ab70422af--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ssh_certificate_templates.go@@ -0,0 +1,30 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type SSHCertificateTemplates struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ SshCaId uuid.UUID+ Status string+ Name string+ TTL string+ MaxTTL string+ AllowedUsers pq.StringArray+ AllowedHosts pq.StringArray+ AllowUserCertificates bool+ AllowHostCertificates bool+ AllowCustomKeyIds bool+}diff --git a/backend-go/internal/database/pg/gen/model/ssh_certificates.go b/backend-go/internal/database/pg/gen/model/ssh_certificates.gonew file mode 100644index 0000000000..d6897d2a98--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ssh_certificates.go@@ -0,0 +1,29 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type SSHCertificates struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ SshCaId *uuid.UUID+ SshCertificateTemplateId *uuid.UUID+ SerialNumber string+ CertType string+ Principals pq.StringArray+ KeyId string+ NotBefore time.Time+ NotAfter time.Time+ SshHostId *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/ssh_host_group_memberships.go b/backend-go/internal/database/pg/gen/model/ssh_host_group_memberships.gonew file mode 100644index 0000000000..6e633afc38--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ssh_host_group_memberships.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SSHHostGroupMemberships struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ SshHostGroupId uuid.UUID+ SshHostId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/ssh_host_groups.go b/backend-go/internal/database/pg/gen/model/ssh_host_groups.gonew file mode 100644index 0000000000..5dbb8d2f18--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ssh_host_groups.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SSHHostGroups struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ ProjectId string+ Name string+}diff --git a/backend-go/internal/database/pg/gen/model/ssh_host_login_user_mappings.go b/backend-go/internal/database/pg/gen/model/ssh_host_login_user_mappings.gonew file mode 100644index 0000000000..8346a825c3--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ssh_host_login_user_mappings.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SSHHostLoginUserMappings struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ SshHostLoginUserId uuid.UUID+ UserId *uuid.UUID+ GroupId *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/ssh_host_login_users.go b/backend-go/internal/database/pg/gen/model/ssh_host_login_users.gonew file mode 100644index 0000000000..63b68cfd52--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ssh_host_login_users.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SSHHostLoginUsers struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ SshHostId *uuid.UUID+ LoginUser string+ SshHostGroupId *uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/ssh_hosts.go b/backend-go/internal/database/pg/gen/model/ssh_hosts.gonew file mode 100644index 0000000000..3fa51b3561--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/ssh_hosts.go@@ -0,0 +1,26 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type SSHHosts struct {+ ID uuid.UUID `sql:"primary_key"`+ CreatedAt time.Time+ UpdatedAt time.Time+ ProjectId string+ Hostname string+ UserCertTtl string+ HostCertTtl string+ UserSshCaId uuid.UUID+ HostSshCaId uuid.UUID+ Alias *string+}diff --git a/backend-go/internal/database/pg/gen/model/super_admin.go b/backend-go/internal/database/pg/gen/model/super_admin.gonew file mode 100644index 0000000000..e1745fad1d--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/super_admin.go@@ -0,0 +1,44 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type SuperAdmin struct {+ ID uuid.UUID `sql:"primary_key"`+ Initialized *bool+ AllowSignUp *bool+ CreatedAt time.Time+ UpdatedAt time.Time+ AllowedSignUpDomain *string+ InstanceId uuid.UUID+ TrustSamlEmails *bool+ TrustLdapEmails *bool+ TrustOidcEmails *bool+ DefaultAuthOrgId *uuid.UUID+ EnabledLoginMethods *pq.StringArray+ EncryptedSlackClientId *[]byte+ EncryptedSlackClientSecret *[]byte+ AuthConsentContent *string+ PageFrameContent *string+ AdminIdentityIds *pq.StringArray+ EncryptedMicrosoftTeamsAppId *[]byte+ EncryptedMicrosoftTeamsClientSecret *[]byte+ EncryptedMicrosoftTeamsBotId *[]byte+ EncryptedGitHubAppConnectionClientId *[]byte+ EncryptedGitHubAppConnectionClientSecret *[]byte+ EncryptedGitHubAppConnectionSlug *[]byte+ EncryptedGitHubAppConnectionId *[]byte+ EncryptedGitHubAppConnectionPrivateKey *[]byte+ EncryptedEnvOverrides *[]byte+ FipsEnabled bool+}diff --git a/backend-go/internal/database/pg/gen/model/totp_configs.go b/backend-go/internal/database/pg/gen/model/totp_configs.gonew file mode 100644index 0000000000..ad565ffad5--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/totp_configs.go@@ -0,0 +1,23 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type TotpConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ UserId uuid.UUID+ IsVerified bool+ EncryptedRecoveryCodes []byte+ EncryptedSecret []byte+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/trusted_ips.go b/backend-go/internal/database/pg/gen/model/trusted_ips.gonew file mode 100644index 0000000000..da5ac88b9f--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/trusted_ips.go@@ -0,0 +1,25 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type TrustedIps struct {+ ID uuid.UUID `sql:"primary_key"`+ IpAddress string+ Type string+ Prefix *int32+ IsActive *bool+ Comment *string+ ProjectId string+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/user_actions.go b/backend-go/internal/database/pg/gen/model/user_actions.gonew file mode 100644index 0000000000..5e81ea142c--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/user_actions.go@@ -0,0 +1,21 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type UserActions struct {+ ID uuid.UUID `sql:"primary_key"`+ Action string+ CreatedAt time.Time+ UpdatedAt time.Time+ UserId uuid.UUID+}diff --git a/backend-go/internal/database/pg/gen/model/user_aliases.go b/backend-go/internal/database/pg/gen/model/user_aliases.gonew file mode 100644index 0000000000..4abfc3957e--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/user_aliases.go@@ -0,0 +1,27 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type UserAliases struct {+ ID uuid.UUID `sql:"primary_key"`+ UserId uuid.UUID+ Username *string+ AliasType string+ ExternalId string+ Emails *pq.StringArray+ OrgId *uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ IsEmailVerified *bool+}diff --git a/backend-go/internal/database/pg/gen/model/user_encryption_keys.go b/backend-go/internal/database/pg/gen/model/user_encryption_keys.gonew file mode 100644index 0000000000..b9c0855aa3--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/user_encryption_keys.go@@ -0,0 +1,34 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+)++type UserEncryptionKeys struct {+ ID uuid.UUID `sql:"primary_key"`+ ClientPublicKey *string+ ServerPrivateKey *string+ EncryptionVersion *int32+ ProtectedKey *string+ ProtectedKeyIV *string+ ProtectedKeyTag *string+ PublicKey *string+ EncryptedPrivateKey *string+ Iv *string+ Tag *string+ Salt *string+ Verifier *string+ UserId uuid.UUID+ HashedPassword *string+ ServerEncryptedPrivateKey *string+ ServerEncryptedPrivateKeyIV *string+ ServerEncryptedPrivateKeyTag *string+ ServerEncryptedPrivateKeyEncoding *string+}diff --git a/backend-go/internal/database/pg/gen/model/user_group_membership.go b/backend-go/internal/database/pg/gen/model/user_group_membership.gonew file mode 100644index 0000000000..b58c993fa5--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/user_group_membership.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type UserGroupMembership struct {+ ID uuid.UUID `sql:"primary_key"`+ UserId uuid.UUID+ GroupId uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+ IsPending bool+}diff --git a/backend-go/internal/database/pg/gen/model/user_notifications.go b/backend-go/internal/database/pg/gen/model/user_notifications.gonew file mode 100644index 0000000000..f6b8fa1900--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/user_notifications.go@@ -0,0 +1,26 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type UserNotifications struct {+ ID uuid.UUID `sql:"primary_key"`+ UserId uuid.UUID+ OrgId *uuid.UUID+ Type string+ Title string+ Body *string+ Link *string+ IsRead bool+ CreatedAt time.Time `sql:"primary_key"`+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/users.go b/backend-go/internal/database/pg/gen/model/users.gonew file mode 100644index 0000000000..e006ebf91d--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/users.go@@ -0,0 +1,37 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type Users struct {+ ID uuid.UUID `sql:"primary_key"`+ Email *string+ AuthMethods *pq.StringArray+ SuperAdmin *bool+ FirstName *string+ LastName *string+ IsAccepted *bool+ IsMfaEnabled *bool+ MfaMethods *pq.StringArray+ Devices *string+ CreatedAt time.Time+ UpdatedAt time.Time+ IsGhost bool+ Username string+ IsEmailVerified *bool+ ConsecutiveFailedMfaAttempts *int32+ IsLocked *bool+ TemporaryLockDateEnd *time.Time+ ConsecutiveFailedPasswordAttempts *int32+ SelectedMfaMethod *string+}diff --git a/backend-go/internal/database/pg/gen/model/vault_external_migration_configs.go b/backend-go/internal/database/pg/gen/model/vault_external_migration_configs.gonew file mode 100644index 0000000000..4edf1396d3--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/vault_external_migration_configs.go@@ -0,0 +1,22 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type VaultExternalMigrationConfigs struct {+ ID uuid.UUID `sql:"primary_key"`+ OrgId uuid.UUID+ Namespace string+ ConnectionId *uuid.UUID+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/webauthn_credentials.go b/backend-go/internal/database/pg/gen/model/webauthn_credentials.gonew file mode 100644index 0000000000..ce8b1baba3--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/webauthn_credentials.go@@ -0,0 +1,27 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "github.com/lib/pq"+ "time"+)++type WebauthnCredentials struct {+ ID uuid.UUID `sql:"primary_key"`+ UserId uuid.UUID+ CredentialId string+ PublicKey string+ Counter int64+ Transports *pq.StringArray+ Name *string+ LastUsedAt *time.Time+ CreatedAt time.Time+ UpdatedAt time.Time+}diff --git a/backend-go/internal/database/pg/gen/model/webhooks.go b/backend-go/internal/database/pg/gen/model/webhooks.gonew file mode 100644index 0000000000..48defd11ef--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/webhooks.go@@ -0,0 +1,36 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type Webhooks struct {+ ID uuid.UUID `sql:"primary_key"`+ SecretPath string+ URL *string+ LastStatus *string+ LastRunErrorMessage *string+ IsDisabled bool+ EncryptedSecretKey *string+ Iv *string+ Tag *string+ Algorithm *string+ KeyEncoding *string+ CreatedAt time.Time+ UpdatedAt time.Time+ EnvId uuid.UUID+ UrlCipherText *string+ UrlIV *string+ UrlTag *string+ Type *string+ EncryptedPassKey *[]byte+ EncryptedUrl []byte+}diff --git a/backend-go/internal/database/pg/gen/model/workflow_integrations.go b/backend-go/internal/database/pg/gen/model/workflow_integrations.gonew file mode 100644index 0000000000..dfd1f4e7e7--- /dev/null+++ b/backend-go/internal/database/pg/gen/model/workflow_integrations.go@@ -0,0 +1,24 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package model++import (+ "github.com/google/uuid"+ "time"+)++type WorkflowIntegrations struct {+ ID uuid.UUID `sql:"primary_key"`+ Integration string+ Slug string+ OrgId uuid.UUID+ Description *string+ CreatedAt time.Time+ UpdatedAt time.Time+ Status string+}diff --git a/backend-go/internal/database/pg/gen/table/access_approval_policies.go b/backend-go/internal/database/pg/gen/table/access_approval_policies.gonew file mode 100644index 0000000000..bb6307a646--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/access_approval_policies.go@@ -0,0 +1,108 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AccessApprovalPolicies = newAccessApprovalPoliciesTable("public", "access_approval_policies", "")++type accessApprovalPoliciesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Approvals postgres.ColumnInteger+ SecretPath postgres.ColumnString+ EnvId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ EnforcementLevel postgres.ColumnString+ DeletedAt postgres.ColumnTimestampz+ AllowedSelfApprovals postgres.ColumnBool+ MaxTimePeriod postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AccessApprovalPoliciesTable struct {+ accessApprovalPoliciesTable++ EXCLUDED accessApprovalPoliciesTable+}++// AS creates new AccessApprovalPoliciesTable with assigned alias+func (a AccessApprovalPoliciesTable) AS(alias string) *AccessApprovalPoliciesTable {+ return newAccessApprovalPoliciesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AccessApprovalPoliciesTable with assigned schema name+func (a AccessApprovalPoliciesTable) FromSchema(schemaName string) *AccessApprovalPoliciesTable {+ return newAccessApprovalPoliciesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AccessApprovalPoliciesTable with assigned table prefix+func (a AccessApprovalPoliciesTable) WithPrefix(prefix string) *AccessApprovalPoliciesTable {+ return newAccessApprovalPoliciesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AccessApprovalPoliciesTable with assigned table suffix+func (a AccessApprovalPoliciesTable) WithSuffix(suffix string) *AccessApprovalPoliciesTable {+ return newAccessApprovalPoliciesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAccessApprovalPoliciesTable(schemaName, tableName, alias string) *AccessApprovalPoliciesTable {+ return &AccessApprovalPoliciesTable{+ accessApprovalPoliciesTable: newAccessApprovalPoliciesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAccessApprovalPoliciesTableImpl("", "excluded", ""),+ }+}++func newAccessApprovalPoliciesTableImpl(schemaName, tableName, alias string) accessApprovalPoliciesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ ApprovalsColumn = postgres.IntegerColumn("approvals")+ SecretPathColumn = postgres.StringColumn("secretPath")+ EnvIdColumn = postgres.StringColumn("envId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ EnforcementLevelColumn = postgres.StringColumn("enforcementLevel")+ DeletedAtColumn = postgres.TimestampzColumn("deletedAt")+ AllowedSelfApprovalsColumn = postgres.BoolColumn("allowedSelfApprovals")+ MaxTimePeriodColumn = postgres.StringColumn("maxTimePeriod")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, ApprovalsColumn, SecretPathColumn, EnvIdColumn, CreatedAtColumn, UpdatedAtColumn, EnforcementLevelColumn, DeletedAtColumn, AllowedSelfApprovalsColumn, MaxTimePeriodColumn}+ mutableColumns = postgres.ColumnList{NameColumn, ApprovalsColumn, SecretPathColumn, EnvIdColumn, CreatedAtColumn, UpdatedAtColumn, EnforcementLevelColumn, DeletedAtColumn, AllowedSelfApprovalsColumn, MaxTimePeriodColumn}+ defaultColumns = postgres.ColumnList{IDColumn, ApprovalsColumn, CreatedAtColumn, UpdatedAtColumn, EnforcementLevelColumn, AllowedSelfApprovalsColumn}+ )++ return accessApprovalPoliciesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Approvals: ApprovalsColumn,+ SecretPath: SecretPathColumn,+ EnvId: EnvIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ EnforcementLevel: EnforcementLevelColumn,+ DeletedAt: DeletedAtColumn,+ AllowedSelfApprovals: AllowedSelfApprovalsColumn,+ MaxTimePeriod: MaxTimePeriodColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/access_approval_policies_approvers.go b/backend-go/internal/database/pg/gen/table/access_approval_policies_approvers.gonew file mode 100644index 0000000000..2b6648c570--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/access_approval_policies_approvers.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AccessApprovalPoliciesApprovers = newAccessApprovalPoliciesApproversTable("public", "access_approval_policies_approvers", "")++type accessApprovalPoliciesApproversTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ PolicyId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ApproverUserId postgres.ColumnString+ ApproverGroupId postgres.ColumnString+ Sequence postgres.ColumnInteger+ ApprovalsRequired postgres.ColumnInteger++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AccessApprovalPoliciesApproversTable struct {+ accessApprovalPoliciesApproversTable++ EXCLUDED accessApprovalPoliciesApproversTable+}++// AS creates new AccessApprovalPoliciesApproversTable with assigned alias+func (a AccessApprovalPoliciesApproversTable) AS(alias string) *AccessApprovalPoliciesApproversTable {+ return newAccessApprovalPoliciesApproversTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AccessApprovalPoliciesApproversTable with assigned schema name+func (a AccessApprovalPoliciesApproversTable) FromSchema(schemaName string) *AccessApprovalPoliciesApproversTable {+ return newAccessApprovalPoliciesApproversTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AccessApprovalPoliciesApproversTable with assigned table prefix+func (a AccessApprovalPoliciesApproversTable) WithPrefix(prefix string) *AccessApprovalPoliciesApproversTable {+ return newAccessApprovalPoliciesApproversTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AccessApprovalPoliciesApproversTable with assigned table suffix+func (a AccessApprovalPoliciesApproversTable) WithSuffix(suffix string) *AccessApprovalPoliciesApproversTable {+ return newAccessApprovalPoliciesApproversTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAccessApprovalPoliciesApproversTable(schemaName, tableName, alias string) *AccessApprovalPoliciesApproversTable {+ return &AccessApprovalPoliciesApproversTable{+ accessApprovalPoliciesApproversTable: newAccessApprovalPoliciesApproversTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAccessApprovalPoliciesApproversTableImpl("", "excluded", ""),+ }+}++func newAccessApprovalPoliciesApproversTableImpl(schemaName, tableName, alias string) accessApprovalPoliciesApproversTable {+ var (+ IDColumn = postgres.StringColumn("id")+ PolicyIdColumn = postgres.StringColumn("policyId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ApproverUserIdColumn = postgres.StringColumn("approverUserId")+ ApproverGroupIdColumn = postgres.StringColumn("approverGroupId")+ SequenceColumn = postgres.IntegerColumn("sequence")+ ApprovalsRequiredColumn = postgres.IntegerColumn("approvalsRequired")+ allColumns = postgres.ColumnList{IDColumn, PolicyIdColumn, CreatedAtColumn, UpdatedAtColumn, ApproverUserIdColumn, ApproverGroupIdColumn, SequenceColumn, ApprovalsRequiredColumn}+ mutableColumns = postgres.ColumnList{PolicyIdColumn, CreatedAtColumn, UpdatedAtColumn, ApproverUserIdColumn, ApproverGroupIdColumn, SequenceColumn, ApprovalsRequiredColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, SequenceColumn}+ )++ return accessApprovalPoliciesApproversTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ PolicyId: PolicyIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ApproverUserId: ApproverUserIdColumn,+ ApproverGroupId: ApproverGroupIdColumn,+ Sequence: SequenceColumn,+ ApprovalsRequired: ApprovalsRequiredColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/access_approval_policies_bypassers.go b/backend-go/internal/database/pg/gen/table/access_approval_policies_bypassers.gonew file mode 100644index 0000000000..77bd5a64f4--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/access_approval_policies_bypassers.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AccessApprovalPoliciesBypassers = newAccessApprovalPoliciesBypassersTable("public", "access_approval_policies_bypassers", "")++type accessApprovalPoliciesBypassersTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ BypasserGroupId postgres.ColumnString+ BypasserUserId postgres.ColumnString+ PolicyId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AccessApprovalPoliciesBypassersTable struct {+ accessApprovalPoliciesBypassersTable++ EXCLUDED accessApprovalPoliciesBypassersTable+}++// AS creates new AccessApprovalPoliciesBypassersTable with assigned alias+func (a AccessApprovalPoliciesBypassersTable) AS(alias string) *AccessApprovalPoliciesBypassersTable {+ return newAccessApprovalPoliciesBypassersTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AccessApprovalPoliciesBypassersTable with assigned schema name+func (a AccessApprovalPoliciesBypassersTable) FromSchema(schemaName string) *AccessApprovalPoliciesBypassersTable {+ return newAccessApprovalPoliciesBypassersTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AccessApprovalPoliciesBypassersTable with assigned table prefix+func (a AccessApprovalPoliciesBypassersTable) WithPrefix(prefix string) *AccessApprovalPoliciesBypassersTable {+ return newAccessApprovalPoliciesBypassersTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AccessApprovalPoliciesBypassersTable with assigned table suffix+func (a AccessApprovalPoliciesBypassersTable) WithSuffix(suffix string) *AccessApprovalPoliciesBypassersTable {+ return newAccessApprovalPoliciesBypassersTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAccessApprovalPoliciesBypassersTable(schemaName, tableName, alias string) *AccessApprovalPoliciesBypassersTable {+ return &AccessApprovalPoliciesBypassersTable{+ accessApprovalPoliciesBypassersTable: newAccessApprovalPoliciesBypassersTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAccessApprovalPoliciesBypassersTableImpl("", "excluded", ""),+ }+}++func newAccessApprovalPoliciesBypassersTableImpl(schemaName, tableName, alias string) accessApprovalPoliciesBypassersTable {+ var (+ IDColumn = postgres.StringColumn("id")+ BypasserGroupIdColumn = postgres.StringColumn("bypasserGroupId")+ BypasserUserIdColumn = postgres.StringColumn("bypasserUserId")+ PolicyIdColumn = postgres.StringColumn("policyId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, BypasserGroupIdColumn, BypasserUserIdColumn, PolicyIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{BypasserGroupIdColumn, BypasserUserIdColumn, PolicyIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return accessApprovalPoliciesBypassersTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ BypasserGroupId: BypasserGroupIdColumn,+ BypasserUserId: BypasserUserIdColumn,+ PolicyId: PolicyIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/access_approval_policies_environments.go b/backend-go/internal/database/pg/gen/table/access_approval_policies_environments.gonew file mode 100644index 0000000000..557de29fef--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/access_approval_policies_environments.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AccessApprovalPoliciesEnvironments = newAccessApprovalPoliciesEnvironmentsTable("public", "access_approval_policies_environments", "")++type accessApprovalPoliciesEnvironmentsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ PolicyId postgres.ColumnString+ EnvId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AccessApprovalPoliciesEnvironmentsTable struct {+ accessApprovalPoliciesEnvironmentsTable++ EXCLUDED accessApprovalPoliciesEnvironmentsTable+}++// AS creates new AccessApprovalPoliciesEnvironmentsTable with assigned alias+func (a AccessApprovalPoliciesEnvironmentsTable) AS(alias string) *AccessApprovalPoliciesEnvironmentsTable {+ return newAccessApprovalPoliciesEnvironmentsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AccessApprovalPoliciesEnvironmentsTable with assigned schema name+func (a AccessApprovalPoliciesEnvironmentsTable) FromSchema(schemaName string) *AccessApprovalPoliciesEnvironmentsTable {+ return newAccessApprovalPoliciesEnvironmentsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AccessApprovalPoliciesEnvironmentsTable with assigned table prefix+func (a AccessApprovalPoliciesEnvironmentsTable) WithPrefix(prefix string) *AccessApprovalPoliciesEnvironmentsTable {+ return newAccessApprovalPoliciesEnvironmentsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AccessApprovalPoliciesEnvironmentsTable with assigned table suffix+func (a AccessApprovalPoliciesEnvironmentsTable) WithSuffix(suffix string) *AccessApprovalPoliciesEnvironmentsTable {+ return newAccessApprovalPoliciesEnvironmentsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAccessApprovalPoliciesEnvironmentsTable(schemaName, tableName, alias string) *AccessApprovalPoliciesEnvironmentsTable {+ return &AccessApprovalPoliciesEnvironmentsTable{+ accessApprovalPoliciesEnvironmentsTable: newAccessApprovalPoliciesEnvironmentsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAccessApprovalPoliciesEnvironmentsTableImpl("", "excluded", ""),+ }+}++func newAccessApprovalPoliciesEnvironmentsTableImpl(schemaName, tableName, alias string) accessApprovalPoliciesEnvironmentsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ PolicyIdColumn = postgres.StringColumn("policyId")+ EnvIdColumn = postgres.StringColumn("envId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, PolicyIdColumn, EnvIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{PolicyIdColumn, EnvIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return accessApprovalPoliciesEnvironmentsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ PolicyId: PolicyIdColumn,+ EnvId: EnvIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/access_approval_requests.go b/backend-go/internal/database/pg/gen/table/access_approval_requests.gonew file mode 100644index 0000000000..9ea495ced5--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/access_approval_requests.go@@ -0,0 +1,117 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AccessApprovalRequests = newAccessApprovalRequestsTable("public", "access_approval_requests", "")++type accessApprovalRequestsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ PolicyId postgres.ColumnString+ PrivilegeId postgres.ColumnString+ IsTemporary postgres.ColumnBool+ TemporaryRange postgres.ColumnString+ Permissions postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ RequestedByUserId postgres.ColumnString+ Note postgres.ColumnString+ PrivilegeDeletedAt postgres.ColumnTimestampz+ Status postgres.ColumnString+ EditedByUserId postgres.ColumnString+ EditNote postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AccessApprovalRequestsTable struct {+ accessApprovalRequestsTable++ EXCLUDED accessApprovalRequestsTable+}++// AS creates new AccessApprovalRequestsTable with assigned alias+func (a AccessApprovalRequestsTable) AS(alias string) *AccessApprovalRequestsTable {+ return newAccessApprovalRequestsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AccessApprovalRequestsTable with assigned schema name+func (a AccessApprovalRequestsTable) FromSchema(schemaName string) *AccessApprovalRequestsTable {+ return newAccessApprovalRequestsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AccessApprovalRequestsTable with assigned table prefix+func (a AccessApprovalRequestsTable) WithPrefix(prefix string) *AccessApprovalRequestsTable {+ return newAccessApprovalRequestsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AccessApprovalRequestsTable with assigned table suffix+func (a AccessApprovalRequestsTable) WithSuffix(suffix string) *AccessApprovalRequestsTable {+ return newAccessApprovalRequestsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAccessApprovalRequestsTable(schemaName, tableName, alias string) *AccessApprovalRequestsTable {+ return &AccessApprovalRequestsTable{+ accessApprovalRequestsTable: newAccessApprovalRequestsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAccessApprovalRequestsTableImpl("", "excluded", ""),+ }+}++func newAccessApprovalRequestsTableImpl(schemaName, tableName, alias string) accessApprovalRequestsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ PolicyIdColumn = postgres.StringColumn("policyId")+ PrivilegeIdColumn = postgres.StringColumn("privilegeId")+ IsTemporaryColumn = postgres.BoolColumn("isTemporary")+ TemporaryRangeColumn = postgres.StringColumn("temporaryRange")+ PermissionsColumn = postgres.StringColumn("permissions")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ RequestedByUserIdColumn = postgres.StringColumn("requestedByUserId")+ NoteColumn = postgres.StringColumn("note")+ PrivilegeDeletedAtColumn = postgres.TimestampzColumn("privilegeDeletedAt")+ StatusColumn = postgres.StringColumn("status")+ EditedByUserIdColumn = postgres.StringColumn("editedByUserId")+ EditNoteColumn = postgres.StringColumn("editNote")+ allColumns = postgres.ColumnList{IDColumn, PolicyIdColumn, PrivilegeIdColumn, IsTemporaryColumn, TemporaryRangeColumn, PermissionsColumn, CreatedAtColumn, UpdatedAtColumn, RequestedByUserIdColumn, NoteColumn, PrivilegeDeletedAtColumn, StatusColumn, EditedByUserIdColumn, EditNoteColumn}+ mutableColumns = postgres.ColumnList{PolicyIdColumn, PrivilegeIdColumn, IsTemporaryColumn, TemporaryRangeColumn, PermissionsColumn, CreatedAtColumn, UpdatedAtColumn, RequestedByUserIdColumn, NoteColumn, PrivilegeDeletedAtColumn, StatusColumn, EditedByUserIdColumn, EditNoteColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, StatusColumn}+ )++ return accessApprovalRequestsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ PolicyId: PolicyIdColumn,+ PrivilegeId: PrivilegeIdColumn,+ IsTemporary: IsTemporaryColumn,+ TemporaryRange: TemporaryRangeColumn,+ Permissions: PermissionsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ RequestedByUserId: RequestedByUserIdColumn,+ Note: NoteColumn,+ PrivilegeDeletedAt: PrivilegeDeletedAtColumn,+ Status: StatusColumn,+ EditedByUserId: EditedByUserIdColumn,+ EditNote: EditNoteColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/access_approval_requests_reviewers.go b/backend-go/internal/database/pg/gen/table/access_approval_requests_reviewers.gonew file mode 100644index 0000000000..eb66f8ef3f--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/access_approval_requests_reviewers.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AccessApprovalRequestsReviewers = newAccessApprovalRequestsReviewersTable("public", "access_approval_requests_reviewers", "")++type accessApprovalRequestsReviewersTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Status postgres.ColumnString+ RequestId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ReviewerUserId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AccessApprovalRequestsReviewersTable struct {+ accessApprovalRequestsReviewersTable++ EXCLUDED accessApprovalRequestsReviewersTable+}++// AS creates new AccessApprovalRequestsReviewersTable with assigned alias+func (a AccessApprovalRequestsReviewersTable) AS(alias string) *AccessApprovalRequestsReviewersTable {+ return newAccessApprovalRequestsReviewersTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AccessApprovalRequestsReviewersTable with assigned schema name+func (a AccessApprovalRequestsReviewersTable) FromSchema(schemaName string) *AccessApprovalRequestsReviewersTable {+ return newAccessApprovalRequestsReviewersTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AccessApprovalRequestsReviewersTable with assigned table prefix+func (a AccessApprovalRequestsReviewersTable) WithPrefix(prefix string) *AccessApprovalRequestsReviewersTable {+ return newAccessApprovalRequestsReviewersTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AccessApprovalRequestsReviewersTable with assigned table suffix+func (a AccessApprovalRequestsReviewersTable) WithSuffix(suffix string) *AccessApprovalRequestsReviewersTable {+ return newAccessApprovalRequestsReviewersTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAccessApprovalRequestsReviewersTable(schemaName, tableName, alias string) *AccessApprovalRequestsReviewersTable {+ return &AccessApprovalRequestsReviewersTable{+ accessApprovalRequestsReviewersTable: newAccessApprovalRequestsReviewersTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAccessApprovalRequestsReviewersTableImpl("", "excluded", ""),+ }+}++func newAccessApprovalRequestsReviewersTableImpl(schemaName, tableName, alias string) accessApprovalRequestsReviewersTable {+ var (+ IDColumn = postgres.StringColumn("id")+ StatusColumn = postgres.StringColumn("status")+ RequestIdColumn = postgres.StringColumn("requestId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ReviewerUserIdColumn = postgres.StringColumn("reviewerUserId")+ allColumns = postgres.ColumnList{IDColumn, StatusColumn, RequestIdColumn, CreatedAtColumn, UpdatedAtColumn, ReviewerUserIdColumn}+ mutableColumns = postgres.ColumnList{StatusColumn, RequestIdColumn, CreatedAtColumn, UpdatedAtColumn, ReviewerUserIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return accessApprovalRequestsReviewersTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Status: StatusColumn,+ RequestId: RequestIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ReviewerUserId: ReviewerUserIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/additional_privileges.go b/backend-go/internal/database/pg/gen/table/additional_privileges.gonew file mode 100644index 0000000000..36753a2845--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/additional_privileges.go@@ -0,0 +1,117 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AdditionalPrivileges = newAdditionalPrivilegesTable("public", "additional_privileges", "")++type additionalPrivilegesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ IsTemporary postgres.ColumnBool+ TemporaryMode postgres.ColumnString+ TemporaryRange postgres.ColumnString+ TemporaryAccessStartTime postgres.ColumnTimestampz+ TemporaryAccessEndTime postgres.ColumnTimestampz+ Permissions postgres.ColumnString+ ActorUserId postgres.ColumnString+ ActorIdentityId postgres.ColumnString+ OrgId postgres.ColumnString+ ProjectId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AdditionalPrivilegesTable struct {+ additionalPrivilegesTable++ EXCLUDED additionalPrivilegesTable+}++// AS creates new AdditionalPrivilegesTable with assigned alias+func (a AdditionalPrivilegesTable) AS(alias string) *AdditionalPrivilegesTable {+ return newAdditionalPrivilegesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AdditionalPrivilegesTable with assigned schema name+func (a AdditionalPrivilegesTable) FromSchema(schemaName string) *AdditionalPrivilegesTable {+ return newAdditionalPrivilegesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AdditionalPrivilegesTable with assigned table prefix+func (a AdditionalPrivilegesTable) WithPrefix(prefix string) *AdditionalPrivilegesTable {+ return newAdditionalPrivilegesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AdditionalPrivilegesTable with assigned table suffix+func (a AdditionalPrivilegesTable) WithSuffix(suffix string) *AdditionalPrivilegesTable {+ return newAdditionalPrivilegesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAdditionalPrivilegesTable(schemaName, tableName, alias string) *AdditionalPrivilegesTable {+ return &AdditionalPrivilegesTable{+ additionalPrivilegesTable: newAdditionalPrivilegesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAdditionalPrivilegesTableImpl("", "excluded", ""),+ }+}++func newAdditionalPrivilegesTableImpl(schemaName, tableName, alias string) additionalPrivilegesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ IsTemporaryColumn = postgres.BoolColumn("isTemporary")+ TemporaryModeColumn = postgres.StringColumn("temporaryMode")+ TemporaryRangeColumn = postgres.StringColumn("temporaryRange")+ TemporaryAccessStartTimeColumn = postgres.TimestampzColumn("temporaryAccessStartTime")+ TemporaryAccessEndTimeColumn = postgres.TimestampzColumn("temporaryAccessEndTime")+ PermissionsColumn = postgres.StringColumn("permissions")+ ActorUserIdColumn = postgres.StringColumn("actorUserId")+ ActorIdentityIdColumn = postgres.StringColumn("actorIdentityId")+ OrgIdColumn = postgres.StringColumn("orgId")+ ProjectIdColumn = postgres.StringColumn("projectId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, IsTemporaryColumn, TemporaryModeColumn, TemporaryRangeColumn, TemporaryAccessStartTimeColumn, TemporaryAccessEndTimeColumn, PermissionsColumn, ActorUserIdColumn, ActorIdentityIdColumn, OrgIdColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{NameColumn, IsTemporaryColumn, TemporaryModeColumn, TemporaryRangeColumn, TemporaryAccessStartTimeColumn, TemporaryAccessEndTimeColumn, PermissionsColumn, ActorUserIdColumn, ActorIdentityIdColumn, OrgIdColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsTemporaryColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return additionalPrivilegesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ IsTemporary: IsTemporaryColumn,+ TemporaryMode: TemporaryModeColumn,+ TemporaryRange: TemporaryRangeColumn,+ TemporaryAccessStartTime: TemporaryAccessStartTimeColumn,+ TemporaryAccessEndTime: TemporaryAccessEndTimeColumn,+ Permissions: PermissionsColumn,+ ActorUserId: ActorUserIdColumn,+ ActorIdentityId: ActorIdentityIdColumn,+ OrgId: OrgIdColumn,+ ProjectId: ProjectIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ai_mcp_activity_logs.go b/backend-go/internal/database/pg/gen/table/ai_mcp_activity_logs.gonew file mode 100644index 0000000000..65e47bc68a--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ai_mcp_activity_logs.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AiMcpActivityLogs = newAiMcpActivityLogsTable("public", "ai_mcp_activity_logs", "")++type aiMcpActivityLogsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ EndpointName postgres.ColumnString+ ServerName postgres.ColumnString+ ToolName postgres.ColumnString+ Actor postgres.ColumnString+ Request postgres.ColumnString+ Response postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AiMcpActivityLogsTable struct {+ aiMcpActivityLogsTable++ EXCLUDED aiMcpActivityLogsTable+}++// AS creates new AiMcpActivityLogsTable with assigned alias+func (a AiMcpActivityLogsTable) AS(alias string) *AiMcpActivityLogsTable {+ return newAiMcpActivityLogsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AiMcpActivityLogsTable with assigned schema name+func (a AiMcpActivityLogsTable) FromSchema(schemaName string) *AiMcpActivityLogsTable {+ return newAiMcpActivityLogsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AiMcpActivityLogsTable with assigned table prefix+func (a AiMcpActivityLogsTable) WithPrefix(prefix string) *AiMcpActivityLogsTable {+ return newAiMcpActivityLogsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AiMcpActivityLogsTable with assigned table suffix+func (a AiMcpActivityLogsTable) WithSuffix(suffix string) *AiMcpActivityLogsTable {+ return newAiMcpActivityLogsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAiMcpActivityLogsTable(schemaName, tableName, alias string) *AiMcpActivityLogsTable {+ return &AiMcpActivityLogsTable{+ aiMcpActivityLogsTable: newAiMcpActivityLogsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAiMcpActivityLogsTableImpl("", "excluded", ""),+ }+}++func newAiMcpActivityLogsTableImpl(schemaName, tableName, alias string) aiMcpActivityLogsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ EndpointNameColumn = postgres.StringColumn("endpointName")+ ServerNameColumn = postgres.StringColumn("serverName")+ ToolNameColumn = postgres.StringColumn("toolName")+ ActorColumn = postgres.StringColumn("actor")+ RequestColumn = postgres.StringColumn("request")+ ResponseColumn = postgres.StringColumn("response")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, EndpointNameColumn, ServerNameColumn, ToolNameColumn, ActorColumn, RequestColumn, ResponseColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, EndpointNameColumn, ServerNameColumn, ToolNameColumn, ActorColumn, RequestColumn, ResponseColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return aiMcpActivityLogsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ EndpointName: EndpointNameColumn,+ ServerName: ServerNameColumn,+ ToolName: ToolNameColumn,+ Actor: ActorColumn,+ Request: RequestColumn,+ Response: ResponseColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ai_mcp_endpoint_server_tools.go b/backend-go/internal/database/pg/gen/table/ai_mcp_endpoint_server_tools.gonew file mode 100644index 0000000000..82881080ab--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ai_mcp_endpoint_server_tools.go@@ -0,0 +1,87 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AiMcpEndpointServerTools = newAiMcpEndpointServerToolsTable("public", "ai_mcp_endpoint_server_tools", "")++type aiMcpEndpointServerToolsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AiMcpEndpointId postgres.ColumnString+ AiMcpServerToolId postgres.ColumnString+ IsEnabled postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AiMcpEndpointServerToolsTable struct {+ aiMcpEndpointServerToolsTable++ EXCLUDED aiMcpEndpointServerToolsTable+}++// AS creates new AiMcpEndpointServerToolsTable with assigned alias+func (a AiMcpEndpointServerToolsTable) AS(alias string) *AiMcpEndpointServerToolsTable {+ return newAiMcpEndpointServerToolsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AiMcpEndpointServerToolsTable with assigned schema name+func (a AiMcpEndpointServerToolsTable) FromSchema(schemaName string) *AiMcpEndpointServerToolsTable {+ return newAiMcpEndpointServerToolsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AiMcpEndpointServerToolsTable with assigned table prefix+func (a AiMcpEndpointServerToolsTable) WithPrefix(prefix string) *AiMcpEndpointServerToolsTable {+ return newAiMcpEndpointServerToolsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AiMcpEndpointServerToolsTable with assigned table suffix+func (a AiMcpEndpointServerToolsTable) WithSuffix(suffix string) *AiMcpEndpointServerToolsTable {+ return newAiMcpEndpointServerToolsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAiMcpEndpointServerToolsTable(schemaName, tableName, alias string) *AiMcpEndpointServerToolsTable {+ return &AiMcpEndpointServerToolsTable{+ aiMcpEndpointServerToolsTable: newAiMcpEndpointServerToolsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAiMcpEndpointServerToolsTableImpl("", "excluded", ""),+ }+}++func newAiMcpEndpointServerToolsTableImpl(schemaName, tableName, alias string) aiMcpEndpointServerToolsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AiMcpEndpointIdColumn = postgres.StringColumn("aiMcpEndpointId")+ AiMcpServerToolIdColumn = postgres.StringColumn("aiMcpServerToolId")+ IsEnabledColumn = postgres.BoolColumn("isEnabled")+ allColumns = postgres.ColumnList{IDColumn, AiMcpEndpointIdColumn, AiMcpServerToolIdColumn, IsEnabledColumn}+ mutableColumns = postgres.ColumnList{AiMcpEndpointIdColumn, AiMcpServerToolIdColumn, IsEnabledColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsEnabledColumn}+ )++ return aiMcpEndpointServerToolsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AiMcpEndpointId: AiMcpEndpointIdColumn,+ AiMcpServerToolId: AiMcpServerToolIdColumn,+ IsEnabled: IsEnabledColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ai_mcp_endpoint_servers.go b/backend-go/internal/database/pg/gen/table/ai_mcp_endpoint_servers.gonew file mode 100644index 0000000000..5d282e377e--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ai_mcp_endpoint_servers.go@@ -0,0 +1,84 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AiMcpEndpointServers = newAiMcpEndpointServersTable("public", "ai_mcp_endpoint_servers", "")++type aiMcpEndpointServersTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AiMcpEndpointId postgres.ColumnString+ AiMcpServerId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AiMcpEndpointServersTable struct {+ aiMcpEndpointServersTable++ EXCLUDED aiMcpEndpointServersTable+}++// AS creates new AiMcpEndpointServersTable with assigned alias+func (a AiMcpEndpointServersTable) AS(alias string) *AiMcpEndpointServersTable {+ return newAiMcpEndpointServersTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AiMcpEndpointServersTable with assigned schema name+func (a AiMcpEndpointServersTable) FromSchema(schemaName string) *AiMcpEndpointServersTable {+ return newAiMcpEndpointServersTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AiMcpEndpointServersTable with assigned table prefix+func (a AiMcpEndpointServersTable) WithPrefix(prefix string) *AiMcpEndpointServersTable {+ return newAiMcpEndpointServersTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AiMcpEndpointServersTable with assigned table suffix+func (a AiMcpEndpointServersTable) WithSuffix(suffix string) *AiMcpEndpointServersTable {+ return newAiMcpEndpointServersTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAiMcpEndpointServersTable(schemaName, tableName, alias string) *AiMcpEndpointServersTable {+ return &AiMcpEndpointServersTable{+ aiMcpEndpointServersTable: newAiMcpEndpointServersTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAiMcpEndpointServersTableImpl("", "excluded", ""),+ }+}++func newAiMcpEndpointServersTableImpl(schemaName, tableName, alias string) aiMcpEndpointServersTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AiMcpEndpointIdColumn = postgres.StringColumn("aiMcpEndpointId")+ AiMcpServerIdColumn = postgres.StringColumn("aiMcpServerId")+ allColumns = postgres.ColumnList{IDColumn, AiMcpEndpointIdColumn, AiMcpServerIdColumn}+ mutableColumns = postgres.ColumnList{AiMcpEndpointIdColumn, AiMcpServerIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return aiMcpEndpointServersTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AiMcpEndpointId: AiMcpEndpointIdColumn,+ AiMcpServerId: AiMcpServerIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ai_mcp_endpoints.go b/backend-go/internal/database/pg/gen/table/ai_mcp_endpoints.gonew file mode 100644index 0000000000..2072867219--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ai_mcp_endpoints.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AiMcpEndpoints = newAiMcpEndpointsTable("public", "ai_mcp_endpoints", "")++type aiMcpEndpointsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Description postgres.ColumnString+ Status postgres.ColumnString+ ProjectId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ PiiRequestFiltering postgres.ColumnBool+ PiiResponseFiltering postgres.ColumnBool+ PiiEntityTypes postgres.ColumnStringArray++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AiMcpEndpointsTable struct {+ aiMcpEndpointsTable++ EXCLUDED aiMcpEndpointsTable+}++// AS creates new AiMcpEndpointsTable with assigned alias+func (a AiMcpEndpointsTable) AS(alias string) *AiMcpEndpointsTable {+ return newAiMcpEndpointsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AiMcpEndpointsTable with assigned schema name+func (a AiMcpEndpointsTable) FromSchema(schemaName string) *AiMcpEndpointsTable {+ return newAiMcpEndpointsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AiMcpEndpointsTable with assigned table prefix+func (a AiMcpEndpointsTable) WithPrefix(prefix string) *AiMcpEndpointsTable {+ return newAiMcpEndpointsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AiMcpEndpointsTable with assigned table suffix+func (a AiMcpEndpointsTable) WithSuffix(suffix string) *AiMcpEndpointsTable {+ return newAiMcpEndpointsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAiMcpEndpointsTable(schemaName, tableName, alias string) *AiMcpEndpointsTable {+ return &AiMcpEndpointsTable{+ aiMcpEndpointsTable: newAiMcpEndpointsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAiMcpEndpointsTableImpl("", "excluded", ""),+ }+}++func newAiMcpEndpointsTableImpl(schemaName, tableName, alias string) aiMcpEndpointsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ DescriptionColumn = postgres.StringColumn("description")+ StatusColumn = postgres.StringColumn("status")+ ProjectIdColumn = postgres.StringColumn("projectId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ PiiRequestFilteringColumn = postgres.BoolColumn("piiRequestFiltering")+ PiiResponseFilteringColumn = postgres.BoolColumn("piiResponseFiltering")+ PiiEntityTypesColumn = postgres.StringArrayColumn("piiEntityTypes")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, DescriptionColumn, StatusColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn, PiiRequestFilteringColumn, PiiResponseFilteringColumn, PiiEntityTypesColumn}+ mutableColumns = postgres.ColumnList{NameColumn, DescriptionColumn, StatusColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn, PiiRequestFilteringColumn, PiiResponseFilteringColumn, PiiEntityTypesColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, PiiRequestFilteringColumn, PiiResponseFilteringColumn}+ )++ return aiMcpEndpointsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Description: DescriptionColumn,+ Status: StatusColumn,+ ProjectId: ProjectIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ PiiRequestFiltering: PiiRequestFilteringColumn,+ PiiResponseFiltering: PiiResponseFilteringColumn,+ PiiEntityTypes: PiiEntityTypesColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ai_mcp_server_tools.go b/backend-go/internal/database/pg/gen/table/ai_mcp_server_tools.gonew file mode 100644index 0000000000..43e13100d6--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ai_mcp_server_tools.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AiMcpServerTools = newAiMcpServerToolsTable("public", "ai_mcp_server_tools", "")++type aiMcpServerToolsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Description postgres.ColumnString+ InputSchema postgres.ColumnString+ AiMcpServerId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AiMcpServerToolsTable struct {+ aiMcpServerToolsTable++ EXCLUDED aiMcpServerToolsTable+}++// AS creates new AiMcpServerToolsTable with assigned alias+func (a AiMcpServerToolsTable) AS(alias string) *AiMcpServerToolsTable {+ return newAiMcpServerToolsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AiMcpServerToolsTable with assigned schema name+func (a AiMcpServerToolsTable) FromSchema(schemaName string) *AiMcpServerToolsTable {+ return newAiMcpServerToolsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AiMcpServerToolsTable with assigned table prefix+func (a AiMcpServerToolsTable) WithPrefix(prefix string) *AiMcpServerToolsTable {+ return newAiMcpServerToolsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AiMcpServerToolsTable with assigned table suffix+func (a AiMcpServerToolsTable) WithSuffix(suffix string) *AiMcpServerToolsTable {+ return newAiMcpServerToolsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAiMcpServerToolsTable(schemaName, tableName, alias string) *AiMcpServerToolsTable {+ return &AiMcpServerToolsTable{+ aiMcpServerToolsTable: newAiMcpServerToolsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAiMcpServerToolsTableImpl("", "excluded", ""),+ }+}++func newAiMcpServerToolsTableImpl(schemaName, tableName, alias string) aiMcpServerToolsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ DescriptionColumn = postgres.StringColumn("description")+ InputSchemaColumn = postgres.StringColumn("inputSchema")+ AiMcpServerIdColumn = postgres.StringColumn("aiMcpServerId")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, DescriptionColumn, InputSchemaColumn, AiMcpServerIdColumn}+ mutableColumns = postgres.ColumnList{NameColumn, DescriptionColumn, InputSchemaColumn, AiMcpServerIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return aiMcpServerToolsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Description: DescriptionColumn,+ InputSchema: InputSchemaColumn,+ AiMcpServerId: AiMcpServerIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ai_mcp_server_user_credentials.go b/backend-go/internal/database/pg/gen/table/ai_mcp_server_user_credentials.gonew file mode 100644index 0000000000..316cf6ad57--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ai_mcp_server_user_credentials.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AiMcpServerUserCredentials = newAiMcpServerUserCredentialsTable("public", "ai_mcp_server_user_credentials", "")++type aiMcpServerUserCredentialsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ UserId postgres.ColumnString+ AiMcpServerId postgres.ColumnString+ EncryptedCredentials postgres.ColumnBytea+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AiMcpServerUserCredentialsTable struct {+ aiMcpServerUserCredentialsTable++ EXCLUDED aiMcpServerUserCredentialsTable+}++// AS creates new AiMcpServerUserCredentialsTable with assigned alias+func (a AiMcpServerUserCredentialsTable) AS(alias string) *AiMcpServerUserCredentialsTable {+ return newAiMcpServerUserCredentialsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AiMcpServerUserCredentialsTable with assigned schema name+func (a AiMcpServerUserCredentialsTable) FromSchema(schemaName string) *AiMcpServerUserCredentialsTable {+ return newAiMcpServerUserCredentialsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AiMcpServerUserCredentialsTable with assigned table prefix+func (a AiMcpServerUserCredentialsTable) WithPrefix(prefix string) *AiMcpServerUserCredentialsTable {+ return newAiMcpServerUserCredentialsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AiMcpServerUserCredentialsTable with assigned table suffix+func (a AiMcpServerUserCredentialsTable) WithSuffix(suffix string) *AiMcpServerUserCredentialsTable {+ return newAiMcpServerUserCredentialsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAiMcpServerUserCredentialsTable(schemaName, tableName, alias string) *AiMcpServerUserCredentialsTable {+ return &AiMcpServerUserCredentialsTable{+ aiMcpServerUserCredentialsTable: newAiMcpServerUserCredentialsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAiMcpServerUserCredentialsTableImpl("", "excluded", ""),+ }+}++func newAiMcpServerUserCredentialsTableImpl(schemaName, tableName, alias string) aiMcpServerUserCredentialsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ UserIdColumn = postgres.StringColumn("userId")+ AiMcpServerIdColumn = postgres.StringColumn("aiMcpServerId")+ EncryptedCredentialsColumn = postgres.ByteaColumn("encryptedCredentials")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, UserIdColumn, AiMcpServerIdColumn, EncryptedCredentialsColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{UserIdColumn, AiMcpServerIdColumn, EncryptedCredentialsColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return aiMcpServerUserCredentialsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ UserId: UserIdColumn,+ AiMcpServerId: AiMcpServerIdColumn,+ EncryptedCredentials: EncryptedCredentialsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ai_mcp_servers.go b/backend-go/internal/database/pg/gen/table/ai_mcp_servers.gonew file mode 100644index 0000000000..14f99e39d6--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ai_mcp_servers.go@@ -0,0 +1,114 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AiMcpServers = newAiMcpServersTable("public", "ai_mcp_servers", "")++type aiMcpServersTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ URL postgres.ColumnString+ Description postgres.ColumnString+ Status postgres.ColumnString+ CredentialMode postgres.ColumnString+ AuthMethod postgres.ColumnString+ EncryptedCredentials postgres.ColumnBytea+ EncryptedOauthConfig postgres.ColumnBytea+ ProjectId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ GatewayId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AiMcpServersTable struct {+ aiMcpServersTable++ EXCLUDED aiMcpServersTable+}++// AS creates new AiMcpServersTable with assigned alias+func (a AiMcpServersTable) AS(alias string) *AiMcpServersTable {+ return newAiMcpServersTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AiMcpServersTable with assigned schema name+func (a AiMcpServersTable) FromSchema(schemaName string) *AiMcpServersTable {+ return newAiMcpServersTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AiMcpServersTable with assigned table prefix+func (a AiMcpServersTable) WithPrefix(prefix string) *AiMcpServersTable {+ return newAiMcpServersTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AiMcpServersTable with assigned table suffix+func (a AiMcpServersTable) WithSuffix(suffix string) *AiMcpServersTable {+ return newAiMcpServersTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAiMcpServersTable(schemaName, tableName, alias string) *AiMcpServersTable {+ return &AiMcpServersTable{+ aiMcpServersTable: newAiMcpServersTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAiMcpServersTableImpl("", "excluded", ""),+ }+}++func newAiMcpServersTableImpl(schemaName, tableName, alias string) aiMcpServersTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ URLColumn = postgres.StringColumn("url")+ DescriptionColumn = postgres.StringColumn("description")+ StatusColumn = postgres.StringColumn("status")+ CredentialModeColumn = postgres.StringColumn("credentialMode")+ AuthMethodColumn = postgres.StringColumn("authMethod")+ EncryptedCredentialsColumn = postgres.ByteaColumn("encryptedCredentials")+ EncryptedOauthConfigColumn = postgres.ByteaColumn("encryptedOauthConfig")+ ProjectIdColumn = postgres.StringColumn("projectId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ GatewayIdColumn = postgres.StringColumn("gatewayId")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, URLColumn, DescriptionColumn, StatusColumn, CredentialModeColumn, AuthMethodColumn, EncryptedCredentialsColumn, EncryptedOauthConfigColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn, GatewayIdColumn}+ mutableColumns = postgres.ColumnList{NameColumn, URLColumn, DescriptionColumn, StatusColumn, CredentialModeColumn, AuthMethodColumn, EncryptedCredentialsColumn, EncryptedOauthConfigColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn, GatewayIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return aiMcpServersTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ URL: URLColumn,+ Description: DescriptionColumn,+ Status: StatusColumn,+ CredentialMode: CredentialModeColumn,+ AuthMethod: AuthMethodColumn,+ EncryptedCredentials: EncryptedCredentialsColumn,+ EncryptedOauthConfig: EncryptedOauthConfigColumn,+ ProjectId: ProjectIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ GatewayId: GatewayIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/api_keys.go b/backend-go/internal/database/pg/gen/table/api_keys.gonew file mode 100644index 0000000000..3a1fe6d511--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/api_keys.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var APIKeys = newAPIKeysTable("public", "api_keys", "")++type aPIKeysTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ LastUsed postgres.ColumnTimestampz+ ExpiresAt postgres.ColumnTimestampz+ SecretHash postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ UserId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type APIKeysTable struct {+ aPIKeysTable++ EXCLUDED aPIKeysTable+}++// AS creates new APIKeysTable with assigned alias+func (a APIKeysTable) AS(alias string) *APIKeysTable {+ return newAPIKeysTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new APIKeysTable with assigned schema name+func (a APIKeysTable) FromSchema(schemaName string) *APIKeysTable {+ return newAPIKeysTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new APIKeysTable with assigned table prefix+func (a APIKeysTable) WithPrefix(prefix string) *APIKeysTable {+ return newAPIKeysTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new APIKeysTable with assigned table suffix+func (a APIKeysTable) WithSuffix(suffix string) *APIKeysTable {+ return newAPIKeysTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAPIKeysTable(schemaName, tableName, alias string) *APIKeysTable {+ return &APIKeysTable{+ aPIKeysTable: newAPIKeysTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAPIKeysTableImpl("", "excluded", ""),+ }+}++func newAPIKeysTableImpl(schemaName, tableName, alias string) aPIKeysTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ LastUsedColumn = postgres.TimestampzColumn("lastUsed")+ ExpiresAtColumn = postgres.TimestampzColumn("expiresAt")+ SecretHashColumn = postgres.StringColumn("secretHash")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ UserIdColumn = postgres.StringColumn("userId")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, LastUsedColumn, ExpiresAtColumn, SecretHashColumn, CreatedAtColumn, UpdatedAtColumn, UserIdColumn}+ mutableColumns = postgres.ColumnList{NameColumn, LastUsedColumn, ExpiresAtColumn, SecretHashColumn, CreatedAtColumn, UpdatedAtColumn, UserIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return aPIKeysTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ LastUsed: LastUsedColumn,+ ExpiresAt: ExpiresAtColumn,+ SecretHash: SecretHashColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ UserId: UserIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/app_connection_credential_rotations.go b/backend-go/internal/database/pg/gen/table/app_connection_credential_rotations.gonew file mode 100644index 0000000000..a832e1bada--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/app_connection_credential_rotations.go@@ -0,0 +1,123 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AppConnectionCredentialRotations = newAppConnectionCredentialRotationsTable("public", "app_connection_credential_rotations", "")++type appConnectionCredentialRotationsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ConnectionId postgres.ColumnString+ Strategy postgres.ColumnString+ EncryptedStrategyConfig postgres.ColumnBytea+ RotationInterval postgres.ColumnInteger+ RotateAtUtc postgres.ColumnString+ RotationStatus postgres.ColumnString+ LastRotationAttemptedAt postgres.ColumnTimestampz+ LastRotatedAt postgres.ColumnTimestampz+ EncryptedLastRotationMessage postgres.ColumnBytea+ LastRotationJobId postgres.ColumnString+ NextRotationAt postgres.ColumnTimestampz+ ActiveIndex postgres.ColumnInteger+ EncryptedGeneratedCredentials postgres.ColumnBytea+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AppConnectionCredentialRotationsTable struct {+ appConnectionCredentialRotationsTable++ EXCLUDED appConnectionCredentialRotationsTable+}++// AS creates new AppConnectionCredentialRotationsTable with assigned alias+func (a AppConnectionCredentialRotationsTable) AS(alias string) *AppConnectionCredentialRotationsTable {+ return newAppConnectionCredentialRotationsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AppConnectionCredentialRotationsTable with assigned schema name+func (a AppConnectionCredentialRotationsTable) FromSchema(schemaName string) *AppConnectionCredentialRotationsTable {+ return newAppConnectionCredentialRotationsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AppConnectionCredentialRotationsTable with assigned table prefix+func (a AppConnectionCredentialRotationsTable) WithPrefix(prefix string) *AppConnectionCredentialRotationsTable {+ return newAppConnectionCredentialRotationsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AppConnectionCredentialRotationsTable with assigned table suffix+func (a AppConnectionCredentialRotationsTable) WithSuffix(suffix string) *AppConnectionCredentialRotationsTable {+ return newAppConnectionCredentialRotationsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAppConnectionCredentialRotationsTable(schemaName, tableName, alias string) *AppConnectionCredentialRotationsTable {+ return &AppConnectionCredentialRotationsTable{+ appConnectionCredentialRotationsTable: newAppConnectionCredentialRotationsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAppConnectionCredentialRotationsTableImpl("", "excluded", ""),+ }+}++func newAppConnectionCredentialRotationsTableImpl(schemaName, tableName, alias string) appConnectionCredentialRotationsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ConnectionIdColumn = postgres.StringColumn("connectionId")+ StrategyColumn = postgres.StringColumn("strategy")+ EncryptedStrategyConfigColumn = postgres.ByteaColumn("encryptedStrategyConfig")+ RotationIntervalColumn = postgres.IntegerColumn("rotationInterval")+ RotateAtUtcColumn = postgres.StringColumn("rotateAtUtc")+ RotationStatusColumn = postgres.StringColumn("rotationStatus")+ LastRotationAttemptedAtColumn = postgres.TimestampzColumn("lastRotationAttemptedAt")+ LastRotatedAtColumn = postgres.TimestampzColumn("lastRotatedAt")+ EncryptedLastRotationMessageColumn = postgres.ByteaColumn("encryptedLastRotationMessage")+ LastRotationJobIdColumn = postgres.StringColumn("lastRotationJobId")+ NextRotationAtColumn = postgres.TimestampzColumn("nextRotationAt")+ ActiveIndexColumn = postgres.IntegerColumn("activeIndex")+ EncryptedGeneratedCredentialsColumn = postgres.ByteaColumn("encryptedGeneratedCredentials")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ConnectionIdColumn, StrategyColumn, EncryptedStrategyConfigColumn, RotationIntervalColumn, RotateAtUtcColumn, RotationStatusColumn, LastRotationAttemptedAtColumn, LastRotatedAtColumn, EncryptedLastRotationMessageColumn, LastRotationJobIdColumn, NextRotationAtColumn, ActiveIndexColumn, EncryptedGeneratedCredentialsColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ConnectionIdColumn, StrategyColumn, EncryptedStrategyConfigColumn, RotationIntervalColumn, RotateAtUtcColumn, RotationStatusColumn, LastRotationAttemptedAtColumn, LastRotatedAtColumn, EncryptedLastRotationMessageColumn, LastRotationJobIdColumn, NextRotationAtColumn, ActiveIndexColumn, EncryptedGeneratedCredentialsColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, ActiveIndexColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return appConnectionCredentialRotationsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ConnectionId: ConnectionIdColumn,+ Strategy: StrategyColumn,+ EncryptedStrategyConfig: EncryptedStrategyConfigColumn,+ RotationInterval: RotationIntervalColumn,+ RotateAtUtc: RotateAtUtcColumn,+ RotationStatus: RotationStatusColumn,+ LastRotationAttemptedAt: LastRotationAttemptedAtColumn,+ LastRotatedAt: LastRotatedAtColumn,+ EncryptedLastRotationMessage: EncryptedLastRotationMessageColumn,+ LastRotationJobId: LastRotationJobIdColumn,+ NextRotationAt: NextRotationAtColumn,+ ActiveIndex: ActiveIndexColumn,+ EncryptedGeneratedCredentials: EncryptedGeneratedCredentialsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/app_connections.go b/backend-go/internal/database/pg/gen/table/app_connections.gonew file mode 100644index 0000000000..dd18db0b4c--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/app_connections.go@@ -0,0 +1,117 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AppConnections = newAppConnectionsTable("public", "app_connections", "")++type appConnectionsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Description postgres.ColumnString+ App postgres.ColumnString+ Method postgres.ColumnString+ EncryptedCredentials postgres.ColumnBytea+ Version postgres.ColumnInteger+ OrgId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IsPlatformManagedCredentials postgres.ColumnBool+ GatewayId postgres.ColumnString+ ProjectId postgres.ColumnString+ IsAutoRotationEnabled postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AppConnectionsTable struct {+ appConnectionsTable++ EXCLUDED appConnectionsTable+}++// AS creates new AppConnectionsTable with assigned alias+func (a AppConnectionsTable) AS(alias string) *AppConnectionsTable {+ return newAppConnectionsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AppConnectionsTable with assigned schema name+func (a AppConnectionsTable) FromSchema(schemaName string) *AppConnectionsTable {+ return newAppConnectionsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AppConnectionsTable with assigned table prefix+func (a AppConnectionsTable) WithPrefix(prefix string) *AppConnectionsTable {+ return newAppConnectionsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AppConnectionsTable with assigned table suffix+func (a AppConnectionsTable) WithSuffix(suffix string) *AppConnectionsTable {+ return newAppConnectionsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAppConnectionsTable(schemaName, tableName, alias string) *AppConnectionsTable {+ return &AppConnectionsTable{+ appConnectionsTable: newAppConnectionsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAppConnectionsTableImpl("", "excluded", ""),+ }+}++func newAppConnectionsTableImpl(schemaName, tableName, alias string) appConnectionsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ DescriptionColumn = postgres.StringColumn("description")+ AppColumn = postgres.StringColumn("app")+ MethodColumn = postgres.StringColumn("method")+ EncryptedCredentialsColumn = postgres.ByteaColumn("encryptedCredentials")+ VersionColumn = postgres.IntegerColumn("version")+ OrgIdColumn = postgres.StringColumn("orgId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IsPlatformManagedCredentialsColumn = postgres.BoolColumn("isPlatformManagedCredentials")+ GatewayIdColumn = postgres.StringColumn("gatewayId")+ ProjectIdColumn = postgres.StringColumn("projectId")+ IsAutoRotationEnabledColumn = postgres.BoolColumn("isAutoRotationEnabled")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, DescriptionColumn, AppColumn, MethodColumn, EncryptedCredentialsColumn, VersionColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, IsPlatformManagedCredentialsColumn, GatewayIdColumn, ProjectIdColumn, IsAutoRotationEnabledColumn}+ mutableColumns = postgres.ColumnList{NameColumn, DescriptionColumn, AppColumn, MethodColumn, EncryptedCredentialsColumn, VersionColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, IsPlatformManagedCredentialsColumn, GatewayIdColumn, ProjectIdColumn, IsAutoRotationEnabledColumn}+ defaultColumns = postgres.ColumnList{IDColumn, VersionColumn, CreatedAtColumn, UpdatedAtColumn, IsPlatformManagedCredentialsColumn, IsAutoRotationEnabledColumn}+ )++ return appConnectionsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Description: DescriptionColumn,+ App: AppColumn,+ Method: MethodColumn,+ EncryptedCredentials: EncryptedCredentialsColumn,+ Version: VersionColumn,+ OrgId: OrgIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IsPlatformManagedCredentials: IsPlatformManagedCredentialsColumn,+ GatewayId: GatewayIdColumn,+ ProjectId: ProjectIdColumn,+ IsAutoRotationEnabled: IsAutoRotationEnabledColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/approval_policies.go b/backend-go/internal/database/pg/gen/table/approval_policies.gonew file mode 100644index 0000000000..26a61c8b47--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/approval_policies.go@@ -0,0 +1,111 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ApprovalPolicies = newApprovalPoliciesTable("public", "approval_policies", "")++type approvalPoliciesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ OrganizationId postgres.ColumnString+ Type postgres.ColumnString+ Name postgres.ColumnString+ IsActive postgres.ColumnBool+ MaxRequestTtl postgres.ColumnString+ Conditions postgres.ColumnString+ Constraints postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ BypassForMachineIdentities postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ApprovalPoliciesTable struct {+ approvalPoliciesTable++ EXCLUDED approvalPoliciesTable+}++// AS creates new ApprovalPoliciesTable with assigned alias+func (a ApprovalPoliciesTable) AS(alias string) *ApprovalPoliciesTable {+ return newApprovalPoliciesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ApprovalPoliciesTable with assigned schema name+func (a ApprovalPoliciesTable) FromSchema(schemaName string) *ApprovalPoliciesTable {+ return newApprovalPoliciesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ApprovalPoliciesTable with assigned table prefix+func (a ApprovalPoliciesTable) WithPrefix(prefix string) *ApprovalPoliciesTable {+ return newApprovalPoliciesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ApprovalPoliciesTable with assigned table suffix+func (a ApprovalPoliciesTable) WithSuffix(suffix string) *ApprovalPoliciesTable {+ return newApprovalPoliciesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newApprovalPoliciesTable(schemaName, tableName, alias string) *ApprovalPoliciesTable {+ return &ApprovalPoliciesTable{+ approvalPoliciesTable: newApprovalPoliciesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newApprovalPoliciesTableImpl("", "excluded", ""),+ }+}++func newApprovalPoliciesTableImpl(schemaName, tableName, alias string) approvalPoliciesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ OrganizationIdColumn = postgres.StringColumn("organizationId")+ TypeColumn = postgres.StringColumn("type")+ NameColumn = postgres.StringColumn("name")+ IsActiveColumn = postgres.BoolColumn("isActive")+ MaxRequestTtlColumn = postgres.StringColumn("maxRequestTtl")+ ConditionsColumn = postgres.StringColumn("conditions")+ ConstraintsColumn = postgres.StringColumn("constraints")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ BypassForMachineIdentitiesColumn = postgres.BoolColumn("bypassForMachineIdentities")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, OrganizationIdColumn, TypeColumn, NameColumn, IsActiveColumn, MaxRequestTtlColumn, ConditionsColumn, ConstraintsColumn, CreatedAtColumn, UpdatedAtColumn, BypassForMachineIdentitiesColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, OrganizationIdColumn, TypeColumn, NameColumn, IsActiveColumn, MaxRequestTtlColumn, ConditionsColumn, ConstraintsColumn, CreatedAtColumn, UpdatedAtColumn, BypassForMachineIdentitiesColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsActiveColumn, CreatedAtColumn, UpdatedAtColumn, BypassForMachineIdentitiesColumn}+ )++ return approvalPoliciesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ OrganizationId: OrganizationIdColumn,+ Type: TypeColumn,+ Name: NameColumn,+ IsActive: IsActiveColumn,+ MaxRequestTtl: MaxRequestTtlColumn,+ Conditions: ConditionsColumn,+ Constraints: ConstraintsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ BypassForMachineIdentities: BypassForMachineIdentitiesColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/approval_policy_step_approvers.go b/backend-go/internal/database/pg/gen/table/approval_policy_step_approvers.gonew file mode 100644index 0000000000..e3db25344a--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/approval_policy_step_approvers.go@@ -0,0 +1,87 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ApprovalPolicyStepApprovers = newApprovalPolicyStepApproversTable("public", "approval_policy_step_approvers", "")++type approvalPolicyStepApproversTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ PolicyStepId postgres.ColumnString+ UserId postgres.ColumnString+ GroupId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ApprovalPolicyStepApproversTable struct {+ approvalPolicyStepApproversTable++ EXCLUDED approvalPolicyStepApproversTable+}++// AS creates new ApprovalPolicyStepApproversTable with assigned alias+func (a ApprovalPolicyStepApproversTable) AS(alias string) *ApprovalPolicyStepApproversTable {+ return newApprovalPolicyStepApproversTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ApprovalPolicyStepApproversTable with assigned schema name+func (a ApprovalPolicyStepApproversTable) FromSchema(schemaName string) *ApprovalPolicyStepApproversTable {+ return newApprovalPolicyStepApproversTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ApprovalPolicyStepApproversTable with assigned table prefix+func (a ApprovalPolicyStepApproversTable) WithPrefix(prefix string) *ApprovalPolicyStepApproversTable {+ return newApprovalPolicyStepApproversTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ApprovalPolicyStepApproversTable with assigned table suffix+func (a ApprovalPolicyStepApproversTable) WithSuffix(suffix string) *ApprovalPolicyStepApproversTable {+ return newApprovalPolicyStepApproversTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newApprovalPolicyStepApproversTable(schemaName, tableName, alias string) *ApprovalPolicyStepApproversTable {+ return &ApprovalPolicyStepApproversTable{+ approvalPolicyStepApproversTable: newApprovalPolicyStepApproversTableImpl(schemaName, tableName, alias),+ EXCLUDED: newApprovalPolicyStepApproversTableImpl("", "excluded", ""),+ }+}++func newApprovalPolicyStepApproversTableImpl(schemaName, tableName, alias string) approvalPolicyStepApproversTable {+ var (+ IDColumn = postgres.StringColumn("id")+ PolicyStepIdColumn = postgres.StringColumn("policyStepId")+ UserIdColumn = postgres.StringColumn("userId")+ GroupIdColumn = postgres.StringColumn("groupId")+ allColumns = postgres.ColumnList{IDColumn, PolicyStepIdColumn, UserIdColumn, GroupIdColumn}+ mutableColumns = postgres.ColumnList{PolicyStepIdColumn, UserIdColumn, GroupIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return approvalPolicyStepApproversTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ PolicyStepId: PolicyStepIdColumn,+ UserId: UserIdColumn,+ GroupId: GroupIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/approval_policy_steps.go b/backend-go/internal/database/pg/gen/table/approval_policy_steps.gonew file mode 100644index 0000000000..60e9483335--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/approval_policy_steps.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ApprovalPolicySteps = newApprovalPolicyStepsTable("public", "approval_policy_steps", "")++type approvalPolicyStepsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ PolicyId postgres.ColumnString+ Name postgres.ColumnString+ StepNumber postgres.ColumnInteger+ RequiredApprovals postgres.ColumnInteger+ NotifyApprovers postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ApprovalPolicyStepsTable struct {+ approvalPolicyStepsTable++ EXCLUDED approvalPolicyStepsTable+}++// AS creates new ApprovalPolicyStepsTable with assigned alias+func (a ApprovalPolicyStepsTable) AS(alias string) *ApprovalPolicyStepsTable {+ return newApprovalPolicyStepsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ApprovalPolicyStepsTable with assigned schema name+func (a ApprovalPolicyStepsTable) FromSchema(schemaName string) *ApprovalPolicyStepsTable {+ return newApprovalPolicyStepsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ApprovalPolicyStepsTable with assigned table prefix+func (a ApprovalPolicyStepsTable) WithPrefix(prefix string) *ApprovalPolicyStepsTable {+ return newApprovalPolicyStepsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ApprovalPolicyStepsTable with assigned table suffix+func (a ApprovalPolicyStepsTable) WithSuffix(suffix string) *ApprovalPolicyStepsTable {+ return newApprovalPolicyStepsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newApprovalPolicyStepsTable(schemaName, tableName, alias string) *ApprovalPolicyStepsTable {+ return &ApprovalPolicyStepsTable{+ approvalPolicyStepsTable: newApprovalPolicyStepsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newApprovalPolicyStepsTableImpl("", "excluded", ""),+ }+}++func newApprovalPolicyStepsTableImpl(schemaName, tableName, alias string) approvalPolicyStepsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ PolicyIdColumn = postgres.StringColumn("policyId")+ NameColumn = postgres.StringColumn("name")+ StepNumberColumn = postgres.IntegerColumn("stepNumber")+ RequiredApprovalsColumn = postgres.IntegerColumn("requiredApprovals")+ NotifyApproversColumn = postgres.BoolColumn("notifyApprovers")+ allColumns = postgres.ColumnList{IDColumn, PolicyIdColumn, NameColumn, StepNumberColumn, RequiredApprovalsColumn, NotifyApproversColumn}+ mutableColumns = postgres.ColumnList{PolicyIdColumn, NameColumn, StepNumberColumn, RequiredApprovalsColumn, NotifyApproversColumn}+ defaultColumns = postgres.ColumnList{IDColumn, NotifyApproversColumn}+ )++ return approvalPolicyStepsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ PolicyId: PolicyIdColumn,+ Name: NameColumn,+ StepNumber: StepNumberColumn,+ RequiredApprovals: RequiredApprovalsColumn,+ NotifyApprovers: NotifyApproversColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/approval_request_approvals.go b/backend-go/internal/database/pg/gen/table/approval_request_approvals.gonew file mode 100644index 0000000000..02b7da57b1--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/approval_request_approvals.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ApprovalRequestApprovals = newApprovalRequestApprovalsTable("public", "approval_request_approvals", "")++type approvalRequestApprovalsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ StepId postgres.ColumnString+ ApproverUserId postgres.ColumnString+ Decision postgres.ColumnString+ Comment postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ApprovalRequestApprovalsTable struct {+ approvalRequestApprovalsTable++ EXCLUDED approvalRequestApprovalsTable+}++// AS creates new ApprovalRequestApprovalsTable with assigned alias+func (a ApprovalRequestApprovalsTable) AS(alias string) *ApprovalRequestApprovalsTable {+ return newApprovalRequestApprovalsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ApprovalRequestApprovalsTable with assigned schema name+func (a ApprovalRequestApprovalsTable) FromSchema(schemaName string) *ApprovalRequestApprovalsTable {+ return newApprovalRequestApprovalsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ApprovalRequestApprovalsTable with assigned table prefix+func (a ApprovalRequestApprovalsTable) WithPrefix(prefix string) *ApprovalRequestApprovalsTable {+ return newApprovalRequestApprovalsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ApprovalRequestApprovalsTable with assigned table suffix+func (a ApprovalRequestApprovalsTable) WithSuffix(suffix string) *ApprovalRequestApprovalsTable {+ return newApprovalRequestApprovalsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newApprovalRequestApprovalsTable(schemaName, tableName, alias string) *ApprovalRequestApprovalsTable {+ return &ApprovalRequestApprovalsTable{+ approvalRequestApprovalsTable: newApprovalRequestApprovalsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newApprovalRequestApprovalsTableImpl("", "excluded", ""),+ }+}++func newApprovalRequestApprovalsTableImpl(schemaName, tableName, alias string) approvalRequestApprovalsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ StepIdColumn = postgres.StringColumn("stepId")+ ApproverUserIdColumn = postgres.StringColumn("approverUserId")+ DecisionColumn = postgres.StringColumn("decision")+ CommentColumn = postgres.StringColumn("comment")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ allColumns = postgres.ColumnList{IDColumn, StepIdColumn, ApproverUserIdColumn, DecisionColumn, CommentColumn, CreatedAtColumn}+ mutableColumns = postgres.ColumnList{StepIdColumn, ApproverUserIdColumn, DecisionColumn, CommentColumn, CreatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn}+ )++ return approvalRequestApprovalsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ StepId: StepIdColumn,+ ApproverUserId: ApproverUserIdColumn,+ Decision: DecisionColumn,+ Comment: CommentColumn,+ CreatedAt: CreatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/approval_request_grants.go b/backend-go/internal/database/pg/gen/table/approval_request_grants.gonew file mode 100644index 0000000000..7dbb4898e4--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/approval_request_grants.go@@ -0,0 +1,111 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ApprovalRequestGrants = newApprovalRequestGrantsTable("public", "approval_request_grants", "")++type approvalRequestGrantsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ RequestId postgres.ColumnString+ GranteeUserId postgres.ColumnString+ RevokedByUserId postgres.ColumnString+ RevocationReason postgres.ColumnString+ Status postgres.ColumnString+ Type postgres.ColumnString+ Attributes postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ ExpiresAt postgres.ColumnTimestampz+ RevokedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ApprovalRequestGrantsTable struct {+ approvalRequestGrantsTable++ EXCLUDED approvalRequestGrantsTable+}++// AS creates new ApprovalRequestGrantsTable with assigned alias+func (a ApprovalRequestGrantsTable) AS(alias string) *ApprovalRequestGrantsTable {+ return newApprovalRequestGrantsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ApprovalRequestGrantsTable with assigned schema name+func (a ApprovalRequestGrantsTable) FromSchema(schemaName string) *ApprovalRequestGrantsTable {+ return newApprovalRequestGrantsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ApprovalRequestGrantsTable with assigned table prefix+func (a ApprovalRequestGrantsTable) WithPrefix(prefix string) *ApprovalRequestGrantsTable {+ return newApprovalRequestGrantsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ApprovalRequestGrantsTable with assigned table suffix+func (a ApprovalRequestGrantsTable) WithSuffix(suffix string) *ApprovalRequestGrantsTable {+ return newApprovalRequestGrantsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newApprovalRequestGrantsTable(schemaName, tableName, alias string) *ApprovalRequestGrantsTable {+ return &ApprovalRequestGrantsTable{+ approvalRequestGrantsTable: newApprovalRequestGrantsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newApprovalRequestGrantsTableImpl("", "excluded", ""),+ }+}++func newApprovalRequestGrantsTableImpl(schemaName, tableName, alias string) approvalRequestGrantsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ RequestIdColumn = postgres.StringColumn("requestId")+ GranteeUserIdColumn = postgres.StringColumn("granteeUserId")+ RevokedByUserIdColumn = postgres.StringColumn("revokedByUserId")+ RevocationReasonColumn = postgres.StringColumn("revocationReason")+ StatusColumn = postgres.StringColumn("status")+ TypeColumn = postgres.StringColumn("type")+ AttributesColumn = postgres.StringColumn("attributes")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ ExpiresAtColumn = postgres.TimestampzColumn("expiresAt")+ RevokedAtColumn = postgres.TimestampzColumn("revokedAt")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, RequestIdColumn, GranteeUserIdColumn, RevokedByUserIdColumn, RevocationReasonColumn, StatusColumn, TypeColumn, AttributesColumn, CreatedAtColumn, ExpiresAtColumn, RevokedAtColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, RequestIdColumn, GranteeUserIdColumn, RevokedByUserIdColumn, RevocationReasonColumn, StatusColumn, TypeColumn, AttributesColumn, CreatedAtColumn, ExpiresAtColumn, RevokedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn}+ )++ return approvalRequestGrantsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ RequestId: RequestIdColumn,+ GranteeUserId: GranteeUserIdColumn,+ RevokedByUserId: RevokedByUserIdColumn,+ RevocationReason: RevocationReasonColumn,+ Status: StatusColumn,+ Type: TypeColumn,+ Attributes: AttributesColumn,+ CreatedAt: CreatedAtColumn,+ ExpiresAt: ExpiresAtColumn,+ RevokedAt: RevokedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/approval_request_step_eligible_approvers.go b/backend-go/internal/database/pg/gen/table/approval_request_step_eligible_approvers.gonew file mode 100644index 0000000000..746821a1fc--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/approval_request_step_eligible_approvers.go@@ -0,0 +1,87 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ApprovalRequestStepEligibleApprovers = newApprovalRequestStepEligibleApproversTable("public", "approval_request_step_eligible_approvers", "")++type approvalRequestStepEligibleApproversTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ StepId postgres.ColumnString+ UserId postgres.ColumnString+ GroupId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ApprovalRequestStepEligibleApproversTable struct {+ approvalRequestStepEligibleApproversTable++ EXCLUDED approvalRequestStepEligibleApproversTable+}++// AS creates new ApprovalRequestStepEligibleApproversTable with assigned alias+func (a ApprovalRequestStepEligibleApproversTable) AS(alias string) *ApprovalRequestStepEligibleApproversTable {+ return newApprovalRequestStepEligibleApproversTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ApprovalRequestStepEligibleApproversTable with assigned schema name+func (a ApprovalRequestStepEligibleApproversTable) FromSchema(schemaName string) *ApprovalRequestStepEligibleApproversTable {+ return newApprovalRequestStepEligibleApproversTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ApprovalRequestStepEligibleApproversTable with assigned table prefix+func (a ApprovalRequestStepEligibleApproversTable) WithPrefix(prefix string) *ApprovalRequestStepEligibleApproversTable {+ return newApprovalRequestStepEligibleApproversTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ApprovalRequestStepEligibleApproversTable with assigned table suffix+func (a ApprovalRequestStepEligibleApproversTable) WithSuffix(suffix string) *ApprovalRequestStepEligibleApproversTable {+ return newApprovalRequestStepEligibleApproversTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newApprovalRequestStepEligibleApproversTable(schemaName, tableName, alias string) *ApprovalRequestStepEligibleApproversTable {+ return &ApprovalRequestStepEligibleApproversTable{+ approvalRequestStepEligibleApproversTable: newApprovalRequestStepEligibleApproversTableImpl(schemaName, tableName, alias),+ EXCLUDED: newApprovalRequestStepEligibleApproversTableImpl("", "excluded", ""),+ }+}++func newApprovalRequestStepEligibleApproversTableImpl(schemaName, tableName, alias string) approvalRequestStepEligibleApproversTable {+ var (+ IDColumn = postgres.StringColumn("id")+ StepIdColumn = postgres.StringColumn("stepId")+ UserIdColumn = postgres.StringColumn("userId")+ GroupIdColumn = postgres.StringColumn("groupId")+ allColumns = postgres.ColumnList{IDColumn, StepIdColumn, UserIdColumn, GroupIdColumn}+ mutableColumns = postgres.ColumnList{StepIdColumn, UserIdColumn, GroupIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return approvalRequestStepEligibleApproversTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ StepId: StepIdColumn,+ UserId: UserIdColumn,+ GroupId: GroupIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/approval_request_steps.go b/backend-go/internal/database/pg/gen/table/approval_request_steps.gonew file mode 100644index 0000000000..513713ad44--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/approval_request_steps.go@@ -0,0 +1,102 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ApprovalRequestSteps = newApprovalRequestStepsTable("public", "approval_request_steps", "")++type approvalRequestStepsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ RequestId postgres.ColumnString+ StepNumber postgres.ColumnInteger+ Name postgres.ColumnString+ Status postgres.ColumnString+ RequiredApprovals postgres.ColumnInteger+ NotifyApprovers postgres.ColumnBool+ StartedAt postgres.ColumnTimestampz+ CompletedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ApprovalRequestStepsTable struct {+ approvalRequestStepsTable++ EXCLUDED approvalRequestStepsTable+}++// AS creates new ApprovalRequestStepsTable with assigned alias+func (a ApprovalRequestStepsTable) AS(alias string) *ApprovalRequestStepsTable {+ return newApprovalRequestStepsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ApprovalRequestStepsTable with assigned schema name+func (a ApprovalRequestStepsTable) FromSchema(schemaName string) *ApprovalRequestStepsTable {+ return newApprovalRequestStepsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ApprovalRequestStepsTable with assigned table prefix+func (a ApprovalRequestStepsTable) WithPrefix(prefix string) *ApprovalRequestStepsTable {+ return newApprovalRequestStepsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ApprovalRequestStepsTable with assigned table suffix+func (a ApprovalRequestStepsTable) WithSuffix(suffix string) *ApprovalRequestStepsTable {+ return newApprovalRequestStepsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newApprovalRequestStepsTable(schemaName, tableName, alias string) *ApprovalRequestStepsTable {+ return &ApprovalRequestStepsTable{+ approvalRequestStepsTable: newApprovalRequestStepsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newApprovalRequestStepsTableImpl("", "excluded", ""),+ }+}++func newApprovalRequestStepsTableImpl(schemaName, tableName, alias string) approvalRequestStepsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ RequestIdColumn = postgres.StringColumn("requestId")+ StepNumberColumn = postgres.IntegerColumn("stepNumber")+ NameColumn = postgres.StringColumn("name")+ StatusColumn = postgres.StringColumn("status")+ RequiredApprovalsColumn = postgres.IntegerColumn("requiredApprovals")+ NotifyApproversColumn = postgres.BoolColumn("notifyApprovers")+ StartedAtColumn = postgres.TimestampzColumn("startedAt")+ CompletedAtColumn = postgres.TimestampzColumn("completedAt")+ allColumns = postgres.ColumnList{IDColumn, RequestIdColumn, StepNumberColumn, NameColumn, StatusColumn, RequiredApprovalsColumn, NotifyApproversColumn, StartedAtColumn, CompletedAtColumn}+ mutableColumns = postgres.ColumnList{RequestIdColumn, StepNumberColumn, NameColumn, StatusColumn, RequiredApprovalsColumn, NotifyApproversColumn, StartedAtColumn, CompletedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, NotifyApproversColumn}+ )++ return approvalRequestStepsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ RequestId: RequestIdColumn,+ StepNumber: StepNumberColumn,+ Name: NameColumn,+ Status: StatusColumn,+ RequiredApprovals: RequiredApprovalsColumn,+ NotifyApprovers: NotifyApproversColumn,+ StartedAt: StartedAtColumn,+ CompletedAt: CompletedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/approval_requests.go b/backend-go/internal/database/pg/gen/table/approval_requests.gonew file mode 100644index 0000000000..498c75166f--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/approval_requests.go@@ -0,0 +1,123 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ApprovalRequests = newApprovalRequestsTable("public", "approval_requests", "")++type approvalRequestsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ OrganizationId postgres.ColumnString+ PolicyId postgres.ColumnString+ RequesterId postgres.ColumnString+ RequesterName postgres.ColumnString+ RequesterEmail postgres.ColumnString+ Type postgres.ColumnString+ Status postgres.ColumnString+ Justification postgres.ColumnString+ CurrentStep postgres.ColumnInteger+ RequestData postgres.ColumnString+ ExpiresAt postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ MachineIdentityId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ApprovalRequestsTable struct {+ approvalRequestsTable++ EXCLUDED approvalRequestsTable+}++// AS creates new ApprovalRequestsTable with assigned alias+func (a ApprovalRequestsTable) AS(alias string) *ApprovalRequestsTable {+ return newApprovalRequestsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ApprovalRequestsTable with assigned schema name+func (a ApprovalRequestsTable) FromSchema(schemaName string) *ApprovalRequestsTable {+ return newApprovalRequestsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ApprovalRequestsTable with assigned table prefix+func (a ApprovalRequestsTable) WithPrefix(prefix string) *ApprovalRequestsTable {+ return newApprovalRequestsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ApprovalRequestsTable with assigned table suffix+func (a ApprovalRequestsTable) WithSuffix(suffix string) *ApprovalRequestsTable {+ return newApprovalRequestsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newApprovalRequestsTable(schemaName, tableName, alias string) *ApprovalRequestsTable {+ return &ApprovalRequestsTable{+ approvalRequestsTable: newApprovalRequestsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newApprovalRequestsTableImpl("", "excluded", ""),+ }+}++func newApprovalRequestsTableImpl(schemaName, tableName, alias string) approvalRequestsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ OrganizationIdColumn = postgres.StringColumn("organizationId")+ PolicyIdColumn = postgres.StringColumn("policyId")+ RequesterIdColumn = postgres.StringColumn("requesterId")+ RequesterNameColumn = postgres.StringColumn("requesterName")+ RequesterEmailColumn = postgres.StringColumn("requesterEmail")+ TypeColumn = postgres.StringColumn("type")+ StatusColumn = postgres.StringColumn("status")+ JustificationColumn = postgres.StringColumn("justification")+ CurrentStepColumn = postgres.IntegerColumn("currentStep")+ RequestDataColumn = postgres.StringColumn("requestData")+ ExpiresAtColumn = postgres.TimestampzColumn("expiresAt")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ MachineIdentityIdColumn = postgres.StringColumn("machineIdentityId")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, OrganizationIdColumn, PolicyIdColumn, RequesterIdColumn, RequesterNameColumn, RequesterEmailColumn, TypeColumn, StatusColumn, JustificationColumn, CurrentStepColumn, RequestDataColumn, ExpiresAtColumn, CreatedAtColumn, UpdatedAtColumn, MachineIdentityIdColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, OrganizationIdColumn, PolicyIdColumn, RequesterIdColumn, RequesterNameColumn, RequesterEmailColumn, TypeColumn, StatusColumn, JustificationColumn, CurrentStepColumn, RequestDataColumn, ExpiresAtColumn, CreatedAtColumn, UpdatedAtColumn, MachineIdentityIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return approvalRequestsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ OrganizationId: OrganizationIdColumn,+ PolicyId: PolicyIdColumn,+ RequesterId: RequesterIdColumn,+ RequesterName: RequesterNameColumn,+ RequesterEmail: RequesterEmailColumn,+ Type: TypeColumn,+ Status: StatusColumn,+ Justification: JustificationColumn,+ CurrentStep: CurrentStepColumn,+ RequestData: RequestDataColumn,+ ExpiresAt: ExpiresAtColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ MachineIdentityId: MachineIdentityIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/audit_log_streams.go b/backend-go/internal/database/pg/gen/table/audit_log_streams.gonew file mode 100644index 0000000000..eafe029fce--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/audit_log_streams.go@@ -0,0 +1,111 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AuditLogStreams = newAuditLogStreamsTable("public", "audit_log_streams", "")++type auditLogStreamsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ URL postgres.ColumnString+ EncryptedHeadersCiphertext postgres.ColumnString+ EncryptedHeadersIV postgres.ColumnString+ EncryptedHeadersTag postgres.ColumnString+ EncryptedHeadersAlgorithm postgres.ColumnString+ EncryptedHeadersKeyEncoding postgres.ColumnString+ OrgId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ Provider postgres.ColumnString+ EncryptedCredentials postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AuditLogStreamsTable struct {+ auditLogStreamsTable++ EXCLUDED auditLogStreamsTable+}++// AS creates new AuditLogStreamsTable with assigned alias+func (a AuditLogStreamsTable) AS(alias string) *AuditLogStreamsTable {+ return newAuditLogStreamsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AuditLogStreamsTable with assigned schema name+func (a AuditLogStreamsTable) FromSchema(schemaName string) *AuditLogStreamsTable {+ return newAuditLogStreamsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AuditLogStreamsTable with assigned table prefix+func (a AuditLogStreamsTable) WithPrefix(prefix string) *AuditLogStreamsTable {+ return newAuditLogStreamsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AuditLogStreamsTable with assigned table suffix+func (a AuditLogStreamsTable) WithSuffix(suffix string) *AuditLogStreamsTable {+ return newAuditLogStreamsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAuditLogStreamsTable(schemaName, tableName, alias string) *AuditLogStreamsTable {+ return &AuditLogStreamsTable{+ auditLogStreamsTable: newAuditLogStreamsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAuditLogStreamsTableImpl("", "excluded", ""),+ }+}++func newAuditLogStreamsTableImpl(schemaName, tableName, alias string) auditLogStreamsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ URLColumn = postgres.StringColumn("url")+ EncryptedHeadersCiphertextColumn = postgres.StringColumn("encryptedHeadersCiphertext")+ EncryptedHeadersIVColumn = postgres.StringColumn("encryptedHeadersIV")+ EncryptedHeadersTagColumn = postgres.StringColumn("encryptedHeadersTag")+ EncryptedHeadersAlgorithmColumn = postgres.StringColumn("encryptedHeadersAlgorithm")+ EncryptedHeadersKeyEncodingColumn = postgres.StringColumn("encryptedHeadersKeyEncoding")+ OrgIdColumn = postgres.StringColumn("orgId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ProviderColumn = postgres.StringColumn("provider")+ EncryptedCredentialsColumn = postgres.ByteaColumn("encryptedCredentials")+ allColumns = postgres.ColumnList{IDColumn, URLColumn, EncryptedHeadersCiphertextColumn, EncryptedHeadersIVColumn, EncryptedHeadersTagColumn, EncryptedHeadersAlgorithmColumn, EncryptedHeadersKeyEncodingColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, ProviderColumn, EncryptedCredentialsColumn}+ mutableColumns = postgres.ColumnList{URLColumn, EncryptedHeadersCiphertextColumn, EncryptedHeadersIVColumn, EncryptedHeadersTagColumn, EncryptedHeadersAlgorithmColumn, EncryptedHeadersKeyEncodingColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, ProviderColumn, EncryptedCredentialsColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, ProviderColumn}+ )++ return auditLogStreamsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ URL: URLColumn,+ EncryptedHeadersCiphertext: EncryptedHeadersCiphertextColumn,+ EncryptedHeadersIV: EncryptedHeadersIVColumn,+ EncryptedHeadersTag: EncryptedHeadersTagColumn,+ EncryptedHeadersAlgorithm: EncryptedHeadersAlgorithmColumn,+ EncryptedHeadersKeyEncoding: EncryptedHeadersKeyEncodingColumn,+ OrgId: OrgIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ Provider: ProviderColumn,+ EncryptedCredentials: EncryptedCredentialsColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/audit_logs.go b/backend-go/internal/database/pg/gen/table/audit_logs.gonew file mode 100644index 0000000000..d79870ce12--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/audit_logs.go@@ -0,0 +1,117 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AuditLogs = newAuditLogsTable("public", "audit_logs", "")++type auditLogsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Actor postgres.ColumnString+ ActorMetadata postgres.ColumnString+ IpAddress postgres.ColumnString+ EventType postgres.ColumnString+ EventMetadata postgres.ColumnString+ UserAgent postgres.ColumnString+ UserAgentType postgres.ColumnString+ ExpiresAt postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ OrgId postgres.ColumnString+ ProjectId postgres.ColumnString+ ProjectName postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AuditLogsTable struct {+ auditLogsTable++ EXCLUDED auditLogsTable+}++// AS creates new AuditLogsTable with assigned alias+func (a AuditLogsTable) AS(alias string) *AuditLogsTable {+ return newAuditLogsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AuditLogsTable with assigned schema name+func (a AuditLogsTable) FromSchema(schemaName string) *AuditLogsTable {+ return newAuditLogsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AuditLogsTable with assigned table prefix+func (a AuditLogsTable) WithPrefix(prefix string) *AuditLogsTable {+ return newAuditLogsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AuditLogsTable with assigned table suffix+func (a AuditLogsTable) WithSuffix(suffix string) *AuditLogsTable {+ return newAuditLogsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAuditLogsTable(schemaName, tableName, alias string) *AuditLogsTable {+ return &AuditLogsTable{+ auditLogsTable: newAuditLogsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAuditLogsTableImpl("", "excluded", ""),+ }+}++func newAuditLogsTableImpl(schemaName, tableName, alias string) auditLogsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ActorColumn = postgres.StringColumn("actor")+ ActorMetadataColumn = postgres.StringColumn("actorMetadata")+ IpAddressColumn = postgres.StringColumn("ipAddress")+ EventTypeColumn = postgres.StringColumn("eventType")+ EventMetadataColumn = postgres.StringColumn("eventMetadata")+ UserAgentColumn = postgres.StringColumn("userAgent")+ UserAgentTypeColumn = postgres.StringColumn("userAgentType")+ ExpiresAtColumn = postgres.TimestampzColumn("expiresAt")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ OrgIdColumn = postgres.StringColumn("orgId")+ ProjectIdColumn = postgres.StringColumn("projectId")+ ProjectNameColumn = postgres.StringColumn("projectName")+ allColumns = postgres.ColumnList{IDColumn, ActorColumn, ActorMetadataColumn, IpAddressColumn, EventTypeColumn, EventMetadataColumn, UserAgentColumn, UserAgentTypeColumn, ExpiresAtColumn, CreatedAtColumn, UpdatedAtColumn, OrgIdColumn, ProjectIdColumn, ProjectNameColumn}+ mutableColumns = postgres.ColumnList{ActorColumn, ActorMetadataColumn, IpAddressColumn, EventTypeColumn, EventMetadataColumn, UserAgentColumn, UserAgentTypeColumn, ExpiresAtColumn, CreatedAtColumn, UpdatedAtColumn, OrgIdColumn, ProjectIdColumn, ProjectNameColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return auditLogsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Actor: ActorColumn,+ ActorMetadata: ActorMetadataColumn,+ IpAddress: IpAddressColumn,+ EventType: EventTypeColumn,+ EventMetadata: EventMetadataColumn,+ UserAgent: UserAgentColumn,+ UserAgentType: UserAgentTypeColumn,+ ExpiresAt: ExpiresAtColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ OrgId: OrgIdColumn,+ ProjectId: ProjectIdColumn,+ ProjectName: ProjectNameColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/auth_token_sessions.go b/backend-go/internal/database/pg/gen/table/auth_token_sessions.gonew file mode 100644index 0000000000..a5c918ae3b--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/auth_token_sessions.go@@ -0,0 +1,102 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AuthTokenSessions = newAuthTokenSessionsTable("public", "auth_token_sessions", "")++type authTokenSessionsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ IP postgres.ColumnString+ UserAgent postgres.ColumnString+ RefreshVersion postgres.ColumnInteger+ AccessVersion postgres.ColumnInteger+ LastUsed postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ UserId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AuthTokenSessionsTable struct {+ authTokenSessionsTable++ EXCLUDED authTokenSessionsTable+}++// AS creates new AuthTokenSessionsTable with assigned alias+func (a AuthTokenSessionsTable) AS(alias string) *AuthTokenSessionsTable {+ return newAuthTokenSessionsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AuthTokenSessionsTable with assigned schema name+func (a AuthTokenSessionsTable) FromSchema(schemaName string) *AuthTokenSessionsTable {+ return newAuthTokenSessionsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AuthTokenSessionsTable with assigned table prefix+func (a AuthTokenSessionsTable) WithPrefix(prefix string) *AuthTokenSessionsTable {+ return newAuthTokenSessionsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AuthTokenSessionsTable with assigned table suffix+func (a AuthTokenSessionsTable) WithSuffix(suffix string) *AuthTokenSessionsTable {+ return newAuthTokenSessionsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAuthTokenSessionsTable(schemaName, tableName, alias string) *AuthTokenSessionsTable {+ return &AuthTokenSessionsTable{+ authTokenSessionsTable: newAuthTokenSessionsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAuthTokenSessionsTableImpl("", "excluded", ""),+ }+}++func newAuthTokenSessionsTableImpl(schemaName, tableName, alias string) authTokenSessionsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ IPColumn = postgres.StringColumn("ip")+ UserAgentColumn = postgres.StringColumn("userAgent")+ RefreshVersionColumn = postgres.IntegerColumn("refreshVersion")+ AccessVersionColumn = postgres.IntegerColumn("accessVersion")+ LastUsedColumn = postgres.TimestampzColumn("lastUsed")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ UserIdColumn = postgres.StringColumn("userId")+ allColumns = postgres.ColumnList{IDColumn, IPColumn, UserAgentColumn, RefreshVersionColumn, AccessVersionColumn, LastUsedColumn, CreatedAtColumn, UpdatedAtColumn, UserIdColumn}+ mutableColumns = postgres.ColumnList{IPColumn, UserAgentColumn, RefreshVersionColumn, AccessVersionColumn, LastUsedColumn, CreatedAtColumn, UpdatedAtColumn, UserIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, RefreshVersionColumn, AccessVersionColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return authTokenSessionsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ IP: IPColumn,+ UserAgent: UserAgentColumn,+ RefreshVersion: RefreshVersionColumn,+ AccessVersion: AccessVersionColumn,+ LastUsed: LastUsedColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ UserId: UserIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/auth_tokens.go b/backend-go/internal/database/pg/gen/table/auth_tokens.gonew file mode 100644index 0000000000..de4bc80acd--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/auth_tokens.go@@ -0,0 +1,111 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var AuthTokens = newAuthTokensTable("public", "auth_tokens", "")++type authTokensTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Type postgres.ColumnString+ PhoneNumber postgres.ColumnString+ TokenHash postgres.ColumnString+ TriesLeft postgres.ColumnInteger+ ExpiresAt postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ UserId postgres.ColumnString+ OrgId postgres.ColumnString+ AliasId postgres.ColumnString+ Payload postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type AuthTokensTable struct {+ authTokensTable++ EXCLUDED authTokensTable+}++// AS creates new AuthTokensTable with assigned alias+func (a AuthTokensTable) AS(alias string) *AuthTokensTable {+ return newAuthTokensTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new AuthTokensTable with assigned schema name+func (a AuthTokensTable) FromSchema(schemaName string) *AuthTokensTable {+ return newAuthTokensTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new AuthTokensTable with assigned table prefix+func (a AuthTokensTable) WithPrefix(prefix string) *AuthTokensTable {+ return newAuthTokensTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new AuthTokensTable with assigned table suffix+func (a AuthTokensTable) WithSuffix(suffix string) *AuthTokensTable {+ return newAuthTokensTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newAuthTokensTable(schemaName, tableName, alias string) *AuthTokensTable {+ return &AuthTokensTable{+ authTokensTable: newAuthTokensTableImpl(schemaName, tableName, alias),+ EXCLUDED: newAuthTokensTableImpl("", "excluded", ""),+ }+}++func newAuthTokensTableImpl(schemaName, tableName, alias string) authTokensTable {+ var (+ IDColumn = postgres.StringColumn("id")+ TypeColumn = postgres.StringColumn("type")+ PhoneNumberColumn = postgres.StringColumn("phoneNumber")+ TokenHashColumn = postgres.StringColumn("tokenHash")+ TriesLeftColumn = postgres.IntegerColumn("triesLeft")+ ExpiresAtColumn = postgres.TimestampzColumn("expiresAt")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ UserIdColumn = postgres.StringColumn("userId")+ OrgIdColumn = postgres.StringColumn("orgId")+ AliasIdColumn = postgres.StringColumn("aliasId")+ PayloadColumn = postgres.StringColumn("payload")+ allColumns = postgres.ColumnList{IDColumn, TypeColumn, PhoneNumberColumn, TokenHashColumn, TriesLeftColumn, ExpiresAtColumn, CreatedAtColumn, UpdatedAtColumn, UserIdColumn, OrgIdColumn, AliasIdColumn, PayloadColumn}+ mutableColumns = postgres.ColumnList{TypeColumn, PhoneNumberColumn, TokenHashColumn, TriesLeftColumn, ExpiresAtColumn, CreatedAtColumn, UpdatedAtColumn, UserIdColumn, OrgIdColumn, AliasIdColumn, PayloadColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return authTokensTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Type: TypeColumn,+ PhoneNumber: PhoneNumberColumn,+ TokenHash: TokenHashColumn,+ TriesLeft: TriesLeftColumn,+ ExpiresAt: ExpiresAtColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ UserId: UserIdColumn,+ OrgId: OrgIdColumn,+ AliasId: AliasIdColumn,+ Payload: PayloadColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/backup_private_key.go b/backend-go/internal/database/pg/gen/table/backup_private_key.gonew file mode 100644index 0000000000..e467879e53--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/backup_private_key.go@@ -0,0 +1,108 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var BackupPrivateKey = newBackupPrivateKeyTable("public", "backup_private_key", "")++type backupPrivateKeyTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ EncryptedPrivateKey postgres.ColumnString+ Iv postgres.ColumnString+ Tag postgres.ColumnString+ Algorithm postgres.ColumnString+ KeyEncoding postgres.ColumnString+ Salt postgres.ColumnString+ Verifier postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ UserId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type BackupPrivateKeyTable struct {+ backupPrivateKeyTable++ EXCLUDED backupPrivateKeyTable+}++// AS creates new BackupPrivateKeyTable with assigned alias+func (a BackupPrivateKeyTable) AS(alias string) *BackupPrivateKeyTable {+ return newBackupPrivateKeyTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new BackupPrivateKeyTable with assigned schema name+func (a BackupPrivateKeyTable) FromSchema(schemaName string) *BackupPrivateKeyTable {+ return newBackupPrivateKeyTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new BackupPrivateKeyTable with assigned table prefix+func (a BackupPrivateKeyTable) WithPrefix(prefix string) *BackupPrivateKeyTable {+ return newBackupPrivateKeyTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new BackupPrivateKeyTable with assigned table suffix+func (a BackupPrivateKeyTable) WithSuffix(suffix string) *BackupPrivateKeyTable {+ return newBackupPrivateKeyTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newBackupPrivateKeyTable(schemaName, tableName, alias string) *BackupPrivateKeyTable {+ return &BackupPrivateKeyTable{+ backupPrivateKeyTable: newBackupPrivateKeyTableImpl(schemaName, tableName, alias),+ EXCLUDED: newBackupPrivateKeyTableImpl("", "excluded", ""),+ }+}++func newBackupPrivateKeyTableImpl(schemaName, tableName, alias string) backupPrivateKeyTable {+ var (+ IDColumn = postgres.StringColumn("id")+ EncryptedPrivateKeyColumn = postgres.StringColumn("encryptedPrivateKey")+ IvColumn = postgres.StringColumn("iv")+ TagColumn = postgres.StringColumn("tag")+ AlgorithmColumn = postgres.StringColumn("algorithm")+ KeyEncodingColumn = postgres.StringColumn("keyEncoding")+ SaltColumn = postgres.StringColumn("salt")+ VerifierColumn = postgres.StringColumn("verifier")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ UserIdColumn = postgres.StringColumn("userId")+ allColumns = postgres.ColumnList{IDColumn, EncryptedPrivateKeyColumn, IvColumn, TagColumn, AlgorithmColumn, KeyEncodingColumn, SaltColumn, VerifierColumn, CreatedAtColumn, UpdatedAtColumn, UserIdColumn}+ mutableColumns = postgres.ColumnList{EncryptedPrivateKeyColumn, IvColumn, TagColumn, AlgorithmColumn, KeyEncodingColumn, SaltColumn, VerifierColumn, CreatedAtColumn, UpdatedAtColumn, UserIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return backupPrivateKeyTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ EncryptedPrivateKey: EncryptedPrivateKeyColumn,+ Iv: IvColumn,+ Tag: TagColumn,+ Algorithm: AlgorithmColumn,+ KeyEncoding: KeyEncodingColumn,+ Salt: SaltColumn,+ Verifier: VerifierColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ UserId: UserIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ca_signing_configs.go b/backend-go/internal/database/pg/gen/table/ca_signing_configs.gonew file mode 100644index 0000000000..30aa0353cb--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ca_signing_configs.go@@ -0,0 +1,102 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var CaSigningConfigs = newCaSigningConfigsTable("public", "ca_signing_configs", "")++type caSigningConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CaId postgres.ColumnString+ Type postgres.ColumnString+ ParentCaId postgres.ColumnString+ AppConnectionId postgres.ColumnString+ DestinationConfig postgres.ColumnString+ LastExternalCertificateId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type CaSigningConfigsTable struct {+ caSigningConfigsTable++ EXCLUDED caSigningConfigsTable+}++// AS creates new CaSigningConfigsTable with assigned alias+func (a CaSigningConfigsTable) AS(alias string) *CaSigningConfigsTable {+ return newCaSigningConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new CaSigningConfigsTable with assigned schema name+func (a CaSigningConfigsTable) FromSchema(schemaName string) *CaSigningConfigsTable {+ return newCaSigningConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new CaSigningConfigsTable with assigned table prefix+func (a CaSigningConfigsTable) WithPrefix(prefix string) *CaSigningConfigsTable {+ return newCaSigningConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new CaSigningConfigsTable with assigned table suffix+func (a CaSigningConfigsTable) WithSuffix(suffix string) *CaSigningConfigsTable {+ return newCaSigningConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newCaSigningConfigsTable(schemaName, tableName, alias string) *CaSigningConfigsTable {+ return &CaSigningConfigsTable{+ caSigningConfigsTable: newCaSigningConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newCaSigningConfigsTableImpl("", "excluded", ""),+ }+}++func newCaSigningConfigsTableImpl(schemaName, tableName, alias string) caSigningConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CaIdColumn = postgres.StringColumn("caId")+ TypeColumn = postgres.StringColumn("type")+ ParentCaIdColumn = postgres.StringColumn("parentCaId")+ AppConnectionIdColumn = postgres.StringColumn("appConnectionId")+ DestinationConfigColumn = postgres.StringColumn("destinationConfig")+ LastExternalCertificateIdColumn = postgres.StringColumn("lastExternalCertificateId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, CaIdColumn, TypeColumn, ParentCaIdColumn, AppConnectionIdColumn, DestinationConfigColumn, LastExternalCertificateIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{CaIdColumn, TypeColumn, ParentCaIdColumn, AppConnectionIdColumn, DestinationConfigColumn, LastExternalCertificateIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return caSigningConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CaId: CaIdColumn,+ Type: TypeColumn,+ ParentCaId: ParentCaIdColumn,+ AppConnectionId: AppConnectionIdColumn,+ DestinationConfig: DestinationConfigColumn,+ LastExternalCertificateId: LastExternalCertificateIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/certificate_authorities.go b/backend-go/internal/database/pg/gen/table/certificate_authorities.gonew file mode 100644index 0000000000..31e3a58778--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/certificate_authorities.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var CertificateAuthorities = newCertificateAuthoritiesTable("public", "certificate_authorities", "")++type certificateAuthoritiesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ProjectId postgres.ColumnString+ Status postgres.ColumnString+ EnableDirectIssuance postgres.ColumnBool+ Name postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type CertificateAuthoritiesTable struct {+ certificateAuthoritiesTable++ EXCLUDED certificateAuthoritiesTable+}++// AS creates new CertificateAuthoritiesTable with assigned alias+func (a CertificateAuthoritiesTable) AS(alias string) *CertificateAuthoritiesTable {+ return newCertificateAuthoritiesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new CertificateAuthoritiesTable with assigned schema name+func (a CertificateAuthoritiesTable) FromSchema(schemaName string) *CertificateAuthoritiesTable {+ return newCertificateAuthoritiesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new CertificateAuthoritiesTable with assigned table prefix+func (a CertificateAuthoritiesTable) WithPrefix(prefix string) *CertificateAuthoritiesTable {+ return newCertificateAuthoritiesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new CertificateAuthoritiesTable with assigned table suffix+func (a CertificateAuthoritiesTable) WithSuffix(suffix string) *CertificateAuthoritiesTable {+ return newCertificateAuthoritiesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newCertificateAuthoritiesTable(schemaName, tableName, alias string) *CertificateAuthoritiesTable {+ return &CertificateAuthoritiesTable{+ certificateAuthoritiesTable: newCertificateAuthoritiesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newCertificateAuthoritiesTableImpl("", "excluded", ""),+ }+}++func newCertificateAuthoritiesTableImpl(schemaName, tableName, alias string) certificateAuthoritiesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ProjectIdColumn = postgres.StringColumn("projectId")+ StatusColumn = postgres.StringColumn("status")+ EnableDirectIssuanceColumn = postgres.BoolColumn("enableDirectIssuance")+ NameColumn = postgres.StringColumn("name")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, StatusColumn, EnableDirectIssuanceColumn, NameColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, StatusColumn, EnableDirectIssuanceColumn, NameColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, EnableDirectIssuanceColumn}+ )++ return certificateAuthoritiesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ProjectId: ProjectIdColumn,+ Status: StatusColumn,+ EnableDirectIssuance: EnableDirectIssuanceColumn,+ Name: NameColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/certificate_authority_certs.go b/backend-go/internal/database/pg/gen/table/certificate_authority_certs.gonew file mode 100644index 0000000000..232ed85341--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/certificate_authority_certs.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var CertificateAuthorityCerts = newCertificateAuthorityCertsTable("public", "certificate_authority_certs", "")++type certificateAuthorityCertsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ CaId postgres.ColumnString+ EncryptedCertificate postgres.ColumnBytea+ EncryptedCertificateChain postgres.ColumnBytea+ Version postgres.ColumnInteger+ CaSecretId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type CertificateAuthorityCertsTable struct {+ certificateAuthorityCertsTable++ EXCLUDED certificateAuthorityCertsTable+}++// AS creates new CertificateAuthorityCertsTable with assigned alias+func (a CertificateAuthorityCertsTable) AS(alias string) *CertificateAuthorityCertsTable {+ return newCertificateAuthorityCertsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new CertificateAuthorityCertsTable with assigned schema name+func (a CertificateAuthorityCertsTable) FromSchema(schemaName string) *CertificateAuthorityCertsTable {+ return newCertificateAuthorityCertsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new CertificateAuthorityCertsTable with assigned table prefix+func (a CertificateAuthorityCertsTable) WithPrefix(prefix string) *CertificateAuthorityCertsTable {+ return newCertificateAuthorityCertsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new CertificateAuthorityCertsTable with assigned table suffix+func (a CertificateAuthorityCertsTable) WithSuffix(suffix string) *CertificateAuthorityCertsTable {+ return newCertificateAuthorityCertsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newCertificateAuthorityCertsTable(schemaName, tableName, alias string) *CertificateAuthorityCertsTable {+ return &CertificateAuthorityCertsTable{+ certificateAuthorityCertsTable: newCertificateAuthorityCertsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newCertificateAuthorityCertsTableImpl("", "excluded", ""),+ }+}++func newCertificateAuthorityCertsTableImpl(schemaName, tableName, alias string) certificateAuthorityCertsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ CaIdColumn = postgres.StringColumn("caId")+ EncryptedCertificateColumn = postgres.ByteaColumn("encryptedCertificate")+ EncryptedCertificateChainColumn = postgres.ByteaColumn("encryptedCertificateChain")+ VersionColumn = postgres.IntegerColumn("version")+ CaSecretIdColumn = postgres.StringColumn("caSecretId")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, CaIdColumn, EncryptedCertificateColumn, EncryptedCertificateChainColumn, VersionColumn, CaSecretIdColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, CaIdColumn, EncryptedCertificateColumn, EncryptedCertificateChainColumn, VersionColumn, CaSecretIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return certificateAuthorityCertsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ CaId: CaIdColumn,+ EncryptedCertificate: EncryptedCertificateColumn,+ EncryptedCertificateChain: EncryptedCertificateChainColumn,+ Version: VersionColumn,+ CaSecretId: CaSecretIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/certificate_authority_crl.go b/backend-go/internal/database/pg/gen/table/certificate_authority_crl.gonew file mode 100644index 0000000000..40417254cb--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/certificate_authority_crl.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var CertificateAuthorityCrl = newCertificateAuthorityCrlTable("public", "certificate_authority_crl", "")++type certificateAuthorityCrlTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ CaId postgres.ColumnString+ EncryptedCrl postgres.ColumnBytea+ CaSecretId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type CertificateAuthorityCrlTable struct {+ certificateAuthorityCrlTable++ EXCLUDED certificateAuthorityCrlTable+}++// AS creates new CertificateAuthorityCrlTable with assigned alias+func (a CertificateAuthorityCrlTable) AS(alias string) *CertificateAuthorityCrlTable {+ return newCertificateAuthorityCrlTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new CertificateAuthorityCrlTable with assigned schema name+func (a CertificateAuthorityCrlTable) FromSchema(schemaName string) *CertificateAuthorityCrlTable {+ return newCertificateAuthorityCrlTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new CertificateAuthorityCrlTable with assigned table prefix+func (a CertificateAuthorityCrlTable) WithPrefix(prefix string) *CertificateAuthorityCrlTable {+ return newCertificateAuthorityCrlTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new CertificateAuthorityCrlTable with assigned table suffix+func (a CertificateAuthorityCrlTable) WithSuffix(suffix string) *CertificateAuthorityCrlTable {+ return newCertificateAuthorityCrlTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newCertificateAuthorityCrlTable(schemaName, tableName, alias string) *CertificateAuthorityCrlTable {+ return &CertificateAuthorityCrlTable{+ certificateAuthorityCrlTable: newCertificateAuthorityCrlTableImpl(schemaName, tableName, alias),+ EXCLUDED: newCertificateAuthorityCrlTableImpl("", "excluded", ""),+ }+}++func newCertificateAuthorityCrlTableImpl(schemaName, tableName, alias string) certificateAuthorityCrlTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ CaIdColumn = postgres.StringColumn("caId")+ EncryptedCrlColumn = postgres.ByteaColumn("encryptedCrl")+ CaSecretIdColumn = postgres.StringColumn("caSecretId")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, CaIdColumn, EncryptedCrlColumn, CaSecretIdColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, CaIdColumn, EncryptedCrlColumn, CaSecretIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return certificateAuthorityCrlTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ CaId: CaIdColumn,+ EncryptedCrl: EncryptedCrlColumn,+ CaSecretId: CaSecretIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/certificate_authority_secret.go b/backend-go/internal/database/pg/gen/table/certificate_authority_secret.gonew file mode 100644index 0000000000..37303d96e5--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/certificate_authority_secret.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var CertificateAuthoritySecret = newCertificateAuthoritySecretTable("public", "certificate_authority_secret", "")++type certificateAuthoritySecretTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ CaId postgres.ColumnString+ EncryptedPrivateKey postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type CertificateAuthoritySecretTable struct {+ certificateAuthoritySecretTable++ EXCLUDED certificateAuthoritySecretTable+}++// AS creates new CertificateAuthoritySecretTable with assigned alias+func (a CertificateAuthoritySecretTable) AS(alias string) *CertificateAuthoritySecretTable {+ return newCertificateAuthoritySecretTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new CertificateAuthoritySecretTable with assigned schema name+func (a CertificateAuthoritySecretTable) FromSchema(schemaName string) *CertificateAuthoritySecretTable {+ return newCertificateAuthoritySecretTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new CertificateAuthoritySecretTable with assigned table prefix+func (a CertificateAuthoritySecretTable) WithPrefix(prefix string) *CertificateAuthoritySecretTable {+ return newCertificateAuthoritySecretTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new CertificateAuthoritySecretTable with assigned table suffix+func (a CertificateAuthoritySecretTable) WithSuffix(suffix string) *CertificateAuthoritySecretTable {+ return newCertificateAuthoritySecretTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newCertificateAuthoritySecretTable(schemaName, tableName, alias string) *CertificateAuthoritySecretTable {+ return &CertificateAuthoritySecretTable{+ certificateAuthoritySecretTable: newCertificateAuthoritySecretTableImpl(schemaName, tableName, alias),+ EXCLUDED: newCertificateAuthoritySecretTableImpl("", "excluded", ""),+ }+}++func newCertificateAuthoritySecretTableImpl(schemaName, tableName, alias string) certificateAuthoritySecretTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ CaIdColumn = postgres.StringColumn("caId")+ EncryptedPrivateKeyColumn = postgres.ByteaColumn("encryptedPrivateKey")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, CaIdColumn, EncryptedPrivateKeyColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, CaIdColumn, EncryptedPrivateKeyColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return certificateAuthoritySecretTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ CaId: CaIdColumn,+ EncryptedPrivateKey: EncryptedPrivateKeyColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/certificate_bodies.go b/backend-go/internal/database/pg/gen/table/certificate_bodies.gonew file mode 100644index 0000000000..650f823b71--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/certificate_bodies.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var CertificateBodies = newCertificateBodiesTable("public", "certificate_bodies", "")++type certificateBodiesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ CertId postgres.ColumnString+ EncryptedCertificate postgres.ColumnBytea+ EncryptedCertificateChain postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type CertificateBodiesTable struct {+ certificateBodiesTable++ EXCLUDED certificateBodiesTable+}++// AS creates new CertificateBodiesTable with assigned alias+func (a CertificateBodiesTable) AS(alias string) *CertificateBodiesTable {+ return newCertificateBodiesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new CertificateBodiesTable with assigned schema name+func (a CertificateBodiesTable) FromSchema(schemaName string) *CertificateBodiesTable {+ return newCertificateBodiesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new CertificateBodiesTable with assigned table prefix+func (a CertificateBodiesTable) WithPrefix(prefix string) *CertificateBodiesTable {+ return newCertificateBodiesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new CertificateBodiesTable with assigned table suffix+func (a CertificateBodiesTable) WithSuffix(suffix string) *CertificateBodiesTable {+ return newCertificateBodiesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newCertificateBodiesTable(schemaName, tableName, alias string) *CertificateBodiesTable {+ return &CertificateBodiesTable{+ certificateBodiesTable: newCertificateBodiesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newCertificateBodiesTableImpl("", "excluded", ""),+ }+}++func newCertificateBodiesTableImpl(schemaName, tableName, alias string) certificateBodiesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ CertIdColumn = postgres.StringColumn("certId")+ EncryptedCertificateColumn = postgres.ByteaColumn("encryptedCertificate")+ EncryptedCertificateChainColumn = postgres.ByteaColumn("encryptedCertificateChain")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, CertIdColumn, EncryptedCertificateColumn, EncryptedCertificateChainColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, CertIdColumn, EncryptedCertificateColumn, EncryptedCertificateChainColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return certificateBodiesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ CertId: CertIdColumn,+ EncryptedCertificate: EncryptedCertificateColumn,+ EncryptedCertificateChain: EncryptedCertificateChainColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/certificate_requests.go b/backend-go/internal/database/pg/gen/table/certificate_requests.gonew file mode 100644index 0000000000..308eff753b--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/certificate_requests.go@@ -0,0 +1,162 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var CertificateRequests = newCertificateRequestsTable("public", "certificate_requests", "")++type certificateRequestsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ Status postgres.ColumnString+ ProjectId postgres.ColumnString+ ProfileId postgres.ColumnString+ CaId postgres.ColumnString+ CertificateId postgres.ColumnString+ Csr postgres.ColumnString+ CommonName postgres.ColumnString+ KeyUsages postgres.ColumnStringArray+ ExtendedKeyUsages postgres.ColumnStringArray+ NotBefore postgres.ColumnTimestampz+ NotAfter postgres.ColumnTimestampz+ KeyAlgorithm postgres.ColumnString+ SignatureAlgorithm postgres.ColumnString+ ErrorMessage postgres.ColumnString+ Metadata postgres.ColumnString+ AcmeOrderId postgres.ColumnString+ BasicConstraints postgres.ColumnString+ ApprovalRequestId postgres.ColumnString+ TTL postgres.ColumnString+ EnrollmentType postgres.ColumnString+ AltNames postgres.ColumnString+ Organization postgres.ColumnString+ OrganizationalUnit postgres.ColumnString+ Country postgres.ColumnString+ State postgres.ColumnString+ Locality postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type CertificateRequestsTable struct {+ certificateRequestsTable++ EXCLUDED certificateRequestsTable+}++// AS creates new CertificateRequestsTable with assigned alias+func (a CertificateRequestsTable) AS(alias string) *CertificateRequestsTable {+ return newCertificateRequestsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new CertificateRequestsTable with assigned schema name+func (a CertificateRequestsTable) FromSchema(schemaName string) *CertificateRequestsTable {+ return newCertificateRequestsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new CertificateRequestsTable with assigned table prefix+func (a CertificateRequestsTable) WithPrefix(prefix string) *CertificateRequestsTable {+ return newCertificateRequestsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new CertificateRequestsTable with assigned table suffix+func (a CertificateRequestsTable) WithSuffix(suffix string) *CertificateRequestsTable {+ return newCertificateRequestsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newCertificateRequestsTable(schemaName, tableName, alias string) *CertificateRequestsTable {+ return &CertificateRequestsTable{+ certificateRequestsTable: newCertificateRequestsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newCertificateRequestsTableImpl("", "excluded", ""),+ }+}++func newCertificateRequestsTableImpl(schemaName, tableName, alias string) certificateRequestsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ StatusColumn = postgres.StringColumn("status")+ ProjectIdColumn = postgres.StringColumn("projectId")+ ProfileIdColumn = postgres.StringColumn("profileId")+ CaIdColumn = postgres.StringColumn("caId")+ CertificateIdColumn = postgres.StringColumn("certificateId")+ CsrColumn = postgres.StringColumn("csr")+ CommonNameColumn = postgres.StringColumn("commonName")+ KeyUsagesColumn = postgres.StringArrayColumn("keyUsages")+ ExtendedKeyUsagesColumn = postgres.StringArrayColumn("extendedKeyUsages")+ NotBeforeColumn = postgres.TimestampzColumn("notBefore")+ NotAfterColumn = postgres.TimestampzColumn("notAfter")+ KeyAlgorithmColumn = postgres.StringColumn("keyAlgorithm")+ SignatureAlgorithmColumn = postgres.StringColumn("signatureAlgorithm")+ ErrorMessageColumn = postgres.StringColumn("errorMessage")+ MetadataColumn = postgres.StringColumn("metadata")+ AcmeOrderIdColumn = postgres.StringColumn("acmeOrderId")+ BasicConstraintsColumn = postgres.StringColumn("basicConstraints")+ ApprovalRequestIdColumn = postgres.StringColumn("approvalRequestId")+ TTLColumn = postgres.StringColumn("ttl")+ EnrollmentTypeColumn = postgres.StringColumn("enrollmentType")+ AltNamesColumn = postgres.StringColumn("altNames")+ OrganizationColumn = postgres.StringColumn("organization")+ OrganizationalUnitColumn = postgres.StringColumn("organizationalUnit")+ CountryColumn = postgres.StringColumn("country")+ StateColumn = postgres.StringColumn("state")+ LocalityColumn = postgres.StringColumn("locality")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, StatusColumn, ProjectIdColumn, ProfileIdColumn, CaIdColumn, CertificateIdColumn, CsrColumn, CommonNameColumn, KeyUsagesColumn, ExtendedKeyUsagesColumn, NotBeforeColumn, NotAfterColumn, KeyAlgorithmColumn, SignatureAlgorithmColumn, ErrorMessageColumn, MetadataColumn, AcmeOrderIdColumn, BasicConstraintsColumn, ApprovalRequestIdColumn, TTLColumn, EnrollmentTypeColumn, AltNamesColumn, OrganizationColumn, OrganizationalUnitColumn, CountryColumn, StateColumn, LocalityColumn}+ mutableColumns = postgres.ColumnList{UpdatedAtColumn, StatusColumn, ProjectIdColumn, ProfileIdColumn, CaIdColumn, CertificateIdColumn, CsrColumn, CommonNameColumn, KeyUsagesColumn, ExtendedKeyUsagesColumn, NotBeforeColumn, NotAfterColumn, KeyAlgorithmColumn, SignatureAlgorithmColumn, ErrorMessageColumn, MetadataColumn, AcmeOrderIdColumn, BasicConstraintsColumn, ApprovalRequestIdColumn, TTLColumn, EnrollmentTypeColumn, AltNamesColumn, OrganizationColumn, OrganizationalUnitColumn, CountryColumn, StateColumn, LocalityColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return certificateRequestsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ Status: StatusColumn,+ ProjectId: ProjectIdColumn,+ ProfileId: ProfileIdColumn,+ CaId: CaIdColumn,+ CertificateId: CertificateIdColumn,+ Csr: CsrColumn,+ CommonName: CommonNameColumn,+ KeyUsages: KeyUsagesColumn,+ ExtendedKeyUsages: ExtendedKeyUsagesColumn,+ NotBefore: NotBeforeColumn,+ NotAfter: NotAfterColumn,+ KeyAlgorithm: KeyAlgorithmColumn,+ SignatureAlgorithm: SignatureAlgorithmColumn,+ ErrorMessage: ErrorMessageColumn,+ Metadata: MetadataColumn,+ AcmeOrderId: AcmeOrderIdColumn,+ BasicConstraints: BasicConstraintsColumn,+ ApprovalRequestId: ApprovalRequestIdColumn,+ TTL: TTLColumn,+ EnrollmentType: EnrollmentTypeColumn,+ AltNames: AltNamesColumn,+ Organization: OrganizationColumn,+ OrganizationalUnit: OrganizationalUnitColumn,+ Country: CountryColumn,+ State: StateColumn,+ Locality: LocalityColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/certificate_secrets.go b/backend-go/internal/database/pg/gen/table/certificate_secrets.gonew file mode 100644index 0000000000..0016e6049d--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/certificate_secrets.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var CertificateSecrets = newCertificateSecretsTable("public", "certificate_secrets", "")++type certificateSecretsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ CertId postgres.ColumnString+ EncryptedPrivateKey postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type CertificateSecretsTable struct {+ certificateSecretsTable++ EXCLUDED certificateSecretsTable+}++// AS creates new CertificateSecretsTable with assigned alias+func (a CertificateSecretsTable) AS(alias string) *CertificateSecretsTable {+ return newCertificateSecretsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new CertificateSecretsTable with assigned schema name+func (a CertificateSecretsTable) FromSchema(schemaName string) *CertificateSecretsTable {+ return newCertificateSecretsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new CertificateSecretsTable with assigned table prefix+func (a CertificateSecretsTable) WithPrefix(prefix string) *CertificateSecretsTable {+ return newCertificateSecretsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new CertificateSecretsTable with assigned table suffix+func (a CertificateSecretsTable) WithSuffix(suffix string) *CertificateSecretsTable {+ return newCertificateSecretsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newCertificateSecretsTable(schemaName, tableName, alias string) *CertificateSecretsTable {+ return &CertificateSecretsTable{+ certificateSecretsTable: newCertificateSecretsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newCertificateSecretsTableImpl("", "excluded", ""),+ }+}++func newCertificateSecretsTableImpl(schemaName, tableName, alias string) certificateSecretsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ CertIdColumn = postgres.StringColumn("certId")+ EncryptedPrivateKeyColumn = postgres.ByteaColumn("encryptedPrivateKey")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, CertIdColumn, EncryptedPrivateKeyColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, CertIdColumn, EncryptedPrivateKeyColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return certificateSecretsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ CertId: CertIdColumn,+ EncryptedPrivateKey: EncryptedPrivateKeyColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/certificate_syncs.go b/backend-go/internal/database/pg/gen/table/certificate_syncs.gonew file mode 100644index 0000000000..0765da951f--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/certificate_syncs.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var CertificateSyncs = newCertificateSyncsTable("public", "certificate_syncs", "")++type certificateSyncsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ PkiSyncId postgres.ColumnString+ CertificateId postgres.ColumnString+ SyncStatus postgres.ColumnString+ LastSyncMessage postgres.ColumnString+ LastSyncedAt postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ExternalIdentifier postgres.ColumnString+ SyncMetadata postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type CertificateSyncsTable struct {+ certificateSyncsTable++ EXCLUDED certificateSyncsTable+}++// AS creates new CertificateSyncsTable with assigned alias+func (a CertificateSyncsTable) AS(alias string) *CertificateSyncsTable {+ return newCertificateSyncsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new CertificateSyncsTable with assigned schema name+func (a CertificateSyncsTable) FromSchema(schemaName string) *CertificateSyncsTable {+ return newCertificateSyncsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new CertificateSyncsTable with assigned table prefix+func (a CertificateSyncsTable) WithPrefix(prefix string) *CertificateSyncsTable {+ return newCertificateSyncsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new CertificateSyncsTable with assigned table suffix+func (a CertificateSyncsTable) WithSuffix(suffix string) *CertificateSyncsTable {+ return newCertificateSyncsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newCertificateSyncsTable(schemaName, tableName, alias string) *CertificateSyncsTable {+ return &CertificateSyncsTable{+ certificateSyncsTable: newCertificateSyncsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newCertificateSyncsTableImpl("", "excluded", ""),+ }+}++func newCertificateSyncsTableImpl(schemaName, tableName, alias string) certificateSyncsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ PkiSyncIdColumn = postgres.StringColumn("pkiSyncId")+ CertificateIdColumn = postgres.StringColumn("certificateId")+ SyncStatusColumn = postgres.StringColumn("syncStatus")+ LastSyncMessageColumn = postgres.StringColumn("lastSyncMessage")+ LastSyncedAtColumn = postgres.TimestampzColumn("lastSyncedAt")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ExternalIdentifierColumn = postgres.StringColumn("externalIdentifier")+ SyncMetadataColumn = postgres.StringColumn("syncMetadata")+ allColumns = postgres.ColumnList{IDColumn, PkiSyncIdColumn, CertificateIdColumn, SyncStatusColumn, LastSyncMessageColumn, LastSyncedAtColumn, CreatedAtColumn, UpdatedAtColumn, ExternalIdentifierColumn, SyncMetadataColumn}+ mutableColumns = postgres.ColumnList{PkiSyncIdColumn, CertificateIdColumn, SyncStatusColumn, LastSyncMessageColumn, LastSyncedAtColumn, CreatedAtColumn, UpdatedAtColumn, ExternalIdentifierColumn, SyncMetadataColumn}+ defaultColumns = postgres.ColumnList{IDColumn, SyncStatusColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return certificateSyncsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ PkiSyncId: PkiSyncIdColumn,+ CertificateId: CertificateIdColumn,+ SyncStatus: SyncStatusColumn,+ LastSyncMessage: LastSyncMessageColumn,+ LastSyncedAt: LastSyncedAtColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ExternalIdentifier: ExternalIdentifierColumn,+ SyncMetadata: SyncMetadataColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/certificate_template_est_configs.go b/backend-go/internal/database/pg/gen/table/certificate_template_est_configs.gonew file mode 100644index 0000000000..aca86ea07d--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/certificate_template_est_configs.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var CertificateTemplateEstConfigs = newCertificateTemplateEstConfigsTable("public", "certificate_template_est_configs", "")++type certificateTemplateEstConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CertificateTemplateId postgres.ColumnString+ EncryptedCaChain postgres.ColumnBytea+ HashedPassphrase postgres.ColumnString+ IsEnabled postgres.ColumnBool+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ DisableBootstrapCertValidation postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type CertificateTemplateEstConfigsTable struct {+ certificateTemplateEstConfigsTable++ EXCLUDED certificateTemplateEstConfigsTable+}++// AS creates new CertificateTemplateEstConfigsTable with assigned alias+func (a CertificateTemplateEstConfigsTable) AS(alias string) *CertificateTemplateEstConfigsTable {+ return newCertificateTemplateEstConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new CertificateTemplateEstConfigsTable with assigned schema name+func (a CertificateTemplateEstConfigsTable) FromSchema(schemaName string) *CertificateTemplateEstConfigsTable {+ return newCertificateTemplateEstConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new CertificateTemplateEstConfigsTable with assigned table prefix+func (a CertificateTemplateEstConfigsTable) WithPrefix(prefix string) *CertificateTemplateEstConfigsTable {+ return newCertificateTemplateEstConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new CertificateTemplateEstConfigsTable with assigned table suffix+func (a CertificateTemplateEstConfigsTable) WithSuffix(suffix string) *CertificateTemplateEstConfigsTable {+ return newCertificateTemplateEstConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newCertificateTemplateEstConfigsTable(schemaName, tableName, alias string) *CertificateTemplateEstConfigsTable {+ return &CertificateTemplateEstConfigsTable{+ certificateTemplateEstConfigsTable: newCertificateTemplateEstConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newCertificateTemplateEstConfigsTableImpl("", "excluded", ""),+ }+}++func newCertificateTemplateEstConfigsTableImpl(schemaName, tableName, alias string) certificateTemplateEstConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CertificateTemplateIdColumn = postgres.StringColumn("certificateTemplateId")+ EncryptedCaChainColumn = postgres.ByteaColumn("encryptedCaChain")+ HashedPassphraseColumn = postgres.StringColumn("hashedPassphrase")+ IsEnabledColumn = postgres.BoolColumn("isEnabled")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ DisableBootstrapCertValidationColumn = postgres.BoolColumn("disableBootstrapCertValidation")+ allColumns = postgres.ColumnList{IDColumn, CertificateTemplateIdColumn, EncryptedCaChainColumn, HashedPassphraseColumn, IsEnabledColumn, CreatedAtColumn, UpdatedAtColumn, DisableBootstrapCertValidationColumn}+ mutableColumns = postgres.ColumnList{CertificateTemplateIdColumn, EncryptedCaChainColumn, HashedPassphraseColumn, IsEnabledColumn, CreatedAtColumn, UpdatedAtColumn, DisableBootstrapCertValidationColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, DisableBootstrapCertValidationColumn}+ )++ return certificateTemplateEstConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CertificateTemplateId: CertificateTemplateIdColumn,+ EncryptedCaChain: EncryptedCaChainColumn,+ HashedPassphrase: HashedPassphraseColumn,+ IsEnabled: IsEnabledColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ DisableBootstrapCertValidation: DisableBootstrapCertValidationColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/certificate_templates.go b/backend-go/internal/database/pg/gen/table/certificate_templates.gonew file mode 100644index 0000000000..7fef31c9d9--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/certificate_templates.go@@ -0,0 +1,108 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var CertificateTemplates = newCertificateTemplatesTable("public", "certificate_templates", "")++type certificateTemplatesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CaId postgres.ColumnString+ PkiCollectionId postgres.ColumnString+ Name postgres.ColumnString+ CommonName postgres.ColumnString+ SubjectAlternativeName postgres.ColumnString+ TTL postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ KeyUsages postgres.ColumnStringArray+ ExtendedKeyUsages postgres.ColumnStringArray++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type CertificateTemplatesTable struct {+ certificateTemplatesTable++ EXCLUDED certificateTemplatesTable+}++// AS creates new CertificateTemplatesTable with assigned alias+func (a CertificateTemplatesTable) AS(alias string) *CertificateTemplatesTable {+ return newCertificateTemplatesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new CertificateTemplatesTable with assigned schema name+func (a CertificateTemplatesTable) FromSchema(schemaName string) *CertificateTemplatesTable {+ return newCertificateTemplatesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new CertificateTemplatesTable with assigned table prefix+func (a CertificateTemplatesTable) WithPrefix(prefix string) *CertificateTemplatesTable {+ return newCertificateTemplatesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new CertificateTemplatesTable with assigned table suffix+func (a CertificateTemplatesTable) WithSuffix(suffix string) *CertificateTemplatesTable {+ return newCertificateTemplatesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newCertificateTemplatesTable(schemaName, tableName, alias string) *CertificateTemplatesTable {+ return &CertificateTemplatesTable{+ certificateTemplatesTable: newCertificateTemplatesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newCertificateTemplatesTableImpl("", "excluded", ""),+ }+}++func newCertificateTemplatesTableImpl(schemaName, tableName, alias string) certificateTemplatesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CaIdColumn = postgres.StringColumn("caId")+ PkiCollectionIdColumn = postgres.StringColumn("pkiCollectionId")+ NameColumn = postgres.StringColumn("name")+ CommonNameColumn = postgres.StringColumn("commonName")+ SubjectAlternativeNameColumn = postgres.StringColumn("subjectAlternativeName")+ TTLColumn = postgres.StringColumn("ttl")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ KeyUsagesColumn = postgres.StringArrayColumn("keyUsages")+ ExtendedKeyUsagesColumn = postgres.StringArrayColumn("extendedKeyUsages")+ allColumns = postgres.ColumnList{IDColumn, CaIdColumn, PkiCollectionIdColumn, NameColumn, CommonNameColumn, SubjectAlternativeNameColumn, TTLColumn, CreatedAtColumn, UpdatedAtColumn, KeyUsagesColumn, ExtendedKeyUsagesColumn}+ mutableColumns = postgres.ColumnList{CaIdColumn, PkiCollectionIdColumn, NameColumn, CommonNameColumn, SubjectAlternativeNameColumn, TTLColumn, CreatedAtColumn, UpdatedAtColumn, KeyUsagesColumn, ExtendedKeyUsagesColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return certificateTemplatesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CaId: CaIdColumn,+ PkiCollectionId: PkiCollectionIdColumn,+ Name: NameColumn,+ CommonName: CommonNameColumn,+ SubjectAlternativeName: SubjectAlternativeNameColumn,+ TTL: TTLColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ KeyUsages: KeyUsagesColumn,+ ExtendedKeyUsages: ExtendedKeyUsagesColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/certificates.go b/backend-go/internal/database/pg/gen/table/certificates.gonew file mode 100644index 0000000000..b535184327--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/certificates.go@@ -0,0 +1,186 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var Certificates = newCertificatesTable("public", "certificates", "")++type certificatesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ CaId postgres.ColumnString+ Status postgres.ColumnString+ SerialNumber postgres.ColumnString+ FriendlyName postgres.ColumnString+ CommonName postgres.ColumnString+ NotBefore postgres.ColumnTimestampz+ NotAfter postgres.ColumnTimestampz+ RevokedAt postgres.ColumnTimestampz+ RevocationReason postgres.ColumnInteger+ AltNames postgres.ColumnString+ CaCertId postgres.ColumnString+ CertificateTemplateId postgres.ColumnString+ KeyUsages postgres.ColumnStringArray+ ExtendedKeyUsages postgres.ColumnStringArray+ ProjectId postgres.ColumnString+ PkiSubscriberId postgres.ColumnString+ ProfileId postgres.ColumnString+ RenewBeforeDays postgres.ColumnInteger+ RenewedFromCertificateId postgres.ColumnString+ RenewedByCertificateId postgres.ColumnString+ RenewalError postgres.ColumnString+ KeyAlgorithm postgres.ColumnString+ SignatureAlgorithm postgres.ColumnString+ SubjectOrganization postgres.ColumnString+ SubjectOrganizationalUnit postgres.ColumnString+ SubjectCountry postgres.ColumnString+ SubjectState postgres.ColumnString+ SubjectLocality postgres.ColumnString+ FingerprintSha256 postgres.ColumnString+ FingerprintSha1 postgres.ColumnString+ IsCA postgres.ColumnBool+ PathLength postgres.ColumnInteger+ Source postgres.ColumnString+ DiscoveryMetadata postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type CertificatesTable struct {+ certificatesTable++ EXCLUDED certificatesTable+}++// AS creates new CertificatesTable with assigned alias+func (a CertificatesTable) AS(alias string) *CertificatesTable {+ return newCertificatesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new CertificatesTable with assigned schema name+func (a CertificatesTable) FromSchema(schemaName string) *CertificatesTable {+ return newCertificatesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new CertificatesTable with assigned table prefix+func (a CertificatesTable) WithPrefix(prefix string) *CertificatesTable {+ return newCertificatesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new CertificatesTable with assigned table suffix+func (a CertificatesTable) WithSuffix(suffix string) *CertificatesTable {+ return newCertificatesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newCertificatesTable(schemaName, tableName, alias string) *CertificatesTable {+ return &CertificatesTable{+ certificatesTable: newCertificatesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newCertificatesTableImpl("", "excluded", ""),+ }+}++func newCertificatesTableImpl(schemaName, tableName, alias string) certificatesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ CaIdColumn = postgres.StringColumn("caId")+ StatusColumn = postgres.StringColumn("status")+ SerialNumberColumn = postgres.StringColumn("serialNumber")+ FriendlyNameColumn = postgres.StringColumn("friendlyName")+ CommonNameColumn = postgres.StringColumn("commonName")+ NotBeforeColumn = postgres.TimestampzColumn("notBefore")+ NotAfterColumn = postgres.TimestampzColumn("notAfter")+ RevokedAtColumn = postgres.TimestampzColumn("revokedAt")+ RevocationReasonColumn = postgres.IntegerColumn("revocationReason")+ AltNamesColumn = postgres.StringColumn("altNames")+ CaCertIdColumn = postgres.StringColumn("caCertId")+ CertificateTemplateIdColumn = postgres.StringColumn("certificateTemplateId")+ KeyUsagesColumn = postgres.StringArrayColumn("keyUsages")+ ExtendedKeyUsagesColumn = postgres.StringArrayColumn("extendedKeyUsages")+ ProjectIdColumn = postgres.StringColumn("projectId")+ PkiSubscriberIdColumn = postgres.StringColumn("pkiSubscriberId")+ ProfileIdColumn = postgres.StringColumn("profileId")+ RenewBeforeDaysColumn = postgres.IntegerColumn("renewBeforeDays")+ RenewedFromCertificateIdColumn = postgres.StringColumn("renewedFromCertificateId")+ RenewedByCertificateIdColumn = postgres.StringColumn("renewedByCertificateId")+ RenewalErrorColumn = postgres.StringColumn("renewalError")+ KeyAlgorithmColumn = postgres.StringColumn("keyAlgorithm")+ SignatureAlgorithmColumn = postgres.StringColumn("signatureAlgorithm")+ SubjectOrganizationColumn = postgres.StringColumn("subjectOrganization")+ SubjectOrganizationalUnitColumn = postgres.StringColumn("subjectOrganizationalUnit")+ SubjectCountryColumn = postgres.StringColumn("subjectCountry")+ SubjectStateColumn = postgres.StringColumn("subjectState")+ SubjectLocalityColumn = postgres.StringColumn("subjectLocality")+ FingerprintSha256Column = postgres.StringColumn("fingerprintSha256")+ FingerprintSha1Column = postgres.StringColumn("fingerprintSha1")+ IsCAColumn = postgres.BoolColumn("isCA")+ PathLengthColumn = postgres.IntegerColumn("pathLength")+ SourceColumn = postgres.StringColumn("source")+ DiscoveryMetadataColumn = postgres.StringColumn("discoveryMetadata")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, CaIdColumn, StatusColumn, SerialNumberColumn, FriendlyNameColumn, CommonNameColumn, NotBeforeColumn, NotAfterColumn, RevokedAtColumn, RevocationReasonColumn, AltNamesColumn, CaCertIdColumn, CertificateTemplateIdColumn, KeyUsagesColumn, ExtendedKeyUsagesColumn, ProjectIdColumn, PkiSubscriberIdColumn, ProfileIdColumn, RenewBeforeDaysColumn, RenewedFromCertificateIdColumn, RenewedByCertificateIdColumn, RenewalErrorColumn, KeyAlgorithmColumn, SignatureAlgorithmColumn, SubjectOrganizationColumn, SubjectOrganizationalUnitColumn, SubjectCountryColumn, SubjectStateColumn, SubjectLocalityColumn, FingerprintSha256Column, FingerprintSha1Column, IsCAColumn, PathLengthColumn, SourceColumn, DiscoveryMetadataColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, CaIdColumn, StatusColumn, SerialNumberColumn, FriendlyNameColumn, CommonNameColumn, NotBeforeColumn, NotAfterColumn, RevokedAtColumn, RevocationReasonColumn, AltNamesColumn, CaCertIdColumn, CertificateTemplateIdColumn, KeyUsagesColumn, ExtendedKeyUsagesColumn, ProjectIdColumn, PkiSubscriberIdColumn, ProfileIdColumn, RenewBeforeDaysColumn, RenewedFromCertificateIdColumn, RenewedByCertificateIdColumn, RenewalErrorColumn, KeyAlgorithmColumn, SignatureAlgorithmColumn, SubjectOrganizationColumn, SubjectOrganizationalUnitColumn, SubjectCountryColumn, SubjectStateColumn, SubjectLocalityColumn, FingerprintSha256Column, FingerprintSha1Column, IsCAColumn, PathLengthColumn, SourceColumn, DiscoveryMetadataColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return certificatesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ CaId: CaIdColumn,+ Status: StatusColumn,+ SerialNumber: SerialNumberColumn,+ FriendlyName: FriendlyNameColumn,+ CommonName: CommonNameColumn,+ NotBefore: NotBeforeColumn,+ NotAfter: NotAfterColumn,+ RevokedAt: RevokedAtColumn,+ RevocationReason: RevocationReasonColumn,+ AltNames: AltNamesColumn,+ CaCertId: CaCertIdColumn,+ CertificateTemplateId: CertificateTemplateIdColumn,+ KeyUsages: KeyUsagesColumn,+ ExtendedKeyUsages: ExtendedKeyUsagesColumn,+ ProjectId: ProjectIdColumn,+ PkiSubscriberId: PkiSubscriberIdColumn,+ ProfileId: ProfileIdColumn,+ RenewBeforeDays: RenewBeforeDaysColumn,+ RenewedFromCertificateId: RenewedFromCertificateIdColumn,+ RenewedByCertificateId: RenewedByCertificateIdColumn,+ RenewalError: RenewalErrorColumn,+ KeyAlgorithm: KeyAlgorithmColumn,+ SignatureAlgorithm: SignatureAlgorithmColumn,+ SubjectOrganization: SubjectOrganizationColumn,+ SubjectOrganizationalUnit: SubjectOrganizationalUnitColumn,+ SubjectCountry: SubjectCountryColumn,+ SubjectState: SubjectStateColumn,+ SubjectLocality: SubjectLocalityColumn,+ FingerprintSha256: FingerprintSha256Column,+ FingerprintSha1: FingerprintSha1Column,+ IsCA: IsCAColumn,+ PathLength: PathLengthColumn,+ Source: SourceColumn,+ DiscoveryMetadata: DiscoveryMetadataColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/dynamic_secret_leases.go b/backend-go/internal/database/pg/gen/table/dynamic_secret_leases.gonew file mode 100644index 0000000000..aa7d131419--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/dynamic_secret_leases.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var DynamicSecretLeases = newDynamicSecretLeasesTable("public", "dynamic_secret_leases", "")++type dynamicSecretLeasesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Version postgres.ColumnInteger+ ExternalEntityId postgres.ColumnString+ ExpireAt postgres.ColumnTimestampz+ Status postgres.ColumnString+ StatusDetails postgres.ColumnString+ DynamicSecretId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ Config postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type DynamicSecretLeasesTable struct {+ dynamicSecretLeasesTable++ EXCLUDED dynamicSecretLeasesTable+}++// AS creates new DynamicSecretLeasesTable with assigned alias+func (a DynamicSecretLeasesTable) AS(alias string) *DynamicSecretLeasesTable {+ return newDynamicSecretLeasesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new DynamicSecretLeasesTable with assigned schema name+func (a DynamicSecretLeasesTable) FromSchema(schemaName string) *DynamicSecretLeasesTable {+ return newDynamicSecretLeasesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new DynamicSecretLeasesTable with assigned table prefix+func (a DynamicSecretLeasesTable) WithPrefix(prefix string) *DynamicSecretLeasesTable {+ return newDynamicSecretLeasesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new DynamicSecretLeasesTable with assigned table suffix+func (a DynamicSecretLeasesTable) WithSuffix(suffix string) *DynamicSecretLeasesTable {+ return newDynamicSecretLeasesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newDynamicSecretLeasesTable(schemaName, tableName, alias string) *DynamicSecretLeasesTable {+ return &DynamicSecretLeasesTable{+ dynamicSecretLeasesTable: newDynamicSecretLeasesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newDynamicSecretLeasesTableImpl("", "excluded", ""),+ }+}++func newDynamicSecretLeasesTableImpl(schemaName, tableName, alias string) dynamicSecretLeasesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ VersionColumn = postgres.IntegerColumn("version")+ ExternalEntityIdColumn = postgres.StringColumn("externalEntityId")+ ExpireAtColumn = postgres.TimestampzColumn("expireAt")+ StatusColumn = postgres.StringColumn("status")+ StatusDetailsColumn = postgres.StringColumn("statusDetails")+ DynamicSecretIdColumn = postgres.StringColumn("dynamicSecretId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ConfigColumn = postgres.StringColumn("config")+ allColumns = postgres.ColumnList{IDColumn, VersionColumn, ExternalEntityIdColumn, ExpireAtColumn, StatusColumn, StatusDetailsColumn, DynamicSecretIdColumn, CreatedAtColumn, UpdatedAtColumn, ConfigColumn}+ mutableColumns = postgres.ColumnList{VersionColumn, ExternalEntityIdColumn, ExpireAtColumn, StatusColumn, StatusDetailsColumn, DynamicSecretIdColumn, CreatedAtColumn, UpdatedAtColumn, ConfigColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return dynamicSecretLeasesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Version: VersionColumn,+ ExternalEntityId: ExternalEntityIdColumn,+ ExpireAt: ExpireAtColumn,+ Status: StatusColumn,+ StatusDetails: StatusDetailsColumn,+ DynamicSecretId: DynamicSecretIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ Config: ConfigColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/dynamic_secrets.go b/backend-go/internal/database/pg/gen/table/dynamic_secrets.gonew file mode 100644index 0000000000..875e6779de--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/dynamic_secrets.go@@ -0,0 +1,138 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var DynamicSecrets = newDynamicSecretsTable("public", "dynamic_secrets", "")++type dynamicSecretsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Version postgres.ColumnInteger+ Type postgres.ColumnString+ DefaultTTL postgres.ColumnString+ MaxTTL postgres.ColumnString+ InputIV postgres.ColumnString+ InputCiphertext postgres.ColumnString+ InputTag postgres.ColumnString+ Algorithm postgres.ColumnString+ KeyEncoding postgres.ColumnString+ FolderId postgres.ColumnString+ Status postgres.ColumnString+ StatusDetails postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ EncryptedInput postgres.ColumnBytea+ ProjectGatewayId postgres.ColumnString+ GatewayId postgres.ColumnString+ UsernameTemplate postgres.ColumnString+ GatewayV2Id postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type DynamicSecretsTable struct {+ dynamicSecretsTable++ EXCLUDED dynamicSecretsTable+}++// AS creates new DynamicSecretsTable with assigned alias+func (a DynamicSecretsTable) AS(alias string) *DynamicSecretsTable {+ return newDynamicSecretsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new DynamicSecretsTable with assigned schema name+func (a DynamicSecretsTable) FromSchema(schemaName string) *DynamicSecretsTable {+ return newDynamicSecretsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new DynamicSecretsTable with assigned table prefix+func (a DynamicSecretsTable) WithPrefix(prefix string) *DynamicSecretsTable {+ return newDynamicSecretsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new DynamicSecretsTable with assigned table suffix+func (a DynamicSecretsTable) WithSuffix(suffix string) *DynamicSecretsTable {+ return newDynamicSecretsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newDynamicSecretsTable(schemaName, tableName, alias string) *DynamicSecretsTable {+ return &DynamicSecretsTable{+ dynamicSecretsTable: newDynamicSecretsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newDynamicSecretsTableImpl("", "excluded", ""),+ }+}++func newDynamicSecretsTableImpl(schemaName, tableName, alias string) dynamicSecretsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ VersionColumn = postgres.IntegerColumn("version")+ TypeColumn = postgres.StringColumn("type")+ DefaultTTLColumn = postgres.StringColumn("defaultTTL")+ MaxTTLColumn = postgres.StringColumn("maxTTL")+ InputIVColumn = postgres.StringColumn("inputIV")+ InputCiphertextColumn = postgres.StringColumn("inputCiphertext")+ InputTagColumn = postgres.StringColumn("inputTag")+ AlgorithmColumn = postgres.StringColumn("algorithm")+ KeyEncodingColumn = postgres.StringColumn("keyEncoding")+ FolderIdColumn = postgres.StringColumn("folderId")+ StatusColumn = postgres.StringColumn("status")+ StatusDetailsColumn = postgres.StringColumn("statusDetails")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ EncryptedInputColumn = postgres.ByteaColumn("encryptedInput")+ ProjectGatewayIdColumn = postgres.StringColumn("projectGatewayId")+ GatewayIdColumn = postgres.StringColumn("gatewayId")+ UsernameTemplateColumn = postgres.StringColumn("usernameTemplate")+ GatewayV2IdColumn = postgres.StringColumn("gatewayV2Id")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, VersionColumn, TypeColumn, DefaultTTLColumn, MaxTTLColumn, InputIVColumn, InputCiphertextColumn, InputTagColumn, AlgorithmColumn, KeyEncodingColumn, FolderIdColumn, StatusColumn, StatusDetailsColumn, CreatedAtColumn, UpdatedAtColumn, EncryptedInputColumn, ProjectGatewayIdColumn, GatewayIdColumn, UsernameTemplateColumn, GatewayV2IdColumn}+ mutableColumns = postgres.ColumnList{NameColumn, VersionColumn, TypeColumn, DefaultTTLColumn, MaxTTLColumn, InputIVColumn, InputCiphertextColumn, InputTagColumn, AlgorithmColumn, KeyEncodingColumn, FolderIdColumn, StatusColumn, StatusDetailsColumn, CreatedAtColumn, UpdatedAtColumn, EncryptedInputColumn, ProjectGatewayIdColumn, GatewayIdColumn, UsernameTemplateColumn, GatewayV2IdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AlgorithmColumn, KeyEncodingColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return dynamicSecretsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Version: VersionColumn,+ Type: TypeColumn,+ DefaultTTL: DefaultTTLColumn,+ MaxTTL: MaxTTLColumn,+ InputIV: InputIVColumn,+ InputCiphertext: InputCiphertextColumn,+ InputTag: InputTagColumn,+ Algorithm: AlgorithmColumn,+ KeyEncoding: KeyEncodingColumn,+ FolderId: FolderIdColumn,+ Status: StatusColumn,+ StatusDetails: StatusDetailsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ EncryptedInput: EncryptedInputColumn,+ ProjectGatewayId: ProjectGatewayIdColumn,+ GatewayId: GatewayIdColumn,+ UsernameTemplate: UsernameTemplateColumn,+ GatewayV2Id: GatewayV2IdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/external_certificate_authorities.go b/backend-go/internal/database/pg/gen/table/external_certificate_authorities.gonew file mode 100644index 0000000000..3f6bdf5e92--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/external_certificate_authorities.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ExternalCertificateAuthorities = newExternalCertificateAuthoritiesTable("public", "external_certificate_authorities", "")++type externalCertificateAuthoritiesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Type postgres.ColumnString+ AppConnectionId postgres.ColumnString+ DnsAppConnectionId postgres.ColumnString+ CaId postgres.ColumnString+ Credentials postgres.ColumnBytea+ Configuration postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ExternalCertificateAuthoritiesTable struct {+ externalCertificateAuthoritiesTable++ EXCLUDED externalCertificateAuthoritiesTable+}++// AS creates new ExternalCertificateAuthoritiesTable with assigned alias+func (a ExternalCertificateAuthoritiesTable) AS(alias string) *ExternalCertificateAuthoritiesTable {+ return newExternalCertificateAuthoritiesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ExternalCertificateAuthoritiesTable with assigned schema name+func (a ExternalCertificateAuthoritiesTable) FromSchema(schemaName string) *ExternalCertificateAuthoritiesTable {+ return newExternalCertificateAuthoritiesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ExternalCertificateAuthoritiesTable with assigned table prefix+func (a ExternalCertificateAuthoritiesTable) WithPrefix(prefix string) *ExternalCertificateAuthoritiesTable {+ return newExternalCertificateAuthoritiesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ExternalCertificateAuthoritiesTable with assigned table suffix+func (a ExternalCertificateAuthoritiesTable) WithSuffix(suffix string) *ExternalCertificateAuthoritiesTable {+ return newExternalCertificateAuthoritiesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newExternalCertificateAuthoritiesTable(schemaName, tableName, alias string) *ExternalCertificateAuthoritiesTable {+ return &ExternalCertificateAuthoritiesTable{+ externalCertificateAuthoritiesTable: newExternalCertificateAuthoritiesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newExternalCertificateAuthoritiesTableImpl("", "excluded", ""),+ }+}++func newExternalCertificateAuthoritiesTableImpl(schemaName, tableName, alias string) externalCertificateAuthoritiesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ TypeColumn = postgres.StringColumn("type")+ AppConnectionIdColumn = postgres.StringColumn("appConnectionId")+ DnsAppConnectionIdColumn = postgres.StringColumn("dnsAppConnectionId")+ CaIdColumn = postgres.StringColumn("caId")+ CredentialsColumn = postgres.ByteaColumn("credentials")+ ConfigurationColumn = postgres.StringColumn("configuration")+ allColumns = postgres.ColumnList{IDColumn, TypeColumn, AppConnectionIdColumn, DnsAppConnectionIdColumn, CaIdColumn, CredentialsColumn, ConfigurationColumn}+ mutableColumns = postgres.ColumnList{TypeColumn, AppConnectionIdColumn, DnsAppConnectionIdColumn, CaIdColumn, CredentialsColumn, ConfigurationColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return externalCertificateAuthoritiesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Type: TypeColumn,+ AppConnectionId: AppConnectionIdColumn,+ DnsAppConnectionId: DnsAppConnectionIdColumn,+ CaId: CaIdColumn,+ Credentials: CredentialsColumn,+ Configuration: ConfigurationColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/external_group_org_role_mappings.go b/backend-go/internal/database/pg/gen/table/external_group_org_role_mappings.gonew file mode 100644index 0000000000..d9f5db23da--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/external_group_org_role_mappings.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ExternalGroupOrgRoleMappings = newExternalGroupOrgRoleMappingsTable("public", "external_group_org_role_mappings", "")++type externalGroupOrgRoleMappingsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ GroupName postgres.ColumnString+ Role postgres.ColumnString+ RoleId postgres.ColumnString+ OrgId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ExternalGroupOrgRoleMappingsTable struct {+ externalGroupOrgRoleMappingsTable++ EXCLUDED externalGroupOrgRoleMappingsTable+}++// AS creates new ExternalGroupOrgRoleMappingsTable with assigned alias+func (a ExternalGroupOrgRoleMappingsTable) AS(alias string) *ExternalGroupOrgRoleMappingsTable {+ return newExternalGroupOrgRoleMappingsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ExternalGroupOrgRoleMappingsTable with assigned schema name+func (a ExternalGroupOrgRoleMappingsTable) FromSchema(schemaName string) *ExternalGroupOrgRoleMappingsTable {+ return newExternalGroupOrgRoleMappingsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ExternalGroupOrgRoleMappingsTable with assigned table prefix+func (a ExternalGroupOrgRoleMappingsTable) WithPrefix(prefix string) *ExternalGroupOrgRoleMappingsTable {+ return newExternalGroupOrgRoleMappingsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ExternalGroupOrgRoleMappingsTable with assigned table suffix+func (a ExternalGroupOrgRoleMappingsTable) WithSuffix(suffix string) *ExternalGroupOrgRoleMappingsTable {+ return newExternalGroupOrgRoleMappingsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newExternalGroupOrgRoleMappingsTable(schemaName, tableName, alias string) *ExternalGroupOrgRoleMappingsTable {+ return &ExternalGroupOrgRoleMappingsTable{+ externalGroupOrgRoleMappingsTable: newExternalGroupOrgRoleMappingsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newExternalGroupOrgRoleMappingsTableImpl("", "excluded", ""),+ }+}++func newExternalGroupOrgRoleMappingsTableImpl(schemaName, tableName, alias string) externalGroupOrgRoleMappingsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ GroupNameColumn = postgres.StringColumn("groupName")+ RoleColumn = postgres.StringColumn("role")+ RoleIdColumn = postgres.StringColumn("roleId")+ OrgIdColumn = postgres.StringColumn("orgId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, GroupNameColumn, RoleColumn, RoleIdColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{GroupNameColumn, RoleColumn, RoleIdColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return externalGroupOrgRoleMappingsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ GroupName: GroupNameColumn,+ Role: RoleColumn,+ RoleId: RoleIdColumn,+ OrgId: OrgIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/external_kms.go b/backend-go/internal/database/pg/gen/table/external_kms.gonew file mode 100644index 0000000000..b17bfe551a--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/external_kms.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ExternalKms = newExternalKmsTable("public", "external_kms", "")++type externalKmsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Provider postgres.ColumnString+ EncryptedProviderInputs postgres.ColumnBytea+ Status postgres.ColumnString+ StatusDetails postgres.ColumnString+ KmsKeyId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ExternalKmsTable struct {+ externalKmsTable++ EXCLUDED externalKmsTable+}++// AS creates new ExternalKmsTable with assigned alias+func (a ExternalKmsTable) AS(alias string) *ExternalKmsTable {+ return newExternalKmsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ExternalKmsTable with assigned schema name+func (a ExternalKmsTable) FromSchema(schemaName string) *ExternalKmsTable {+ return newExternalKmsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ExternalKmsTable with assigned table prefix+func (a ExternalKmsTable) WithPrefix(prefix string) *ExternalKmsTable {+ return newExternalKmsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ExternalKmsTable with assigned table suffix+func (a ExternalKmsTable) WithSuffix(suffix string) *ExternalKmsTable {+ return newExternalKmsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newExternalKmsTable(schemaName, tableName, alias string) *ExternalKmsTable {+ return &ExternalKmsTable{+ externalKmsTable: newExternalKmsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newExternalKmsTableImpl("", "excluded", ""),+ }+}++func newExternalKmsTableImpl(schemaName, tableName, alias string) externalKmsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProviderColumn = postgres.StringColumn("provider")+ EncryptedProviderInputsColumn = postgres.ByteaColumn("encryptedProviderInputs")+ StatusColumn = postgres.StringColumn("status")+ StatusDetailsColumn = postgres.StringColumn("statusDetails")+ KmsKeyIdColumn = postgres.StringColumn("kmsKeyId")+ allColumns = postgres.ColumnList{IDColumn, ProviderColumn, EncryptedProviderInputsColumn, StatusColumn, StatusDetailsColumn, KmsKeyIdColumn}+ mutableColumns = postgres.ColumnList{ProviderColumn, EncryptedProviderInputsColumn, StatusColumn, StatusDetailsColumn, KmsKeyIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return externalKmsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Provider: ProviderColumn,+ EncryptedProviderInputs: EncryptedProviderInputsColumn,+ Status: StatusColumn,+ StatusDetails: StatusDetailsColumn,+ KmsKeyId: KmsKeyIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/folder_checkpoint_resources.go b/backend-go/internal/database/pg/gen/table/folder_checkpoint_resources.gonew file mode 100644index 0000000000..3cc07ef39e--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/folder_checkpoint_resources.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var FolderCheckpointResources = newFolderCheckpointResourcesTable("public", "folder_checkpoint_resources", "")++type folderCheckpointResourcesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ FolderCheckpointId postgres.ColumnString+ SecretVersionId postgres.ColumnString+ FolderVersionId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type FolderCheckpointResourcesTable struct {+ folderCheckpointResourcesTable++ EXCLUDED folderCheckpointResourcesTable+}++// AS creates new FolderCheckpointResourcesTable with assigned alias+func (a FolderCheckpointResourcesTable) AS(alias string) *FolderCheckpointResourcesTable {+ return newFolderCheckpointResourcesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new FolderCheckpointResourcesTable with assigned schema name+func (a FolderCheckpointResourcesTable) FromSchema(schemaName string) *FolderCheckpointResourcesTable {+ return newFolderCheckpointResourcesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new FolderCheckpointResourcesTable with assigned table prefix+func (a FolderCheckpointResourcesTable) WithPrefix(prefix string) *FolderCheckpointResourcesTable {+ return newFolderCheckpointResourcesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new FolderCheckpointResourcesTable with assigned table suffix+func (a FolderCheckpointResourcesTable) WithSuffix(suffix string) *FolderCheckpointResourcesTable {+ return newFolderCheckpointResourcesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newFolderCheckpointResourcesTable(schemaName, tableName, alias string) *FolderCheckpointResourcesTable {+ return &FolderCheckpointResourcesTable{+ folderCheckpointResourcesTable: newFolderCheckpointResourcesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newFolderCheckpointResourcesTableImpl("", "excluded", ""),+ }+}++func newFolderCheckpointResourcesTableImpl(schemaName, tableName, alias string) folderCheckpointResourcesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ FolderCheckpointIdColumn = postgres.StringColumn("folderCheckpointId")+ SecretVersionIdColumn = postgres.StringColumn("secretVersionId")+ FolderVersionIdColumn = postgres.StringColumn("folderVersionId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, FolderCheckpointIdColumn, SecretVersionIdColumn, FolderVersionIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{FolderCheckpointIdColumn, SecretVersionIdColumn, FolderVersionIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return folderCheckpointResourcesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ FolderCheckpointId: FolderCheckpointIdColumn,+ SecretVersionId: SecretVersionIdColumn,+ FolderVersionId: FolderVersionIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/folder_checkpoints.go b/backend-go/internal/database/pg/gen/table/folder_checkpoints.gonew file mode 100644index 0000000000..39bdd128ff--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/folder_checkpoints.go@@ -0,0 +1,87 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var FolderCheckpoints = newFolderCheckpointsTable("public", "folder_checkpoints", "")++type folderCheckpointsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ FolderCommitId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type FolderCheckpointsTable struct {+ folderCheckpointsTable++ EXCLUDED folderCheckpointsTable+}++// AS creates new FolderCheckpointsTable with assigned alias+func (a FolderCheckpointsTable) AS(alias string) *FolderCheckpointsTable {+ return newFolderCheckpointsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new FolderCheckpointsTable with assigned schema name+func (a FolderCheckpointsTable) FromSchema(schemaName string) *FolderCheckpointsTable {+ return newFolderCheckpointsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new FolderCheckpointsTable with assigned table prefix+func (a FolderCheckpointsTable) WithPrefix(prefix string) *FolderCheckpointsTable {+ return newFolderCheckpointsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new FolderCheckpointsTable with assigned table suffix+func (a FolderCheckpointsTable) WithSuffix(suffix string) *FolderCheckpointsTable {+ return newFolderCheckpointsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newFolderCheckpointsTable(schemaName, tableName, alias string) *FolderCheckpointsTable {+ return &FolderCheckpointsTable{+ folderCheckpointsTable: newFolderCheckpointsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newFolderCheckpointsTableImpl("", "excluded", ""),+ }+}++func newFolderCheckpointsTableImpl(schemaName, tableName, alias string) folderCheckpointsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ FolderCommitIdColumn = postgres.StringColumn("folderCommitId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, FolderCommitIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{FolderCommitIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return folderCheckpointsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ FolderCommitId: FolderCommitIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/folder_commit_changes.go b/backend-go/internal/database/pg/gen/table/folder_commit_changes.gonew file mode 100644index 0000000000..e70f5ee950--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/folder_commit_changes.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var FolderCommitChanges = newFolderCommitChangesTable("public", "folder_commit_changes", "")++type folderCommitChangesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ FolderCommitId postgres.ColumnString+ ChangeType postgres.ColumnString+ IsUpdate postgres.ColumnBool+ SecretVersionId postgres.ColumnString+ FolderVersionId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type FolderCommitChangesTable struct {+ folderCommitChangesTable++ EXCLUDED folderCommitChangesTable+}++// AS creates new FolderCommitChangesTable with assigned alias+func (a FolderCommitChangesTable) AS(alias string) *FolderCommitChangesTable {+ return newFolderCommitChangesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new FolderCommitChangesTable with assigned schema name+func (a FolderCommitChangesTable) FromSchema(schemaName string) *FolderCommitChangesTable {+ return newFolderCommitChangesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new FolderCommitChangesTable with assigned table prefix+func (a FolderCommitChangesTable) WithPrefix(prefix string) *FolderCommitChangesTable {+ return newFolderCommitChangesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new FolderCommitChangesTable with assigned table suffix+func (a FolderCommitChangesTable) WithSuffix(suffix string) *FolderCommitChangesTable {+ return newFolderCommitChangesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newFolderCommitChangesTable(schemaName, tableName, alias string) *FolderCommitChangesTable {+ return &FolderCommitChangesTable{+ folderCommitChangesTable: newFolderCommitChangesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newFolderCommitChangesTableImpl("", "excluded", ""),+ }+}++func newFolderCommitChangesTableImpl(schemaName, tableName, alias string) folderCommitChangesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ FolderCommitIdColumn = postgres.StringColumn("folderCommitId")+ ChangeTypeColumn = postgres.StringColumn("changeType")+ IsUpdateColumn = postgres.BoolColumn("isUpdate")+ SecretVersionIdColumn = postgres.StringColumn("secretVersionId")+ FolderVersionIdColumn = postgres.StringColumn("folderVersionId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, FolderCommitIdColumn, ChangeTypeColumn, IsUpdateColumn, SecretVersionIdColumn, FolderVersionIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{FolderCommitIdColumn, ChangeTypeColumn, IsUpdateColumn, SecretVersionIdColumn, FolderVersionIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsUpdateColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return folderCommitChangesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ FolderCommitId: FolderCommitIdColumn,+ ChangeType: ChangeTypeColumn,+ IsUpdate: IsUpdateColumn,+ SecretVersionId: SecretVersionIdColumn,+ FolderVersionId: FolderVersionIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/folder_commits.go b/backend-go/internal/database/pg/gen/table/folder_commits.gonew file mode 100644index 0000000000..1b810a1a94--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/folder_commits.go@@ -0,0 +1,102 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var FolderCommits = newFolderCommitsTable("public", "folder_commits", "")++type folderCommitsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CommitId postgres.ColumnInteger+ ActorMetadata postgres.ColumnString+ ActorType postgres.ColumnString+ Message postgres.ColumnString+ FolderId postgres.ColumnString+ EnvId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type FolderCommitsTable struct {+ folderCommitsTable++ EXCLUDED folderCommitsTable+}++// AS creates new FolderCommitsTable with assigned alias+func (a FolderCommitsTable) AS(alias string) *FolderCommitsTable {+ return newFolderCommitsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new FolderCommitsTable with assigned schema name+func (a FolderCommitsTable) FromSchema(schemaName string) *FolderCommitsTable {+ return newFolderCommitsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new FolderCommitsTable with assigned table prefix+func (a FolderCommitsTable) WithPrefix(prefix string) *FolderCommitsTable {+ return newFolderCommitsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new FolderCommitsTable with assigned table suffix+func (a FolderCommitsTable) WithSuffix(suffix string) *FolderCommitsTable {+ return newFolderCommitsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newFolderCommitsTable(schemaName, tableName, alias string) *FolderCommitsTable {+ return &FolderCommitsTable{+ folderCommitsTable: newFolderCommitsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newFolderCommitsTableImpl("", "excluded", ""),+ }+}++func newFolderCommitsTableImpl(schemaName, tableName, alias string) folderCommitsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CommitIdColumn = postgres.IntegerColumn("commitId")+ ActorMetadataColumn = postgres.StringColumn("actorMetadata")+ ActorTypeColumn = postgres.StringColumn("actorType")+ MessageColumn = postgres.StringColumn("message")+ FolderIdColumn = postgres.StringColumn("folderId")+ EnvIdColumn = postgres.StringColumn("envId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, CommitIdColumn, ActorMetadataColumn, ActorTypeColumn, MessageColumn, FolderIdColumn, EnvIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{CommitIdColumn, ActorMetadataColumn, ActorTypeColumn, MessageColumn, FolderIdColumn, EnvIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CommitIdColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return folderCommitsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CommitId: CommitIdColumn,+ ActorMetadata: ActorMetadataColumn,+ ActorType: ActorTypeColumn,+ Message: MessageColumn,+ FolderId: FolderIdColumn,+ EnvId: EnvIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/folder_tree_checkpoint_resources.go b/backend-go/internal/database/pg/gen/table/folder_tree_checkpoint_resources.gonew file mode 100644index 0000000000..41f7f57a9e--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/folder_tree_checkpoint_resources.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var FolderTreeCheckpointResources = newFolderTreeCheckpointResourcesTable("public", "folder_tree_checkpoint_resources", "")++type folderTreeCheckpointResourcesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ FolderTreeCheckpointId postgres.ColumnString+ FolderId postgres.ColumnString+ FolderCommitId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type FolderTreeCheckpointResourcesTable struct {+ folderTreeCheckpointResourcesTable++ EXCLUDED folderTreeCheckpointResourcesTable+}++// AS creates new FolderTreeCheckpointResourcesTable with assigned alias+func (a FolderTreeCheckpointResourcesTable) AS(alias string) *FolderTreeCheckpointResourcesTable {+ return newFolderTreeCheckpointResourcesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new FolderTreeCheckpointResourcesTable with assigned schema name+func (a FolderTreeCheckpointResourcesTable) FromSchema(schemaName string) *FolderTreeCheckpointResourcesTable {+ return newFolderTreeCheckpointResourcesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new FolderTreeCheckpointResourcesTable with assigned table prefix+func (a FolderTreeCheckpointResourcesTable) WithPrefix(prefix string) *FolderTreeCheckpointResourcesTable {+ return newFolderTreeCheckpointResourcesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new FolderTreeCheckpointResourcesTable with assigned table suffix+func (a FolderTreeCheckpointResourcesTable) WithSuffix(suffix string) *FolderTreeCheckpointResourcesTable {+ return newFolderTreeCheckpointResourcesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newFolderTreeCheckpointResourcesTable(schemaName, tableName, alias string) *FolderTreeCheckpointResourcesTable {+ return &FolderTreeCheckpointResourcesTable{+ folderTreeCheckpointResourcesTable: newFolderTreeCheckpointResourcesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newFolderTreeCheckpointResourcesTableImpl("", "excluded", ""),+ }+}++func newFolderTreeCheckpointResourcesTableImpl(schemaName, tableName, alias string) folderTreeCheckpointResourcesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ FolderTreeCheckpointIdColumn = postgres.StringColumn("folderTreeCheckpointId")+ FolderIdColumn = postgres.StringColumn("folderId")+ FolderCommitIdColumn = postgres.StringColumn("folderCommitId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, FolderTreeCheckpointIdColumn, FolderIdColumn, FolderCommitIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{FolderTreeCheckpointIdColumn, FolderIdColumn, FolderCommitIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return folderTreeCheckpointResourcesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ FolderTreeCheckpointId: FolderTreeCheckpointIdColumn,+ FolderId: FolderIdColumn,+ FolderCommitId: FolderCommitIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/folder_tree_checkpoints.go b/backend-go/internal/database/pg/gen/table/folder_tree_checkpoints.gonew file mode 100644index 0000000000..757f30e76f--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/folder_tree_checkpoints.go@@ -0,0 +1,87 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var FolderTreeCheckpoints = newFolderTreeCheckpointsTable("public", "folder_tree_checkpoints", "")++type folderTreeCheckpointsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ FolderCommitId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type FolderTreeCheckpointsTable struct {+ folderTreeCheckpointsTable++ EXCLUDED folderTreeCheckpointsTable+}++// AS creates new FolderTreeCheckpointsTable with assigned alias+func (a FolderTreeCheckpointsTable) AS(alias string) *FolderTreeCheckpointsTable {+ return newFolderTreeCheckpointsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new FolderTreeCheckpointsTable with assigned schema name+func (a FolderTreeCheckpointsTable) FromSchema(schemaName string) *FolderTreeCheckpointsTable {+ return newFolderTreeCheckpointsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new FolderTreeCheckpointsTable with assigned table prefix+func (a FolderTreeCheckpointsTable) WithPrefix(prefix string) *FolderTreeCheckpointsTable {+ return newFolderTreeCheckpointsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new FolderTreeCheckpointsTable with assigned table suffix+func (a FolderTreeCheckpointsTable) WithSuffix(suffix string) *FolderTreeCheckpointsTable {+ return newFolderTreeCheckpointsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newFolderTreeCheckpointsTable(schemaName, tableName, alias string) *FolderTreeCheckpointsTable {+ return &FolderTreeCheckpointsTable{+ folderTreeCheckpointsTable: newFolderTreeCheckpointsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newFolderTreeCheckpointsTableImpl("", "excluded", ""),+ }+}++func newFolderTreeCheckpointsTableImpl(schemaName, tableName, alias string) folderTreeCheckpointsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ FolderCommitIdColumn = postgres.StringColumn("folderCommitId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, FolderCommitIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{FolderCommitIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return folderTreeCheckpointsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ FolderCommitId: FolderCommitIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/gateways.go b/backend-go/internal/database/pg/gen/table/gateways.gonew file mode 100644index 0000000000..768e408035--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/gateways.go@@ -0,0 +1,111 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var Gateways = newGatewaysTable("public", "gateways", "")++type gatewaysTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ SerialNumber postgres.ColumnString+ KeyAlgorithm postgres.ColumnString+ IssuedAt postgres.ColumnTimestampz+ Expiration postgres.ColumnTimestampz+ Heartbeat postgres.ColumnTimestampz+ RelayAddress postgres.ColumnBytea+ OrgGatewayRootCaId postgres.ColumnString+ IdentityId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type GatewaysTable struct {+ gatewaysTable++ EXCLUDED gatewaysTable+}++// AS creates new GatewaysTable with assigned alias+func (a GatewaysTable) AS(alias string) *GatewaysTable {+ return newGatewaysTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new GatewaysTable with assigned schema name+func (a GatewaysTable) FromSchema(schemaName string) *GatewaysTable {+ return newGatewaysTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new GatewaysTable with assigned table prefix+func (a GatewaysTable) WithPrefix(prefix string) *GatewaysTable {+ return newGatewaysTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new GatewaysTable with assigned table suffix+func (a GatewaysTable) WithSuffix(suffix string) *GatewaysTable {+ return newGatewaysTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newGatewaysTable(schemaName, tableName, alias string) *GatewaysTable {+ return &GatewaysTable{+ gatewaysTable: newGatewaysTableImpl(schemaName, tableName, alias),+ EXCLUDED: newGatewaysTableImpl("", "excluded", ""),+ }+}++func newGatewaysTableImpl(schemaName, tableName, alias string) gatewaysTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ SerialNumberColumn = postgres.StringColumn("serialNumber")+ KeyAlgorithmColumn = postgres.StringColumn("keyAlgorithm")+ IssuedAtColumn = postgres.TimestampzColumn("issuedAt")+ ExpirationColumn = postgres.TimestampzColumn("expiration")+ HeartbeatColumn = postgres.TimestampzColumn("heartbeat")+ RelayAddressColumn = postgres.ByteaColumn("relayAddress")+ OrgGatewayRootCaIdColumn = postgres.StringColumn("orgGatewayRootCaId")+ IdentityIdColumn = postgres.StringColumn("identityId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, SerialNumberColumn, KeyAlgorithmColumn, IssuedAtColumn, ExpirationColumn, HeartbeatColumn, RelayAddressColumn, OrgGatewayRootCaIdColumn, IdentityIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{NameColumn, SerialNumberColumn, KeyAlgorithmColumn, IssuedAtColumn, ExpirationColumn, HeartbeatColumn, RelayAddressColumn, OrgGatewayRootCaIdColumn, IdentityIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return gatewaysTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ SerialNumber: SerialNumberColumn,+ KeyAlgorithm: KeyAlgorithmColumn,+ IssuedAt: IssuedAtColumn,+ Expiration: ExpirationColumn,+ Heartbeat: HeartbeatColumn,+ RelayAddress: RelayAddressColumn,+ OrgGatewayRootCaId: OrgGatewayRootCaIdColumn,+ IdentityId: IdentityIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/gateways_v2.go b/backend-go/internal/database/pg/gen/table/gateways_v2.gonew file mode 100644index 0000000000..1bdbc902d5--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/gateways_v2.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var GatewaysV2 = newGatewaysV2Table("public", "gateways_v2", "")++type gatewaysV2Table struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ OrgId postgres.ColumnString+ IdentityId postgres.ColumnString+ RelayId postgres.ColumnString+ Name postgres.ColumnString+ Heartbeat postgres.ColumnTimestampz+ EncryptedPamSessionKey postgres.ColumnBytea+ HealthAlertedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type GatewaysV2Table struct {+ gatewaysV2Table++ EXCLUDED gatewaysV2Table+}++// AS creates new GatewaysV2Table with assigned alias+func (a GatewaysV2Table) AS(alias string) *GatewaysV2Table {+ return newGatewaysV2Table(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new GatewaysV2Table with assigned schema name+func (a GatewaysV2Table) FromSchema(schemaName string) *GatewaysV2Table {+ return newGatewaysV2Table(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new GatewaysV2Table with assigned table prefix+func (a GatewaysV2Table) WithPrefix(prefix string) *GatewaysV2Table {+ return newGatewaysV2Table(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new GatewaysV2Table with assigned table suffix+func (a GatewaysV2Table) WithSuffix(suffix string) *GatewaysV2Table {+ return newGatewaysV2Table(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newGatewaysV2Table(schemaName, tableName, alias string) *GatewaysV2Table {+ return &GatewaysV2Table{+ gatewaysV2Table: newGatewaysV2TableImpl(schemaName, tableName, alias),+ EXCLUDED: newGatewaysV2TableImpl("", "excluded", ""),+ }+}++func newGatewaysV2TableImpl(schemaName, tableName, alias string) gatewaysV2Table {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ OrgIdColumn = postgres.StringColumn("orgId")+ IdentityIdColumn = postgres.StringColumn("identityId")+ RelayIdColumn = postgres.StringColumn("relayId")+ NameColumn = postgres.StringColumn("name")+ HeartbeatColumn = postgres.TimestampzColumn("heartbeat")+ EncryptedPamSessionKeyColumn = postgres.ByteaColumn("encryptedPamSessionKey")+ HealthAlertedAtColumn = postgres.TimestampzColumn("healthAlertedAt")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, OrgIdColumn, IdentityIdColumn, RelayIdColumn, NameColumn, HeartbeatColumn, EncryptedPamSessionKeyColumn, HealthAlertedAtColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, OrgIdColumn, IdentityIdColumn, RelayIdColumn, NameColumn, HeartbeatColumn, EncryptedPamSessionKeyColumn, HealthAlertedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return gatewaysV2Table{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ OrgId: OrgIdColumn,+ IdentityId: IdentityIdColumn,+ RelayId: RelayIdColumn,+ Name: NameColumn,+ Heartbeat: HeartbeatColumn,+ EncryptedPamSessionKey: EncryptedPamSessionKeyColumn,+ HealthAlertedAt: HealthAlertedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/git_app_install_sessions.go b/backend-go/internal/database/pg/gen/table/git_app_install_sessions.gonew file mode 100644index 0000000000..b44b2091c4--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/git_app_install_sessions.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var GitAppInstallSessions = newGitAppInstallSessionsTable("public", "git_app_install_sessions", "")++type gitAppInstallSessionsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ SessionId postgres.ColumnString+ UserId postgres.ColumnString+ OrgId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type GitAppInstallSessionsTable struct {+ gitAppInstallSessionsTable++ EXCLUDED gitAppInstallSessionsTable+}++// AS creates new GitAppInstallSessionsTable with assigned alias+func (a GitAppInstallSessionsTable) AS(alias string) *GitAppInstallSessionsTable {+ return newGitAppInstallSessionsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new GitAppInstallSessionsTable with assigned schema name+func (a GitAppInstallSessionsTable) FromSchema(schemaName string) *GitAppInstallSessionsTable {+ return newGitAppInstallSessionsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new GitAppInstallSessionsTable with assigned table prefix+func (a GitAppInstallSessionsTable) WithPrefix(prefix string) *GitAppInstallSessionsTable {+ return newGitAppInstallSessionsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new GitAppInstallSessionsTable with assigned table suffix+func (a GitAppInstallSessionsTable) WithSuffix(suffix string) *GitAppInstallSessionsTable {+ return newGitAppInstallSessionsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newGitAppInstallSessionsTable(schemaName, tableName, alias string) *GitAppInstallSessionsTable {+ return &GitAppInstallSessionsTable{+ gitAppInstallSessionsTable: newGitAppInstallSessionsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newGitAppInstallSessionsTableImpl("", "excluded", ""),+ }+}++func newGitAppInstallSessionsTableImpl(schemaName, tableName, alias string) gitAppInstallSessionsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ SessionIdColumn = postgres.StringColumn("sessionId")+ UserIdColumn = postgres.StringColumn("userId")+ OrgIdColumn = postgres.StringColumn("orgId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, SessionIdColumn, UserIdColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{SessionIdColumn, UserIdColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return gitAppInstallSessionsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ SessionId: SessionIdColumn,+ UserId: UserIdColumn,+ OrgId: OrgIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/git_app_org.go b/backend-go/internal/database/pg/gen/table/git_app_org.gonew file mode 100644index 0000000000..26fe045596--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/git_app_org.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var GitAppOrg = newGitAppOrgTable("public", "git_app_org", "")++type gitAppOrgTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ InstallationId postgres.ColumnString+ UserId postgres.ColumnString+ OrgId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type GitAppOrgTable struct {+ gitAppOrgTable++ EXCLUDED gitAppOrgTable+}++// AS creates new GitAppOrgTable with assigned alias+func (a GitAppOrgTable) AS(alias string) *GitAppOrgTable {+ return newGitAppOrgTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new GitAppOrgTable with assigned schema name+func (a GitAppOrgTable) FromSchema(schemaName string) *GitAppOrgTable {+ return newGitAppOrgTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new GitAppOrgTable with assigned table prefix+func (a GitAppOrgTable) WithPrefix(prefix string) *GitAppOrgTable {+ return newGitAppOrgTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new GitAppOrgTable with assigned table suffix+func (a GitAppOrgTable) WithSuffix(suffix string) *GitAppOrgTable {+ return newGitAppOrgTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newGitAppOrgTable(schemaName, tableName, alias string) *GitAppOrgTable {+ return &GitAppOrgTable{+ gitAppOrgTable: newGitAppOrgTableImpl(schemaName, tableName, alias),+ EXCLUDED: newGitAppOrgTableImpl("", "excluded", ""),+ }+}++func newGitAppOrgTableImpl(schemaName, tableName, alias string) gitAppOrgTable {+ var (+ IDColumn = postgres.StringColumn("id")+ InstallationIdColumn = postgres.StringColumn("installationId")+ UserIdColumn = postgres.StringColumn("userId")+ OrgIdColumn = postgres.StringColumn("orgId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, InstallationIdColumn, UserIdColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{InstallationIdColumn, UserIdColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return gitAppOrgTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ InstallationId: InstallationIdColumn,+ UserId: UserIdColumn,+ OrgId: OrgIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/github_org_sync_configs.go b/backend-go/internal/database/pg/gen/table/github_org_sync_configs.gonew file mode 100644index 0000000000..54aa5c1e25--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/github_org_sync_configs.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var GithubOrgSyncConfigs = newGithubOrgSyncConfigsTable("public", "github_org_sync_configs", "")++type githubOrgSyncConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ GithubOrgName postgres.ColumnString+ IsActive postgres.ColumnBool+ EncryptedGithubOrgAccessToken postgres.ColumnBytea+ OrgId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type GithubOrgSyncConfigsTable struct {+ githubOrgSyncConfigsTable++ EXCLUDED githubOrgSyncConfigsTable+}++// AS creates new GithubOrgSyncConfigsTable with assigned alias+func (a GithubOrgSyncConfigsTable) AS(alias string) *GithubOrgSyncConfigsTable {+ return newGithubOrgSyncConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new GithubOrgSyncConfigsTable with assigned schema name+func (a GithubOrgSyncConfigsTable) FromSchema(schemaName string) *GithubOrgSyncConfigsTable {+ return newGithubOrgSyncConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new GithubOrgSyncConfigsTable with assigned table prefix+func (a GithubOrgSyncConfigsTable) WithPrefix(prefix string) *GithubOrgSyncConfigsTable {+ return newGithubOrgSyncConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new GithubOrgSyncConfigsTable with assigned table suffix+func (a GithubOrgSyncConfigsTable) WithSuffix(suffix string) *GithubOrgSyncConfigsTable {+ return newGithubOrgSyncConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newGithubOrgSyncConfigsTable(schemaName, tableName, alias string) *GithubOrgSyncConfigsTable {+ return &GithubOrgSyncConfigsTable{+ githubOrgSyncConfigsTable: newGithubOrgSyncConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newGithubOrgSyncConfigsTableImpl("", "excluded", ""),+ }+}++func newGithubOrgSyncConfigsTableImpl(schemaName, tableName, alias string) githubOrgSyncConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ GithubOrgNameColumn = postgres.StringColumn("githubOrgName")+ IsActiveColumn = postgres.BoolColumn("isActive")+ EncryptedGithubOrgAccessTokenColumn = postgres.ByteaColumn("encryptedGithubOrgAccessToken")+ OrgIdColumn = postgres.StringColumn("orgId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, GithubOrgNameColumn, IsActiveColumn, EncryptedGithubOrgAccessTokenColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{GithubOrgNameColumn, IsActiveColumn, EncryptedGithubOrgAccessTokenColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsActiveColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return githubOrgSyncConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ GithubOrgName: GithubOrgNameColumn,+ IsActive: IsActiveColumn,+ EncryptedGithubOrgAccessToken: EncryptedGithubOrgAccessTokenColumn,+ OrgId: OrgIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/groups.go b/backend-go/internal/database/pg/gen/table/groups.gonew file mode 100644index 0000000000..62b477237b--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/groups.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var Groups = newGroupsTable("public", "groups", "")++type groupsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ OrgId postgres.ColumnString+ Name postgres.ColumnString+ Slug postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type GroupsTable struct {+ groupsTable++ EXCLUDED groupsTable+}++// AS creates new GroupsTable with assigned alias+func (a GroupsTable) AS(alias string) *GroupsTable {+ return newGroupsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new GroupsTable with assigned schema name+func (a GroupsTable) FromSchema(schemaName string) *GroupsTable {+ return newGroupsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new GroupsTable with assigned table prefix+func (a GroupsTable) WithPrefix(prefix string) *GroupsTable {+ return newGroupsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new GroupsTable with assigned table suffix+func (a GroupsTable) WithSuffix(suffix string) *GroupsTable {+ return newGroupsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newGroupsTable(schemaName, tableName, alias string) *GroupsTable {+ return &GroupsTable{+ groupsTable: newGroupsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newGroupsTableImpl("", "excluded", ""),+ }+}++func newGroupsTableImpl(schemaName, tableName, alias string) groupsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ OrgIdColumn = postgres.StringColumn("orgId")+ NameColumn = postgres.StringColumn("name")+ SlugColumn = postgres.StringColumn("slug")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, OrgIdColumn, NameColumn, SlugColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{OrgIdColumn, NameColumn, SlugColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return groupsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ OrgId: OrgIdColumn,+ Name: NameColumn,+ Slug: SlugColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identities.go b/backend-go/internal/database/pg/gen/table/identities.gonew file mode 100644index 0000000000..6fa5382abc--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identities.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var Identities = newIdentitiesTable("public", "identities", "")++type identitiesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ AuthMethod postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ HasDeleteProtection postgres.ColumnBool+ OrgId postgres.ColumnString+ ProjectId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentitiesTable struct {+ identitiesTable++ EXCLUDED identitiesTable+}++// AS creates new IdentitiesTable with assigned alias+func (a IdentitiesTable) AS(alias string) *IdentitiesTable {+ return newIdentitiesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentitiesTable with assigned schema name+func (a IdentitiesTable) FromSchema(schemaName string) *IdentitiesTable {+ return newIdentitiesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentitiesTable with assigned table prefix+func (a IdentitiesTable) WithPrefix(prefix string) *IdentitiesTable {+ return newIdentitiesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentitiesTable with assigned table suffix+func (a IdentitiesTable) WithSuffix(suffix string) *IdentitiesTable {+ return newIdentitiesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentitiesTable(schemaName, tableName, alias string) *IdentitiesTable {+ return &IdentitiesTable{+ identitiesTable: newIdentitiesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentitiesTableImpl("", "excluded", ""),+ }+}++func newIdentitiesTableImpl(schemaName, tableName, alias string) identitiesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ AuthMethodColumn = postgres.StringColumn("authMethod")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ HasDeleteProtectionColumn = postgres.BoolColumn("hasDeleteProtection")+ OrgIdColumn = postgres.StringColumn("orgId")+ ProjectIdColumn = postgres.StringColumn("projectId")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, AuthMethodColumn, CreatedAtColumn, UpdatedAtColumn, HasDeleteProtectionColumn, OrgIdColumn, ProjectIdColumn}+ mutableColumns = postgres.ColumnList{NameColumn, AuthMethodColumn, CreatedAtColumn, UpdatedAtColumn, HasDeleteProtectionColumn, OrgIdColumn, ProjectIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, HasDeleteProtectionColumn}+ )++ return identitiesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ AuthMethod: AuthMethodColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ HasDeleteProtection: HasDeleteProtectionColumn,+ OrgId: OrgIdColumn,+ ProjectId: ProjectIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_access_tokens.go b/backend-go/internal/database/pg/gen/table/identity_access_tokens.gonew file mode 100644index 0000000000..2cc4faa933--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_access_tokens.go@@ -0,0 +1,123 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityAccessTokens = newIdentityAccessTokensTable("public", "identity_access_tokens", "")++type identityAccessTokensTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AccessTokenTTL postgres.ColumnInteger+ AccessTokenMaxTTL postgres.ColumnInteger+ AccessTokenNumUses postgres.ColumnInteger+ AccessTokenNumUsesLimit postgres.ColumnInteger+ AccessTokenLastUsedAt postgres.ColumnTimestampz+ AccessTokenLastRenewedAt postgres.ColumnTimestampz+ IsAccessTokenRevoked postgres.ColumnBool+ IdentityUAClientSecretId postgres.ColumnString+ IdentityId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ Name postgres.ColumnString+ AuthMethod postgres.ColumnString+ AccessTokenPeriod postgres.ColumnInteger+ SubOrganizationId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityAccessTokensTable struct {+ identityAccessTokensTable++ EXCLUDED identityAccessTokensTable+}++// AS creates new IdentityAccessTokensTable with assigned alias+func (a IdentityAccessTokensTable) AS(alias string) *IdentityAccessTokensTable {+ return newIdentityAccessTokensTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityAccessTokensTable with assigned schema name+func (a IdentityAccessTokensTable) FromSchema(schemaName string) *IdentityAccessTokensTable {+ return newIdentityAccessTokensTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityAccessTokensTable with assigned table prefix+func (a IdentityAccessTokensTable) WithPrefix(prefix string) *IdentityAccessTokensTable {+ return newIdentityAccessTokensTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityAccessTokensTable with assigned table suffix+func (a IdentityAccessTokensTable) WithSuffix(suffix string) *IdentityAccessTokensTable {+ return newIdentityAccessTokensTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityAccessTokensTable(schemaName, tableName, alias string) *IdentityAccessTokensTable {+ return &IdentityAccessTokensTable{+ identityAccessTokensTable: newIdentityAccessTokensTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityAccessTokensTableImpl("", "excluded", ""),+ }+}++func newIdentityAccessTokensTableImpl(schemaName, tableName, alias string) identityAccessTokensTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AccessTokenTTLColumn = postgres.IntegerColumn("accessTokenTTL")+ AccessTokenMaxTTLColumn = postgres.IntegerColumn("accessTokenMaxTTL")+ AccessTokenNumUsesColumn = postgres.IntegerColumn("accessTokenNumUses")+ AccessTokenNumUsesLimitColumn = postgres.IntegerColumn("accessTokenNumUsesLimit")+ AccessTokenLastUsedAtColumn = postgres.TimestampzColumn("accessTokenLastUsedAt")+ AccessTokenLastRenewedAtColumn = postgres.TimestampzColumn("accessTokenLastRenewedAt")+ IsAccessTokenRevokedColumn = postgres.BoolColumn("isAccessTokenRevoked")+ IdentityUAClientSecretIdColumn = postgres.StringColumn("identityUAClientSecretId")+ IdentityIdColumn = postgres.StringColumn("identityId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ NameColumn = postgres.StringColumn("name")+ AuthMethodColumn = postgres.StringColumn("authMethod")+ AccessTokenPeriodColumn = postgres.IntegerColumn("accessTokenPeriod")+ SubOrganizationIdColumn = postgres.StringColumn("subOrganizationId")+ allColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesColumn, AccessTokenNumUsesLimitColumn, AccessTokenLastUsedAtColumn, AccessTokenLastRenewedAtColumn, IsAccessTokenRevokedColumn, IdentityUAClientSecretIdColumn, IdentityIdColumn, CreatedAtColumn, UpdatedAtColumn, NameColumn, AuthMethodColumn, AccessTokenPeriodColumn, SubOrganizationIdColumn}+ mutableColumns = postgres.ColumnList{AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesColumn, AccessTokenNumUsesLimitColumn, AccessTokenLastUsedAtColumn, AccessTokenLastRenewedAtColumn, IsAccessTokenRevokedColumn, IdentityUAClientSecretIdColumn, IdentityIdColumn, CreatedAtColumn, UpdatedAtColumn, NameColumn, AuthMethodColumn, AccessTokenPeriodColumn, SubOrganizationIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesColumn, AccessTokenNumUsesLimitColumn, IsAccessTokenRevokedColumn, CreatedAtColumn, UpdatedAtColumn, AccessTokenPeriodColumn}+ )++ return identityAccessTokensTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AccessTokenTTL: AccessTokenTTLColumn,+ AccessTokenMaxTTL: AccessTokenMaxTTLColumn,+ AccessTokenNumUses: AccessTokenNumUsesColumn,+ AccessTokenNumUsesLimit: AccessTokenNumUsesLimitColumn,+ AccessTokenLastUsedAt: AccessTokenLastUsedAtColumn,+ AccessTokenLastRenewedAt: AccessTokenLastRenewedAtColumn,+ IsAccessTokenRevoked: IsAccessTokenRevokedColumn,+ IdentityUAClientSecretId: IdentityUAClientSecretIdColumn,+ IdentityId: IdentityIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ Name: NameColumn,+ AuthMethod: AuthMethodColumn,+ AccessTokenPeriod: AccessTokenPeriodColumn,+ SubOrganizationId: SubOrganizationIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_alicloud_auths.go b/backend-go/internal/database/pg/gen/table/identity_alicloud_auths.gonew file mode 100644index 0000000000..13df9b5692--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_alicloud_auths.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityAlicloudAuths = newIdentityAlicloudAuthsTable("public", "identity_alicloud_auths", "")++type identityAlicloudAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AccessTokenTTL postgres.ColumnInteger+ AccessTokenMaxTTL postgres.ColumnInteger+ AccessTokenNumUsesLimit postgres.ColumnInteger+ AccessTokenTrustedIps postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IdentityId postgres.ColumnString+ Type postgres.ColumnString+ AllowedArns postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityAlicloudAuthsTable struct {+ identityAlicloudAuthsTable++ EXCLUDED identityAlicloudAuthsTable+}++// AS creates new IdentityAlicloudAuthsTable with assigned alias+func (a IdentityAlicloudAuthsTable) AS(alias string) *IdentityAlicloudAuthsTable {+ return newIdentityAlicloudAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityAlicloudAuthsTable with assigned schema name+func (a IdentityAlicloudAuthsTable) FromSchema(schemaName string) *IdentityAlicloudAuthsTable {+ return newIdentityAlicloudAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityAlicloudAuthsTable with assigned table prefix+func (a IdentityAlicloudAuthsTable) WithPrefix(prefix string) *IdentityAlicloudAuthsTable {+ return newIdentityAlicloudAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityAlicloudAuthsTable with assigned table suffix+func (a IdentityAlicloudAuthsTable) WithSuffix(suffix string) *IdentityAlicloudAuthsTable {+ return newIdentityAlicloudAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityAlicloudAuthsTable(schemaName, tableName, alias string) *IdentityAlicloudAuthsTable {+ return &IdentityAlicloudAuthsTable{+ identityAlicloudAuthsTable: newIdentityAlicloudAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityAlicloudAuthsTableImpl("", "excluded", ""),+ }+}++func newIdentityAlicloudAuthsTableImpl(schemaName, tableName, alias string) identityAlicloudAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AccessTokenTTLColumn = postgres.IntegerColumn("accessTokenTTL")+ AccessTokenMaxTTLColumn = postgres.IntegerColumn("accessTokenMaxTTL")+ AccessTokenNumUsesLimitColumn = postgres.IntegerColumn("accessTokenNumUsesLimit")+ AccessTokenTrustedIpsColumn = postgres.StringColumn("accessTokenTrustedIps")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IdentityIdColumn = postgres.StringColumn("identityId")+ TypeColumn = postgres.StringColumn("type")+ AllowedArnsColumn = postgres.StringColumn("allowedArns")+ allColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, TypeColumn, AllowedArnsColumn}+ mutableColumns = postgres.ColumnList{AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, TypeColumn, AllowedArnsColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return identityAlicloudAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AccessTokenTTL: AccessTokenTTLColumn,+ AccessTokenMaxTTL: AccessTokenMaxTTLColumn,+ AccessTokenNumUsesLimit: AccessTokenNumUsesLimitColumn,+ AccessTokenTrustedIps: AccessTokenTrustedIpsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IdentityId: IdentityIdColumn,+ Type: TypeColumn,+ AllowedArns: AllowedArnsColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_auth_templates.go b/backend-go/internal/database/pg/gen/table/identity_auth_templates.gonew file mode 100644index 0000000000..3de7093b40--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_auth_templates.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityAuthTemplates = newIdentityAuthTemplatesTable("public", "identity_auth_templates", "")++type identityAuthTemplatesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ TemplateFields postgres.ColumnBytea+ OrgId postgres.ColumnString+ Name postgres.ColumnString+ AuthMethod postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityAuthTemplatesTable struct {+ identityAuthTemplatesTable++ EXCLUDED identityAuthTemplatesTable+}++// AS creates new IdentityAuthTemplatesTable with assigned alias+func (a IdentityAuthTemplatesTable) AS(alias string) *IdentityAuthTemplatesTable {+ return newIdentityAuthTemplatesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityAuthTemplatesTable with assigned schema name+func (a IdentityAuthTemplatesTable) FromSchema(schemaName string) *IdentityAuthTemplatesTable {+ return newIdentityAuthTemplatesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityAuthTemplatesTable with assigned table prefix+func (a IdentityAuthTemplatesTable) WithPrefix(prefix string) *IdentityAuthTemplatesTable {+ return newIdentityAuthTemplatesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityAuthTemplatesTable with assigned table suffix+func (a IdentityAuthTemplatesTable) WithSuffix(suffix string) *IdentityAuthTemplatesTable {+ return newIdentityAuthTemplatesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityAuthTemplatesTable(schemaName, tableName, alias string) *IdentityAuthTemplatesTable {+ return &IdentityAuthTemplatesTable{+ identityAuthTemplatesTable: newIdentityAuthTemplatesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityAuthTemplatesTableImpl("", "excluded", ""),+ }+}++func newIdentityAuthTemplatesTableImpl(schemaName, tableName, alias string) identityAuthTemplatesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ TemplateFieldsColumn = postgres.ByteaColumn("templateFields")+ OrgIdColumn = postgres.StringColumn("orgId")+ NameColumn = postgres.StringColumn("name")+ AuthMethodColumn = postgres.StringColumn("authMethod")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, TemplateFieldsColumn, OrgIdColumn, NameColumn, AuthMethodColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{TemplateFieldsColumn, OrgIdColumn, NameColumn, AuthMethodColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return identityAuthTemplatesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ TemplateFields: TemplateFieldsColumn,+ OrgId: OrgIdColumn,+ Name: NameColumn,+ AuthMethod: AuthMethodColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_aws_auths.go b/backend-go/internal/database/pg/gen/table/identity_aws_auths.gonew file mode 100644index 0000000000..276e0cecd3--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_aws_auths.go@@ -0,0 +1,114 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityAwsAuths = newIdentityAwsAuthsTable("public", "identity_aws_auths", "")++type identityAwsAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AccessTokenTTL postgres.ColumnInteger+ AccessTokenMaxTTL postgres.ColumnInteger+ AccessTokenNumUsesLimit postgres.ColumnInteger+ AccessTokenTrustedIps postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IdentityId postgres.ColumnString+ Type postgres.ColumnString+ StsEndpoint postgres.ColumnString+ AllowedPrincipalArns postgres.ColumnString+ AllowedAccountIds postgres.ColumnString+ AccessTokenPeriod postgres.ColumnInteger++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityAwsAuthsTable struct {+ identityAwsAuthsTable++ EXCLUDED identityAwsAuthsTable+}++// AS creates new IdentityAwsAuthsTable with assigned alias+func (a IdentityAwsAuthsTable) AS(alias string) *IdentityAwsAuthsTable {+ return newIdentityAwsAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityAwsAuthsTable with assigned schema name+func (a IdentityAwsAuthsTable) FromSchema(schemaName string) *IdentityAwsAuthsTable {+ return newIdentityAwsAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityAwsAuthsTable with assigned table prefix+func (a IdentityAwsAuthsTable) WithPrefix(prefix string) *IdentityAwsAuthsTable {+ return newIdentityAwsAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityAwsAuthsTable with assigned table suffix+func (a IdentityAwsAuthsTable) WithSuffix(suffix string) *IdentityAwsAuthsTable {+ return newIdentityAwsAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityAwsAuthsTable(schemaName, tableName, alias string) *IdentityAwsAuthsTable {+ return &IdentityAwsAuthsTable{+ identityAwsAuthsTable: newIdentityAwsAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityAwsAuthsTableImpl("", "excluded", ""),+ }+}++func newIdentityAwsAuthsTableImpl(schemaName, tableName, alias string) identityAwsAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AccessTokenTTLColumn = postgres.IntegerColumn("accessTokenTTL")+ AccessTokenMaxTTLColumn = postgres.IntegerColumn("accessTokenMaxTTL")+ AccessTokenNumUsesLimitColumn = postgres.IntegerColumn("accessTokenNumUsesLimit")+ AccessTokenTrustedIpsColumn = postgres.StringColumn("accessTokenTrustedIps")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IdentityIdColumn = postgres.StringColumn("identityId")+ TypeColumn = postgres.StringColumn("type")+ StsEndpointColumn = postgres.StringColumn("stsEndpoint")+ AllowedPrincipalArnsColumn = postgres.StringColumn("allowedPrincipalArns")+ AllowedAccountIdsColumn = postgres.StringColumn("allowedAccountIds")+ AccessTokenPeriodColumn = postgres.IntegerColumn("accessTokenPeriod")+ allColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, TypeColumn, StsEndpointColumn, AllowedPrincipalArnsColumn, AllowedAccountIdsColumn, AccessTokenPeriodColumn}+ mutableColumns = postgres.ColumnList{AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, TypeColumn, StsEndpointColumn, AllowedPrincipalArnsColumn, AllowedAccountIdsColumn, AccessTokenPeriodColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, CreatedAtColumn, UpdatedAtColumn, AccessTokenPeriodColumn}+ )++ return identityAwsAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AccessTokenTTL: AccessTokenTTLColumn,+ AccessTokenMaxTTL: AccessTokenMaxTTLColumn,+ AccessTokenNumUsesLimit: AccessTokenNumUsesLimitColumn,+ AccessTokenTrustedIps: AccessTokenTrustedIpsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IdentityId: IdentityIdColumn,+ Type: TypeColumn,+ StsEndpoint: StsEndpointColumn,+ AllowedPrincipalArns: AllowedPrincipalArnsColumn,+ AllowedAccountIds: AllowedAccountIdsColumn,+ AccessTokenPeriod: AccessTokenPeriodColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_azure_auths.go b/backend-go/internal/database/pg/gen/table/identity_azure_auths.gonew file mode 100644index 0000000000..026fe16682--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_azure_auths.go@@ -0,0 +1,111 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityAzureAuths = newIdentityAzureAuthsTable("public", "identity_azure_auths", "")++type identityAzureAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AccessTokenTTL postgres.ColumnInteger+ AccessTokenMaxTTL postgres.ColumnInteger+ AccessTokenNumUsesLimit postgres.ColumnInteger+ AccessTokenTrustedIps postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IdentityId postgres.ColumnString+ TenantId postgres.ColumnString+ Resource postgres.ColumnString+ AllowedServicePrincipalIds postgres.ColumnString+ AccessTokenPeriod postgres.ColumnInteger++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityAzureAuthsTable struct {+ identityAzureAuthsTable++ EXCLUDED identityAzureAuthsTable+}++// AS creates new IdentityAzureAuthsTable with assigned alias+func (a IdentityAzureAuthsTable) AS(alias string) *IdentityAzureAuthsTable {+ return newIdentityAzureAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityAzureAuthsTable with assigned schema name+func (a IdentityAzureAuthsTable) FromSchema(schemaName string) *IdentityAzureAuthsTable {+ return newIdentityAzureAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityAzureAuthsTable with assigned table prefix+func (a IdentityAzureAuthsTable) WithPrefix(prefix string) *IdentityAzureAuthsTable {+ return newIdentityAzureAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityAzureAuthsTable with assigned table suffix+func (a IdentityAzureAuthsTable) WithSuffix(suffix string) *IdentityAzureAuthsTable {+ return newIdentityAzureAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityAzureAuthsTable(schemaName, tableName, alias string) *IdentityAzureAuthsTable {+ return &IdentityAzureAuthsTable{+ identityAzureAuthsTable: newIdentityAzureAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityAzureAuthsTableImpl("", "excluded", ""),+ }+}++func newIdentityAzureAuthsTableImpl(schemaName, tableName, alias string) identityAzureAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AccessTokenTTLColumn = postgres.IntegerColumn("accessTokenTTL")+ AccessTokenMaxTTLColumn = postgres.IntegerColumn("accessTokenMaxTTL")+ AccessTokenNumUsesLimitColumn = postgres.IntegerColumn("accessTokenNumUsesLimit")+ AccessTokenTrustedIpsColumn = postgres.StringColumn("accessTokenTrustedIps")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IdentityIdColumn = postgres.StringColumn("identityId")+ TenantIdColumn = postgres.StringColumn("tenantId")+ ResourceColumn = postgres.StringColumn("resource")+ AllowedServicePrincipalIdsColumn = postgres.StringColumn("allowedServicePrincipalIds")+ AccessTokenPeriodColumn = postgres.IntegerColumn("accessTokenPeriod")+ allColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, TenantIdColumn, ResourceColumn, AllowedServicePrincipalIdsColumn, AccessTokenPeriodColumn}+ mutableColumns = postgres.ColumnList{AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, TenantIdColumn, ResourceColumn, AllowedServicePrincipalIdsColumn, AccessTokenPeriodColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, CreatedAtColumn, UpdatedAtColumn, AccessTokenPeriodColumn}+ )++ return identityAzureAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AccessTokenTTL: AccessTokenTTLColumn,+ AccessTokenMaxTTL: AccessTokenMaxTTLColumn,+ AccessTokenNumUsesLimit: AccessTokenNumUsesLimitColumn,+ AccessTokenTrustedIps: AccessTokenTrustedIpsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IdentityId: IdentityIdColumn,+ TenantId: TenantIdColumn,+ Resource: ResourceColumn,+ AllowedServicePrincipalIds: AllowedServicePrincipalIdsColumn,+ AccessTokenPeriod: AccessTokenPeriodColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_gcp_auths.go b/backend-go/internal/database/pg/gen/table/identity_gcp_auths.gonew file mode 100644index 0000000000..cae0c2c2b0--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_gcp_auths.go@@ -0,0 +1,114 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityGcpAuths = newIdentityGcpAuthsTable("public", "identity_gcp_auths", "")++type identityGcpAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AccessTokenTTL postgres.ColumnInteger+ AccessTokenMaxTTL postgres.ColumnInteger+ AccessTokenNumUsesLimit postgres.ColumnInteger+ AccessTokenTrustedIps postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IdentityId postgres.ColumnString+ Type postgres.ColumnString+ AllowedServiceAccounts postgres.ColumnString+ AllowedProjects postgres.ColumnString+ AllowedZones postgres.ColumnString+ AccessTokenPeriod postgres.ColumnInteger++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityGcpAuthsTable struct {+ identityGcpAuthsTable++ EXCLUDED identityGcpAuthsTable+}++// AS creates new IdentityGcpAuthsTable with assigned alias+func (a IdentityGcpAuthsTable) AS(alias string) *IdentityGcpAuthsTable {+ return newIdentityGcpAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityGcpAuthsTable with assigned schema name+func (a IdentityGcpAuthsTable) FromSchema(schemaName string) *IdentityGcpAuthsTable {+ return newIdentityGcpAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityGcpAuthsTable with assigned table prefix+func (a IdentityGcpAuthsTable) WithPrefix(prefix string) *IdentityGcpAuthsTable {+ return newIdentityGcpAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityGcpAuthsTable with assigned table suffix+func (a IdentityGcpAuthsTable) WithSuffix(suffix string) *IdentityGcpAuthsTable {+ return newIdentityGcpAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityGcpAuthsTable(schemaName, tableName, alias string) *IdentityGcpAuthsTable {+ return &IdentityGcpAuthsTable{+ identityGcpAuthsTable: newIdentityGcpAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityGcpAuthsTableImpl("", "excluded", ""),+ }+}++func newIdentityGcpAuthsTableImpl(schemaName, tableName, alias string) identityGcpAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AccessTokenTTLColumn = postgres.IntegerColumn("accessTokenTTL")+ AccessTokenMaxTTLColumn = postgres.IntegerColumn("accessTokenMaxTTL")+ AccessTokenNumUsesLimitColumn = postgres.IntegerColumn("accessTokenNumUsesLimit")+ AccessTokenTrustedIpsColumn = postgres.StringColumn("accessTokenTrustedIps")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IdentityIdColumn = postgres.StringColumn("identityId")+ TypeColumn = postgres.StringColumn("type")+ AllowedServiceAccountsColumn = postgres.StringColumn("allowedServiceAccounts")+ AllowedProjectsColumn = postgres.StringColumn("allowedProjects")+ AllowedZonesColumn = postgres.StringColumn("allowedZones")+ AccessTokenPeriodColumn = postgres.IntegerColumn("accessTokenPeriod")+ allColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, TypeColumn, AllowedServiceAccountsColumn, AllowedProjectsColumn, AllowedZonesColumn, AccessTokenPeriodColumn}+ mutableColumns = postgres.ColumnList{AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, TypeColumn, AllowedServiceAccountsColumn, AllowedProjectsColumn, AllowedZonesColumn, AccessTokenPeriodColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, CreatedAtColumn, UpdatedAtColumn, AccessTokenPeriodColumn}+ )++ return identityGcpAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AccessTokenTTL: AccessTokenTTLColumn,+ AccessTokenMaxTTL: AccessTokenMaxTTLColumn,+ AccessTokenNumUsesLimit: AccessTokenNumUsesLimitColumn,+ AccessTokenTrustedIps: AccessTokenTrustedIpsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IdentityId: IdentityIdColumn,+ Type: TypeColumn,+ AllowedServiceAccounts: AllowedServiceAccountsColumn,+ AllowedProjects: AllowedProjectsColumn,+ AllowedZones: AllowedZonesColumn,+ AccessTokenPeriod: AccessTokenPeriodColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_group_membership.go b/backend-go/internal/database/pg/gen/table/identity_group_membership.gonew file mode 100644index 0000000000..b3ce0abc22--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_group_membership.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityGroupMembership = newIdentityGroupMembershipTable("public", "identity_group_membership", "")++type identityGroupMembershipTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ IdentityId postgres.ColumnString+ GroupId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityGroupMembershipTable struct {+ identityGroupMembershipTable++ EXCLUDED identityGroupMembershipTable+}++// AS creates new IdentityGroupMembershipTable with assigned alias+func (a IdentityGroupMembershipTable) AS(alias string) *IdentityGroupMembershipTable {+ return newIdentityGroupMembershipTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityGroupMembershipTable with assigned schema name+func (a IdentityGroupMembershipTable) FromSchema(schemaName string) *IdentityGroupMembershipTable {+ return newIdentityGroupMembershipTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityGroupMembershipTable with assigned table prefix+func (a IdentityGroupMembershipTable) WithPrefix(prefix string) *IdentityGroupMembershipTable {+ return newIdentityGroupMembershipTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityGroupMembershipTable with assigned table suffix+func (a IdentityGroupMembershipTable) WithSuffix(suffix string) *IdentityGroupMembershipTable {+ return newIdentityGroupMembershipTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityGroupMembershipTable(schemaName, tableName, alias string) *IdentityGroupMembershipTable {+ return &IdentityGroupMembershipTable{+ identityGroupMembershipTable: newIdentityGroupMembershipTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityGroupMembershipTableImpl("", "excluded", ""),+ }+}++func newIdentityGroupMembershipTableImpl(schemaName, tableName, alias string) identityGroupMembershipTable {+ var (+ IDColumn = postgres.StringColumn("id")+ IdentityIdColumn = postgres.StringColumn("identityId")+ GroupIdColumn = postgres.StringColumn("groupId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, IdentityIdColumn, GroupIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{IdentityIdColumn, GroupIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return identityGroupMembershipTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ IdentityId: IdentityIdColumn,+ GroupId: GroupIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_jwt_auths.go b/backend-go/internal/database/pg/gen/table/identity_jwt_auths.gonew file mode 100644index 0000000000..aab9cdf9f5--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_jwt_auths.go@@ -0,0 +1,126 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityJwtAuths = newIdentityJwtAuthsTable("public", "identity_jwt_auths", "")++type identityJwtAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AccessTokenTTL postgres.ColumnInteger+ AccessTokenMaxTTL postgres.ColumnInteger+ AccessTokenNumUsesLimit postgres.ColumnInteger+ AccessTokenTrustedIps postgres.ColumnString+ IdentityId postgres.ColumnString+ ConfigurationType postgres.ColumnString+ JwksUrl postgres.ColumnString+ EncryptedJwksCaCert postgres.ColumnBytea+ EncryptedPublicKeys postgres.ColumnBytea+ BoundIssuer postgres.ColumnString+ BoundAudiences postgres.ColumnString+ BoundClaims postgres.ColumnString+ BoundSubject postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ AccessTokenPeriod postgres.ColumnInteger++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityJwtAuthsTable struct {+ identityJwtAuthsTable++ EXCLUDED identityJwtAuthsTable+}++// AS creates new IdentityJwtAuthsTable with assigned alias+func (a IdentityJwtAuthsTable) AS(alias string) *IdentityJwtAuthsTable {+ return newIdentityJwtAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityJwtAuthsTable with assigned schema name+func (a IdentityJwtAuthsTable) FromSchema(schemaName string) *IdentityJwtAuthsTable {+ return newIdentityJwtAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityJwtAuthsTable with assigned table prefix+func (a IdentityJwtAuthsTable) WithPrefix(prefix string) *IdentityJwtAuthsTable {+ return newIdentityJwtAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityJwtAuthsTable with assigned table suffix+func (a IdentityJwtAuthsTable) WithSuffix(suffix string) *IdentityJwtAuthsTable {+ return newIdentityJwtAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityJwtAuthsTable(schemaName, tableName, alias string) *IdentityJwtAuthsTable {+ return &IdentityJwtAuthsTable{+ identityJwtAuthsTable: newIdentityJwtAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityJwtAuthsTableImpl("", "excluded", ""),+ }+}++func newIdentityJwtAuthsTableImpl(schemaName, tableName, alias string) identityJwtAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AccessTokenTTLColumn = postgres.IntegerColumn("accessTokenTTL")+ AccessTokenMaxTTLColumn = postgres.IntegerColumn("accessTokenMaxTTL")+ AccessTokenNumUsesLimitColumn = postgres.IntegerColumn("accessTokenNumUsesLimit")+ AccessTokenTrustedIpsColumn = postgres.StringColumn("accessTokenTrustedIps")+ IdentityIdColumn = postgres.StringColumn("identityId")+ ConfigurationTypeColumn = postgres.StringColumn("configurationType")+ JwksUrlColumn = postgres.StringColumn("jwksUrl")+ EncryptedJwksCaCertColumn = postgres.ByteaColumn("encryptedJwksCaCert")+ EncryptedPublicKeysColumn = postgres.ByteaColumn("encryptedPublicKeys")+ BoundIssuerColumn = postgres.StringColumn("boundIssuer")+ BoundAudiencesColumn = postgres.StringColumn("boundAudiences")+ BoundClaimsColumn = postgres.StringColumn("boundClaims")+ BoundSubjectColumn = postgres.StringColumn("boundSubject")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ AccessTokenPeriodColumn = postgres.IntegerColumn("accessTokenPeriod")+ allColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, IdentityIdColumn, ConfigurationTypeColumn, JwksUrlColumn, EncryptedJwksCaCertColumn, EncryptedPublicKeysColumn, BoundIssuerColumn, BoundAudiencesColumn, BoundClaimsColumn, BoundSubjectColumn, CreatedAtColumn, UpdatedAtColumn, AccessTokenPeriodColumn}+ mutableColumns = postgres.ColumnList{AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, IdentityIdColumn, ConfigurationTypeColumn, JwksUrlColumn, EncryptedJwksCaCertColumn, EncryptedPublicKeysColumn, BoundIssuerColumn, BoundAudiencesColumn, BoundClaimsColumn, BoundSubjectColumn, CreatedAtColumn, UpdatedAtColumn, AccessTokenPeriodColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, CreatedAtColumn, UpdatedAtColumn, AccessTokenPeriodColumn}+ )++ return identityJwtAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AccessTokenTTL: AccessTokenTTLColumn,+ AccessTokenMaxTTL: AccessTokenMaxTTLColumn,+ AccessTokenNumUsesLimit: AccessTokenNumUsesLimitColumn,+ AccessTokenTrustedIps: AccessTokenTrustedIpsColumn,+ IdentityId: IdentityIdColumn,+ ConfigurationType: ConfigurationTypeColumn,+ JwksUrl: JwksUrlColumn,+ EncryptedJwksCaCert: EncryptedJwksCaCertColumn,+ EncryptedPublicKeys: EncryptedPublicKeysColumn,+ BoundIssuer: BoundIssuerColumn,+ BoundAudiences: BoundAudiencesColumn,+ BoundClaims: BoundClaimsColumn,+ BoundSubject: BoundSubjectColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ AccessTokenPeriod: AccessTokenPeriodColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_kubernetes_auths.go b/backend-go/internal/database/pg/gen/table/identity_kubernetes_auths.gonew file mode 100644index 0000000000..83009f7732--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_kubernetes_auths.go@@ -0,0 +1,147 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityKubernetesAuths = newIdentityKubernetesAuthsTable("public", "identity_kubernetes_auths", "")++type identityKubernetesAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AccessTokenTTL postgres.ColumnInteger+ AccessTokenMaxTTL postgres.ColumnInteger+ AccessTokenNumUsesLimit postgres.ColumnInteger+ AccessTokenTrustedIps postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IdentityId postgres.ColumnString+ KubernetesHost postgres.ColumnString+ EncryptedCaCert postgres.ColumnString+ CaCertIV postgres.ColumnString+ CaCertTag postgres.ColumnString+ EncryptedTokenReviewerJwt postgres.ColumnString+ TokenReviewerJwtIV postgres.ColumnString+ TokenReviewerJwtTag postgres.ColumnString+ AllowedNamespaces postgres.ColumnString+ AllowedNames postgres.ColumnString+ AllowedAudience postgres.ColumnString+ EncryptedKubernetesTokenReviewerJwt postgres.ColumnBytea+ EncryptedKubernetesCaCertificate postgres.ColumnBytea+ GatewayId postgres.ColumnString+ AccessTokenPeriod postgres.ColumnInteger+ TokenReviewMode postgres.ColumnString+ GatewayV2Id postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityKubernetesAuthsTable struct {+ identityKubernetesAuthsTable++ EXCLUDED identityKubernetesAuthsTable+}++// AS creates new IdentityKubernetesAuthsTable with assigned alias+func (a IdentityKubernetesAuthsTable) AS(alias string) *IdentityKubernetesAuthsTable {+ return newIdentityKubernetesAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityKubernetesAuthsTable with assigned schema name+func (a IdentityKubernetesAuthsTable) FromSchema(schemaName string) *IdentityKubernetesAuthsTable {+ return newIdentityKubernetesAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityKubernetesAuthsTable with assigned table prefix+func (a IdentityKubernetesAuthsTable) WithPrefix(prefix string) *IdentityKubernetesAuthsTable {+ return newIdentityKubernetesAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityKubernetesAuthsTable with assigned table suffix+func (a IdentityKubernetesAuthsTable) WithSuffix(suffix string) *IdentityKubernetesAuthsTable {+ return newIdentityKubernetesAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityKubernetesAuthsTable(schemaName, tableName, alias string) *IdentityKubernetesAuthsTable {+ return &IdentityKubernetesAuthsTable{+ identityKubernetesAuthsTable: newIdentityKubernetesAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityKubernetesAuthsTableImpl("", "excluded", ""),+ }+}++func newIdentityKubernetesAuthsTableImpl(schemaName, tableName, alias string) identityKubernetesAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AccessTokenTTLColumn = postgres.IntegerColumn("accessTokenTTL")+ AccessTokenMaxTTLColumn = postgres.IntegerColumn("accessTokenMaxTTL")+ AccessTokenNumUsesLimitColumn = postgres.IntegerColumn("accessTokenNumUsesLimit")+ AccessTokenTrustedIpsColumn = postgres.StringColumn("accessTokenTrustedIps")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IdentityIdColumn = postgres.StringColumn("identityId")+ KubernetesHostColumn = postgres.StringColumn("kubernetesHost")+ EncryptedCaCertColumn = postgres.StringColumn("encryptedCaCert")+ CaCertIVColumn = postgres.StringColumn("caCertIV")+ CaCertTagColumn = postgres.StringColumn("caCertTag")+ EncryptedTokenReviewerJwtColumn = postgres.StringColumn("encryptedTokenReviewerJwt")+ TokenReviewerJwtIVColumn = postgres.StringColumn("tokenReviewerJwtIV")+ TokenReviewerJwtTagColumn = postgres.StringColumn("tokenReviewerJwtTag")+ AllowedNamespacesColumn = postgres.StringColumn("allowedNamespaces")+ AllowedNamesColumn = postgres.StringColumn("allowedNames")+ AllowedAudienceColumn = postgres.StringColumn("allowedAudience")+ EncryptedKubernetesTokenReviewerJwtColumn = postgres.ByteaColumn("encryptedKubernetesTokenReviewerJwt")+ EncryptedKubernetesCaCertificateColumn = postgres.ByteaColumn("encryptedKubernetesCaCertificate")+ GatewayIdColumn = postgres.StringColumn("gatewayId")+ AccessTokenPeriodColumn = postgres.IntegerColumn("accessTokenPeriod")+ TokenReviewModeColumn = postgres.StringColumn("tokenReviewMode")+ GatewayV2IdColumn = postgres.StringColumn("gatewayV2Id")+ allColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, KubernetesHostColumn, EncryptedCaCertColumn, CaCertIVColumn, CaCertTagColumn, EncryptedTokenReviewerJwtColumn, TokenReviewerJwtIVColumn, TokenReviewerJwtTagColumn, AllowedNamespacesColumn, AllowedNamesColumn, AllowedAudienceColumn, EncryptedKubernetesTokenReviewerJwtColumn, EncryptedKubernetesCaCertificateColumn, GatewayIdColumn, AccessTokenPeriodColumn, TokenReviewModeColumn, GatewayV2IdColumn}+ mutableColumns = postgres.ColumnList{AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, KubernetesHostColumn, EncryptedCaCertColumn, CaCertIVColumn, CaCertTagColumn, EncryptedTokenReviewerJwtColumn, TokenReviewerJwtIVColumn, TokenReviewerJwtTagColumn, AllowedNamespacesColumn, AllowedNamesColumn, AllowedAudienceColumn, EncryptedKubernetesTokenReviewerJwtColumn, EncryptedKubernetesCaCertificateColumn, GatewayIdColumn, AccessTokenPeriodColumn, TokenReviewModeColumn, GatewayV2IdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, CreatedAtColumn, UpdatedAtColumn, AccessTokenPeriodColumn, TokenReviewModeColumn}+ )++ return identityKubernetesAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AccessTokenTTL: AccessTokenTTLColumn,+ AccessTokenMaxTTL: AccessTokenMaxTTLColumn,+ AccessTokenNumUsesLimit: AccessTokenNumUsesLimitColumn,+ AccessTokenTrustedIps: AccessTokenTrustedIpsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IdentityId: IdentityIdColumn,+ KubernetesHost: KubernetesHostColumn,+ EncryptedCaCert: EncryptedCaCertColumn,+ CaCertIV: CaCertIVColumn,+ CaCertTag: CaCertTagColumn,+ EncryptedTokenReviewerJwt: EncryptedTokenReviewerJwtColumn,+ TokenReviewerJwtIV: TokenReviewerJwtIVColumn,+ TokenReviewerJwtTag: TokenReviewerJwtTagColumn,+ AllowedNamespaces: AllowedNamespacesColumn,+ AllowedNames: AllowedNamesColumn,+ AllowedAudience: AllowedAudienceColumn,+ EncryptedKubernetesTokenReviewerJwt: EncryptedKubernetesTokenReviewerJwtColumn,+ EncryptedKubernetesCaCertificate: EncryptedKubernetesCaCertificateColumn,+ GatewayId: GatewayIdColumn,+ AccessTokenPeriod: AccessTokenPeriodColumn,+ TokenReviewMode: TokenReviewModeColumn,+ GatewayV2Id: GatewayV2IdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_ldap_auths.go b/backend-go/internal/database/pg/gen/table/identity_ldap_auths.gonew file mode 100644index 0000000000..55b5a50190--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_ldap_auths.go@@ -0,0 +1,138 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityLdapAuths = newIdentityLdapAuthsTable("public", "identity_ldap_auths", "")++type identityLdapAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AccessTokenTTL postgres.ColumnInteger+ AccessTokenMaxTTL postgres.ColumnInteger+ AccessTokenNumUsesLimit postgres.ColumnInteger+ AccessTokenTrustedIps postgres.ColumnString+ IdentityId postgres.ColumnString+ EncryptedBindDN postgres.ColumnBytea+ EncryptedBindPass postgres.ColumnBytea+ EncryptedLdapCaCertificate postgres.ColumnBytea+ URL postgres.ColumnString+ SearchBase postgres.ColumnString+ SearchFilter postgres.ColumnString+ AllowedFields postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ AccessTokenPeriod postgres.ColumnInteger+ TemplateId postgres.ColumnString+ LockoutEnabled postgres.ColumnBool+ LockoutThreshold postgres.ColumnInteger+ LockoutDurationSeconds postgres.ColumnInteger+ LockoutCounterResetSeconds postgres.ColumnInteger++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityLdapAuthsTable struct {+ identityLdapAuthsTable++ EXCLUDED identityLdapAuthsTable+}++// AS creates new IdentityLdapAuthsTable with assigned alias+func (a IdentityLdapAuthsTable) AS(alias string) *IdentityLdapAuthsTable {+ return newIdentityLdapAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityLdapAuthsTable with assigned schema name+func (a IdentityLdapAuthsTable) FromSchema(schemaName string) *IdentityLdapAuthsTable {+ return newIdentityLdapAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityLdapAuthsTable with assigned table prefix+func (a IdentityLdapAuthsTable) WithPrefix(prefix string) *IdentityLdapAuthsTable {+ return newIdentityLdapAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityLdapAuthsTable with assigned table suffix+func (a IdentityLdapAuthsTable) WithSuffix(suffix string) *IdentityLdapAuthsTable {+ return newIdentityLdapAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityLdapAuthsTable(schemaName, tableName, alias string) *IdentityLdapAuthsTable {+ return &IdentityLdapAuthsTable{+ identityLdapAuthsTable: newIdentityLdapAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityLdapAuthsTableImpl("", "excluded", ""),+ }+}++func newIdentityLdapAuthsTableImpl(schemaName, tableName, alias string) identityLdapAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AccessTokenTTLColumn = postgres.IntegerColumn("accessTokenTTL")+ AccessTokenMaxTTLColumn = postgres.IntegerColumn("accessTokenMaxTTL")+ AccessTokenNumUsesLimitColumn = postgres.IntegerColumn("accessTokenNumUsesLimit")+ AccessTokenTrustedIpsColumn = postgres.StringColumn("accessTokenTrustedIps")+ IdentityIdColumn = postgres.StringColumn("identityId")+ EncryptedBindDNColumn = postgres.ByteaColumn("encryptedBindDN")+ EncryptedBindPassColumn = postgres.ByteaColumn("encryptedBindPass")+ EncryptedLdapCaCertificateColumn = postgres.ByteaColumn("encryptedLdapCaCertificate")+ URLColumn = postgres.StringColumn("url")+ SearchBaseColumn = postgres.StringColumn("searchBase")+ SearchFilterColumn = postgres.StringColumn("searchFilter")+ AllowedFieldsColumn = postgres.StringColumn("allowedFields")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ AccessTokenPeriodColumn = postgres.IntegerColumn("accessTokenPeriod")+ TemplateIdColumn = postgres.StringColumn("templateId")+ LockoutEnabledColumn = postgres.BoolColumn("lockoutEnabled")+ LockoutThresholdColumn = postgres.IntegerColumn("lockoutThreshold")+ LockoutDurationSecondsColumn = postgres.IntegerColumn("lockoutDurationSeconds")+ LockoutCounterResetSecondsColumn = postgres.IntegerColumn("lockoutCounterResetSeconds")+ allColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, IdentityIdColumn, EncryptedBindDNColumn, EncryptedBindPassColumn, EncryptedLdapCaCertificateColumn, URLColumn, SearchBaseColumn, SearchFilterColumn, AllowedFieldsColumn, CreatedAtColumn, UpdatedAtColumn, AccessTokenPeriodColumn, TemplateIdColumn, LockoutEnabledColumn, LockoutThresholdColumn, LockoutDurationSecondsColumn, LockoutCounterResetSecondsColumn}+ mutableColumns = postgres.ColumnList{AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, IdentityIdColumn, EncryptedBindDNColumn, EncryptedBindPassColumn, EncryptedLdapCaCertificateColumn, URLColumn, SearchBaseColumn, SearchFilterColumn, AllowedFieldsColumn, CreatedAtColumn, UpdatedAtColumn, AccessTokenPeriodColumn, TemplateIdColumn, LockoutEnabledColumn, LockoutThresholdColumn, LockoutDurationSecondsColumn, LockoutCounterResetSecondsColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, CreatedAtColumn, UpdatedAtColumn, AccessTokenPeriodColumn, LockoutEnabledColumn, LockoutThresholdColumn, LockoutDurationSecondsColumn, LockoutCounterResetSecondsColumn}+ )++ return identityLdapAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AccessTokenTTL: AccessTokenTTLColumn,+ AccessTokenMaxTTL: AccessTokenMaxTTLColumn,+ AccessTokenNumUsesLimit: AccessTokenNumUsesLimitColumn,+ AccessTokenTrustedIps: AccessTokenTrustedIpsColumn,+ IdentityId: IdentityIdColumn,+ EncryptedBindDN: EncryptedBindDNColumn,+ EncryptedBindPass: EncryptedBindPassColumn,+ EncryptedLdapCaCertificate: EncryptedLdapCaCertificateColumn,+ URL: URLColumn,+ SearchBase: SearchBaseColumn,+ SearchFilter: SearchFilterColumn,+ AllowedFields: AllowedFieldsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ AccessTokenPeriod: AccessTokenPeriodColumn,+ TemplateId: TemplateIdColumn,+ LockoutEnabled: LockoutEnabledColumn,+ LockoutThreshold: LockoutThresholdColumn,+ LockoutDurationSeconds: LockoutDurationSecondsColumn,+ LockoutCounterResetSeconds: LockoutCounterResetSecondsColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_metadata.go b/backend-go/internal/database/pg/gen/table/identity_metadata.gonew file mode 100644index 0000000000..c6e88eb93a--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_metadata.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityMetadata = newIdentityMetadataTable("public", "identity_metadata", "")++type identityMetadataTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Key postgres.ColumnString+ Value postgres.ColumnString+ OrgId postgres.ColumnString+ UserId postgres.ColumnString+ IdentityId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityMetadataTable struct {+ identityMetadataTable++ EXCLUDED identityMetadataTable+}++// AS creates new IdentityMetadataTable with assigned alias+func (a IdentityMetadataTable) AS(alias string) *IdentityMetadataTable {+ return newIdentityMetadataTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityMetadataTable with assigned schema name+func (a IdentityMetadataTable) FromSchema(schemaName string) *IdentityMetadataTable {+ return newIdentityMetadataTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityMetadataTable with assigned table prefix+func (a IdentityMetadataTable) WithPrefix(prefix string) *IdentityMetadataTable {+ return newIdentityMetadataTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityMetadataTable with assigned table suffix+func (a IdentityMetadataTable) WithSuffix(suffix string) *IdentityMetadataTable {+ return newIdentityMetadataTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityMetadataTable(schemaName, tableName, alias string) *IdentityMetadataTable {+ return &IdentityMetadataTable{+ identityMetadataTable: newIdentityMetadataTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityMetadataTableImpl("", "excluded", ""),+ }+}++func newIdentityMetadataTableImpl(schemaName, tableName, alias string) identityMetadataTable {+ var (+ IDColumn = postgres.StringColumn("id")+ KeyColumn = postgres.StringColumn("key")+ ValueColumn = postgres.StringColumn("value")+ OrgIdColumn = postgres.StringColumn("orgId")+ UserIdColumn = postgres.StringColumn("userId")+ IdentityIdColumn = postgres.StringColumn("identityId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, KeyColumn, ValueColumn, OrgIdColumn, UserIdColumn, IdentityIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{KeyColumn, ValueColumn, OrgIdColumn, UserIdColumn, IdentityIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return identityMetadataTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Key: KeyColumn,+ Value: ValueColumn,+ OrgId: OrgIdColumn,+ UserId: UserIdColumn,+ IdentityId: IdentityIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_oci_auths.go b/backend-go/internal/database/pg/gen/table/identity_oci_auths.gonew file mode 100644index 0000000000..9d1cf44f99--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_oci_auths.go@@ -0,0 +1,111 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityOciAuths = newIdentityOciAuthsTable("public", "identity_oci_auths", "")++type identityOciAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AccessTokenTTL postgres.ColumnInteger+ AccessTokenMaxTTL postgres.ColumnInteger+ AccessTokenNumUsesLimit postgres.ColumnInteger+ AccessTokenTrustedIps postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IdentityId postgres.ColumnString+ Type postgres.ColumnString+ TenancyOcid postgres.ColumnString+ AllowedUsernames postgres.ColumnString+ AccessTokenPeriod postgres.ColumnInteger++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityOciAuthsTable struct {+ identityOciAuthsTable++ EXCLUDED identityOciAuthsTable+}++// AS creates new IdentityOciAuthsTable with assigned alias+func (a IdentityOciAuthsTable) AS(alias string) *IdentityOciAuthsTable {+ return newIdentityOciAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityOciAuthsTable with assigned schema name+func (a IdentityOciAuthsTable) FromSchema(schemaName string) *IdentityOciAuthsTable {+ return newIdentityOciAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityOciAuthsTable with assigned table prefix+func (a IdentityOciAuthsTable) WithPrefix(prefix string) *IdentityOciAuthsTable {+ return newIdentityOciAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityOciAuthsTable with assigned table suffix+func (a IdentityOciAuthsTable) WithSuffix(suffix string) *IdentityOciAuthsTable {+ return newIdentityOciAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityOciAuthsTable(schemaName, tableName, alias string) *IdentityOciAuthsTable {+ return &IdentityOciAuthsTable{+ identityOciAuthsTable: newIdentityOciAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityOciAuthsTableImpl("", "excluded", ""),+ }+}++func newIdentityOciAuthsTableImpl(schemaName, tableName, alias string) identityOciAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AccessTokenTTLColumn = postgres.IntegerColumn("accessTokenTTL")+ AccessTokenMaxTTLColumn = postgres.IntegerColumn("accessTokenMaxTTL")+ AccessTokenNumUsesLimitColumn = postgres.IntegerColumn("accessTokenNumUsesLimit")+ AccessTokenTrustedIpsColumn = postgres.StringColumn("accessTokenTrustedIps")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IdentityIdColumn = postgres.StringColumn("identityId")+ TypeColumn = postgres.StringColumn("type")+ TenancyOcidColumn = postgres.StringColumn("tenancyOcid")+ AllowedUsernamesColumn = postgres.StringColumn("allowedUsernames")+ AccessTokenPeriodColumn = postgres.IntegerColumn("accessTokenPeriod")+ allColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, TypeColumn, TenancyOcidColumn, AllowedUsernamesColumn, AccessTokenPeriodColumn}+ mutableColumns = postgres.ColumnList{AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, TypeColumn, TenancyOcidColumn, AllowedUsernamesColumn, AccessTokenPeriodColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, CreatedAtColumn, UpdatedAtColumn, AccessTokenPeriodColumn}+ )++ return identityOciAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AccessTokenTTL: AccessTokenTTLColumn,+ AccessTokenMaxTTL: AccessTokenMaxTTLColumn,+ AccessTokenNumUsesLimit: AccessTokenNumUsesLimitColumn,+ AccessTokenTrustedIps: AccessTokenTrustedIpsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IdentityId: IdentityIdColumn,+ Type: TypeColumn,+ TenancyOcid: TenancyOcidColumn,+ AllowedUsernames: AllowedUsernamesColumn,+ AccessTokenPeriod: AccessTokenPeriodColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_oidc_auths.go b/backend-go/internal/database/pg/gen/table/identity_oidc_auths.gonew file mode 100644index 0000000000..4fffff41d2--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_oidc_auths.go@@ -0,0 +1,132 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityOidcAuths = newIdentityOidcAuthsTable("public", "identity_oidc_auths", "")++type identityOidcAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AccessTokenTTL postgres.ColumnInteger+ AccessTokenMaxTTL postgres.ColumnInteger+ AccessTokenNumUsesLimit postgres.ColumnInteger+ AccessTokenTrustedIps postgres.ColumnString+ IdentityId postgres.ColumnString+ OidcDiscoveryUrl postgres.ColumnString+ EncryptedCaCert postgres.ColumnString+ CaCertIV postgres.ColumnString+ CaCertTag postgres.ColumnString+ BoundIssuer postgres.ColumnString+ BoundAudiences postgres.ColumnString+ BoundClaims postgres.ColumnString+ BoundSubject postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ EncryptedCaCertificate postgres.ColumnBytea+ ClaimMetadataMapping postgres.ColumnString+ AccessTokenPeriod postgres.ColumnInteger++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityOidcAuthsTable struct {+ identityOidcAuthsTable++ EXCLUDED identityOidcAuthsTable+}++// AS creates new IdentityOidcAuthsTable with assigned alias+func (a IdentityOidcAuthsTable) AS(alias string) *IdentityOidcAuthsTable {+ return newIdentityOidcAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityOidcAuthsTable with assigned schema name+func (a IdentityOidcAuthsTable) FromSchema(schemaName string) *IdentityOidcAuthsTable {+ return newIdentityOidcAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityOidcAuthsTable with assigned table prefix+func (a IdentityOidcAuthsTable) WithPrefix(prefix string) *IdentityOidcAuthsTable {+ return newIdentityOidcAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityOidcAuthsTable with assigned table suffix+func (a IdentityOidcAuthsTable) WithSuffix(suffix string) *IdentityOidcAuthsTable {+ return newIdentityOidcAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityOidcAuthsTable(schemaName, tableName, alias string) *IdentityOidcAuthsTable {+ return &IdentityOidcAuthsTable{+ identityOidcAuthsTable: newIdentityOidcAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityOidcAuthsTableImpl("", "excluded", ""),+ }+}++func newIdentityOidcAuthsTableImpl(schemaName, tableName, alias string) identityOidcAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AccessTokenTTLColumn = postgres.IntegerColumn("accessTokenTTL")+ AccessTokenMaxTTLColumn = postgres.IntegerColumn("accessTokenMaxTTL")+ AccessTokenNumUsesLimitColumn = postgres.IntegerColumn("accessTokenNumUsesLimit")+ AccessTokenTrustedIpsColumn = postgres.StringColumn("accessTokenTrustedIps")+ IdentityIdColumn = postgres.StringColumn("identityId")+ OidcDiscoveryUrlColumn = postgres.StringColumn("oidcDiscoveryUrl")+ EncryptedCaCertColumn = postgres.StringColumn("encryptedCaCert")+ CaCertIVColumn = postgres.StringColumn("caCertIV")+ CaCertTagColumn = postgres.StringColumn("caCertTag")+ BoundIssuerColumn = postgres.StringColumn("boundIssuer")+ BoundAudiencesColumn = postgres.StringColumn("boundAudiences")+ BoundClaimsColumn = postgres.StringColumn("boundClaims")+ BoundSubjectColumn = postgres.StringColumn("boundSubject")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ EncryptedCaCertificateColumn = postgres.ByteaColumn("encryptedCaCertificate")+ ClaimMetadataMappingColumn = postgres.StringColumn("claimMetadataMapping")+ AccessTokenPeriodColumn = postgres.IntegerColumn("accessTokenPeriod")+ allColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, IdentityIdColumn, OidcDiscoveryUrlColumn, EncryptedCaCertColumn, CaCertIVColumn, CaCertTagColumn, BoundIssuerColumn, BoundAudiencesColumn, BoundClaimsColumn, BoundSubjectColumn, CreatedAtColumn, UpdatedAtColumn, EncryptedCaCertificateColumn, ClaimMetadataMappingColumn, AccessTokenPeriodColumn}+ mutableColumns = postgres.ColumnList{AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, IdentityIdColumn, OidcDiscoveryUrlColumn, EncryptedCaCertColumn, CaCertIVColumn, CaCertTagColumn, BoundIssuerColumn, BoundAudiencesColumn, BoundClaimsColumn, BoundSubjectColumn, CreatedAtColumn, UpdatedAtColumn, EncryptedCaCertificateColumn, ClaimMetadataMappingColumn, AccessTokenPeriodColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, CreatedAtColumn, UpdatedAtColumn, AccessTokenPeriodColumn}+ )++ return identityOidcAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AccessTokenTTL: AccessTokenTTLColumn,+ AccessTokenMaxTTL: AccessTokenMaxTTLColumn,+ AccessTokenNumUsesLimit: AccessTokenNumUsesLimitColumn,+ AccessTokenTrustedIps: AccessTokenTrustedIpsColumn,+ IdentityId: IdentityIdColumn,+ OidcDiscoveryUrl: OidcDiscoveryUrlColumn,+ EncryptedCaCert: EncryptedCaCertColumn,+ CaCertIV: CaCertIVColumn,+ CaCertTag: CaCertTagColumn,+ BoundIssuer: BoundIssuerColumn,+ BoundAudiences: BoundAudiencesColumn,+ BoundClaims: BoundClaimsColumn,+ BoundSubject: BoundSubjectColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ EncryptedCaCertificate: EncryptedCaCertificateColumn,+ ClaimMetadataMapping: ClaimMetadataMappingColumn,+ AccessTokenPeriod: AccessTokenPeriodColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_spiffe_auths.go b/backend-go/internal/database/pg/gen/table/identity_spiffe_auths.gonew file mode 100644index 0000000000..9b9f33aa5e--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_spiffe_auths.go@@ -0,0 +1,129 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentitySpiffeAuths = newIdentitySpiffeAuthsTable("public", "identity_spiffe_auths", "")++type identitySpiffeAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ IdentityId postgres.ColumnString+ TrustDomain postgres.ColumnString+ AllowedSpiffeIds postgres.ColumnString+ AllowedAudiences postgres.ColumnString+ ConfigurationType postgres.ColumnString+ EncryptedCaBundleJwks postgres.ColumnBytea+ BundleEndpointUrl postgres.ColumnString+ EncryptedBundleEndpointCaCert postgres.ColumnBytea+ EncryptedCachedBundleJwks postgres.ColumnBytea+ CachedBundleLastRefreshedAt postgres.ColumnTimestampz+ BundleRefreshHintSeconds postgres.ColumnInteger+ AccessTokenTTL postgres.ColumnInteger+ AccessTokenMaxTTL postgres.ColumnInteger+ AccessTokenNumUsesLimit postgres.ColumnInteger+ AccessTokenTrustedIps postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentitySpiffeAuthsTable struct {+ identitySpiffeAuthsTable++ EXCLUDED identitySpiffeAuthsTable+}++// AS creates new IdentitySpiffeAuthsTable with assigned alias+func (a IdentitySpiffeAuthsTable) AS(alias string) *IdentitySpiffeAuthsTable {+ return newIdentitySpiffeAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentitySpiffeAuthsTable with assigned schema name+func (a IdentitySpiffeAuthsTable) FromSchema(schemaName string) *IdentitySpiffeAuthsTable {+ return newIdentitySpiffeAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentitySpiffeAuthsTable with assigned table prefix+func (a IdentitySpiffeAuthsTable) WithPrefix(prefix string) *IdentitySpiffeAuthsTable {+ return newIdentitySpiffeAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentitySpiffeAuthsTable with assigned table suffix+func (a IdentitySpiffeAuthsTable) WithSuffix(suffix string) *IdentitySpiffeAuthsTable {+ return newIdentitySpiffeAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentitySpiffeAuthsTable(schemaName, tableName, alias string) *IdentitySpiffeAuthsTable {+ return &IdentitySpiffeAuthsTable{+ identitySpiffeAuthsTable: newIdentitySpiffeAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentitySpiffeAuthsTableImpl("", "excluded", ""),+ }+}++func newIdentitySpiffeAuthsTableImpl(schemaName, tableName, alias string) identitySpiffeAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ IdentityIdColumn = postgres.StringColumn("identityId")+ TrustDomainColumn = postgres.StringColumn("trustDomain")+ AllowedSpiffeIdsColumn = postgres.StringColumn("allowedSpiffeIds")+ AllowedAudiencesColumn = postgres.StringColumn("allowedAudiences")+ ConfigurationTypeColumn = postgres.StringColumn("configurationType")+ EncryptedCaBundleJwksColumn = postgres.ByteaColumn("encryptedCaBundleJwks")+ BundleEndpointUrlColumn = postgres.StringColumn("bundleEndpointUrl")+ EncryptedBundleEndpointCaCertColumn = postgres.ByteaColumn("encryptedBundleEndpointCaCert")+ EncryptedCachedBundleJwksColumn = postgres.ByteaColumn("encryptedCachedBundleJwks")+ CachedBundleLastRefreshedAtColumn = postgres.TimestampzColumn("cachedBundleLastRefreshedAt")+ BundleRefreshHintSecondsColumn = postgres.IntegerColumn("bundleRefreshHintSeconds")+ AccessTokenTTLColumn = postgres.IntegerColumn("accessTokenTTL")+ AccessTokenMaxTTLColumn = postgres.IntegerColumn("accessTokenMaxTTL")+ AccessTokenNumUsesLimitColumn = postgres.IntegerColumn("accessTokenNumUsesLimit")+ AccessTokenTrustedIpsColumn = postgres.StringColumn("accessTokenTrustedIps")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, IdentityIdColumn, TrustDomainColumn, AllowedSpiffeIdsColumn, AllowedAudiencesColumn, ConfigurationTypeColumn, EncryptedCaBundleJwksColumn, BundleEndpointUrlColumn, EncryptedBundleEndpointCaCertColumn, EncryptedCachedBundleJwksColumn, CachedBundleLastRefreshedAtColumn, BundleRefreshHintSecondsColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{IdentityIdColumn, TrustDomainColumn, AllowedSpiffeIdsColumn, AllowedAudiencesColumn, ConfigurationTypeColumn, EncryptedCaBundleJwksColumn, BundleEndpointUrlColumn, EncryptedBundleEndpointCaCertColumn, EncryptedCachedBundleJwksColumn, CachedBundleLastRefreshedAtColumn, BundleRefreshHintSecondsColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, BundleRefreshHintSecondsColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return identitySpiffeAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ IdentityId: IdentityIdColumn,+ TrustDomain: TrustDomainColumn,+ AllowedSpiffeIds: AllowedSpiffeIdsColumn,+ AllowedAudiences: AllowedAudiencesColumn,+ ConfigurationType: ConfigurationTypeColumn,+ EncryptedCaBundleJwks: EncryptedCaBundleJwksColumn,+ BundleEndpointUrl: BundleEndpointUrlColumn,+ EncryptedBundleEndpointCaCert: EncryptedBundleEndpointCaCertColumn,+ EncryptedCachedBundleJwks: EncryptedCachedBundleJwksColumn,+ CachedBundleLastRefreshedAt: CachedBundleLastRefreshedAtColumn,+ BundleRefreshHintSeconds: BundleRefreshHintSecondsColumn,+ AccessTokenTTL: AccessTokenTTLColumn,+ AccessTokenMaxTTL: AccessTokenMaxTTLColumn,+ AccessTokenNumUsesLimit: AccessTokenNumUsesLimitColumn,+ AccessTokenTrustedIps: AccessTokenTrustedIpsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_tls_cert_auths.go b/backend-go/internal/database/pg/gen/table/identity_tls_cert_auths.gonew file mode 100644index 0000000000..8401a8bd29--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_tls_cert_auths.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityTLSCertAuths = newIdentityTLSCertAuthsTable("public", "identity_tls_cert_auths", "")++type identityTLSCertAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AccessTokenTTL postgres.ColumnInteger+ AccessTokenMaxTTL postgres.ColumnInteger+ AccessTokenNumUsesLimit postgres.ColumnInteger+ AccessTokenTrustedIps postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IdentityId postgres.ColumnString+ AllowedCommonNames postgres.ColumnString+ EncryptedCaCertificate postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityTLSCertAuthsTable struct {+ identityTLSCertAuthsTable++ EXCLUDED identityTLSCertAuthsTable+}++// AS creates new IdentityTLSCertAuthsTable with assigned alias+func (a IdentityTLSCertAuthsTable) AS(alias string) *IdentityTLSCertAuthsTable {+ return newIdentityTLSCertAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityTLSCertAuthsTable with assigned schema name+func (a IdentityTLSCertAuthsTable) FromSchema(schemaName string) *IdentityTLSCertAuthsTable {+ return newIdentityTLSCertAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityTLSCertAuthsTable with assigned table prefix+func (a IdentityTLSCertAuthsTable) WithPrefix(prefix string) *IdentityTLSCertAuthsTable {+ return newIdentityTLSCertAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityTLSCertAuthsTable with assigned table suffix+func (a IdentityTLSCertAuthsTable) WithSuffix(suffix string) *IdentityTLSCertAuthsTable {+ return newIdentityTLSCertAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityTLSCertAuthsTable(schemaName, tableName, alias string) *IdentityTLSCertAuthsTable {+ return &IdentityTLSCertAuthsTable{+ identityTLSCertAuthsTable: newIdentityTLSCertAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityTLSCertAuthsTableImpl("", "excluded", ""),+ }+}++func newIdentityTLSCertAuthsTableImpl(schemaName, tableName, alias string) identityTLSCertAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AccessTokenTTLColumn = postgres.IntegerColumn("accessTokenTTL")+ AccessTokenMaxTTLColumn = postgres.IntegerColumn("accessTokenMaxTTL")+ AccessTokenNumUsesLimitColumn = postgres.IntegerColumn("accessTokenNumUsesLimit")+ AccessTokenTrustedIpsColumn = postgres.StringColumn("accessTokenTrustedIps")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IdentityIdColumn = postgres.StringColumn("identityId")+ AllowedCommonNamesColumn = postgres.StringColumn("allowedCommonNames")+ EncryptedCaCertificateColumn = postgres.ByteaColumn("encryptedCaCertificate")+ allColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, AllowedCommonNamesColumn, EncryptedCaCertificateColumn}+ mutableColumns = postgres.ColumnList{AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, AllowedCommonNamesColumn, EncryptedCaCertificateColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return identityTLSCertAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AccessTokenTTL: AccessTokenTTLColumn,+ AccessTokenMaxTTL: AccessTokenMaxTTLColumn,+ AccessTokenNumUsesLimit: AccessTokenNumUsesLimitColumn,+ AccessTokenTrustedIps: AccessTokenTrustedIpsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IdentityId: IdentityIdColumn,+ AllowedCommonNames: AllowedCommonNamesColumn,+ EncryptedCaCertificate: EncryptedCaCertificateColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_token_auths.go b/backend-go/internal/database/pg/gen/table/identity_token_auths.gonew file mode 100644index 0000000000..23928bf7cb--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_token_auths.go@@ -0,0 +1,102 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityTokenAuths = newIdentityTokenAuthsTable("public", "identity_token_auths", "")++type identityTokenAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AccessTokenTTL postgres.ColumnInteger+ AccessTokenMaxTTL postgres.ColumnInteger+ AccessTokenNumUsesLimit postgres.ColumnInteger+ AccessTokenTrustedIps postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IdentityId postgres.ColumnString+ AccessTokenPeriod postgres.ColumnInteger++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityTokenAuthsTable struct {+ identityTokenAuthsTable++ EXCLUDED identityTokenAuthsTable+}++// AS creates new IdentityTokenAuthsTable with assigned alias+func (a IdentityTokenAuthsTable) AS(alias string) *IdentityTokenAuthsTable {+ return newIdentityTokenAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityTokenAuthsTable with assigned schema name+func (a IdentityTokenAuthsTable) FromSchema(schemaName string) *IdentityTokenAuthsTable {+ return newIdentityTokenAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityTokenAuthsTable with assigned table prefix+func (a IdentityTokenAuthsTable) WithPrefix(prefix string) *IdentityTokenAuthsTable {+ return newIdentityTokenAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityTokenAuthsTable with assigned table suffix+func (a IdentityTokenAuthsTable) WithSuffix(suffix string) *IdentityTokenAuthsTable {+ return newIdentityTokenAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityTokenAuthsTable(schemaName, tableName, alias string) *IdentityTokenAuthsTable {+ return &IdentityTokenAuthsTable{+ identityTokenAuthsTable: newIdentityTokenAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityTokenAuthsTableImpl("", "excluded", ""),+ }+}++func newIdentityTokenAuthsTableImpl(schemaName, tableName, alias string) identityTokenAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AccessTokenTTLColumn = postgres.IntegerColumn("accessTokenTTL")+ AccessTokenMaxTTLColumn = postgres.IntegerColumn("accessTokenMaxTTL")+ AccessTokenNumUsesLimitColumn = postgres.IntegerColumn("accessTokenNumUsesLimit")+ AccessTokenTrustedIpsColumn = postgres.StringColumn("accessTokenTrustedIps")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IdentityIdColumn = postgres.StringColumn("identityId")+ AccessTokenPeriodColumn = postgres.IntegerColumn("accessTokenPeriod")+ allColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, AccessTokenPeriodColumn}+ mutableColumns = postgres.ColumnList{AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, AccessTokenPeriodColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, CreatedAtColumn, UpdatedAtColumn, AccessTokenPeriodColumn}+ )++ return identityTokenAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AccessTokenTTL: AccessTokenTTLColumn,+ AccessTokenMaxTTL: AccessTokenMaxTTLColumn,+ AccessTokenNumUsesLimit: AccessTokenNumUsesLimitColumn,+ AccessTokenTrustedIps: AccessTokenTrustedIpsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IdentityId: IdentityIdColumn,+ AccessTokenPeriod: AccessTokenPeriodColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_ua_client_secrets.go b/backend-go/internal/database/pg/gen/table/identity_ua_client_secrets.gonew file mode 100644index 0000000000..0b361d349c--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_ua_client_secrets.go@@ -0,0 +1,111 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityUaClientSecrets = newIdentityUaClientSecretsTable("public", "identity_ua_client_secrets", "")++type identityUaClientSecretsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Description postgres.ColumnString+ ClientSecretPrefix postgres.ColumnString+ ClientSecretHash postgres.ColumnString+ ClientSecretLastUsedAt postgres.ColumnTimestampz+ ClientSecretNumUses postgres.ColumnInteger+ ClientSecretNumUsesLimit postgres.ColumnInteger+ ClientSecretTTL postgres.ColumnInteger+ IsClientSecretRevoked postgres.ColumnBool+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IdentityUAId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityUaClientSecretsTable struct {+ identityUaClientSecretsTable++ EXCLUDED identityUaClientSecretsTable+}++// AS creates new IdentityUaClientSecretsTable with assigned alias+func (a IdentityUaClientSecretsTable) AS(alias string) *IdentityUaClientSecretsTable {+ return newIdentityUaClientSecretsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityUaClientSecretsTable with assigned schema name+func (a IdentityUaClientSecretsTable) FromSchema(schemaName string) *IdentityUaClientSecretsTable {+ return newIdentityUaClientSecretsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityUaClientSecretsTable with assigned table prefix+func (a IdentityUaClientSecretsTable) WithPrefix(prefix string) *IdentityUaClientSecretsTable {+ return newIdentityUaClientSecretsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityUaClientSecretsTable with assigned table suffix+func (a IdentityUaClientSecretsTable) WithSuffix(suffix string) *IdentityUaClientSecretsTable {+ return newIdentityUaClientSecretsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityUaClientSecretsTable(schemaName, tableName, alias string) *IdentityUaClientSecretsTable {+ return &IdentityUaClientSecretsTable{+ identityUaClientSecretsTable: newIdentityUaClientSecretsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityUaClientSecretsTableImpl("", "excluded", ""),+ }+}++func newIdentityUaClientSecretsTableImpl(schemaName, tableName, alias string) identityUaClientSecretsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ DescriptionColumn = postgres.StringColumn("description")+ ClientSecretPrefixColumn = postgres.StringColumn("clientSecretPrefix")+ ClientSecretHashColumn = postgres.StringColumn("clientSecretHash")+ ClientSecretLastUsedAtColumn = postgres.TimestampzColumn("clientSecretLastUsedAt")+ ClientSecretNumUsesColumn = postgres.IntegerColumn("clientSecretNumUses")+ ClientSecretNumUsesLimitColumn = postgres.IntegerColumn("clientSecretNumUsesLimit")+ ClientSecretTTLColumn = postgres.IntegerColumn("clientSecretTTL")+ IsClientSecretRevokedColumn = postgres.BoolColumn("isClientSecretRevoked")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IdentityUAIdColumn = postgres.StringColumn("identityUAId")+ allColumns = postgres.ColumnList{IDColumn, DescriptionColumn, ClientSecretPrefixColumn, ClientSecretHashColumn, ClientSecretLastUsedAtColumn, ClientSecretNumUsesColumn, ClientSecretNumUsesLimitColumn, ClientSecretTTLColumn, IsClientSecretRevokedColumn, CreatedAtColumn, UpdatedAtColumn, IdentityUAIdColumn}+ mutableColumns = postgres.ColumnList{DescriptionColumn, ClientSecretPrefixColumn, ClientSecretHashColumn, ClientSecretLastUsedAtColumn, ClientSecretNumUsesColumn, ClientSecretNumUsesLimitColumn, ClientSecretTTLColumn, IsClientSecretRevokedColumn, CreatedAtColumn, UpdatedAtColumn, IdentityUAIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, ClientSecretNumUsesColumn, ClientSecretNumUsesLimitColumn, ClientSecretTTLColumn, IsClientSecretRevokedColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return identityUaClientSecretsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Description: DescriptionColumn,+ ClientSecretPrefix: ClientSecretPrefixColumn,+ ClientSecretHash: ClientSecretHashColumn,+ ClientSecretLastUsedAt: ClientSecretLastUsedAtColumn,+ ClientSecretNumUses: ClientSecretNumUsesColumn,+ ClientSecretNumUsesLimit: ClientSecretNumUsesLimitColumn,+ ClientSecretTTL: ClientSecretTTLColumn,+ IsClientSecretRevoked: IsClientSecretRevokedColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IdentityUAId: IdentityUAIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/identity_universal_auths.go b/backend-go/internal/database/pg/gen/table/identity_universal_auths.gonew file mode 100644index 0000000000..25f52a74ec--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/identity_universal_auths.go@@ -0,0 +1,120 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IdentityUniversalAuths = newIdentityUniversalAuthsTable("public", "identity_universal_auths", "")++type identityUniversalAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ClientId postgres.ColumnString+ AccessTokenTTL postgres.ColumnInteger+ AccessTokenMaxTTL postgres.ColumnInteger+ AccessTokenNumUsesLimit postgres.ColumnInteger+ ClientSecretTrustedIps postgres.ColumnString+ AccessTokenTrustedIps postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IdentityId postgres.ColumnString+ AccessTokenPeriod postgres.ColumnInteger+ LockoutEnabled postgres.ColumnBool+ LockoutThreshold postgres.ColumnInteger+ LockoutDurationSeconds postgres.ColumnInteger+ LockoutCounterResetSeconds postgres.ColumnInteger++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IdentityUniversalAuthsTable struct {+ identityUniversalAuthsTable++ EXCLUDED identityUniversalAuthsTable+}++// AS creates new IdentityUniversalAuthsTable with assigned alias+func (a IdentityUniversalAuthsTable) AS(alias string) *IdentityUniversalAuthsTable {+ return newIdentityUniversalAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IdentityUniversalAuthsTable with assigned schema name+func (a IdentityUniversalAuthsTable) FromSchema(schemaName string) *IdentityUniversalAuthsTable {+ return newIdentityUniversalAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IdentityUniversalAuthsTable with assigned table prefix+func (a IdentityUniversalAuthsTable) WithPrefix(prefix string) *IdentityUniversalAuthsTable {+ return newIdentityUniversalAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IdentityUniversalAuthsTable with assigned table suffix+func (a IdentityUniversalAuthsTable) WithSuffix(suffix string) *IdentityUniversalAuthsTable {+ return newIdentityUniversalAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIdentityUniversalAuthsTable(schemaName, tableName, alias string) *IdentityUniversalAuthsTable {+ return &IdentityUniversalAuthsTable{+ identityUniversalAuthsTable: newIdentityUniversalAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIdentityUniversalAuthsTableImpl("", "excluded", ""),+ }+}++func newIdentityUniversalAuthsTableImpl(schemaName, tableName, alias string) identityUniversalAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ClientIdColumn = postgres.StringColumn("clientId")+ AccessTokenTTLColumn = postgres.IntegerColumn("accessTokenTTL")+ AccessTokenMaxTTLColumn = postgres.IntegerColumn("accessTokenMaxTTL")+ AccessTokenNumUsesLimitColumn = postgres.IntegerColumn("accessTokenNumUsesLimit")+ ClientSecretTrustedIpsColumn = postgres.StringColumn("clientSecretTrustedIps")+ AccessTokenTrustedIpsColumn = postgres.StringColumn("accessTokenTrustedIps")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IdentityIdColumn = postgres.StringColumn("identityId")+ AccessTokenPeriodColumn = postgres.IntegerColumn("accessTokenPeriod")+ LockoutEnabledColumn = postgres.BoolColumn("lockoutEnabled")+ LockoutThresholdColumn = postgres.IntegerColumn("lockoutThreshold")+ LockoutDurationSecondsColumn = postgres.IntegerColumn("lockoutDurationSeconds")+ LockoutCounterResetSecondsColumn = postgres.IntegerColumn("lockoutCounterResetSeconds")+ allColumns = postgres.ColumnList{IDColumn, ClientIdColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, ClientSecretTrustedIpsColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, AccessTokenPeriodColumn, LockoutEnabledColumn, LockoutThresholdColumn, LockoutDurationSecondsColumn, LockoutCounterResetSecondsColumn}+ mutableColumns = postgres.ColumnList{ClientIdColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, ClientSecretTrustedIpsColumn, AccessTokenTrustedIpsColumn, CreatedAtColumn, UpdatedAtColumn, IdentityIdColumn, AccessTokenPeriodColumn, LockoutEnabledColumn, LockoutThresholdColumn, LockoutDurationSecondsColumn, LockoutCounterResetSecondsColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AccessTokenTTLColumn, AccessTokenMaxTTLColumn, AccessTokenNumUsesLimitColumn, CreatedAtColumn, UpdatedAtColumn, AccessTokenPeriodColumn, LockoutEnabledColumn, LockoutThresholdColumn, LockoutDurationSecondsColumn, LockoutCounterResetSecondsColumn}+ )++ return identityUniversalAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ClientId: ClientIdColumn,+ AccessTokenTTL: AccessTokenTTLColumn,+ AccessTokenMaxTTL: AccessTokenMaxTTLColumn,+ AccessTokenNumUsesLimit: AccessTokenNumUsesLimitColumn,+ ClientSecretTrustedIps: ClientSecretTrustedIpsColumn,+ AccessTokenTrustedIps: AccessTokenTrustedIpsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IdentityId: IdentityIdColumn,+ AccessTokenPeriod: AccessTokenPeriodColumn,+ LockoutEnabled: LockoutEnabledColumn,+ LockoutThreshold: LockoutThresholdColumn,+ LockoutDurationSeconds: LockoutDurationSecondsColumn,+ LockoutCounterResetSeconds: LockoutCounterResetSecondsColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/incident_contacts.go b/backend-go/internal/database/pg/gen/table/incident_contacts.gonew file mode 100644index 0000000000..e2fb468471--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/incident_contacts.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IncidentContacts = newIncidentContactsTable("public", "incident_contacts", "")++type incidentContactsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Email postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ OrgId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IncidentContactsTable struct {+ incidentContactsTable++ EXCLUDED incidentContactsTable+}++// AS creates new IncidentContactsTable with assigned alias+func (a IncidentContactsTable) AS(alias string) *IncidentContactsTable {+ return newIncidentContactsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IncidentContactsTable with assigned schema name+func (a IncidentContactsTable) FromSchema(schemaName string) *IncidentContactsTable {+ return newIncidentContactsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IncidentContactsTable with assigned table prefix+func (a IncidentContactsTable) WithPrefix(prefix string) *IncidentContactsTable {+ return newIncidentContactsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IncidentContactsTable with assigned table suffix+func (a IncidentContactsTable) WithSuffix(suffix string) *IncidentContactsTable {+ return newIncidentContactsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIncidentContactsTable(schemaName, tableName, alias string) *IncidentContactsTable {+ return &IncidentContactsTable{+ incidentContactsTable: newIncidentContactsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIncidentContactsTableImpl("", "excluded", ""),+ }+}++func newIncidentContactsTableImpl(schemaName, tableName, alias string) incidentContactsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ EmailColumn = postgres.StringColumn("email")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ OrgIdColumn = postgres.StringColumn("orgId")+ allColumns = postgres.ColumnList{IDColumn, EmailColumn, CreatedAtColumn, UpdatedAtColumn, OrgIdColumn}+ mutableColumns = postgres.ColumnList{EmailColumn, CreatedAtColumn, UpdatedAtColumn, OrgIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return incidentContactsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Email: EmailColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ OrgId: OrgIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/infisical_migrations.go b/backend-go/internal/database/pg/gen/table/infisical_migrations.gonew file mode 100644index 0000000000..15490af6ff--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/infisical_migrations.go@@ -0,0 +1,87 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var InfisicalMigrations = newInfisicalMigrationsTable("public", "infisical_migrations", "")++type infisicalMigrationsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnInteger+ Name postgres.ColumnString+ Batch postgres.ColumnInteger+ MigrationTime postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type InfisicalMigrationsTable struct {+ infisicalMigrationsTable++ EXCLUDED infisicalMigrationsTable+}++// AS creates new InfisicalMigrationsTable with assigned alias+func (a InfisicalMigrationsTable) AS(alias string) *InfisicalMigrationsTable {+ return newInfisicalMigrationsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new InfisicalMigrationsTable with assigned schema name+func (a InfisicalMigrationsTable) FromSchema(schemaName string) *InfisicalMigrationsTable {+ return newInfisicalMigrationsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new InfisicalMigrationsTable with assigned table prefix+func (a InfisicalMigrationsTable) WithPrefix(prefix string) *InfisicalMigrationsTable {+ return newInfisicalMigrationsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new InfisicalMigrationsTable with assigned table suffix+func (a InfisicalMigrationsTable) WithSuffix(suffix string) *InfisicalMigrationsTable {+ return newInfisicalMigrationsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newInfisicalMigrationsTable(schemaName, tableName, alias string) *InfisicalMigrationsTable {+ return &InfisicalMigrationsTable{+ infisicalMigrationsTable: newInfisicalMigrationsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newInfisicalMigrationsTableImpl("", "excluded", ""),+ }+}++func newInfisicalMigrationsTableImpl(schemaName, tableName, alias string) infisicalMigrationsTable {+ var (+ IDColumn = postgres.IntegerColumn("id")+ NameColumn = postgres.StringColumn("name")+ BatchColumn = postgres.IntegerColumn("batch")+ MigrationTimeColumn = postgres.TimestampzColumn("migration_time")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, BatchColumn, MigrationTimeColumn}+ mutableColumns = postgres.ColumnList{NameColumn, BatchColumn, MigrationTimeColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return infisicalMigrationsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Batch: BatchColumn,+ MigrationTime: MigrationTimeColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/infisical_migrations_lock.go b/backend-go/internal/database/pg/gen/table/infisical_migrations_lock.gonew file mode 100644index 0000000000..a1930d6224--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/infisical_migrations_lock.go@@ -0,0 +1,81 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var InfisicalMigrationsLock = newInfisicalMigrationsLockTable("public", "infisical_migrations_lock", "")++type infisicalMigrationsLockTable struct {+ postgres.Table++ // Columns+ Index postgres.ColumnInteger+ IsLocked postgres.ColumnInteger++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type InfisicalMigrationsLockTable struct {+ infisicalMigrationsLockTable++ EXCLUDED infisicalMigrationsLockTable+}++// AS creates new InfisicalMigrationsLockTable with assigned alias+func (a InfisicalMigrationsLockTable) AS(alias string) *InfisicalMigrationsLockTable {+ return newInfisicalMigrationsLockTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new InfisicalMigrationsLockTable with assigned schema name+func (a InfisicalMigrationsLockTable) FromSchema(schemaName string) *InfisicalMigrationsLockTable {+ return newInfisicalMigrationsLockTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new InfisicalMigrationsLockTable with assigned table prefix+func (a InfisicalMigrationsLockTable) WithPrefix(prefix string) *InfisicalMigrationsLockTable {+ return newInfisicalMigrationsLockTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new InfisicalMigrationsLockTable with assigned table suffix+func (a InfisicalMigrationsLockTable) WithSuffix(suffix string) *InfisicalMigrationsLockTable {+ return newInfisicalMigrationsLockTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newInfisicalMigrationsLockTable(schemaName, tableName, alias string) *InfisicalMigrationsLockTable {+ return &InfisicalMigrationsLockTable{+ infisicalMigrationsLockTable: newInfisicalMigrationsLockTableImpl(schemaName, tableName, alias),+ EXCLUDED: newInfisicalMigrationsLockTableImpl("", "excluded", ""),+ }+}++func newInfisicalMigrationsLockTableImpl(schemaName, tableName, alias string) infisicalMigrationsLockTable {+ var (+ IndexColumn = postgres.IntegerColumn("index")+ IsLockedColumn = postgres.IntegerColumn("is_locked")+ allColumns = postgres.ColumnList{IndexColumn, IsLockedColumn}+ mutableColumns = postgres.ColumnList{IsLockedColumn}+ defaultColumns = postgres.ColumnList{IndexColumn}+ )++ return infisicalMigrationsLockTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ Index: IndexColumn,+ IsLocked: IsLockedColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/infisical_migrations_startup_lock.go b/backend-go/internal/database/pg/gen/table/infisical_migrations_startup_lock.gonew file mode 100644index 0000000000..d40306f374--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/infisical_migrations_startup_lock.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var InfisicalMigrationsStartupLock = newInfisicalMigrationsStartupLockTable("public", "infisical_migrations_startup_lock", "")++type infisicalMigrationsStartupLockTable struct {+ postgres.Table++ // Columns+ Index postgres.ColumnInteger+ IsLocked postgres.ColumnInteger+ SessionID postgres.ColumnString+ Node postgres.ColumnString+ HeartbeatUpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type InfisicalMigrationsStartupLockTable struct {+ infisicalMigrationsStartupLockTable++ EXCLUDED infisicalMigrationsStartupLockTable+}++// AS creates new InfisicalMigrationsStartupLockTable with assigned alias+func (a InfisicalMigrationsStartupLockTable) AS(alias string) *InfisicalMigrationsStartupLockTable {+ return newInfisicalMigrationsStartupLockTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new InfisicalMigrationsStartupLockTable with assigned schema name+func (a InfisicalMigrationsStartupLockTable) FromSchema(schemaName string) *InfisicalMigrationsStartupLockTable {+ return newInfisicalMigrationsStartupLockTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new InfisicalMigrationsStartupLockTable with assigned table prefix+func (a InfisicalMigrationsStartupLockTable) WithPrefix(prefix string) *InfisicalMigrationsStartupLockTable {+ return newInfisicalMigrationsStartupLockTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new InfisicalMigrationsStartupLockTable with assigned table suffix+func (a InfisicalMigrationsStartupLockTable) WithSuffix(suffix string) *InfisicalMigrationsStartupLockTable {+ return newInfisicalMigrationsStartupLockTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newInfisicalMigrationsStartupLockTable(schemaName, tableName, alias string) *InfisicalMigrationsStartupLockTable {+ return &InfisicalMigrationsStartupLockTable{+ infisicalMigrationsStartupLockTable: newInfisicalMigrationsStartupLockTableImpl(schemaName, tableName, alias),+ EXCLUDED: newInfisicalMigrationsStartupLockTableImpl("", "excluded", ""),+ }+}++func newInfisicalMigrationsStartupLockTableImpl(schemaName, tableName, alias string) infisicalMigrationsStartupLockTable {+ var (+ IndexColumn = postgres.IntegerColumn("index")+ IsLockedColumn = postgres.IntegerColumn("is_locked")+ SessionIDColumn = postgres.StringColumn("session_id")+ NodeColumn = postgres.StringColumn("node")+ HeartbeatUpdatedAtColumn = postgres.TimestampzColumn("heartbeat_updated_at")+ allColumns = postgres.ColumnList{IndexColumn, IsLockedColumn, SessionIDColumn, NodeColumn, HeartbeatUpdatedAtColumn}+ mutableColumns = postgres.ColumnList{IsLockedColumn, SessionIDColumn, NodeColumn, HeartbeatUpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IndexColumn}+ )++ return infisicalMigrationsStartupLockTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ Index: IndexColumn,+ IsLocked: IsLockedColumn,+ SessionID: SessionIDColumn,+ Node: NodeColumn,+ HeartbeatUpdatedAt: HeartbeatUpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/instance_relay_config.go b/backend-go/internal/database/pg/gen/table/instance_relay_config.gonew file mode 100644index 0000000000..59b4dbc2d4--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/instance_relay_config.go@@ -0,0 +1,138 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var InstanceRelayConfig = newInstanceRelayConfigTable("public", "instance_relay_config", "")++type instanceRelayConfigTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ EncryptedRootRelayPkiCaPrivateKey postgres.ColumnBytea+ EncryptedRootRelayPkiCaCertificate postgres.ColumnBytea+ EncryptedInstanceRelayPkiCaPrivateKey postgres.ColumnBytea+ EncryptedInstanceRelayPkiCaCertificate postgres.ColumnBytea+ EncryptedInstanceRelayPkiCaCertificateChain postgres.ColumnBytea+ EncryptedInstanceRelayPkiClientCaPrivateKey postgres.ColumnBytea+ EncryptedInstanceRelayPkiClientCaCertificate postgres.ColumnBytea+ EncryptedInstanceRelayPkiClientCaCertificateChain postgres.ColumnBytea+ EncryptedInstanceRelayPkiServerCaPrivateKey postgres.ColumnBytea+ EncryptedInstanceRelayPkiServerCaCertificate postgres.ColumnBytea+ EncryptedInstanceRelayPkiServerCaCertificateChain postgres.ColumnBytea+ EncryptedOrgRelayPkiCaPrivateKey postgres.ColumnBytea+ EncryptedOrgRelayPkiCaCertificate postgres.ColumnBytea+ EncryptedOrgRelayPkiCaCertificateChain postgres.ColumnBytea+ EncryptedInstanceRelaySshClientCaPrivateKey postgres.ColumnBytea+ EncryptedInstanceRelaySshClientCaPublicKey postgres.ColumnBytea+ EncryptedInstanceRelaySshServerCaPrivateKey postgres.ColumnBytea+ EncryptedInstanceRelaySshServerCaPublicKey postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type InstanceRelayConfigTable struct {+ instanceRelayConfigTable++ EXCLUDED instanceRelayConfigTable+}++// AS creates new InstanceRelayConfigTable with assigned alias+func (a InstanceRelayConfigTable) AS(alias string) *InstanceRelayConfigTable {+ return newInstanceRelayConfigTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new InstanceRelayConfigTable with assigned schema name+func (a InstanceRelayConfigTable) FromSchema(schemaName string) *InstanceRelayConfigTable {+ return newInstanceRelayConfigTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new InstanceRelayConfigTable with assigned table prefix+func (a InstanceRelayConfigTable) WithPrefix(prefix string) *InstanceRelayConfigTable {+ return newInstanceRelayConfigTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new InstanceRelayConfigTable with assigned table suffix+func (a InstanceRelayConfigTable) WithSuffix(suffix string) *InstanceRelayConfigTable {+ return newInstanceRelayConfigTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newInstanceRelayConfigTable(schemaName, tableName, alias string) *InstanceRelayConfigTable {+ return &InstanceRelayConfigTable{+ instanceRelayConfigTable: newInstanceRelayConfigTableImpl(schemaName, tableName, alias),+ EXCLUDED: newInstanceRelayConfigTableImpl("", "excluded", ""),+ }+}++func newInstanceRelayConfigTableImpl(schemaName, tableName, alias string) instanceRelayConfigTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ EncryptedRootRelayPkiCaPrivateKeyColumn = postgres.ByteaColumn("encryptedRootRelayPkiCaPrivateKey")+ EncryptedRootRelayPkiCaCertificateColumn = postgres.ByteaColumn("encryptedRootRelayPkiCaCertificate")+ EncryptedInstanceRelayPkiCaPrivateKeyColumn = postgres.ByteaColumn("encryptedInstanceRelayPkiCaPrivateKey")+ EncryptedInstanceRelayPkiCaCertificateColumn = postgres.ByteaColumn("encryptedInstanceRelayPkiCaCertificate")+ EncryptedInstanceRelayPkiCaCertificateChainColumn = postgres.ByteaColumn("encryptedInstanceRelayPkiCaCertificateChain")+ EncryptedInstanceRelayPkiClientCaPrivateKeyColumn = postgres.ByteaColumn("encryptedInstanceRelayPkiClientCaPrivateKey")+ EncryptedInstanceRelayPkiClientCaCertificateColumn = postgres.ByteaColumn("encryptedInstanceRelayPkiClientCaCertificate")+ EncryptedInstanceRelayPkiClientCaCertificateChainColumn = postgres.ByteaColumn("encryptedInstanceRelayPkiClientCaCertificateChain")+ EncryptedInstanceRelayPkiServerCaPrivateKeyColumn = postgres.ByteaColumn("encryptedInstanceRelayPkiServerCaPrivateKey")+ EncryptedInstanceRelayPkiServerCaCertificateColumn = postgres.ByteaColumn("encryptedInstanceRelayPkiServerCaCertificate")+ EncryptedInstanceRelayPkiServerCaCertificateChainColumn = postgres.ByteaColumn("encryptedInstanceRelayPkiServerCaCertificateChain")+ EncryptedOrgRelayPkiCaPrivateKeyColumn = postgres.ByteaColumn("encryptedOrgRelayPkiCaPrivateKey")+ EncryptedOrgRelayPkiCaCertificateColumn = postgres.ByteaColumn("encryptedOrgRelayPkiCaCertificate")+ EncryptedOrgRelayPkiCaCertificateChainColumn = postgres.ByteaColumn("encryptedOrgRelayPkiCaCertificateChain")+ EncryptedInstanceRelaySshClientCaPrivateKeyColumn = postgres.ByteaColumn("encryptedInstanceRelaySshClientCaPrivateKey")+ EncryptedInstanceRelaySshClientCaPublicKeyColumn = postgres.ByteaColumn("encryptedInstanceRelaySshClientCaPublicKey")+ EncryptedInstanceRelaySshServerCaPrivateKeyColumn = postgres.ByteaColumn("encryptedInstanceRelaySshServerCaPrivateKey")+ EncryptedInstanceRelaySshServerCaPublicKeyColumn = postgres.ByteaColumn("encryptedInstanceRelaySshServerCaPublicKey")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, EncryptedRootRelayPkiCaPrivateKeyColumn, EncryptedRootRelayPkiCaCertificateColumn, EncryptedInstanceRelayPkiCaPrivateKeyColumn, EncryptedInstanceRelayPkiCaCertificateColumn, EncryptedInstanceRelayPkiCaCertificateChainColumn, EncryptedInstanceRelayPkiClientCaPrivateKeyColumn, EncryptedInstanceRelayPkiClientCaCertificateColumn, EncryptedInstanceRelayPkiClientCaCertificateChainColumn, EncryptedInstanceRelayPkiServerCaPrivateKeyColumn, EncryptedInstanceRelayPkiServerCaCertificateColumn, EncryptedInstanceRelayPkiServerCaCertificateChainColumn, EncryptedOrgRelayPkiCaPrivateKeyColumn, EncryptedOrgRelayPkiCaCertificateColumn, EncryptedOrgRelayPkiCaCertificateChainColumn, EncryptedInstanceRelaySshClientCaPrivateKeyColumn, EncryptedInstanceRelaySshClientCaPublicKeyColumn, EncryptedInstanceRelaySshServerCaPrivateKeyColumn, EncryptedInstanceRelaySshServerCaPublicKeyColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, EncryptedRootRelayPkiCaPrivateKeyColumn, EncryptedRootRelayPkiCaCertificateColumn, EncryptedInstanceRelayPkiCaPrivateKeyColumn, EncryptedInstanceRelayPkiCaCertificateColumn, EncryptedInstanceRelayPkiCaCertificateChainColumn, EncryptedInstanceRelayPkiClientCaPrivateKeyColumn, EncryptedInstanceRelayPkiClientCaCertificateColumn, EncryptedInstanceRelayPkiClientCaCertificateChainColumn, EncryptedInstanceRelayPkiServerCaPrivateKeyColumn, EncryptedInstanceRelayPkiServerCaCertificateColumn, EncryptedInstanceRelayPkiServerCaCertificateChainColumn, EncryptedOrgRelayPkiCaPrivateKeyColumn, EncryptedOrgRelayPkiCaCertificateColumn, EncryptedOrgRelayPkiCaCertificateChainColumn, EncryptedInstanceRelaySshClientCaPrivateKeyColumn, EncryptedInstanceRelaySshClientCaPublicKeyColumn, EncryptedInstanceRelaySshServerCaPrivateKeyColumn, EncryptedInstanceRelaySshServerCaPublicKeyColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return instanceRelayConfigTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ EncryptedRootRelayPkiCaPrivateKey: EncryptedRootRelayPkiCaPrivateKeyColumn,+ EncryptedRootRelayPkiCaCertificate: EncryptedRootRelayPkiCaCertificateColumn,+ EncryptedInstanceRelayPkiCaPrivateKey: EncryptedInstanceRelayPkiCaPrivateKeyColumn,+ EncryptedInstanceRelayPkiCaCertificate: EncryptedInstanceRelayPkiCaCertificateColumn,+ EncryptedInstanceRelayPkiCaCertificateChain: EncryptedInstanceRelayPkiCaCertificateChainColumn,+ EncryptedInstanceRelayPkiClientCaPrivateKey: EncryptedInstanceRelayPkiClientCaPrivateKeyColumn,+ EncryptedInstanceRelayPkiClientCaCertificate: EncryptedInstanceRelayPkiClientCaCertificateColumn,+ EncryptedInstanceRelayPkiClientCaCertificateChain: EncryptedInstanceRelayPkiClientCaCertificateChainColumn,+ EncryptedInstanceRelayPkiServerCaPrivateKey: EncryptedInstanceRelayPkiServerCaPrivateKeyColumn,+ EncryptedInstanceRelayPkiServerCaCertificate: EncryptedInstanceRelayPkiServerCaCertificateColumn,+ EncryptedInstanceRelayPkiServerCaCertificateChain: EncryptedInstanceRelayPkiServerCaCertificateChainColumn,+ EncryptedOrgRelayPkiCaPrivateKey: EncryptedOrgRelayPkiCaPrivateKeyColumn,+ EncryptedOrgRelayPkiCaCertificate: EncryptedOrgRelayPkiCaCertificateColumn,+ EncryptedOrgRelayPkiCaCertificateChain: EncryptedOrgRelayPkiCaCertificateChainColumn,+ EncryptedInstanceRelaySshClientCaPrivateKey: EncryptedInstanceRelaySshClientCaPrivateKeyColumn,+ EncryptedInstanceRelaySshClientCaPublicKey: EncryptedInstanceRelaySshClientCaPublicKeyColumn,+ EncryptedInstanceRelaySshServerCaPrivateKey: EncryptedInstanceRelaySshServerCaPrivateKeyColumn,+ EncryptedInstanceRelaySshServerCaPublicKey: EncryptedInstanceRelaySshServerCaPublicKeyColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/integration_auths.go b/backend-go/internal/database/pg/gen/table/integration_auths.gonew file mode 100644index 0000000000..f43635a761--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/integration_auths.go@@ -0,0 +1,162 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IntegrationAuths = newIntegrationAuthsTable("public", "integration_auths", "")++type integrationAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Integration postgres.ColumnString+ TeamId postgres.ColumnString+ URL postgres.ColumnString+ Namespace postgres.ColumnString+ AccountId postgres.ColumnString+ RefreshCiphertext postgres.ColumnString+ RefreshIV postgres.ColumnString+ RefreshTag postgres.ColumnString+ AccessIdCiphertext postgres.ColumnString+ AccessIdIV postgres.ColumnString+ AccessIdTag postgres.ColumnString+ AccessCiphertext postgres.ColumnString+ AccessIV postgres.ColumnString+ AccessTag postgres.ColumnString+ AccessExpiresAt postgres.ColumnTimestampz+ Metadata postgres.ColumnString+ Algorithm postgres.ColumnString+ KeyEncoding postgres.ColumnString+ ProjectId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ AwsAssumeIamRoleArnCipherText postgres.ColumnString+ AwsAssumeIamRoleArnIV postgres.ColumnString+ AwsAssumeIamRoleArnTag postgres.ColumnString+ EncryptedAccess postgres.ColumnBytea+ EncryptedAccessId postgres.ColumnBytea+ EncryptedRefresh postgres.ColumnBytea+ EncryptedAwsAssumeIamRoleArn postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IntegrationAuthsTable struct {+ integrationAuthsTable++ EXCLUDED integrationAuthsTable+}++// AS creates new IntegrationAuthsTable with assigned alias+func (a IntegrationAuthsTable) AS(alias string) *IntegrationAuthsTable {+ return newIntegrationAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IntegrationAuthsTable with assigned schema name+func (a IntegrationAuthsTable) FromSchema(schemaName string) *IntegrationAuthsTable {+ return newIntegrationAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IntegrationAuthsTable with assigned table prefix+func (a IntegrationAuthsTable) WithPrefix(prefix string) *IntegrationAuthsTable {+ return newIntegrationAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IntegrationAuthsTable with assigned table suffix+func (a IntegrationAuthsTable) WithSuffix(suffix string) *IntegrationAuthsTable {+ return newIntegrationAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIntegrationAuthsTable(schemaName, tableName, alias string) *IntegrationAuthsTable {+ return &IntegrationAuthsTable{+ integrationAuthsTable: newIntegrationAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIntegrationAuthsTableImpl("", "excluded", ""),+ }+}++func newIntegrationAuthsTableImpl(schemaName, tableName, alias string) integrationAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ IntegrationColumn = postgres.StringColumn("integration")+ TeamIdColumn = postgres.StringColumn("teamId")+ URLColumn = postgres.StringColumn("url")+ NamespaceColumn = postgres.StringColumn("namespace")+ AccountIdColumn = postgres.StringColumn("accountId")+ RefreshCiphertextColumn = postgres.StringColumn("refreshCiphertext")+ RefreshIVColumn = postgres.StringColumn("refreshIV")+ RefreshTagColumn = postgres.StringColumn("refreshTag")+ AccessIdCiphertextColumn = postgres.StringColumn("accessIdCiphertext")+ AccessIdIVColumn = postgres.StringColumn("accessIdIV")+ AccessIdTagColumn = postgres.StringColumn("accessIdTag")+ AccessCiphertextColumn = postgres.StringColumn("accessCiphertext")+ AccessIVColumn = postgres.StringColumn("accessIV")+ AccessTagColumn = postgres.StringColumn("accessTag")+ AccessExpiresAtColumn = postgres.TimestampzColumn("accessExpiresAt")+ MetadataColumn = postgres.StringColumn("metadata")+ AlgorithmColumn = postgres.StringColumn("algorithm")+ KeyEncodingColumn = postgres.StringColumn("keyEncoding")+ ProjectIdColumn = postgres.StringColumn("projectId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ AwsAssumeIamRoleArnCipherTextColumn = postgres.StringColumn("awsAssumeIamRoleArnCipherText")+ AwsAssumeIamRoleArnIVColumn = postgres.StringColumn("awsAssumeIamRoleArnIV")+ AwsAssumeIamRoleArnTagColumn = postgres.StringColumn("awsAssumeIamRoleArnTag")+ EncryptedAccessColumn = postgres.ByteaColumn("encryptedAccess")+ EncryptedAccessIdColumn = postgres.ByteaColumn("encryptedAccessId")+ EncryptedRefreshColumn = postgres.ByteaColumn("encryptedRefresh")+ EncryptedAwsAssumeIamRoleArnColumn = postgres.ByteaColumn("encryptedAwsAssumeIamRoleArn")+ allColumns = postgres.ColumnList{IDColumn, IntegrationColumn, TeamIdColumn, URLColumn, NamespaceColumn, AccountIdColumn, RefreshCiphertextColumn, RefreshIVColumn, RefreshTagColumn, AccessIdCiphertextColumn, AccessIdIVColumn, AccessIdTagColumn, AccessCiphertextColumn, AccessIVColumn, AccessTagColumn, AccessExpiresAtColumn, MetadataColumn, AlgorithmColumn, KeyEncodingColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn, AwsAssumeIamRoleArnCipherTextColumn, AwsAssumeIamRoleArnIVColumn, AwsAssumeIamRoleArnTagColumn, EncryptedAccessColumn, EncryptedAccessIdColumn, EncryptedRefreshColumn, EncryptedAwsAssumeIamRoleArnColumn}+ mutableColumns = postgres.ColumnList{IntegrationColumn, TeamIdColumn, URLColumn, NamespaceColumn, AccountIdColumn, RefreshCiphertextColumn, RefreshIVColumn, RefreshTagColumn, AccessIdCiphertextColumn, AccessIdIVColumn, AccessIdTagColumn, AccessCiphertextColumn, AccessIVColumn, AccessTagColumn, AccessExpiresAtColumn, MetadataColumn, AlgorithmColumn, KeyEncodingColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn, AwsAssumeIamRoleArnCipherTextColumn, AwsAssumeIamRoleArnIVColumn, AwsAssumeIamRoleArnTagColumn, EncryptedAccessColumn, EncryptedAccessIdColumn, EncryptedRefreshColumn, EncryptedAwsAssumeIamRoleArnColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return integrationAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Integration: IntegrationColumn,+ TeamId: TeamIdColumn,+ URL: URLColumn,+ Namespace: NamespaceColumn,+ AccountId: AccountIdColumn,+ RefreshCiphertext: RefreshCiphertextColumn,+ RefreshIV: RefreshIVColumn,+ RefreshTag: RefreshTagColumn,+ AccessIdCiphertext: AccessIdCiphertextColumn,+ AccessIdIV: AccessIdIVColumn,+ AccessIdTag: AccessIdTagColumn,+ AccessCiphertext: AccessCiphertextColumn,+ AccessIV: AccessIVColumn,+ AccessTag: AccessTagColumn,+ AccessExpiresAt: AccessExpiresAtColumn,+ Metadata: MetadataColumn,+ Algorithm: AlgorithmColumn,+ KeyEncoding: KeyEncodingColumn,+ ProjectId: ProjectIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ AwsAssumeIamRoleArnCipherText: AwsAssumeIamRoleArnCipherTextColumn,+ AwsAssumeIamRoleArnIV: AwsAssumeIamRoleArnIVColumn,+ AwsAssumeIamRoleArnTag: AwsAssumeIamRoleArnTagColumn,+ EncryptedAccess: EncryptedAccessColumn,+ EncryptedAccessId: EncryptedAccessIdColumn,+ EncryptedRefresh: EncryptedRefreshColumn,+ EncryptedAwsAssumeIamRoleArn: EncryptedAwsAssumeIamRoleArnColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/integrations.go b/backend-go/internal/database/pg/gen/table/integrations.gonew file mode 100644index 0000000000..b9f149cdf3--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/integrations.go@@ -0,0 +1,147 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var Integrations = newIntegrationsTable("public", "integrations", "")++type integrationsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ IsActive postgres.ColumnBool+ URL postgres.ColumnString+ App postgres.ColumnString+ AppId postgres.ColumnString+ TargetEnvironment postgres.ColumnString+ TargetEnvironmentId postgres.ColumnString+ TargetService postgres.ColumnString+ TargetServiceId postgres.ColumnString+ Owner postgres.ColumnString+ Path postgres.ColumnString+ Region postgres.ColumnString+ Scope postgres.ColumnString+ Integration postgres.ColumnString+ Metadata postgres.ColumnString+ IntegrationAuthId postgres.ColumnString+ EnvId postgres.ColumnString+ SecretPath postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ LastUsed postgres.ColumnTimestampz+ IsSynced postgres.ColumnBool+ SyncMessage postgres.ColumnString+ LastSyncJobId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IntegrationsTable struct {+ integrationsTable++ EXCLUDED integrationsTable+}++// AS creates new IntegrationsTable with assigned alias+func (a IntegrationsTable) AS(alias string) *IntegrationsTable {+ return newIntegrationsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IntegrationsTable with assigned schema name+func (a IntegrationsTable) FromSchema(schemaName string) *IntegrationsTable {+ return newIntegrationsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IntegrationsTable with assigned table prefix+func (a IntegrationsTable) WithPrefix(prefix string) *IntegrationsTable {+ return newIntegrationsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IntegrationsTable with assigned table suffix+func (a IntegrationsTable) WithSuffix(suffix string) *IntegrationsTable {+ return newIntegrationsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIntegrationsTable(schemaName, tableName, alias string) *IntegrationsTable {+ return &IntegrationsTable{+ integrationsTable: newIntegrationsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIntegrationsTableImpl("", "excluded", ""),+ }+}++func newIntegrationsTableImpl(schemaName, tableName, alias string) integrationsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ IsActiveColumn = postgres.BoolColumn("isActive")+ URLColumn = postgres.StringColumn("url")+ AppColumn = postgres.StringColumn("app")+ AppIdColumn = postgres.StringColumn("appId")+ TargetEnvironmentColumn = postgres.StringColumn("targetEnvironment")+ TargetEnvironmentIdColumn = postgres.StringColumn("targetEnvironmentId")+ TargetServiceColumn = postgres.StringColumn("targetService")+ TargetServiceIdColumn = postgres.StringColumn("targetServiceId")+ OwnerColumn = postgres.StringColumn("owner")+ PathColumn = postgres.StringColumn("path")+ RegionColumn = postgres.StringColumn("region")+ ScopeColumn = postgres.StringColumn("scope")+ IntegrationColumn = postgres.StringColumn("integration")+ MetadataColumn = postgres.StringColumn("metadata")+ IntegrationAuthIdColumn = postgres.StringColumn("integrationAuthId")+ EnvIdColumn = postgres.StringColumn("envId")+ SecretPathColumn = postgres.StringColumn("secretPath")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ LastUsedColumn = postgres.TimestampzColumn("lastUsed")+ IsSyncedColumn = postgres.BoolColumn("isSynced")+ SyncMessageColumn = postgres.StringColumn("syncMessage")+ LastSyncJobIdColumn = postgres.StringColumn("lastSyncJobId")+ allColumns = postgres.ColumnList{IDColumn, IsActiveColumn, URLColumn, AppColumn, AppIdColumn, TargetEnvironmentColumn, TargetEnvironmentIdColumn, TargetServiceColumn, TargetServiceIdColumn, OwnerColumn, PathColumn, RegionColumn, ScopeColumn, IntegrationColumn, MetadataColumn, IntegrationAuthIdColumn, EnvIdColumn, SecretPathColumn, CreatedAtColumn, UpdatedAtColumn, LastUsedColumn, IsSyncedColumn, SyncMessageColumn, LastSyncJobIdColumn}+ mutableColumns = postgres.ColumnList{IsActiveColumn, URLColumn, AppColumn, AppIdColumn, TargetEnvironmentColumn, TargetEnvironmentIdColumn, TargetServiceColumn, TargetServiceIdColumn, OwnerColumn, PathColumn, RegionColumn, ScopeColumn, IntegrationColumn, MetadataColumn, IntegrationAuthIdColumn, EnvIdColumn, SecretPathColumn, CreatedAtColumn, UpdatedAtColumn, LastUsedColumn, IsSyncedColumn, SyncMessageColumn, LastSyncJobIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, SecretPathColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return integrationsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ IsActive: IsActiveColumn,+ URL: URLColumn,+ App: AppColumn,+ AppId: AppIdColumn,+ TargetEnvironment: TargetEnvironmentColumn,+ TargetEnvironmentId: TargetEnvironmentIdColumn,+ TargetService: TargetServiceColumn,+ TargetServiceId: TargetServiceIdColumn,+ Owner: OwnerColumn,+ Path: PathColumn,+ Region: RegionColumn,+ Scope: ScopeColumn,+ Integration: IntegrationColumn,+ Metadata: MetadataColumn,+ IntegrationAuthId: IntegrationAuthIdColumn,+ EnvId: EnvIdColumn,+ SecretPath: SecretPathColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ LastUsed: LastUsedColumn,+ IsSynced: IsSyncedColumn,+ SyncMessage: SyncMessageColumn,+ LastSyncJobId: LastSyncJobIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/intermediate_certificate_requests.go b/backend-go/internal/database/pg/gen/table/intermediate_certificate_requests.gonew file mode 100644index 0000000000..8b525feff8--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/intermediate_certificate_requests.go@@ -0,0 +1,162 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var IntermediateCertificateRequests = newIntermediateCertificateRequestsTable("public", "intermediate_certificate_requests", "")++type intermediateCertificateRequestsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ Status postgres.ColumnString+ ProjectId postgres.ColumnString+ ProfileId postgres.ColumnString+ CaId postgres.ColumnString+ CertificateId postgres.ColumnString+ Csr postgres.ColumnString+ CommonName postgres.ColumnString+ KeyUsages postgres.ColumnStringArray+ ExtendedKeyUsages postgres.ColumnStringArray+ NotBefore postgres.ColumnTimestampz+ NotAfter postgres.ColumnTimestampz+ KeyAlgorithm postgres.ColumnString+ SignatureAlgorithm postgres.ColumnString+ ErrorMessage postgres.ColumnString+ Metadata postgres.ColumnString+ AcmeOrderId postgres.ColumnString+ BasicConstraints postgres.ColumnString+ ApprovalRequestId postgres.ColumnString+ TTL postgres.ColumnString+ EnrollmentType postgres.ColumnString+ AltNames postgres.ColumnString+ Organization postgres.ColumnString+ OrganizationalUnit postgres.ColumnString+ Country postgres.ColumnString+ State postgres.ColumnString+ Locality postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type IntermediateCertificateRequestsTable struct {+ intermediateCertificateRequestsTable++ EXCLUDED intermediateCertificateRequestsTable+}++// AS creates new IntermediateCertificateRequestsTable with assigned alias+func (a IntermediateCertificateRequestsTable) AS(alias string) *IntermediateCertificateRequestsTable {+ return newIntermediateCertificateRequestsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new IntermediateCertificateRequestsTable with assigned schema name+func (a IntermediateCertificateRequestsTable) FromSchema(schemaName string) *IntermediateCertificateRequestsTable {+ return newIntermediateCertificateRequestsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new IntermediateCertificateRequestsTable with assigned table prefix+func (a IntermediateCertificateRequestsTable) WithPrefix(prefix string) *IntermediateCertificateRequestsTable {+ return newIntermediateCertificateRequestsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new IntermediateCertificateRequestsTable with assigned table suffix+func (a IntermediateCertificateRequestsTable) WithSuffix(suffix string) *IntermediateCertificateRequestsTable {+ return newIntermediateCertificateRequestsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newIntermediateCertificateRequestsTable(schemaName, tableName, alias string) *IntermediateCertificateRequestsTable {+ return &IntermediateCertificateRequestsTable{+ intermediateCertificateRequestsTable: newIntermediateCertificateRequestsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newIntermediateCertificateRequestsTableImpl("", "excluded", ""),+ }+}++func newIntermediateCertificateRequestsTableImpl(schemaName, tableName, alias string) intermediateCertificateRequestsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ StatusColumn = postgres.StringColumn("status")+ ProjectIdColumn = postgres.StringColumn("projectId")+ ProfileIdColumn = postgres.StringColumn("profileId")+ CaIdColumn = postgres.StringColumn("caId")+ CertificateIdColumn = postgres.StringColumn("certificateId")+ CsrColumn = postgres.StringColumn("csr")+ CommonNameColumn = postgres.StringColumn("commonName")+ KeyUsagesColumn = postgres.StringArrayColumn("keyUsages")+ ExtendedKeyUsagesColumn = postgres.StringArrayColumn("extendedKeyUsages")+ NotBeforeColumn = postgres.TimestampzColumn("notBefore")+ NotAfterColumn = postgres.TimestampzColumn("notAfter")+ KeyAlgorithmColumn = postgres.StringColumn("keyAlgorithm")+ SignatureAlgorithmColumn = postgres.StringColumn("signatureAlgorithm")+ ErrorMessageColumn = postgres.StringColumn("errorMessage")+ MetadataColumn = postgres.StringColumn("metadata")+ AcmeOrderIdColumn = postgres.StringColumn("acmeOrderId")+ BasicConstraintsColumn = postgres.StringColumn("basicConstraints")+ ApprovalRequestIdColumn = postgres.StringColumn("approvalRequestId")+ TTLColumn = postgres.StringColumn("ttl")+ EnrollmentTypeColumn = postgres.StringColumn("enrollmentType")+ AltNamesColumn = postgres.StringColumn("altNames")+ OrganizationColumn = postgres.StringColumn("organization")+ OrganizationalUnitColumn = postgres.StringColumn("organizationalUnit")+ CountryColumn = postgres.StringColumn("country")+ StateColumn = postgres.StringColumn("state")+ LocalityColumn = postgres.StringColumn("locality")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, StatusColumn, ProjectIdColumn, ProfileIdColumn, CaIdColumn, CertificateIdColumn, CsrColumn, CommonNameColumn, KeyUsagesColumn, ExtendedKeyUsagesColumn, NotBeforeColumn, NotAfterColumn, KeyAlgorithmColumn, SignatureAlgorithmColumn, ErrorMessageColumn, MetadataColumn, AcmeOrderIdColumn, BasicConstraintsColumn, ApprovalRequestIdColumn, TTLColumn, EnrollmentTypeColumn, AltNamesColumn, OrganizationColumn, OrganizationalUnitColumn, CountryColumn, StateColumn, LocalityColumn}+ mutableColumns = postgres.ColumnList{UpdatedAtColumn, StatusColumn, ProjectIdColumn, ProfileIdColumn, CaIdColumn, CertificateIdColumn, CsrColumn, CommonNameColumn, KeyUsagesColumn, ExtendedKeyUsagesColumn, NotBeforeColumn, NotAfterColumn, KeyAlgorithmColumn, SignatureAlgorithmColumn, ErrorMessageColumn, MetadataColumn, AcmeOrderIdColumn, BasicConstraintsColumn, ApprovalRequestIdColumn, TTLColumn, EnrollmentTypeColumn, AltNamesColumn, OrganizationColumn, OrganizationalUnitColumn, CountryColumn, StateColumn, LocalityColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return intermediateCertificateRequestsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ Status: StatusColumn,+ ProjectId: ProjectIdColumn,+ ProfileId: ProfileIdColumn,+ CaId: CaIdColumn,+ CertificateId: CertificateIdColumn,+ Csr: CsrColumn,+ CommonName: CommonNameColumn,+ KeyUsages: KeyUsagesColumn,+ ExtendedKeyUsages: ExtendedKeyUsagesColumn,+ NotBefore: NotBeforeColumn,+ NotAfter: NotAfterColumn,+ KeyAlgorithm: KeyAlgorithmColumn,+ SignatureAlgorithm: SignatureAlgorithmColumn,+ ErrorMessage: ErrorMessageColumn,+ Metadata: MetadataColumn,+ AcmeOrderId: AcmeOrderIdColumn,+ BasicConstraints: BasicConstraintsColumn,+ ApprovalRequestId: ApprovalRequestIdColumn,+ TTL: TTLColumn,+ EnrollmentType: EnrollmentTypeColumn,+ AltNames: AltNamesColumn,+ Organization: OrganizationColumn,+ OrganizationalUnit: OrganizationalUnitColumn,+ Country: CountryColumn,+ State: StateColumn,+ Locality: LocalityColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/internal_certificate_authorities.go b/backend-go/internal/database/pg/gen/table/internal_certificate_authorities.gonew file mode 100644index 0000000000..d68671858b--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/internal_certificate_authorities.go@@ -0,0 +1,144 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var InternalCertificateAuthorities = newInternalCertificateAuthoritiesTable("public", "internal_certificate_authorities", "")++type internalCertificateAuthoritiesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ParentCaId postgres.ColumnString+ Type postgres.ColumnString+ FriendlyName postgres.ColumnString+ Organization postgres.ColumnString+ Ou postgres.ColumnString+ Country postgres.ColumnString+ Province postgres.ColumnString+ Locality postgres.ColumnString+ CommonName postgres.ColumnString+ Dn postgres.ColumnString+ SerialNumber postgres.ColumnString+ MaxPathLength postgres.ColumnInteger+ KeyAlgorithm postgres.ColumnString+ NotBefore postgres.ColumnTimestampz+ NotAfter postgres.ColumnTimestampz+ ActiveCaCertId postgres.ColumnString+ CaId postgres.ColumnString+ AutoRenewalEnabled postgres.ColumnBool+ AutoRenewalDaysBeforeExpiry postgres.ColumnInteger+ LastRenewalStatus postgres.ColumnString+ LastRenewalMessage postgres.ColumnString+ LastRenewalAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type InternalCertificateAuthoritiesTable struct {+ internalCertificateAuthoritiesTable++ EXCLUDED internalCertificateAuthoritiesTable+}++// AS creates new InternalCertificateAuthoritiesTable with assigned alias+func (a InternalCertificateAuthoritiesTable) AS(alias string) *InternalCertificateAuthoritiesTable {+ return newInternalCertificateAuthoritiesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new InternalCertificateAuthoritiesTable with assigned schema name+func (a InternalCertificateAuthoritiesTable) FromSchema(schemaName string) *InternalCertificateAuthoritiesTable {+ return newInternalCertificateAuthoritiesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new InternalCertificateAuthoritiesTable with assigned table prefix+func (a InternalCertificateAuthoritiesTable) WithPrefix(prefix string) *InternalCertificateAuthoritiesTable {+ return newInternalCertificateAuthoritiesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new InternalCertificateAuthoritiesTable with assigned table suffix+func (a InternalCertificateAuthoritiesTable) WithSuffix(suffix string) *InternalCertificateAuthoritiesTable {+ return newInternalCertificateAuthoritiesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newInternalCertificateAuthoritiesTable(schemaName, tableName, alias string) *InternalCertificateAuthoritiesTable {+ return &InternalCertificateAuthoritiesTable{+ internalCertificateAuthoritiesTable: newInternalCertificateAuthoritiesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newInternalCertificateAuthoritiesTableImpl("", "excluded", ""),+ }+}++func newInternalCertificateAuthoritiesTableImpl(schemaName, tableName, alias string) internalCertificateAuthoritiesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ParentCaIdColumn = postgres.StringColumn("parentCaId")+ TypeColumn = postgres.StringColumn("type")+ FriendlyNameColumn = postgres.StringColumn("friendlyName")+ OrganizationColumn = postgres.StringColumn("organization")+ OuColumn = postgres.StringColumn("ou")+ CountryColumn = postgres.StringColumn("country")+ ProvinceColumn = postgres.StringColumn("province")+ LocalityColumn = postgres.StringColumn("locality")+ CommonNameColumn = postgres.StringColumn("commonName")+ DnColumn = postgres.StringColumn("dn")+ SerialNumberColumn = postgres.StringColumn("serialNumber")+ MaxPathLengthColumn = postgres.IntegerColumn("maxPathLength")+ KeyAlgorithmColumn = postgres.StringColumn("keyAlgorithm")+ NotBeforeColumn = postgres.TimestampzColumn("notBefore")+ NotAfterColumn = postgres.TimestampzColumn("notAfter")+ ActiveCaCertIdColumn = postgres.StringColumn("activeCaCertId")+ CaIdColumn = postgres.StringColumn("caId")+ AutoRenewalEnabledColumn = postgres.BoolColumn("autoRenewalEnabled")+ AutoRenewalDaysBeforeExpiryColumn = postgres.IntegerColumn("autoRenewalDaysBeforeExpiry")+ LastRenewalStatusColumn = postgres.StringColumn("lastRenewalStatus")+ LastRenewalMessageColumn = postgres.StringColumn("lastRenewalMessage")+ LastRenewalAtColumn = postgres.TimestampzColumn("lastRenewalAt")+ allColumns = postgres.ColumnList{IDColumn, ParentCaIdColumn, TypeColumn, FriendlyNameColumn, OrganizationColumn, OuColumn, CountryColumn, ProvinceColumn, LocalityColumn, CommonNameColumn, DnColumn, SerialNumberColumn, MaxPathLengthColumn, KeyAlgorithmColumn, NotBeforeColumn, NotAfterColumn, ActiveCaCertIdColumn, CaIdColumn, AutoRenewalEnabledColumn, AutoRenewalDaysBeforeExpiryColumn, LastRenewalStatusColumn, LastRenewalMessageColumn, LastRenewalAtColumn}+ mutableColumns = postgres.ColumnList{ParentCaIdColumn, TypeColumn, FriendlyNameColumn, OrganizationColumn, OuColumn, CountryColumn, ProvinceColumn, LocalityColumn, CommonNameColumn, DnColumn, SerialNumberColumn, MaxPathLengthColumn, KeyAlgorithmColumn, NotBeforeColumn, NotAfterColumn, ActiveCaCertIdColumn, CaIdColumn, AutoRenewalEnabledColumn, AutoRenewalDaysBeforeExpiryColumn, LastRenewalStatusColumn, LastRenewalMessageColumn, LastRenewalAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AutoRenewalEnabledColumn}+ )++ return internalCertificateAuthoritiesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ParentCaId: ParentCaIdColumn,+ Type: TypeColumn,+ FriendlyName: FriendlyNameColumn,+ Organization: OrganizationColumn,+ Ou: OuColumn,+ Country: CountryColumn,+ Province: ProvinceColumn,+ Locality: LocalityColumn,+ CommonName: CommonNameColumn,+ Dn: DnColumn,+ SerialNumber: SerialNumberColumn,+ MaxPathLength: MaxPathLengthColumn,+ KeyAlgorithm: KeyAlgorithmColumn,+ NotBefore: NotBeforeColumn,+ NotAfter: NotAfterColumn,+ ActiveCaCertId: ActiveCaCertIdColumn,+ CaId: CaIdColumn,+ AutoRenewalEnabled: AutoRenewalEnabledColumn,+ AutoRenewalDaysBeforeExpiry: AutoRenewalDaysBeforeExpiryColumn,+ LastRenewalStatus: LastRenewalStatusColumn,+ LastRenewalMessage: LastRenewalMessageColumn,+ LastRenewalAt: LastRenewalAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/internal_kms.go b/backend-go/internal/database/pg/gen/table/internal_kms.gonew file mode 100644index 0000000000..f5a48e6c44--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/internal_kms.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var InternalKms = newInternalKmsTable("public", "internal_kms", "")++type internalKmsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ EncryptedKey postgres.ColumnBytea+ EncryptionAlgorithm postgres.ColumnString+ Version postgres.ColumnInteger+ KmsKeyId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type InternalKmsTable struct {+ internalKmsTable++ EXCLUDED internalKmsTable+}++// AS creates new InternalKmsTable with assigned alias+func (a InternalKmsTable) AS(alias string) *InternalKmsTable {+ return newInternalKmsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new InternalKmsTable with assigned schema name+func (a InternalKmsTable) FromSchema(schemaName string) *InternalKmsTable {+ return newInternalKmsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new InternalKmsTable with assigned table prefix+func (a InternalKmsTable) WithPrefix(prefix string) *InternalKmsTable {+ return newInternalKmsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new InternalKmsTable with assigned table suffix+func (a InternalKmsTable) WithSuffix(suffix string) *InternalKmsTable {+ return newInternalKmsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newInternalKmsTable(schemaName, tableName, alias string) *InternalKmsTable {+ return &InternalKmsTable{+ internalKmsTable: newInternalKmsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newInternalKmsTableImpl("", "excluded", ""),+ }+}++func newInternalKmsTableImpl(schemaName, tableName, alias string) internalKmsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ EncryptedKeyColumn = postgres.ByteaColumn("encryptedKey")+ EncryptionAlgorithmColumn = postgres.StringColumn("encryptionAlgorithm")+ VersionColumn = postgres.IntegerColumn("version")+ KmsKeyIdColumn = postgres.StringColumn("kmsKeyId")+ allColumns = postgres.ColumnList{IDColumn, EncryptedKeyColumn, EncryptionAlgorithmColumn, VersionColumn, KmsKeyIdColumn}+ mutableColumns = postgres.ColumnList{EncryptedKeyColumn, EncryptionAlgorithmColumn, VersionColumn, KmsKeyIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, VersionColumn}+ )++ return internalKmsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ EncryptedKey: EncryptedKeyColumn,+ EncryptionAlgorithm: EncryptionAlgorithmColumn,+ Version: VersionColumn,+ KmsKeyId: KmsKeyIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/internal_kms_key_version.go b/backend-go/internal/database/pg/gen/table/internal_kms_key_version.gonew file mode 100644index 0000000000..8ee5098a53--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/internal_kms_key_version.go@@ -0,0 +1,87 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var InternalKmsKeyVersion = newInternalKmsKeyVersionTable("public", "internal_kms_key_version", "")++type internalKmsKeyVersionTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ EncryptedKey postgres.ColumnBytea+ Version postgres.ColumnInteger+ InternalKmsId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type InternalKmsKeyVersionTable struct {+ internalKmsKeyVersionTable++ EXCLUDED internalKmsKeyVersionTable+}++// AS creates new InternalKmsKeyVersionTable with assigned alias+func (a InternalKmsKeyVersionTable) AS(alias string) *InternalKmsKeyVersionTable {+ return newInternalKmsKeyVersionTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new InternalKmsKeyVersionTable with assigned schema name+func (a InternalKmsKeyVersionTable) FromSchema(schemaName string) *InternalKmsKeyVersionTable {+ return newInternalKmsKeyVersionTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new InternalKmsKeyVersionTable with assigned table prefix+func (a InternalKmsKeyVersionTable) WithPrefix(prefix string) *InternalKmsKeyVersionTable {+ return newInternalKmsKeyVersionTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new InternalKmsKeyVersionTable with assigned table suffix+func (a InternalKmsKeyVersionTable) WithSuffix(suffix string) *InternalKmsKeyVersionTable {+ return newInternalKmsKeyVersionTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newInternalKmsKeyVersionTable(schemaName, tableName, alias string) *InternalKmsKeyVersionTable {+ return &InternalKmsKeyVersionTable{+ internalKmsKeyVersionTable: newInternalKmsKeyVersionTableImpl(schemaName, tableName, alias),+ EXCLUDED: newInternalKmsKeyVersionTableImpl("", "excluded", ""),+ }+}++func newInternalKmsKeyVersionTableImpl(schemaName, tableName, alias string) internalKmsKeyVersionTable {+ var (+ IDColumn = postgres.StringColumn("id")+ EncryptedKeyColumn = postgres.ByteaColumn("encryptedKey")+ VersionColumn = postgres.IntegerColumn("version")+ InternalKmsIdColumn = postgres.StringColumn("internalKmsId")+ allColumns = postgres.ColumnList{IDColumn, EncryptedKeyColumn, VersionColumn, InternalKmsIdColumn}+ mutableColumns = postgres.ColumnList{EncryptedKeyColumn, VersionColumn, InternalKmsIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return internalKmsKeyVersionTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ EncryptedKey: EncryptedKeyColumn,+ Version: VersionColumn,+ InternalKmsId: InternalKmsIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/key_value_store.go b/backend-go/internal/database/pg/gen/table/key_value_store.gonew file mode 100644index 0000000000..7d53622499--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/key_value_store.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var KeyValueStore = newKeyValueStoreTable("public", "key_value_store", "")++type keyValueStoreTable struct {+ postgres.Table++ // Columns+ Key postgres.ColumnString+ IntegerValue postgres.ColumnInteger+ ExpiresAt postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type KeyValueStoreTable struct {+ keyValueStoreTable++ EXCLUDED keyValueStoreTable+}++// AS creates new KeyValueStoreTable with assigned alias+func (a KeyValueStoreTable) AS(alias string) *KeyValueStoreTable {+ return newKeyValueStoreTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new KeyValueStoreTable with assigned schema name+func (a KeyValueStoreTable) FromSchema(schemaName string) *KeyValueStoreTable {+ return newKeyValueStoreTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new KeyValueStoreTable with assigned table prefix+func (a KeyValueStoreTable) WithPrefix(prefix string) *KeyValueStoreTable {+ return newKeyValueStoreTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new KeyValueStoreTable with assigned table suffix+func (a KeyValueStoreTable) WithSuffix(suffix string) *KeyValueStoreTable {+ return newKeyValueStoreTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newKeyValueStoreTable(schemaName, tableName, alias string) *KeyValueStoreTable {+ return &KeyValueStoreTable{+ keyValueStoreTable: newKeyValueStoreTableImpl(schemaName, tableName, alias),+ EXCLUDED: newKeyValueStoreTableImpl("", "excluded", ""),+ }+}++func newKeyValueStoreTableImpl(schemaName, tableName, alias string) keyValueStoreTable {+ var (+ KeyColumn = postgres.StringColumn("key")+ IntegerValueColumn = postgres.IntegerColumn("integerValue")+ ExpiresAtColumn = postgres.TimestampzColumn("expiresAt")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{KeyColumn, IntegerValueColumn, ExpiresAtColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{IntegerValueColumn, ExpiresAtColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn}+ )++ return keyValueStoreTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ Key: KeyColumn,+ IntegerValue: IntegerValueColumn,+ ExpiresAt: ExpiresAtColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/kmip_client_certificates.go b/backend-go/internal/database/pg/gen/table/kmip_client_certificates.gonew file mode 100644index 0000000000..eaddb1eb22--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/kmip_client_certificates.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var KmipClientCertificates = newKmipClientCertificatesTable("public", "kmip_client_certificates", "")++type kmipClientCertificatesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ KmipClientId postgres.ColumnString+ SerialNumber postgres.ColumnString+ KeyAlgorithm postgres.ColumnString+ IssuedAt postgres.ColumnTimestampz+ Expiration postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type KmipClientCertificatesTable struct {+ kmipClientCertificatesTable++ EXCLUDED kmipClientCertificatesTable+}++// AS creates new KmipClientCertificatesTable with assigned alias+func (a KmipClientCertificatesTable) AS(alias string) *KmipClientCertificatesTable {+ return newKmipClientCertificatesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new KmipClientCertificatesTable with assigned schema name+func (a KmipClientCertificatesTable) FromSchema(schemaName string) *KmipClientCertificatesTable {+ return newKmipClientCertificatesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new KmipClientCertificatesTable with assigned table prefix+func (a KmipClientCertificatesTable) WithPrefix(prefix string) *KmipClientCertificatesTable {+ return newKmipClientCertificatesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new KmipClientCertificatesTable with assigned table suffix+func (a KmipClientCertificatesTable) WithSuffix(suffix string) *KmipClientCertificatesTable {+ return newKmipClientCertificatesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newKmipClientCertificatesTable(schemaName, tableName, alias string) *KmipClientCertificatesTable {+ return &KmipClientCertificatesTable{+ kmipClientCertificatesTable: newKmipClientCertificatesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newKmipClientCertificatesTableImpl("", "excluded", ""),+ }+}++func newKmipClientCertificatesTableImpl(schemaName, tableName, alias string) kmipClientCertificatesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ KmipClientIdColumn = postgres.StringColumn("kmipClientId")+ SerialNumberColumn = postgres.StringColumn("serialNumber")+ KeyAlgorithmColumn = postgres.StringColumn("keyAlgorithm")+ IssuedAtColumn = postgres.TimestampzColumn("issuedAt")+ ExpirationColumn = postgres.TimestampzColumn("expiration")+ allColumns = postgres.ColumnList{IDColumn, KmipClientIdColumn, SerialNumberColumn, KeyAlgorithmColumn, IssuedAtColumn, ExpirationColumn}+ mutableColumns = postgres.ColumnList{KmipClientIdColumn, SerialNumberColumn, KeyAlgorithmColumn, IssuedAtColumn, ExpirationColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return kmipClientCertificatesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ KmipClientId: KmipClientIdColumn,+ SerialNumber: SerialNumberColumn,+ KeyAlgorithm: KeyAlgorithmColumn,+ IssuedAt: IssuedAtColumn,+ Expiration: ExpirationColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/kmip_clients.go b/backend-go/internal/database/pg/gen/table/kmip_clients.gonew file mode 100644index 0000000000..4e6f13ea83--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/kmip_clients.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var KmipClients = newKmipClientsTable("public", "kmip_clients", "")++type kmipClientsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Permissions postgres.ColumnStringArray+ Description postgres.ColumnString+ ProjectId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type KmipClientsTable struct {+ kmipClientsTable++ EXCLUDED kmipClientsTable+}++// AS creates new KmipClientsTable with assigned alias+func (a KmipClientsTable) AS(alias string) *KmipClientsTable {+ return newKmipClientsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new KmipClientsTable with assigned schema name+func (a KmipClientsTable) FromSchema(schemaName string) *KmipClientsTable {+ return newKmipClientsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new KmipClientsTable with assigned table prefix+func (a KmipClientsTable) WithPrefix(prefix string) *KmipClientsTable {+ return newKmipClientsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new KmipClientsTable with assigned table suffix+func (a KmipClientsTable) WithSuffix(suffix string) *KmipClientsTable {+ return newKmipClientsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newKmipClientsTable(schemaName, tableName, alias string) *KmipClientsTable {+ return &KmipClientsTable{+ kmipClientsTable: newKmipClientsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newKmipClientsTableImpl("", "excluded", ""),+ }+}++func newKmipClientsTableImpl(schemaName, tableName, alias string) kmipClientsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ PermissionsColumn = postgres.StringArrayColumn("permissions")+ DescriptionColumn = postgres.StringColumn("description")+ ProjectIdColumn = postgres.StringColumn("projectId")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, PermissionsColumn, DescriptionColumn, ProjectIdColumn}+ mutableColumns = postgres.ColumnList{NameColumn, PermissionsColumn, DescriptionColumn, ProjectIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return kmipClientsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Permissions: PermissionsColumn,+ Description: DescriptionColumn,+ ProjectId: ProjectIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/kmip_org_configs.go b/backend-go/internal/database/pg/gen/table/kmip_org_configs.gonew file mode 100644index 0000000000..ac70c7fdbb--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/kmip_org_configs.go@@ -0,0 +1,141 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var KmipOrgConfigs = newKmipOrgConfigsTable("public", "kmip_org_configs", "")++type kmipOrgConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ OrgId postgres.ColumnString+ CaKeyAlgorithm postgres.ColumnString+ RootCaIssuedAt postgres.ColumnTimestampz+ RootCaExpiration postgres.ColumnTimestampz+ RootCaSerialNumber postgres.ColumnString+ EncryptedRootCaCertificate postgres.ColumnBytea+ EncryptedRootCaPrivateKey postgres.ColumnBytea+ ServerIntermediateCaIssuedAt postgres.ColumnTimestampz+ ServerIntermediateCaExpiration postgres.ColumnTimestampz+ ServerIntermediateCaSerialNumber postgres.ColumnString+ EncryptedServerIntermediateCaCertificate postgres.ColumnBytea+ EncryptedServerIntermediateCaChain postgres.ColumnBytea+ EncryptedServerIntermediateCaPrivateKey postgres.ColumnBytea+ ClientIntermediateCaIssuedAt postgres.ColumnTimestampz+ ClientIntermediateCaExpiration postgres.ColumnTimestampz+ ClientIntermediateCaSerialNumber postgres.ColumnString+ EncryptedClientIntermediateCaCertificate postgres.ColumnBytea+ EncryptedClientIntermediateCaChain postgres.ColumnBytea+ EncryptedClientIntermediateCaPrivateKey postgres.ColumnBytea+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type KmipOrgConfigsTable struct {+ kmipOrgConfigsTable++ EXCLUDED kmipOrgConfigsTable+}++// AS creates new KmipOrgConfigsTable with assigned alias+func (a KmipOrgConfigsTable) AS(alias string) *KmipOrgConfigsTable {+ return newKmipOrgConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new KmipOrgConfigsTable with assigned schema name+func (a KmipOrgConfigsTable) FromSchema(schemaName string) *KmipOrgConfigsTable {+ return newKmipOrgConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new KmipOrgConfigsTable with assigned table prefix+func (a KmipOrgConfigsTable) WithPrefix(prefix string) *KmipOrgConfigsTable {+ return newKmipOrgConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new KmipOrgConfigsTable with assigned table suffix+func (a KmipOrgConfigsTable) WithSuffix(suffix string) *KmipOrgConfigsTable {+ return newKmipOrgConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newKmipOrgConfigsTable(schemaName, tableName, alias string) *KmipOrgConfigsTable {+ return &KmipOrgConfigsTable{+ kmipOrgConfigsTable: newKmipOrgConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newKmipOrgConfigsTableImpl("", "excluded", ""),+ }+}++func newKmipOrgConfigsTableImpl(schemaName, tableName, alias string) kmipOrgConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ OrgIdColumn = postgres.StringColumn("orgId")+ CaKeyAlgorithmColumn = postgres.StringColumn("caKeyAlgorithm")+ RootCaIssuedAtColumn = postgres.TimestampzColumn("rootCaIssuedAt")+ RootCaExpirationColumn = postgres.TimestampzColumn("rootCaExpiration")+ RootCaSerialNumberColumn = postgres.StringColumn("rootCaSerialNumber")+ EncryptedRootCaCertificateColumn = postgres.ByteaColumn("encryptedRootCaCertificate")+ EncryptedRootCaPrivateKeyColumn = postgres.ByteaColumn("encryptedRootCaPrivateKey")+ ServerIntermediateCaIssuedAtColumn = postgres.TimestampzColumn("serverIntermediateCaIssuedAt")+ ServerIntermediateCaExpirationColumn = postgres.TimestampzColumn("serverIntermediateCaExpiration")+ ServerIntermediateCaSerialNumberColumn = postgres.StringColumn("serverIntermediateCaSerialNumber")+ EncryptedServerIntermediateCaCertificateColumn = postgres.ByteaColumn("encryptedServerIntermediateCaCertificate")+ EncryptedServerIntermediateCaChainColumn = postgres.ByteaColumn("encryptedServerIntermediateCaChain")+ EncryptedServerIntermediateCaPrivateKeyColumn = postgres.ByteaColumn("encryptedServerIntermediateCaPrivateKey")+ ClientIntermediateCaIssuedAtColumn = postgres.TimestampzColumn("clientIntermediateCaIssuedAt")+ ClientIntermediateCaExpirationColumn = postgres.TimestampzColumn("clientIntermediateCaExpiration")+ ClientIntermediateCaSerialNumberColumn = postgres.StringColumn("clientIntermediateCaSerialNumber")+ EncryptedClientIntermediateCaCertificateColumn = postgres.ByteaColumn("encryptedClientIntermediateCaCertificate")+ EncryptedClientIntermediateCaChainColumn = postgres.ByteaColumn("encryptedClientIntermediateCaChain")+ EncryptedClientIntermediateCaPrivateKeyColumn = postgres.ByteaColumn("encryptedClientIntermediateCaPrivateKey")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, OrgIdColumn, CaKeyAlgorithmColumn, RootCaIssuedAtColumn, RootCaExpirationColumn, RootCaSerialNumberColumn, EncryptedRootCaCertificateColumn, EncryptedRootCaPrivateKeyColumn, ServerIntermediateCaIssuedAtColumn, ServerIntermediateCaExpirationColumn, ServerIntermediateCaSerialNumberColumn, EncryptedServerIntermediateCaCertificateColumn, EncryptedServerIntermediateCaChainColumn, EncryptedServerIntermediateCaPrivateKeyColumn, ClientIntermediateCaIssuedAtColumn, ClientIntermediateCaExpirationColumn, ClientIntermediateCaSerialNumberColumn, EncryptedClientIntermediateCaCertificateColumn, EncryptedClientIntermediateCaChainColumn, EncryptedClientIntermediateCaPrivateKeyColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{OrgIdColumn, CaKeyAlgorithmColumn, RootCaIssuedAtColumn, RootCaExpirationColumn, RootCaSerialNumberColumn, EncryptedRootCaCertificateColumn, EncryptedRootCaPrivateKeyColumn, ServerIntermediateCaIssuedAtColumn, ServerIntermediateCaExpirationColumn, ServerIntermediateCaSerialNumberColumn, EncryptedServerIntermediateCaCertificateColumn, EncryptedServerIntermediateCaChainColumn, EncryptedServerIntermediateCaPrivateKeyColumn, ClientIntermediateCaIssuedAtColumn, ClientIntermediateCaExpirationColumn, ClientIntermediateCaSerialNumberColumn, EncryptedClientIntermediateCaCertificateColumn, EncryptedClientIntermediateCaChainColumn, EncryptedClientIntermediateCaPrivateKeyColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return kmipOrgConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ OrgId: OrgIdColumn,+ CaKeyAlgorithm: CaKeyAlgorithmColumn,+ RootCaIssuedAt: RootCaIssuedAtColumn,+ RootCaExpiration: RootCaExpirationColumn,+ RootCaSerialNumber: RootCaSerialNumberColumn,+ EncryptedRootCaCertificate: EncryptedRootCaCertificateColumn,+ EncryptedRootCaPrivateKey: EncryptedRootCaPrivateKeyColumn,+ ServerIntermediateCaIssuedAt: ServerIntermediateCaIssuedAtColumn,+ ServerIntermediateCaExpiration: ServerIntermediateCaExpirationColumn,+ ServerIntermediateCaSerialNumber: ServerIntermediateCaSerialNumberColumn,+ EncryptedServerIntermediateCaCertificate: EncryptedServerIntermediateCaCertificateColumn,+ EncryptedServerIntermediateCaChain: EncryptedServerIntermediateCaChainColumn,+ EncryptedServerIntermediateCaPrivateKey: EncryptedServerIntermediateCaPrivateKeyColumn,+ ClientIntermediateCaIssuedAt: ClientIntermediateCaIssuedAtColumn,+ ClientIntermediateCaExpiration: ClientIntermediateCaExpirationColumn,+ ClientIntermediateCaSerialNumber: ClientIntermediateCaSerialNumberColumn,+ EncryptedClientIntermediateCaCertificate: EncryptedClientIntermediateCaCertificateColumn,+ EncryptedClientIntermediateCaChain: EncryptedClientIntermediateCaChainColumn,+ EncryptedClientIntermediateCaPrivateKey: EncryptedClientIntermediateCaPrivateKeyColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/kmip_org_server_certificates.go b/backend-go/internal/database/pg/gen/table/kmip_org_server_certificates.gonew file mode 100644index 0000000000..bfc6b7b16a--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/kmip_org_server_certificates.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var KmipOrgServerCertificates = newKmipOrgServerCertificatesTable("public", "kmip_org_server_certificates", "")++type kmipOrgServerCertificatesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ OrgId postgres.ColumnString+ CommonName postgres.ColumnString+ AltNames postgres.ColumnString+ SerialNumber postgres.ColumnString+ KeyAlgorithm postgres.ColumnString+ IssuedAt postgres.ColumnTimestampz+ Expiration postgres.ColumnTimestampz+ EncryptedCertificate postgres.ColumnBytea+ EncryptedChain postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type KmipOrgServerCertificatesTable struct {+ kmipOrgServerCertificatesTable++ EXCLUDED kmipOrgServerCertificatesTable+}++// AS creates new KmipOrgServerCertificatesTable with assigned alias+func (a KmipOrgServerCertificatesTable) AS(alias string) *KmipOrgServerCertificatesTable {+ return newKmipOrgServerCertificatesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new KmipOrgServerCertificatesTable with assigned schema name+func (a KmipOrgServerCertificatesTable) FromSchema(schemaName string) *KmipOrgServerCertificatesTable {+ return newKmipOrgServerCertificatesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new KmipOrgServerCertificatesTable with assigned table prefix+func (a KmipOrgServerCertificatesTable) WithPrefix(prefix string) *KmipOrgServerCertificatesTable {+ return newKmipOrgServerCertificatesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new KmipOrgServerCertificatesTable with assigned table suffix+func (a KmipOrgServerCertificatesTable) WithSuffix(suffix string) *KmipOrgServerCertificatesTable {+ return newKmipOrgServerCertificatesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newKmipOrgServerCertificatesTable(schemaName, tableName, alias string) *KmipOrgServerCertificatesTable {+ return &KmipOrgServerCertificatesTable{+ kmipOrgServerCertificatesTable: newKmipOrgServerCertificatesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newKmipOrgServerCertificatesTableImpl("", "excluded", ""),+ }+}++func newKmipOrgServerCertificatesTableImpl(schemaName, tableName, alias string) kmipOrgServerCertificatesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ OrgIdColumn = postgres.StringColumn("orgId")+ CommonNameColumn = postgres.StringColumn("commonName")+ AltNamesColumn = postgres.StringColumn("altNames")+ SerialNumberColumn = postgres.StringColumn("serialNumber")+ KeyAlgorithmColumn = postgres.StringColumn("keyAlgorithm")+ IssuedAtColumn = postgres.TimestampzColumn("issuedAt")+ ExpirationColumn = postgres.TimestampzColumn("expiration")+ EncryptedCertificateColumn = postgres.ByteaColumn("encryptedCertificate")+ EncryptedChainColumn = postgres.ByteaColumn("encryptedChain")+ allColumns = postgres.ColumnList{IDColumn, OrgIdColumn, CommonNameColumn, AltNamesColumn, SerialNumberColumn, KeyAlgorithmColumn, IssuedAtColumn, ExpirationColumn, EncryptedCertificateColumn, EncryptedChainColumn}+ mutableColumns = postgres.ColumnList{OrgIdColumn, CommonNameColumn, AltNamesColumn, SerialNumberColumn, KeyAlgorithmColumn, IssuedAtColumn, ExpirationColumn, EncryptedCertificateColumn, EncryptedChainColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return kmipOrgServerCertificatesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ OrgId: OrgIdColumn,+ CommonName: CommonNameColumn,+ AltNames: AltNamesColumn,+ SerialNumber: SerialNumberColumn,+ KeyAlgorithm: KeyAlgorithmColumn,+ IssuedAt: IssuedAtColumn,+ Expiration: ExpirationColumn,+ EncryptedCertificate: EncryptedCertificateColumn,+ EncryptedChain: EncryptedChainColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/kms_keys.go b/backend-go/internal/database/pg/gen/table/kms_keys.gonew file mode 100644index 0000000000..b91e9333ef--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/kms_keys.go@@ -0,0 +1,108 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var KmsKeys = newKmsKeysTable("public", "kms_keys", "")++type kmsKeysTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Description postgres.ColumnString+ IsDisabled postgres.ColumnBool+ IsReserved postgres.ColumnBool+ OrgId postgres.ColumnString+ Name postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ProjectId postgres.ColumnString+ KeyUsage postgres.ColumnString+ KmipMetadata postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type KmsKeysTable struct {+ kmsKeysTable++ EXCLUDED kmsKeysTable+}++// AS creates new KmsKeysTable with assigned alias+func (a KmsKeysTable) AS(alias string) *KmsKeysTable {+ return newKmsKeysTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new KmsKeysTable with assigned schema name+func (a KmsKeysTable) FromSchema(schemaName string) *KmsKeysTable {+ return newKmsKeysTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new KmsKeysTable with assigned table prefix+func (a KmsKeysTable) WithPrefix(prefix string) *KmsKeysTable {+ return newKmsKeysTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new KmsKeysTable with assigned table suffix+func (a KmsKeysTable) WithSuffix(suffix string) *KmsKeysTable {+ return newKmsKeysTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newKmsKeysTable(schemaName, tableName, alias string) *KmsKeysTable {+ return &KmsKeysTable{+ kmsKeysTable: newKmsKeysTableImpl(schemaName, tableName, alias),+ EXCLUDED: newKmsKeysTableImpl("", "excluded", ""),+ }+}++func newKmsKeysTableImpl(schemaName, tableName, alias string) kmsKeysTable {+ var (+ IDColumn = postgres.StringColumn("id")+ DescriptionColumn = postgres.StringColumn("description")+ IsDisabledColumn = postgres.BoolColumn("isDisabled")+ IsReservedColumn = postgres.BoolColumn("isReserved")+ OrgIdColumn = postgres.StringColumn("orgId")+ NameColumn = postgres.StringColumn("name")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ProjectIdColumn = postgres.StringColumn("projectId")+ KeyUsageColumn = postgres.StringColumn("keyUsage")+ KmipMetadataColumn = postgres.StringColumn("kmipMetadata")+ allColumns = postgres.ColumnList{IDColumn, DescriptionColumn, IsDisabledColumn, IsReservedColumn, OrgIdColumn, NameColumn, CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, KeyUsageColumn, KmipMetadataColumn}+ mutableColumns = postgres.ColumnList{DescriptionColumn, IsDisabledColumn, IsReservedColumn, OrgIdColumn, NameColumn, CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, KeyUsageColumn, KmipMetadataColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsDisabledColumn, IsReservedColumn, CreatedAtColumn, UpdatedAtColumn, KeyUsageColumn}+ )++ return kmsKeysTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Description: DescriptionColumn,+ IsDisabled: IsDisabledColumn,+ IsReserved: IsReservedColumn,+ OrgId: OrgIdColumn,+ Name: NameColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ProjectId: ProjectIdColumn,+ KeyUsage: KeyUsageColumn,+ KmipMetadata: KmipMetadataColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/kms_root_config.go b/backend-go/internal/database/pg/gen/table/kms_root_config.gonew file mode 100644index 0000000000..00ce497307--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/kms_root_config.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var KmsRootConfig = newKmsRootConfigTable("public", "kms_root_config", "")++type kmsRootConfigTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ EncryptedRootKey postgres.ColumnBytea+ EncryptionStrategy postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type KmsRootConfigTable struct {+ kmsRootConfigTable++ EXCLUDED kmsRootConfigTable+}++// AS creates new KmsRootConfigTable with assigned alias+func (a KmsRootConfigTable) AS(alias string) *KmsRootConfigTable {+ return newKmsRootConfigTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new KmsRootConfigTable with assigned schema name+func (a KmsRootConfigTable) FromSchema(schemaName string) *KmsRootConfigTable {+ return newKmsRootConfigTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new KmsRootConfigTable with assigned table prefix+func (a KmsRootConfigTable) WithPrefix(prefix string) *KmsRootConfigTable {+ return newKmsRootConfigTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new KmsRootConfigTable with assigned table suffix+func (a KmsRootConfigTable) WithSuffix(suffix string) *KmsRootConfigTable {+ return newKmsRootConfigTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newKmsRootConfigTable(schemaName, tableName, alias string) *KmsRootConfigTable {+ return &KmsRootConfigTable{+ kmsRootConfigTable: newKmsRootConfigTableImpl(schemaName, tableName, alias),+ EXCLUDED: newKmsRootConfigTableImpl("", "excluded", ""),+ }+}++func newKmsRootConfigTableImpl(schemaName, tableName, alias string) kmsRootConfigTable {+ var (+ IDColumn = postgres.StringColumn("id")+ EncryptedRootKeyColumn = postgres.ByteaColumn("encryptedRootKey")+ EncryptionStrategyColumn = postgres.StringColumn("encryptionStrategy")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, EncryptedRootKeyColumn, EncryptionStrategyColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{EncryptedRootKeyColumn, EncryptionStrategyColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, EncryptionStrategyColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return kmsRootConfigTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ EncryptedRootKey: EncryptedRootKeyColumn,+ EncryptionStrategy: EncryptionStrategyColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ldap_configs.go b/backend-go/internal/database/pg/gen/table/ldap_configs.gonew file mode 100644index 0000000000..b303cac5df--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ldap_configs.go@@ -0,0 +1,144 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var LdapConfigs = newLdapConfigsTable("public", "ldap_configs", "")++type ldapConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ OrgId postgres.ColumnString+ IsActive postgres.ColumnBool+ URL postgres.ColumnString+ EncryptedBindDN postgres.ColumnString+ BindDNIV postgres.ColumnString+ BindDNTag postgres.ColumnString+ EncryptedBindPass postgres.ColumnString+ BindPassIV postgres.ColumnString+ BindPassTag postgres.ColumnString+ SearchBase postgres.ColumnString+ EncryptedCACert postgres.ColumnString+ CaCertIV postgres.ColumnString+ CaCertTag postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ GroupSearchBase postgres.ColumnString+ GroupSearchFilter postgres.ColumnString+ SearchFilter postgres.ColumnString+ UniqueUserAttribute postgres.ColumnString+ EncryptedLdapBindDN postgres.ColumnBytea+ EncryptedLdapBindPass postgres.ColumnBytea+ EncryptedLdapCaCertificate postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type LdapConfigsTable struct {+ ldapConfigsTable++ EXCLUDED ldapConfigsTable+}++// AS creates new LdapConfigsTable with assigned alias+func (a LdapConfigsTable) AS(alias string) *LdapConfigsTable {+ return newLdapConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new LdapConfigsTable with assigned schema name+func (a LdapConfigsTable) FromSchema(schemaName string) *LdapConfigsTable {+ return newLdapConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new LdapConfigsTable with assigned table prefix+func (a LdapConfigsTable) WithPrefix(prefix string) *LdapConfigsTable {+ return newLdapConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new LdapConfigsTable with assigned table suffix+func (a LdapConfigsTable) WithSuffix(suffix string) *LdapConfigsTable {+ return newLdapConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newLdapConfigsTable(schemaName, tableName, alias string) *LdapConfigsTable {+ return &LdapConfigsTable{+ ldapConfigsTable: newLdapConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newLdapConfigsTableImpl("", "excluded", ""),+ }+}++func newLdapConfigsTableImpl(schemaName, tableName, alias string) ldapConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ OrgIdColumn = postgres.StringColumn("orgId")+ IsActiveColumn = postgres.BoolColumn("isActive")+ URLColumn = postgres.StringColumn("url")+ EncryptedBindDNColumn = postgres.StringColumn("encryptedBindDN")+ BindDNIVColumn = postgres.StringColumn("bindDNIV")+ BindDNTagColumn = postgres.StringColumn("bindDNTag")+ EncryptedBindPassColumn = postgres.StringColumn("encryptedBindPass")+ BindPassIVColumn = postgres.StringColumn("bindPassIV")+ BindPassTagColumn = postgres.StringColumn("bindPassTag")+ SearchBaseColumn = postgres.StringColumn("searchBase")+ EncryptedCACertColumn = postgres.StringColumn("encryptedCACert")+ CaCertIVColumn = postgres.StringColumn("caCertIV")+ CaCertTagColumn = postgres.StringColumn("caCertTag")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ GroupSearchBaseColumn = postgres.StringColumn("groupSearchBase")+ GroupSearchFilterColumn = postgres.StringColumn("groupSearchFilter")+ SearchFilterColumn = postgres.StringColumn("searchFilter")+ UniqueUserAttributeColumn = postgres.StringColumn("uniqueUserAttribute")+ EncryptedLdapBindDNColumn = postgres.ByteaColumn("encryptedLdapBindDN")+ EncryptedLdapBindPassColumn = postgres.ByteaColumn("encryptedLdapBindPass")+ EncryptedLdapCaCertificateColumn = postgres.ByteaColumn("encryptedLdapCaCertificate")+ allColumns = postgres.ColumnList{IDColumn, OrgIdColumn, IsActiveColumn, URLColumn, EncryptedBindDNColumn, BindDNIVColumn, BindDNTagColumn, EncryptedBindPassColumn, BindPassIVColumn, BindPassTagColumn, SearchBaseColumn, EncryptedCACertColumn, CaCertIVColumn, CaCertTagColumn, CreatedAtColumn, UpdatedAtColumn, GroupSearchBaseColumn, GroupSearchFilterColumn, SearchFilterColumn, UniqueUserAttributeColumn, EncryptedLdapBindDNColumn, EncryptedLdapBindPassColumn, EncryptedLdapCaCertificateColumn}+ mutableColumns = postgres.ColumnList{OrgIdColumn, IsActiveColumn, URLColumn, EncryptedBindDNColumn, BindDNIVColumn, BindDNTagColumn, EncryptedBindPassColumn, BindPassIVColumn, BindPassTagColumn, SearchBaseColumn, EncryptedCACertColumn, CaCertIVColumn, CaCertTagColumn, CreatedAtColumn, UpdatedAtColumn, GroupSearchBaseColumn, GroupSearchFilterColumn, SearchFilterColumn, UniqueUserAttributeColumn, EncryptedLdapBindDNColumn, EncryptedLdapBindPassColumn, EncryptedLdapCaCertificateColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, GroupSearchBaseColumn, GroupSearchFilterColumn, SearchFilterColumn, UniqueUserAttributeColumn}+ )++ return ldapConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ OrgId: OrgIdColumn,+ IsActive: IsActiveColumn,+ URL: URLColumn,+ EncryptedBindDN: EncryptedBindDNColumn,+ BindDNIV: BindDNIVColumn,+ BindDNTag: BindDNTagColumn,+ EncryptedBindPass: EncryptedBindPassColumn,+ BindPassIV: BindPassIVColumn,+ BindPassTag: BindPassTagColumn,+ SearchBase: SearchBaseColumn,+ EncryptedCACert: EncryptedCACertColumn,+ CaCertIV: CaCertIVColumn,+ CaCertTag: CaCertTagColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ GroupSearchBase: GroupSearchBaseColumn,+ GroupSearchFilter: GroupSearchFilterColumn,+ SearchFilter: SearchFilterColumn,+ UniqueUserAttribute: UniqueUserAttributeColumn,+ EncryptedLdapBindDN: EncryptedLdapBindDNColumn,+ EncryptedLdapBindPass: EncryptedLdapBindPassColumn,+ EncryptedLdapCaCertificate: EncryptedLdapCaCertificateColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ldap_group_maps.go b/backend-go/internal/database/pg/gen/table/ldap_group_maps.gonew file mode 100644index 0000000000..af3148a226--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ldap_group_maps.go@@ -0,0 +1,87 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var LdapGroupMaps = newLdapGroupMapsTable("public", "ldap_group_maps", "")++type ldapGroupMapsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ LdapConfigId postgres.ColumnString+ LdapGroupCN postgres.ColumnString+ GroupId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type LdapGroupMapsTable struct {+ ldapGroupMapsTable++ EXCLUDED ldapGroupMapsTable+}++// AS creates new LdapGroupMapsTable with assigned alias+func (a LdapGroupMapsTable) AS(alias string) *LdapGroupMapsTable {+ return newLdapGroupMapsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new LdapGroupMapsTable with assigned schema name+func (a LdapGroupMapsTable) FromSchema(schemaName string) *LdapGroupMapsTable {+ return newLdapGroupMapsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new LdapGroupMapsTable with assigned table prefix+func (a LdapGroupMapsTable) WithPrefix(prefix string) *LdapGroupMapsTable {+ return newLdapGroupMapsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new LdapGroupMapsTable with assigned table suffix+func (a LdapGroupMapsTable) WithSuffix(suffix string) *LdapGroupMapsTable {+ return newLdapGroupMapsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newLdapGroupMapsTable(schemaName, tableName, alias string) *LdapGroupMapsTable {+ return &LdapGroupMapsTable{+ ldapGroupMapsTable: newLdapGroupMapsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newLdapGroupMapsTableImpl("", "excluded", ""),+ }+}++func newLdapGroupMapsTableImpl(schemaName, tableName, alias string) ldapGroupMapsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ LdapConfigIdColumn = postgres.StringColumn("ldapConfigId")+ LdapGroupCNColumn = postgres.StringColumn("ldapGroupCN")+ GroupIdColumn = postgres.StringColumn("groupId")+ allColumns = postgres.ColumnList{IDColumn, LdapConfigIdColumn, LdapGroupCNColumn, GroupIdColumn}+ mutableColumns = postgres.ColumnList{LdapConfigIdColumn, LdapGroupCNColumn, GroupIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return ldapGroupMapsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ LdapConfigId: LdapConfigIdColumn,+ LdapGroupCN: LdapGroupCNColumn,+ GroupId: GroupIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/membership_roles.go b/backend-go/internal/database/pg/gen/table/membership_roles.gonew file mode 100644index 0000000000..1788837ba5--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/membership_roles.go@@ -0,0 +1,108 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var MembershipRoles = newMembershipRolesTable("public", "membership_roles", "")++type membershipRolesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Role postgres.ColumnString+ IsTemporary postgres.ColumnBool+ TemporaryMode postgres.ColumnString+ TemporaryRange postgres.ColumnString+ TemporaryAccessStartTime postgres.ColumnTimestampz+ TemporaryAccessEndTime postgres.ColumnTimestampz+ CustomRoleId postgres.ColumnString+ MembershipId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type MembershipRolesTable struct {+ membershipRolesTable++ EXCLUDED membershipRolesTable+}++// AS creates new MembershipRolesTable with assigned alias+func (a MembershipRolesTable) AS(alias string) *MembershipRolesTable {+ return newMembershipRolesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new MembershipRolesTable with assigned schema name+func (a MembershipRolesTable) FromSchema(schemaName string) *MembershipRolesTable {+ return newMembershipRolesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new MembershipRolesTable with assigned table prefix+func (a MembershipRolesTable) WithPrefix(prefix string) *MembershipRolesTable {+ return newMembershipRolesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new MembershipRolesTable with assigned table suffix+func (a MembershipRolesTable) WithSuffix(suffix string) *MembershipRolesTable {+ return newMembershipRolesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newMembershipRolesTable(schemaName, tableName, alias string) *MembershipRolesTable {+ return &MembershipRolesTable{+ membershipRolesTable: newMembershipRolesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newMembershipRolesTableImpl("", "excluded", ""),+ }+}++func newMembershipRolesTableImpl(schemaName, tableName, alias string) membershipRolesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ RoleColumn = postgres.StringColumn("role")+ IsTemporaryColumn = postgres.BoolColumn("isTemporary")+ TemporaryModeColumn = postgres.StringColumn("temporaryMode")+ TemporaryRangeColumn = postgres.StringColumn("temporaryRange")+ TemporaryAccessStartTimeColumn = postgres.TimestampzColumn("temporaryAccessStartTime")+ TemporaryAccessEndTimeColumn = postgres.TimestampzColumn("temporaryAccessEndTime")+ CustomRoleIdColumn = postgres.StringColumn("customRoleId")+ MembershipIdColumn = postgres.StringColumn("membershipId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, RoleColumn, IsTemporaryColumn, TemporaryModeColumn, TemporaryRangeColumn, TemporaryAccessStartTimeColumn, TemporaryAccessEndTimeColumn, CustomRoleIdColumn, MembershipIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{RoleColumn, IsTemporaryColumn, TemporaryModeColumn, TemporaryRangeColumn, TemporaryAccessStartTimeColumn, TemporaryAccessEndTimeColumn, CustomRoleIdColumn, MembershipIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsTemporaryColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return membershipRolesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Role: RoleColumn,+ IsTemporary: IsTemporaryColumn,+ TemporaryMode: TemporaryModeColumn,+ TemporaryRange: TemporaryRangeColumn,+ TemporaryAccessStartTime: TemporaryAccessStartTimeColumn,+ TemporaryAccessEndTime: TemporaryAccessEndTimeColumn,+ CustomRoleId: CustomRoleIdColumn,+ MembershipId: MembershipIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/memberships.go b/backend-go/internal/database/pg/gen/table/memberships.gonew file mode 100644index 0000000000..fe1d72e896--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/memberships.go@@ -0,0 +1,123 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var Memberships = newMembershipsTable("public", "memberships", "")++type membershipsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Scope postgres.ColumnString+ ActorUserId postgres.ColumnString+ ActorIdentityId postgres.ColumnString+ ActorGroupId postgres.ColumnString+ ScopeOrgId postgres.ColumnString+ ScopeProjectId postgres.ColumnString+ IsActive postgres.ColumnBool+ Status postgres.ColumnString+ InviteEmail postgres.ColumnString+ LastInvitedAt postgres.ColumnTimestampz+ LastLoginAuthMethod postgres.ColumnString+ LastLoginTime postgres.ColumnTimestampz+ ProjectFavorites postgres.ColumnStringArray+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type MembershipsTable struct {+ membershipsTable++ EXCLUDED membershipsTable+}++// AS creates new MembershipsTable with assigned alias+func (a MembershipsTable) AS(alias string) *MembershipsTable {+ return newMembershipsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new MembershipsTable with assigned schema name+func (a MembershipsTable) FromSchema(schemaName string) *MembershipsTable {+ return newMembershipsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new MembershipsTable with assigned table prefix+func (a MembershipsTable) WithPrefix(prefix string) *MembershipsTable {+ return newMembershipsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new MembershipsTable with assigned table suffix+func (a MembershipsTable) WithSuffix(suffix string) *MembershipsTable {+ return newMembershipsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newMembershipsTable(schemaName, tableName, alias string) *MembershipsTable {+ return &MembershipsTable{+ membershipsTable: newMembershipsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newMembershipsTableImpl("", "excluded", ""),+ }+}++func newMembershipsTableImpl(schemaName, tableName, alias string) membershipsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ScopeColumn = postgres.StringColumn("scope")+ ActorUserIdColumn = postgres.StringColumn("actorUserId")+ ActorIdentityIdColumn = postgres.StringColumn("actorIdentityId")+ ActorGroupIdColumn = postgres.StringColumn("actorGroupId")+ ScopeOrgIdColumn = postgres.StringColumn("scopeOrgId")+ ScopeProjectIdColumn = postgres.StringColumn("scopeProjectId")+ IsActiveColumn = postgres.BoolColumn("isActive")+ StatusColumn = postgres.StringColumn("status")+ InviteEmailColumn = postgres.StringColumn("inviteEmail")+ LastInvitedAtColumn = postgres.TimestampzColumn("lastInvitedAt")+ LastLoginAuthMethodColumn = postgres.StringColumn("lastLoginAuthMethod")+ LastLoginTimeColumn = postgres.TimestampzColumn("lastLoginTime")+ ProjectFavoritesColumn = postgres.StringArrayColumn("projectFavorites")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ScopeColumn, ActorUserIdColumn, ActorIdentityIdColumn, ActorGroupIdColumn, ScopeOrgIdColumn, ScopeProjectIdColumn, IsActiveColumn, StatusColumn, InviteEmailColumn, LastInvitedAtColumn, LastLoginAuthMethodColumn, LastLoginTimeColumn, ProjectFavoritesColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ScopeColumn, ActorUserIdColumn, ActorIdentityIdColumn, ActorGroupIdColumn, ScopeOrgIdColumn, ScopeProjectIdColumn, IsActiveColumn, StatusColumn, InviteEmailColumn, LastInvitedAtColumn, LastLoginAuthMethodColumn, LastLoginTimeColumn, ProjectFavoritesColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsActiveColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return membershipsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Scope: ScopeColumn,+ ActorUserId: ActorUserIdColumn,+ ActorIdentityId: ActorIdentityIdColumn,+ ActorGroupId: ActorGroupIdColumn,+ ScopeOrgId: ScopeOrgIdColumn,+ ScopeProjectId: ScopeProjectIdColumn,+ IsActive: IsActiveColumn,+ Status: StatusColumn,+ InviteEmail: InviteEmailColumn,+ LastInvitedAt: LastInvitedAtColumn,+ LastLoginAuthMethod: LastLoginAuthMethodColumn,+ LastLoginTime: LastLoginTimeColumn,+ ProjectFavorites: ProjectFavoritesColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/microsoft_teams_integrations.go b/backend-go/internal/database/pg/gen/table/microsoft_teams_integrations.gonew file mode 100644index 0000000000..10e53358b3--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/microsoft_teams_integrations.go@@ -0,0 +1,102 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var MicrosoftTeamsIntegrations = newMicrosoftTeamsIntegrationsTable("public", "microsoft_teams_integrations", "")++type microsoftTeamsIntegrationsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ InternalTeamsAppId postgres.ColumnString+ TenantId postgres.ColumnString+ EncryptedAccessToken postgres.ColumnBytea+ EncryptedBotAccessToken postgres.ColumnBytea+ AccessTokenExpiresAt postgres.ColumnTimestampz+ BotAccessTokenExpiresAt postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type MicrosoftTeamsIntegrationsTable struct {+ microsoftTeamsIntegrationsTable++ EXCLUDED microsoftTeamsIntegrationsTable+}++// AS creates new MicrosoftTeamsIntegrationsTable with assigned alias+func (a MicrosoftTeamsIntegrationsTable) AS(alias string) *MicrosoftTeamsIntegrationsTable {+ return newMicrosoftTeamsIntegrationsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new MicrosoftTeamsIntegrationsTable with assigned schema name+func (a MicrosoftTeamsIntegrationsTable) FromSchema(schemaName string) *MicrosoftTeamsIntegrationsTable {+ return newMicrosoftTeamsIntegrationsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new MicrosoftTeamsIntegrationsTable with assigned table prefix+func (a MicrosoftTeamsIntegrationsTable) WithPrefix(prefix string) *MicrosoftTeamsIntegrationsTable {+ return newMicrosoftTeamsIntegrationsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new MicrosoftTeamsIntegrationsTable with assigned table suffix+func (a MicrosoftTeamsIntegrationsTable) WithSuffix(suffix string) *MicrosoftTeamsIntegrationsTable {+ return newMicrosoftTeamsIntegrationsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newMicrosoftTeamsIntegrationsTable(schemaName, tableName, alias string) *MicrosoftTeamsIntegrationsTable {+ return &MicrosoftTeamsIntegrationsTable{+ microsoftTeamsIntegrationsTable: newMicrosoftTeamsIntegrationsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newMicrosoftTeamsIntegrationsTableImpl("", "excluded", ""),+ }+}++func newMicrosoftTeamsIntegrationsTableImpl(schemaName, tableName, alias string) microsoftTeamsIntegrationsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ InternalTeamsAppIdColumn = postgres.StringColumn("internalTeamsAppId")+ TenantIdColumn = postgres.StringColumn("tenantId")+ EncryptedAccessTokenColumn = postgres.ByteaColumn("encryptedAccessToken")+ EncryptedBotAccessTokenColumn = postgres.ByteaColumn("encryptedBotAccessToken")+ AccessTokenExpiresAtColumn = postgres.TimestampzColumn("accessTokenExpiresAt")+ BotAccessTokenExpiresAtColumn = postgres.TimestampzColumn("botAccessTokenExpiresAt")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, InternalTeamsAppIdColumn, TenantIdColumn, EncryptedAccessTokenColumn, EncryptedBotAccessTokenColumn, AccessTokenExpiresAtColumn, BotAccessTokenExpiresAtColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{InternalTeamsAppIdColumn, TenantIdColumn, EncryptedAccessTokenColumn, EncryptedBotAccessTokenColumn, AccessTokenExpiresAtColumn, BotAccessTokenExpiresAtColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn}+ )++ return microsoftTeamsIntegrationsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ InternalTeamsAppId: InternalTeamsAppIdColumn,+ TenantId: TenantIdColumn,+ EncryptedAccessToken: EncryptedAccessTokenColumn,+ EncryptedBotAccessToken: EncryptedBotAccessTokenColumn,+ AccessTokenExpiresAt: AccessTokenExpiresAtColumn,+ BotAccessTokenExpiresAt: BotAccessTokenExpiresAtColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/oidc_configs.go b/backend-go/internal/database/pg/gen/table/oidc_configs.gonew file mode 100644index 0000000000..ff5659fd07--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/oidc_configs.go@@ -0,0 +1,147 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var OidcConfigs = newOidcConfigsTable("public", "oidc_configs", "")++type oidcConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ DiscoveryURL postgres.ColumnString+ Issuer postgres.ColumnString+ AuthorizationEndpoint postgres.ColumnString+ JwksUri postgres.ColumnString+ TokenEndpoint postgres.ColumnString+ UserinfoEndpoint postgres.ColumnString+ EncryptedClientId postgres.ColumnString+ ConfigurationType postgres.ColumnString+ ClientIdIV postgres.ColumnString+ ClientIdTag postgres.ColumnString+ EncryptedClientSecret postgres.ColumnString+ ClientSecretIV postgres.ColumnString+ ClientSecretTag postgres.ColumnString+ AllowedEmailDomains postgres.ColumnString+ IsActive postgres.ColumnBool+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ OrgId postgres.ColumnString+ LastUsed postgres.ColumnTimestampz+ ManageGroupMemberships postgres.ColumnBool+ EncryptedOidcClientId postgres.ColumnBytea+ EncryptedOidcClientSecret postgres.ColumnBytea+ JwtSignatureAlgorithm postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type OidcConfigsTable struct {+ oidcConfigsTable++ EXCLUDED oidcConfigsTable+}++// AS creates new OidcConfigsTable with assigned alias+func (a OidcConfigsTable) AS(alias string) *OidcConfigsTable {+ return newOidcConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new OidcConfigsTable with assigned schema name+func (a OidcConfigsTable) FromSchema(schemaName string) *OidcConfigsTable {+ return newOidcConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new OidcConfigsTable with assigned table prefix+func (a OidcConfigsTable) WithPrefix(prefix string) *OidcConfigsTable {+ return newOidcConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new OidcConfigsTable with assigned table suffix+func (a OidcConfigsTable) WithSuffix(suffix string) *OidcConfigsTable {+ return newOidcConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newOidcConfigsTable(schemaName, tableName, alias string) *OidcConfigsTable {+ return &OidcConfigsTable{+ oidcConfigsTable: newOidcConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newOidcConfigsTableImpl("", "excluded", ""),+ }+}++func newOidcConfigsTableImpl(schemaName, tableName, alias string) oidcConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ DiscoveryURLColumn = postgres.StringColumn("discoveryURL")+ IssuerColumn = postgres.StringColumn("issuer")+ AuthorizationEndpointColumn = postgres.StringColumn("authorizationEndpoint")+ JwksUriColumn = postgres.StringColumn("jwksUri")+ TokenEndpointColumn = postgres.StringColumn("tokenEndpoint")+ UserinfoEndpointColumn = postgres.StringColumn("userinfoEndpoint")+ EncryptedClientIdColumn = postgres.StringColumn("encryptedClientId")+ ConfigurationTypeColumn = postgres.StringColumn("configurationType")+ ClientIdIVColumn = postgres.StringColumn("clientIdIV")+ ClientIdTagColumn = postgres.StringColumn("clientIdTag")+ EncryptedClientSecretColumn = postgres.StringColumn("encryptedClientSecret")+ ClientSecretIVColumn = postgres.StringColumn("clientSecretIV")+ ClientSecretTagColumn = postgres.StringColumn("clientSecretTag")+ AllowedEmailDomainsColumn = postgres.StringColumn("allowedEmailDomains")+ IsActiveColumn = postgres.BoolColumn("isActive")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ OrgIdColumn = postgres.StringColumn("orgId")+ LastUsedColumn = postgres.TimestampzColumn("lastUsed")+ ManageGroupMembershipsColumn = postgres.BoolColumn("manageGroupMemberships")+ EncryptedOidcClientIdColumn = postgres.ByteaColumn("encryptedOidcClientId")+ EncryptedOidcClientSecretColumn = postgres.ByteaColumn("encryptedOidcClientSecret")+ JwtSignatureAlgorithmColumn = postgres.StringColumn("jwtSignatureAlgorithm")+ allColumns = postgres.ColumnList{IDColumn, DiscoveryURLColumn, IssuerColumn, AuthorizationEndpointColumn, JwksUriColumn, TokenEndpointColumn, UserinfoEndpointColumn, EncryptedClientIdColumn, ConfigurationTypeColumn, ClientIdIVColumn, ClientIdTagColumn, EncryptedClientSecretColumn, ClientSecretIVColumn, ClientSecretTagColumn, AllowedEmailDomainsColumn, IsActiveColumn, CreatedAtColumn, UpdatedAtColumn, OrgIdColumn, LastUsedColumn, ManageGroupMembershipsColumn, EncryptedOidcClientIdColumn, EncryptedOidcClientSecretColumn, JwtSignatureAlgorithmColumn}+ mutableColumns = postgres.ColumnList{DiscoveryURLColumn, IssuerColumn, AuthorizationEndpointColumn, JwksUriColumn, TokenEndpointColumn, UserinfoEndpointColumn, EncryptedClientIdColumn, ConfigurationTypeColumn, ClientIdIVColumn, ClientIdTagColumn, EncryptedClientSecretColumn, ClientSecretIVColumn, ClientSecretTagColumn, AllowedEmailDomainsColumn, IsActiveColumn, CreatedAtColumn, UpdatedAtColumn, OrgIdColumn, LastUsedColumn, ManageGroupMembershipsColumn, EncryptedOidcClientIdColumn, EncryptedOidcClientSecretColumn, JwtSignatureAlgorithmColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, ManageGroupMembershipsColumn, JwtSignatureAlgorithmColumn}+ )++ return oidcConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ DiscoveryURL: DiscoveryURLColumn,+ Issuer: IssuerColumn,+ AuthorizationEndpoint: AuthorizationEndpointColumn,+ JwksUri: JwksUriColumn,+ TokenEndpoint: TokenEndpointColumn,+ UserinfoEndpoint: UserinfoEndpointColumn,+ EncryptedClientId: EncryptedClientIdColumn,+ ConfigurationType: ConfigurationTypeColumn,+ ClientIdIV: ClientIdIVColumn,+ ClientIdTag: ClientIdTagColumn,+ EncryptedClientSecret: EncryptedClientSecretColumn,+ ClientSecretIV: ClientSecretIVColumn,+ ClientSecretTag: ClientSecretTagColumn,+ AllowedEmailDomains: AllowedEmailDomainsColumn,+ IsActive: IsActiveColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ OrgId: OrgIdColumn,+ LastUsed: LastUsedColumn,+ ManageGroupMemberships: ManageGroupMembershipsColumn,+ EncryptedOidcClientId: EncryptedOidcClientIdColumn,+ EncryptedOidcClientSecret: EncryptedOidcClientSecretColumn,+ JwtSignatureAlgorithm: JwtSignatureAlgorithmColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/org_bots.go b/backend-go/internal/database/pg/gen/table/org_bots.gonew file mode 100644index 0000000000..86215cf224--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/org_bots.go@@ -0,0 +1,123 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var OrgBots = newOrgBotsTable("public", "org_bots", "")++type orgBotsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ PublicKey postgres.ColumnString+ EncryptedSymmetricKey postgres.ColumnString+ SymmetricKeyIV postgres.ColumnString+ SymmetricKeyTag postgres.ColumnString+ SymmetricKeyAlgorithm postgres.ColumnString+ SymmetricKeyKeyEncoding postgres.ColumnString+ EncryptedPrivateKey postgres.ColumnString+ PrivateKeyIV postgres.ColumnString+ PrivateKeyTag postgres.ColumnString+ PrivateKeyAlgorithm postgres.ColumnString+ PrivateKeyKeyEncoding postgres.ColumnString+ OrgId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type OrgBotsTable struct {+ orgBotsTable++ EXCLUDED orgBotsTable+}++// AS creates new OrgBotsTable with assigned alias+func (a OrgBotsTable) AS(alias string) *OrgBotsTable {+ return newOrgBotsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new OrgBotsTable with assigned schema name+func (a OrgBotsTable) FromSchema(schemaName string) *OrgBotsTable {+ return newOrgBotsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new OrgBotsTable with assigned table prefix+func (a OrgBotsTable) WithPrefix(prefix string) *OrgBotsTable {+ return newOrgBotsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new OrgBotsTable with assigned table suffix+func (a OrgBotsTable) WithSuffix(suffix string) *OrgBotsTable {+ return newOrgBotsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newOrgBotsTable(schemaName, tableName, alias string) *OrgBotsTable {+ return &OrgBotsTable{+ orgBotsTable: newOrgBotsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newOrgBotsTableImpl("", "excluded", ""),+ }+}++func newOrgBotsTableImpl(schemaName, tableName, alias string) orgBotsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ PublicKeyColumn = postgres.StringColumn("publicKey")+ EncryptedSymmetricKeyColumn = postgres.StringColumn("encryptedSymmetricKey")+ SymmetricKeyIVColumn = postgres.StringColumn("symmetricKeyIV")+ SymmetricKeyTagColumn = postgres.StringColumn("symmetricKeyTag")+ SymmetricKeyAlgorithmColumn = postgres.StringColumn("symmetricKeyAlgorithm")+ SymmetricKeyKeyEncodingColumn = postgres.StringColumn("symmetricKeyKeyEncoding")+ EncryptedPrivateKeyColumn = postgres.StringColumn("encryptedPrivateKey")+ PrivateKeyIVColumn = postgres.StringColumn("privateKeyIV")+ PrivateKeyTagColumn = postgres.StringColumn("privateKeyTag")+ PrivateKeyAlgorithmColumn = postgres.StringColumn("privateKeyAlgorithm")+ PrivateKeyKeyEncodingColumn = postgres.StringColumn("privateKeyKeyEncoding")+ OrgIdColumn = postgres.StringColumn("orgId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, PublicKeyColumn, EncryptedSymmetricKeyColumn, SymmetricKeyIVColumn, SymmetricKeyTagColumn, SymmetricKeyAlgorithmColumn, SymmetricKeyKeyEncodingColumn, EncryptedPrivateKeyColumn, PrivateKeyIVColumn, PrivateKeyTagColumn, PrivateKeyAlgorithmColumn, PrivateKeyKeyEncodingColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{NameColumn, PublicKeyColumn, EncryptedSymmetricKeyColumn, SymmetricKeyIVColumn, SymmetricKeyTagColumn, SymmetricKeyAlgorithmColumn, SymmetricKeyKeyEncodingColumn, EncryptedPrivateKeyColumn, PrivateKeyIVColumn, PrivateKeyTagColumn, PrivateKeyAlgorithmColumn, PrivateKeyKeyEncodingColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return orgBotsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ PublicKey: PublicKeyColumn,+ EncryptedSymmetricKey: EncryptedSymmetricKeyColumn,+ SymmetricKeyIV: SymmetricKeyIVColumn,+ SymmetricKeyTag: SymmetricKeyTagColumn,+ SymmetricKeyAlgorithm: SymmetricKeyAlgorithmColumn,+ SymmetricKeyKeyEncoding: SymmetricKeyKeyEncodingColumn,+ EncryptedPrivateKey: EncryptedPrivateKeyColumn,+ PrivateKeyIV: PrivateKeyIVColumn,+ PrivateKeyTag: PrivateKeyTagColumn,+ PrivateKeyAlgorithm: PrivateKeyAlgorithmColumn,+ PrivateKeyKeyEncoding: PrivateKeyKeyEncodingColumn,+ OrgId: OrgIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/org_gateway_config.go b/backend-go/internal/database/pg/gen/table/org_gateway_config.gonew file mode 100644index 0000000000..7cde315a6c--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/org_gateway_config.go@@ -0,0 +1,153 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var OrgGatewayConfig = newOrgGatewayConfigTable("public", "org_gateway_config", "")++type orgGatewayConfigTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ RootCaKeyAlgorithm postgres.ColumnString+ RootCaIssuedAt postgres.ColumnTimestampz+ RootCaExpiration postgres.ColumnTimestampz+ RootCaSerialNumber postgres.ColumnString+ EncryptedRootCaCertificate postgres.ColumnBytea+ EncryptedRootCaPrivateKey postgres.ColumnBytea+ ClientCaIssuedAt postgres.ColumnTimestampz+ ClientCaExpiration postgres.ColumnTimestampz+ ClientCaSerialNumber postgres.ColumnString+ EncryptedClientCaCertificate postgres.ColumnBytea+ EncryptedClientCaPrivateKey postgres.ColumnBytea+ ClientCertSerialNumber postgres.ColumnString+ ClientCertKeyAlgorithm postgres.ColumnString+ ClientCertIssuedAt postgres.ColumnTimestampz+ ClientCertExpiration postgres.ColumnTimestampz+ EncryptedClientCertificate postgres.ColumnBytea+ EncryptedClientPrivateKey postgres.ColumnBytea+ GatewayCaIssuedAt postgres.ColumnTimestampz+ GatewayCaExpiration postgres.ColumnTimestampz+ GatewayCaSerialNumber postgres.ColumnString+ EncryptedGatewayCaCertificate postgres.ColumnBytea+ EncryptedGatewayCaPrivateKey postgres.ColumnBytea+ OrgId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type OrgGatewayConfigTable struct {+ orgGatewayConfigTable++ EXCLUDED orgGatewayConfigTable+}++// AS creates new OrgGatewayConfigTable with assigned alias+func (a OrgGatewayConfigTable) AS(alias string) *OrgGatewayConfigTable {+ return newOrgGatewayConfigTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new OrgGatewayConfigTable with assigned schema name+func (a OrgGatewayConfigTable) FromSchema(schemaName string) *OrgGatewayConfigTable {+ return newOrgGatewayConfigTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new OrgGatewayConfigTable with assigned table prefix+func (a OrgGatewayConfigTable) WithPrefix(prefix string) *OrgGatewayConfigTable {+ return newOrgGatewayConfigTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new OrgGatewayConfigTable with assigned table suffix+func (a OrgGatewayConfigTable) WithSuffix(suffix string) *OrgGatewayConfigTable {+ return newOrgGatewayConfigTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newOrgGatewayConfigTable(schemaName, tableName, alias string) *OrgGatewayConfigTable {+ return &OrgGatewayConfigTable{+ orgGatewayConfigTable: newOrgGatewayConfigTableImpl(schemaName, tableName, alias),+ EXCLUDED: newOrgGatewayConfigTableImpl("", "excluded", ""),+ }+}++func newOrgGatewayConfigTableImpl(schemaName, tableName, alias string) orgGatewayConfigTable {+ var (+ IDColumn = postgres.StringColumn("id")+ RootCaKeyAlgorithmColumn = postgres.StringColumn("rootCaKeyAlgorithm")+ RootCaIssuedAtColumn = postgres.TimestampzColumn("rootCaIssuedAt")+ RootCaExpirationColumn = postgres.TimestampzColumn("rootCaExpiration")+ RootCaSerialNumberColumn = postgres.StringColumn("rootCaSerialNumber")+ EncryptedRootCaCertificateColumn = postgres.ByteaColumn("encryptedRootCaCertificate")+ EncryptedRootCaPrivateKeyColumn = postgres.ByteaColumn("encryptedRootCaPrivateKey")+ ClientCaIssuedAtColumn = postgres.TimestampzColumn("clientCaIssuedAt")+ ClientCaExpirationColumn = postgres.TimestampzColumn("clientCaExpiration")+ ClientCaSerialNumberColumn = postgres.StringColumn("clientCaSerialNumber")+ EncryptedClientCaCertificateColumn = postgres.ByteaColumn("encryptedClientCaCertificate")+ EncryptedClientCaPrivateKeyColumn = postgres.ByteaColumn("encryptedClientCaPrivateKey")+ ClientCertSerialNumberColumn = postgres.StringColumn("clientCertSerialNumber")+ ClientCertKeyAlgorithmColumn = postgres.StringColumn("clientCertKeyAlgorithm")+ ClientCertIssuedAtColumn = postgres.TimestampzColumn("clientCertIssuedAt")+ ClientCertExpirationColumn = postgres.TimestampzColumn("clientCertExpiration")+ EncryptedClientCertificateColumn = postgres.ByteaColumn("encryptedClientCertificate")+ EncryptedClientPrivateKeyColumn = postgres.ByteaColumn("encryptedClientPrivateKey")+ GatewayCaIssuedAtColumn = postgres.TimestampzColumn("gatewayCaIssuedAt")+ GatewayCaExpirationColumn = postgres.TimestampzColumn("gatewayCaExpiration")+ GatewayCaSerialNumberColumn = postgres.StringColumn("gatewayCaSerialNumber")+ EncryptedGatewayCaCertificateColumn = postgres.ByteaColumn("encryptedGatewayCaCertificate")+ EncryptedGatewayCaPrivateKeyColumn = postgres.ByteaColumn("encryptedGatewayCaPrivateKey")+ OrgIdColumn = postgres.StringColumn("orgId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, RootCaKeyAlgorithmColumn, RootCaIssuedAtColumn, RootCaExpirationColumn, RootCaSerialNumberColumn, EncryptedRootCaCertificateColumn, EncryptedRootCaPrivateKeyColumn, ClientCaIssuedAtColumn, ClientCaExpirationColumn, ClientCaSerialNumberColumn, EncryptedClientCaCertificateColumn, EncryptedClientCaPrivateKeyColumn, ClientCertSerialNumberColumn, ClientCertKeyAlgorithmColumn, ClientCertIssuedAtColumn, ClientCertExpirationColumn, EncryptedClientCertificateColumn, EncryptedClientPrivateKeyColumn, GatewayCaIssuedAtColumn, GatewayCaExpirationColumn, GatewayCaSerialNumberColumn, EncryptedGatewayCaCertificateColumn, EncryptedGatewayCaPrivateKeyColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{RootCaKeyAlgorithmColumn, RootCaIssuedAtColumn, RootCaExpirationColumn, RootCaSerialNumberColumn, EncryptedRootCaCertificateColumn, EncryptedRootCaPrivateKeyColumn, ClientCaIssuedAtColumn, ClientCaExpirationColumn, ClientCaSerialNumberColumn, EncryptedClientCaCertificateColumn, EncryptedClientCaPrivateKeyColumn, ClientCertSerialNumberColumn, ClientCertKeyAlgorithmColumn, ClientCertIssuedAtColumn, ClientCertExpirationColumn, EncryptedClientCertificateColumn, EncryptedClientPrivateKeyColumn, GatewayCaIssuedAtColumn, GatewayCaExpirationColumn, GatewayCaSerialNumberColumn, EncryptedGatewayCaCertificateColumn, EncryptedGatewayCaPrivateKeyColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return orgGatewayConfigTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ RootCaKeyAlgorithm: RootCaKeyAlgorithmColumn,+ RootCaIssuedAt: RootCaIssuedAtColumn,+ RootCaExpiration: RootCaExpirationColumn,+ RootCaSerialNumber: RootCaSerialNumberColumn,+ EncryptedRootCaCertificate: EncryptedRootCaCertificateColumn,+ EncryptedRootCaPrivateKey: EncryptedRootCaPrivateKeyColumn,+ ClientCaIssuedAt: ClientCaIssuedAtColumn,+ ClientCaExpiration: ClientCaExpirationColumn,+ ClientCaSerialNumber: ClientCaSerialNumberColumn,+ EncryptedClientCaCertificate: EncryptedClientCaCertificateColumn,+ EncryptedClientCaPrivateKey: EncryptedClientCaPrivateKeyColumn,+ ClientCertSerialNumber: ClientCertSerialNumberColumn,+ ClientCertKeyAlgorithm: ClientCertKeyAlgorithmColumn,+ ClientCertIssuedAt: ClientCertIssuedAtColumn,+ ClientCertExpiration: ClientCertExpirationColumn,+ EncryptedClientCertificate: EncryptedClientCertificateColumn,+ EncryptedClientPrivateKey: EncryptedClientPrivateKeyColumn,+ GatewayCaIssuedAt: GatewayCaIssuedAtColumn,+ GatewayCaExpiration: GatewayCaExpirationColumn,+ GatewayCaSerialNumber: GatewayCaSerialNumberColumn,+ EncryptedGatewayCaCertificate: EncryptedGatewayCaCertificateColumn,+ EncryptedGatewayCaPrivateKey: EncryptedGatewayCaPrivateKeyColumn,+ OrgId: OrgIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/org_gateway_config_v2.go b/backend-go/internal/database/pg/gen/table/org_gateway_config_v2.gonew file mode 100644index 0000000000..a0e6498784--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/org_gateway_config_v2.go@@ -0,0 +1,111 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var OrgGatewayConfigV2 = newOrgGatewayConfigV2Table("public", "org_gateway_config_v2", "")++type orgGatewayConfigV2Table struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ OrgId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ EncryptedRootGatewayCaPrivateKey postgres.ColumnBytea+ EncryptedRootGatewayCaCertificate postgres.ColumnBytea+ EncryptedGatewayServerCaPrivateKey postgres.ColumnBytea+ EncryptedGatewayServerCaCertificate postgres.ColumnBytea+ EncryptedGatewayServerCaCertificateChain postgres.ColumnBytea+ EncryptedGatewayClientCaPrivateKey postgres.ColumnBytea+ EncryptedGatewayClientCaCertificate postgres.ColumnBytea+ EncryptedGatewayClientCaCertificateChain postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type OrgGatewayConfigV2Table struct {+ orgGatewayConfigV2Table++ EXCLUDED orgGatewayConfigV2Table+}++// AS creates new OrgGatewayConfigV2Table with assigned alias+func (a OrgGatewayConfigV2Table) AS(alias string) *OrgGatewayConfigV2Table {+ return newOrgGatewayConfigV2Table(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new OrgGatewayConfigV2Table with assigned schema name+func (a OrgGatewayConfigV2Table) FromSchema(schemaName string) *OrgGatewayConfigV2Table {+ return newOrgGatewayConfigV2Table(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new OrgGatewayConfigV2Table with assigned table prefix+func (a OrgGatewayConfigV2Table) WithPrefix(prefix string) *OrgGatewayConfigV2Table {+ return newOrgGatewayConfigV2Table(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new OrgGatewayConfigV2Table with assigned table suffix+func (a OrgGatewayConfigV2Table) WithSuffix(suffix string) *OrgGatewayConfigV2Table {+ return newOrgGatewayConfigV2Table(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newOrgGatewayConfigV2Table(schemaName, tableName, alias string) *OrgGatewayConfigV2Table {+ return &OrgGatewayConfigV2Table{+ orgGatewayConfigV2Table: newOrgGatewayConfigV2TableImpl(schemaName, tableName, alias),+ EXCLUDED: newOrgGatewayConfigV2TableImpl("", "excluded", ""),+ }+}++func newOrgGatewayConfigV2TableImpl(schemaName, tableName, alias string) orgGatewayConfigV2Table {+ var (+ IDColumn = postgres.StringColumn("id")+ OrgIdColumn = postgres.StringColumn("orgId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ EncryptedRootGatewayCaPrivateKeyColumn = postgres.ByteaColumn("encryptedRootGatewayCaPrivateKey")+ EncryptedRootGatewayCaCertificateColumn = postgres.ByteaColumn("encryptedRootGatewayCaCertificate")+ EncryptedGatewayServerCaPrivateKeyColumn = postgres.ByteaColumn("encryptedGatewayServerCaPrivateKey")+ EncryptedGatewayServerCaCertificateColumn = postgres.ByteaColumn("encryptedGatewayServerCaCertificate")+ EncryptedGatewayServerCaCertificateChainColumn = postgres.ByteaColumn("encryptedGatewayServerCaCertificateChain")+ EncryptedGatewayClientCaPrivateKeyColumn = postgres.ByteaColumn("encryptedGatewayClientCaPrivateKey")+ EncryptedGatewayClientCaCertificateColumn = postgres.ByteaColumn("encryptedGatewayClientCaCertificate")+ EncryptedGatewayClientCaCertificateChainColumn = postgres.ByteaColumn("encryptedGatewayClientCaCertificateChain")+ allColumns = postgres.ColumnList{IDColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, EncryptedRootGatewayCaPrivateKeyColumn, EncryptedRootGatewayCaCertificateColumn, EncryptedGatewayServerCaPrivateKeyColumn, EncryptedGatewayServerCaCertificateColumn, EncryptedGatewayServerCaCertificateChainColumn, EncryptedGatewayClientCaPrivateKeyColumn, EncryptedGatewayClientCaCertificateColumn, EncryptedGatewayClientCaCertificateChainColumn}+ mutableColumns = postgres.ColumnList{OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, EncryptedRootGatewayCaPrivateKeyColumn, EncryptedRootGatewayCaCertificateColumn, EncryptedGatewayServerCaPrivateKeyColumn, EncryptedGatewayServerCaCertificateColumn, EncryptedGatewayServerCaCertificateChainColumn, EncryptedGatewayClientCaPrivateKeyColumn, EncryptedGatewayClientCaCertificateColumn, EncryptedGatewayClientCaCertificateChainColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return orgGatewayConfigV2Table{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ OrgId: OrgIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ EncryptedRootGatewayCaPrivateKey: EncryptedRootGatewayCaPrivateKeyColumn,+ EncryptedRootGatewayCaCertificate: EncryptedRootGatewayCaCertificateColumn,+ EncryptedGatewayServerCaPrivateKey: EncryptedGatewayServerCaPrivateKeyColumn,+ EncryptedGatewayServerCaCertificate: EncryptedGatewayServerCaCertificateColumn,+ EncryptedGatewayServerCaCertificateChain: EncryptedGatewayServerCaCertificateChainColumn,+ EncryptedGatewayClientCaPrivateKey: EncryptedGatewayClientCaPrivateKeyColumn,+ EncryptedGatewayClientCaCertificate: EncryptedGatewayClientCaCertificateColumn,+ EncryptedGatewayClientCaCertificateChain: EncryptedGatewayClientCaCertificateChainColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/org_relay_config.go b/backend-go/internal/database/pg/gen/table/org_relay_config.gonew file mode 100644index 0000000000..b94e038304--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/org_relay_config.go@@ -0,0 +1,117 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var OrgRelayConfig = newOrgRelayConfigTable("public", "org_relay_config", "")++type orgRelayConfigTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ OrgId postgres.ColumnString+ EncryptedRelayPkiClientCaPrivateKey postgres.ColumnBytea+ EncryptedRelayPkiClientCaCertificate postgres.ColumnBytea+ EncryptedRelayPkiClientCaCertificateChain postgres.ColumnBytea+ EncryptedRelayPkiServerCaPrivateKey postgres.ColumnBytea+ EncryptedRelayPkiServerCaCertificate postgres.ColumnBytea+ EncryptedRelayPkiServerCaCertificateChain postgres.ColumnBytea+ EncryptedRelaySshClientCaPrivateKey postgres.ColumnBytea+ EncryptedRelaySshClientCaPublicKey postgres.ColumnBytea+ EncryptedRelaySshServerCaPrivateKey postgres.ColumnBytea+ EncryptedRelaySshServerCaPublicKey postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type OrgRelayConfigTable struct {+ orgRelayConfigTable++ EXCLUDED orgRelayConfigTable+}++// AS creates new OrgRelayConfigTable with assigned alias+func (a OrgRelayConfigTable) AS(alias string) *OrgRelayConfigTable {+ return newOrgRelayConfigTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new OrgRelayConfigTable with assigned schema name+func (a OrgRelayConfigTable) FromSchema(schemaName string) *OrgRelayConfigTable {+ return newOrgRelayConfigTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new OrgRelayConfigTable with assigned table prefix+func (a OrgRelayConfigTable) WithPrefix(prefix string) *OrgRelayConfigTable {+ return newOrgRelayConfigTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new OrgRelayConfigTable with assigned table suffix+func (a OrgRelayConfigTable) WithSuffix(suffix string) *OrgRelayConfigTable {+ return newOrgRelayConfigTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newOrgRelayConfigTable(schemaName, tableName, alias string) *OrgRelayConfigTable {+ return &OrgRelayConfigTable{+ orgRelayConfigTable: newOrgRelayConfigTableImpl(schemaName, tableName, alias),+ EXCLUDED: newOrgRelayConfigTableImpl("", "excluded", ""),+ }+}++func newOrgRelayConfigTableImpl(schemaName, tableName, alias string) orgRelayConfigTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ OrgIdColumn = postgres.StringColumn("orgId")+ EncryptedRelayPkiClientCaPrivateKeyColumn = postgres.ByteaColumn("encryptedRelayPkiClientCaPrivateKey")+ EncryptedRelayPkiClientCaCertificateColumn = postgres.ByteaColumn("encryptedRelayPkiClientCaCertificate")+ EncryptedRelayPkiClientCaCertificateChainColumn = postgres.ByteaColumn("encryptedRelayPkiClientCaCertificateChain")+ EncryptedRelayPkiServerCaPrivateKeyColumn = postgres.ByteaColumn("encryptedRelayPkiServerCaPrivateKey")+ EncryptedRelayPkiServerCaCertificateColumn = postgres.ByteaColumn("encryptedRelayPkiServerCaCertificate")+ EncryptedRelayPkiServerCaCertificateChainColumn = postgres.ByteaColumn("encryptedRelayPkiServerCaCertificateChain")+ EncryptedRelaySshClientCaPrivateKeyColumn = postgres.ByteaColumn("encryptedRelaySshClientCaPrivateKey")+ EncryptedRelaySshClientCaPublicKeyColumn = postgres.ByteaColumn("encryptedRelaySshClientCaPublicKey")+ EncryptedRelaySshServerCaPrivateKeyColumn = postgres.ByteaColumn("encryptedRelaySshServerCaPrivateKey")+ EncryptedRelaySshServerCaPublicKeyColumn = postgres.ByteaColumn("encryptedRelaySshServerCaPublicKey")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, OrgIdColumn, EncryptedRelayPkiClientCaPrivateKeyColumn, EncryptedRelayPkiClientCaCertificateColumn, EncryptedRelayPkiClientCaCertificateChainColumn, EncryptedRelayPkiServerCaPrivateKeyColumn, EncryptedRelayPkiServerCaCertificateColumn, EncryptedRelayPkiServerCaCertificateChainColumn, EncryptedRelaySshClientCaPrivateKeyColumn, EncryptedRelaySshClientCaPublicKeyColumn, EncryptedRelaySshServerCaPrivateKeyColumn, EncryptedRelaySshServerCaPublicKeyColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, OrgIdColumn, EncryptedRelayPkiClientCaPrivateKeyColumn, EncryptedRelayPkiClientCaCertificateColumn, EncryptedRelayPkiClientCaCertificateChainColumn, EncryptedRelayPkiServerCaPrivateKeyColumn, EncryptedRelayPkiServerCaCertificateColumn, EncryptedRelayPkiServerCaCertificateChainColumn, EncryptedRelaySshClientCaPrivateKeyColumn, EncryptedRelaySshClientCaPublicKeyColumn, EncryptedRelaySshServerCaPrivateKeyColumn, EncryptedRelaySshServerCaPublicKeyColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return orgRelayConfigTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ OrgId: OrgIdColumn,+ EncryptedRelayPkiClientCaPrivateKey: EncryptedRelayPkiClientCaPrivateKeyColumn,+ EncryptedRelayPkiClientCaCertificate: EncryptedRelayPkiClientCaCertificateColumn,+ EncryptedRelayPkiClientCaCertificateChain: EncryptedRelayPkiClientCaCertificateChainColumn,+ EncryptedRelayPkiServerCaPrivateKey: EncryptedRelayPkiServerCaPrivateKeyColumn,+ EncryptedRelayPkiServerCaCertificate: EncryptedRelayPkiServerCaCertificateColumn,+ EncryptedRelayPkiServerCaCertificateChain: EncryptedRelayPkiServerCaCertificateChainColumn,+ EncryptedRelaySshClientCaPrivateKey: EncryptedRelaySshClientCaPrivateKeyColumn,+ EncryptedRelaySshClientCaPublicKey: EncryptedRelaySshClientCaPublicKeyColumn,+ EncryptedRelaySshServerCaPrivateKey: EncryptedRelaySshServerCaPrivateKeyColumn,+ EncryptedRelaySshServerCaPublicKey: EncryptedRelaySshServerCaPublicKeyColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/organization_assets.go b/backend-go/internal/database/pg/gen/table/organization_assets.gonew file mode 100644index 0000000000..c3328aafd8--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/organization_assets.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var OrganizationAssets = newOrganizationAssetsTable("public", "organization_assets", "")++type organizationAssetsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ OrgId postgres.ColumnString+ AssetType postgres.ColumnString+ Data postgres.ColumnBytea+ ContentType postgres.ColumnString+ Size postgres.ColumnInteger+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type OrganizationAssetsTable struct {+ organizationAssetsTable++ EXCLUDED organizationAssetsTable+}++// AS creates new OrganizationAssetsTable with assigned alias+func (a OrganizationAssetsTable) AS(alias string) *OrganizationAssetsTable {+ return newOrganizationAssetsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new OrganizationAssetsTable with assigned schema name+func (a OrganizationAssetsTable) FromSchema(schemaName string) *OrganizationAssetsTable {+ return newOrganizationAssetsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new OrganizationAssetsTable with assigned table prefix+func (a OrganizationAssetsTable) WithPrefix(prefix string) *OrganizationAssetsTable {+ return newOrganizationAssetsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new OrganizationAssetsTable with assigned table suffix+func (a OrganizationAssetsTable) WithSuffix(suffix string) *OrganizationAssetsTable {+ return newOrganizationAssetsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newOrganizationAssetsTable(schemaName, tableName, alias string) *OrganizationAssetsTable {+ return &OrganizationAssetsTable{+ organizationAssetsTable: newOrganizationAssetsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newOrganizationAssetsTableImpl("", "excluded", ""),+ }+}++func newOrganizationAssetsTableImpl(schemaName, tableName, alias string) organizationAssetsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ OrgIdColumn = postgres.StringColumn("orgId")+ AssetTypeColumn = postgres.StringColumn("assetType")+ DataColumn = postgres.ByteaColumn("data")+ ContentTypeColumn = postgres.StringColumn("contentType")+ SizeColumn = postgres.IntegerColumn("size")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, OrgIdColumn, AssetTypeColumn, DataColumn, ContentTypeColumn, SizeColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{OrgIdColumn, AssetTypeColumn, DataColumn, ContentTypeColumn, SizeColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return organizationAssetsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ OrgId: OrgIdColumn,+ AssetType: AssetTypeColumn,+ Data: DataColumn,+ ContentType: ContentTypeColumn,+ Size: SizeColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/organizations.go b/backend-go/internal/database/pg/gen/table/organizations.gonew file mode 100644index 0000000000..7b425aa04a--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/organizations.go@@ -0,0 +1,174 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var Organizations = newOrganizationsTable("public", "organizations", "")++type organizationsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ CustomerId postgres.ColumnString+ Slug postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ AuthEnforced postgres.ColumnBool+ ScimEnabled postgres.ColumnBool+ KmsDefaultKeyId postgres.ColumnString+ KmsEncryptedDataKey postgres.ColumnBytea+ DefaultMembershipRole postgres.ColumnString+ EnforceMfa postgres.ColumnBool+ SelectedMfaMethod postgres.ColumnString+ AllowSecretSharingOutsideOrganization postgres.ColumnBool+ ShouldUseNewPrivilegeSystem postgres.ColumnBool+ PrivilegeUpgradeInitiatedByUsername postgres.ColumnString+ PrivilegeUpgradeInitiatedAt postgres.ColumnTimestampz+ BypassOrgAuthEnabled postgres.ColumnBool+ UserTokenExpiration postgres.ColumnString+ SecretsProductEnabled postgres.ColumnBool+ PkiProductEnabled postgres.ColumnBool+ KmsProductEnabled postgres.ColumnBool+ SshProductEnabled postgres.ColumnBool+ ScannerProductEnabled postgres.ColumnBool+ ShareSecretsProductEnabled postgres.ColumnBool+ MaxSharedSecretLifetime postgres.ColumnInteger+ MaxSharedSecretViewLimit postgres.ColumnInteger+ GoogleSsoAuthEnforced postgres.ColumnBool+ GoogleSsoAuthLastUsed postgres.ColumnTimestampz+ ParentOrgId postgres.ColumnString+ RootOrgId postgres.ColumnString+ BlockDuplicateSecretSyncDestinations postgres.ColumnBool+ SecretShareBrandConfig postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type OrganizationsTable struct {+ organizationsTable++ EXCLUDED organizationsTable+}++// AS creates new OrganizationsTable with assigned alias+func (a OrganizationsTable) AS(alias string) *OrganizationsTable {+ return newOrganizationsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new OrganizationsTable with assigned schema name+func (a OrganizationsTable) FromSchema(schemaName string) *OrganizationsTable {+ return newOrganizationsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new OrganizationsTable with assigned table prefix+func (a OrganizationsTable) WithPrefix(prefix string) *OrganizationsTable {+ return newOrganizationsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new OrganizationsTable with assigned table suffix+func (a OrganizationsTable) WithSuffix(suffix string) *OrganizationsTable {+ return newOrganizationsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newOrganizationsTable(schemaName, tableName, alias string) *OrganizationsTable {+ return &OrganizationsTable{+ organizationsTable: newOrganizationsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newOrganizationsTableImpl("", "excluded", ""),+ }+}++func newOrganizationsTableImpl(schemaName, tableName, alias string) organizationsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ CustomerIdColumn = postgres.StringColumn("customerId")+ SlugColumn = postgres.StringColumn("slug")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ AuthEnforcedColumn = postgres.BoolColumn("authEnforced")+ ScimEnabledColumn = postgres.BoolColumn("scimEnabled")+ KmsDefaultKeyIdColumn = postgres.StringColumn("kmsDefaultKeyId")+ KmsEncryptedDataKeyColumn = postgres.ByteaColumn("kmsEncryptedDataKey")+ DefaultMembershipRoleColumn = postgres.StringColumn("defaultMembershipRole")+ EnforceMfaColumn = postgres.BoolColumn("enforceMfa")+ SelectedMfaMethodColumn = postgres.StringColumn("selectedMfaMethod")+ AllowSecretSharingOutsideOrganizationColumn = postgres.BoolColumn("allowSecretSharingOutsideOrganization")+ ShouldUseNewPrivilegeSystemColumn = postgres.BoolColumn("shouldUseNewPrivilegeSystem")+ PrivilegeUpgradeInitiatedByUsernameColumn = postgres.StringColumn("privilegeUpgradeInitiatedByUsername")+ PrivilegeUpgradeInitiatedAtColumn = postgres.TimestampzColumn("privilegeUpgradeInitiatedAt")+ BypassOrgAuthEnabledColumn = postgres.BoolColumn("bypassOrgAuthEnabled")+ UserTokenExpirationColumn = postgres.StringColumn("userTokenExpiration")+ SecretsProductEnabledColumn = postgres.BoolColumn("secretsProductEnabled")+ PkiProductEnabledColumn = postgres.BoolColumn("pkiProductEnabled")+ KmsProductEnabledColumn = postgres.BoolColumn("kmsProductEnabled")+ SshProductEnabledColumn = postgres.BoolColumn("sshProductEnabled")+ ScannerProductEnabledColumn = postgres.BoolColumn("scannerProductEnabled")+ ShareSecretsProductEnabledColumn = postgres.BoolColumn("shareSecretsProductEnabled")+ MaxSharedSecretLifetimeColumn = postgres.IntegerColumn("maxSharedSecretLifetime")+ MaxSharedSecretViewLimitColumn = postgres.IntegerColumn("maxSharedSecretViewLimit")+ GoogleSsoAuthEnforcedColumn = postgres.BoolColumn("googleSsoAuthEnforced")+ GoogleSsoAuthLastUsedColumn = postgres.TimestampzColumn("googleSsoAuthLastUsed")+ ParentOrgIdColumn = postgres.StringColumn("parentOrgId")+ RootOrgIdColumn = postgres.StringColumn("rootOrgId")+ BlockDuplicateSecretSyncDestinationsColumn = postgres.BoolColumn("blockDuplicateSecretSyncDestinations")+ SecretShareBrandConfigColumn = postgres.StringColumn("secretShareBrandConfig")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, CustomerIdColumn, SlugColumn, CreatedAtColumn, UpdatedAtColumn, AuthEnforcedColumn, ScimEnabledColumn, KmsDefaultKeyIdColumn, KmsEncryptedDataKeyColumn, DefaultMembershipRoleColumn, EnforceMfaColumn, SelectedMfaMethodColumn, AllowSecretSharingOutsideOrganizationColumn, ShouldUseNewPrivilegeSystemColumn, PrivilegeUpgradeInitiatedByUsernameColumn, PrivilegeUpgradeInitiatedAtColumn, BypassOrgAuthEnabledColumn, UserTokenExpirationColumn, SecretsProductEnabledColumn, PkiProductEnabledColumn, KmsProductEnabledColumn, SshProductEnabledColumn, ScannerProductEnabledColumn, ShareSecretsProductEnabledColumn, MaxSharedSecretLifetimeColumn, MaxSharedSecretViewLimitColumn, GoogleSsoAuthEnforcedColumn, GoogleSsoAuthLastUsedColumn, ParentOrgIdColumn, RootOrgIdColumn, BlockDuplicateSecretSyncDestinationsColumn, SecretShareBrandConfigColumn}+ mutableColumns = postgres.ColumnList{NameColumn, CustomerIdColumn, SlugColumn, CreatedAtColumn, UpdatedAtColumn, AuthEnforcedColumn, ScimEnabledColumn, KmsDefaultKeyIdColumn, KmsEncryptedDataKeyColumn, DefaultMembershipRoleColumn, EnforceMfaColumn, SelectedMfaMethodColumn, AllowSecretSharingOutsideOrganizationColumn, ShouldUseNewPrivilegeSystemColumn, PrivilegeUpgradeInitiatedByUsernameColumn, PrivilegeUpgradeInitiatedAtColumn, BypassOrgAuthEnabledColumn, UserTokenExpirationColumn, SecretsProductEnabledColumn, PkiProductEnabledColumn, KmsProductEnabledColumn, SshProductEnabledColumn, ScannerProductEnabledColumn, ShareSecretsProductEnabledColumn, MaxSharedSecretLifetimeColumn, MaxSharedSecretViewLimitColumn, GoogleSsoAuthEnforcedColumn, GoogleSsoAuthLastUsedColumn, ParentOrgIdColumn, RootOrgIdColumn, BlockDuplicateSecretSyncDestinationsColumn, SecretShareBrandConfigColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, AuthEnforcedColumn, ScimEnabledColumn, DefaultMembershipRoleColumn, EnforceMfaColumn, AllowSecretSharingOutsideOrganizationColumn, ShouldUseNewPrivilegeSystemColumn, BypassOrgAuthEnabledColumn, SecretsProductEnabledColumn, PkiProductEnabledColumn, KmsProductEnabledColumn, SshProductEnabledColumn, ScannerProductEnabledColumn, ShareSecretsProductEnabledColumn, MaxSharedSecretLifetimeColumn, GoogleSsoAuthEnforcedColumn, BlockDuplicateSecretSyncDestinationsColumn}+ )++ return organizationsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ CustomerId: CustomerIdColumn,+ Slug: SlugColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ AuthEnforced: AuthEnforcedColumn,+ ScimEnabled: ScimEnabledColumn,+ KmsDefaultKeyId: KmsDefaultKeyIdColumn,+ KmsEncryptedDataKey: KmsEncryptedDataKeyColumn,+ DefaultMembershipRole: DefaultMembershipRoleColumn,+ EnforceMfa: EnforceMfaColumn,+ SelectedMfaMethod: SelectedMfaMethodColumn,+ AllowSecretSharingOutsideOrganization: AllowSecretSharingOutsideOrganizationColumn,+ ShouldUseNewPrivilegeSystem: ShouldUseNewPrivilegeSystemColumn,+ PrivilegeUpgradeInitiatedByUsername: PrivilegeUpgradeInitiatedByUsernameColumn,+ PrivilegeUpgradeInitiatedAt: PrivilegeUpgradeInitiatedAtColumn,+ BypassOrgAuthEnabled: BypassOrgAuthEnabledColumn,+ UserTokenExpiration: UserTokenExpirationColumn,+ SecretsProductEnabled: SecretsProductEnabledColumn,+ PkiProductEnabled: PkiProductEnabledColumn,+ KmsProductEnabled: KmsProductEnabledColumn,+ SshProductEnabled: SshProductEnabledColumn,+ ScannerProductEnabled: ScannerProductEnabledColumn,+ ShareSecretsProductEnabled: ShareSecretsProductEnabledColumn,+ MaxSharedSecretLifetime: MaxSharedSecretLifetimeColumn,+ MaxSharedSecretViewLimit: MaxSharedSecretViewLimitColumn,+ GoogleSsoAuthEnforced: GoogleSsoAuthEnforcedColumn,+ GoogleSsoAuthLastUsed: GoogleSsoAuthLastUsedColumn,+ ParentOrgId: ParentOrgIdColumn,+ RootOrgId: RootOrgIdColumn,+ BlockDuplicateSecretSyncDestinations: BlockDuplicateSecretSyncDestinationsColumn,+ SecretShareBrandConfig: SecretShareBrandConfigColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pam_account_dependencies.go b/backend-go/internal/database/pg/gen/table/pam_account_dependencies.gonew file mode 100644index 0000000000..d86b466bcb--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pam_account_dependencies.go@@ -0,0 +1,111 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PamAccountDependencies = newPamAccountDependenciesTable("public", "pam_account_dependencies", "")++type pamAccountDependenciesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AccountId postgres.ColumnString+ ResourceId postgres.ColumnString+ DependencyType postgres.ColumnString+ Name postgres.ColumnString+ DisplayName postgres.ColumnString+ State postgres.ColumnString+ Data postgres.ColumnString+ Source postgres.ColumnString+ IsEnabled postgres.ColumnBool+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PamAccountDependenciesTable struct {+ pamAccountDependenciesTable++ EXCLUDED pamAccountDependenciesTable+}++// AS creates new PamAccountDependenciesTable with assigned alias+func (a PamAccountDependenciesTable) AS(alias string) *PamAccountDependenciesTable {+ return newPamAccountDependenciesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PamAccountDependenciesTable with assigned schema name+func (a PamAccountDependenciesTable) FromSchema(schemaName string) *PamAccountDependenciesTable {+ return newPamAccountDependenciesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PamAccountDependenciesTable with assigned table prefix+func (a PamAccountDependenciesTable) WithPrefix(prefix string) *PamAccountDependenciesTable {+ return newPamAccountDependenciesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PamAccountDependenciesTable with assigned table suffix+func (a PamAccountDependenciesTable) WithSuffix(suffix string) *PamAccountDependenciesTable {+ return newPamAccountDependenciesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPamAccountDependenciesTable(schemaName, tableName, alias string) *PamAccountDependenciesTable {+ return &PamAccountDependenciesTable{+ pamAccountDependenciesTable: newPamAccountDependenciesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPamAccountDependenciesTableImpl("", "excluded", ""),+ }+}++func newPamAccountDependenciesTableImpl(schemaName, tableName, alias string) pamAccountDependenciesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AccountIdColumn = postgres.StringColumn("accountId")+ ResourceIdColumn = postgres.StringColumn("resourceId")+ DependencyTypeColumn = postgres.StringColumn("dependencyType")+ NameColumn = postgres.StringColumn("name")+ DisplayNameColumn = postgres.StringColumn("displayName")+ StateColumn = postgres.StringColumn("state")+ DataColumn = postgres.StringColumn("data")+ SourceColumn = postgres.StringColumn("source")+ IsEnabledColumn = postgres.BoolColumn("isEnabled")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, AccountIdColumn, ResourceIdColumn, DependencyTypeColumn, NameColumn, DisplayNameColumn, StateColumn, DataColumn, SourceColumn, IsEnabledColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{AccountIdColumn, ResourceIdColumn, DependencyTypeColumn, NameColumn, DisplayNameColumn, StateColumn, DataColumn, SourceColumn, IsEnabledColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsEnabledColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pamAccountDependenciesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AccountId: AccountIdColumn,+ ResourceId: ResourceIdColumn,+ DependencyType: DependencyTypeColumn,+ Name: NameColumn,+ DisplayName: DisplayNameColumn,+ State: StateColumn,+ Data: DataColumn,+ Source: SourceColumn,+ IsEnabled: IsEnabledColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pam_accounts.go b/backend-go/internal/database/pg/gen/table/pam_accounts.gonew file mode 100644index 0000000000..83cead2e6a--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pam_accounts.go@@ -0,0 +1,126 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PamAccounts = newPamAccountsTable("public", "pam_accounts", "")++type pamAccountsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ FolderId postgres.ColumnString+ ResourceId postgres.ColumnString+ Name postgres.ColumnString+ Description postgres.ColumnString+ EncryptedCredentials postgres.ColumnBytea+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ RotationEnabled postgres.ColumnBool+ RotationIntervalSeconds postgres.ColumnInteger+ LastRotatedAt postgres.ColumnTimestampz+ RotationStatus postgres.ColumnString+ EncryptedLastRotationMessage postgres.ColumnBytea+ RequireMfa postgres.ColumnBool+ InternalMetadata postgres.ColumnString+ DiscoveryFingerprint postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PamAccountsTable struct {+ pamAccountsTable++ EXCLUDED pamAccountsTable+}++// AS creates new PamAccountsTable with assigned alias+func (a PamAccountsTable) AS(alias string) *PamAccountsTable {+ return newPamAccountsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PamAccountsTable with assigned schema name+func (a PamAccountsTable) FromSchema(schemaName string) *PamAccountsTable {+ return newPamAccountsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PamAccountsTable with assigned table prefix+func (a PamAccountsTable) WithPrefix(prefix string) *PamAccountsTable {+ return newPamAccountsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PamAccountsTable with assigned table suffix+func (a PamAccountsTable) WithSuffix(suffix string) *PamAccountsTable {+ return newPamAccountsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPamAccountsTable(schemaName, tableName, alias string) *PamAccountsTable {+ return &PamAccountsTable{+ pamAccountsTable: newPamAccountsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPamAccountsTableImpl("", "excluded", ""),+ }+}++func newPamAccountsTableImpl(schemaName, tableName, alias string) pamAccountsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ FolderIdColumn = postgres.StringColumn("folderId")+ ResourceIdColumn = postgres.StringColumn("resourceId")+ NameColumn = postgres.StringColumn("name")+ DescriptionColumn = postgres.StringColumn("description")+ EncryptedCredentialsColumn = postgres.ByteaColumn("encryptedCredentials")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ RotationEnabledColumn = postgres.BoolColumn("rotationEnabled")+ RotationIntervalSecondsColumn = postgres.IntegerColumn("rotationIntervalSeconds")+ LastRotatedAtColumn = postgres.TimestampzColumn("lastRotatedAt")+ RotationStatusColumn = postgres.StringColumn("rotationStatus")+ EncryptedLastRotationMessageColumn = postgres.ByteaColumn("encryptedLastRotationMessage")+ RequireMfaColumn = postgres.BoolColumn("requireMfa")+ InternalMetadataColumn = postgres.StringColumn("internalMetadata")+ DiscoveryFingerprintColumn = postgres.StringColumn("discoveryFingerprint")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, FolderIdColumn, ResourceIdColumn, NameColumn, DescriptionColumn, EncryptedCredentialsColumn, CreatedAtColumn, UpdatedAtColumn, RotationEnabledColumn, RotationIntervalSecondsColumn, LastRotatedAtColumn, RotationStatusColumn, EncryptedLastRotationMessageColumn, RequireMfaColumn, InternalMetadataColumn, DiscoveryFingerprintColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, FolderIdColumn, ResourceIdColumn, NameColumn, DescriptionColumn, EncryptedCredentialsColumn, CreatedAtColumn, UpdatedAtColumn, RotationEnabledColumn, RotationIntervalSecondsColumn, LastRotatedAtColumn, RotationStatusColumn, EncryptedLastRotationMessageColumn, RequireMfaColumn, InternalMetadataColumn, DiscoveryFingerprintColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, RotationEnabledColumn, RequireMfaColumn}+ )++ return pamAccountsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ FolderId: FolderIdColumn,+ ResourceId: ResourceIdColumn,+ Name: NameColumn,+ Description: DescriptionColumn,+ EncryptedCredentials: EncryptedCredentialsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ RotationEnabled: RotationEnabledColumn,+ RotationIntervalSeconds: RotationIntervalSecondsColumn,+ LastRotatedAt: LastRotatedAtColumn,+ RotationStatus: RotationStatusColumn,+ EncryptedLastRotationMessage: EncryptedLastRotationMessageColumn,+ RequireMfa: RequireMfaColumn,+ InternalMetadata: InternalMetadataColumn,+ DiscoveryFingerprint: DiscoveryFingerprintColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pam_discovery_source_accounts.go b/backend-go/internal/database/pg/gen/table/pam_discovery_source_accounts.gonew file mode 100644index 0000000000..69c4a52e7f--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pam_discovery_source_accounts.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PamDiscoverySourceAccounts = newPamDiscoverySourceAccountsTable("public", "pam_discovery_source_accounts", "")++type pamDiscoverySourceAccountsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ DiscoverySourceId postgres.ColumnString+ AccountId postgres.ColumnString+ LastDiscoveredAt postgres.ColumnTimestampz+ LastDiscoveredRunId postgres.ColumnString+ IsStale postgres.ColumnBool+ CreatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PamDiscoverySourceAccountsTable struct {+ pamDiscoverySourceAccountsTable++ EXCLUDED pamDiscoverySourceAccountsTable+}++// AS creates new PamDiscoverySourceAccountsTable with assigned alias+func (a PamDiscoverySourceAccountsTable) AS(alias string) *PamDiscoverySourceAccountsTable {+ return newPamDiscoverySourceAccountsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PamDiscoverySourceAccountsTable with assigned schema name+func (a PamDiscoverySourceAccountsTable) FromSchema(schemaName string) *PamDiscoverySourceAccountsTable {+ return newPamDiscoverySourceAccountsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PamDiscoverySourceAccountsTable with assigned table prefix+func (a PamDiscoverySourceAccountsTable) WithPrefix(prefix string) *PamDiscoverySourceAccountsTable {+ return newPamDiscoverySourceAccountsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PamDiscoverySourceAccountsTable with assigned table suffix+func (a PamDiscoverySourceAccountsTable) WithSuffix(suffix string) *PamDiscoverySourceAccountsTable {+ return newPamDiscoverySourceAccountsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPamDiscoverySourceAccountsTable(schemaName, tableName, alias string) *PamDiscoverySourceAccountsTable {+ return &PamDiscoverySourceAccountsTable{+ pamDiscoverySourceAccountsTable: newPamDiscoverySourceAccountsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPamDiscoverySourceAccountsTableImpl("", "excluded", ""),+ }+}++func newPamDiscoverySourceAccountsTableImpl(schemaName, tableName, alias string) pamDiscoverySourceAccountsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ DiscoverySourceIdColumn = postgres.StringColumn("discoverySourceId")+ AccountIdColumn = postgres.StringColumn("accountId")+ LastDiscoveredAtColumn = postgres.TimestampzColumn("lastDiscoveredAt")+ LastDiscoveredRunIdColumn = postgres.StringColumn("lastDiscoveredRunId")+ IsStaleColumn = postgres.BoolColumn("isStale")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ allColumns = postgres.ColumnList{IDColumn, DiscoverySourceIdColumn, AccountIdColumn, LastDiscoveredAtColumn, LastDiscoveredRunIdColumn, IsStaleColumn, CreatedAtColumn}+ mutableColumns = postgres.ColumnList{DiscoverySourceIdColumn, AccountIdColumn, LastDiscoveredAtColumn, LastDiscoveredRunIdColumn, IsStaleColumn, CreatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsStaleColumn, CreatedAtColumn}+ )++ return pamDiscoverySourceAccountsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ DiscoverySourceId: DiscoverySourceIdColumn,+ AccountId: AccountIdColumn,+ LastDiscoveredAt: LastDiscoveredAtColumn,+ LastDiscoveredRunId: LastDiscoveredRunIdColumn,+ IsStale: IsStaleColumn,+ CreatedAt: CreatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pam_discovery_source_dependencies.go b/backend-go/internal/database/pg/gen/table/pam_discovery_source_dependencies.gonew file mode 100644index 0000000000..16c4c9ed86--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pam_discovery_source_dependencies.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PamDiscoverySourceDependencies = newPamDiscoverySourceDependenciesTable("public", "pam_discovery_source_dependencies", "")++type pamDiscoverySourceDependenciesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ DiscoverySourceId postgres.ColumnString+ DependencyId postgres.ColumnString+ LastSeenAt postgres.ColumnTimestampz+ LastSeenRunId postgres.ColumnString+ IsStale postgres.ColumnBool+ CreatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PamDiscoverySourceDependenciesTable struct {+ pamDiscoverySourceDependenciesTable++ EXCLUDED pamDiscoverySourceDependenciesTable+}++// AS creates new PamDiscoverySourceDependenciesTable with assigned alias+func (a PamDiscoverySourceDependenciesTable) AS(alias string) *PamDiscoverySourceDependenciesTable {+ return newPamDiscoverySourceDependenciesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PamDiscoverySourceDependenciesTable with assigned schema name+func (a PamDiscoverySourceDependenciesTable) FromSchema(schemaName string) *PamDiscoverySourceDependenciesTable {+ return newPamDiscoverySourceDependenciesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PamDiscoverySourceDependenciesTable with assigned table prefix+func (a PamDiscoverySourceDependenciesTable) WithPrefix(prefix string) *PamDiscoverySourceDependenciesTable {+ return newPamDiscoverySourceDependenciesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PamDiscoverySourceDependenciesTable with assigned table suffix+func (a PamDiscoverySourceDependenciesTable) WithSuffix(suffix string) *PamDiscoverySourceDependenciesTable {+ return newPamDiscoverySourceDependenciesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPamDiscoverySourceDependenciesTable(schemaName, tableName, alias string) *PamDiscoverySourceDependenciesTable {+ return &PamDiscoverySourceDependenciesTable{+ pamDiscoverySourceDependenciesTable: newPamDiscoverySourceDependenciesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPamDiscoverySourceDependenciesTableImpl("", "excluded", ""),+ }+}++func newPamDiscoverySourceDependenciesTableImpl(schemaName, tableName, alias string) pamDiscoverySourceDependenciesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ DiscoverySourceIdColumn = postgres.StringColumn("discoverySourceId")+ DependencyIdColumn = postgres.StringColumn("dependencyId")+ LastSeenAtColumn = postgres.TimestampzColumn("lastSeenAt")+ LastSeenRunIdColumn = postgres.StringColumn("lastSeenRunId")+ IsStaleColumn = postgres.BoolColumn("isStale")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ allColumns = postgres.ColumnList{IDColumn, DiscoverySourceIdColumn, DependencyIdColumn, LastSeenAtColumn, LastSeenRunIdColumn, IsStaleColumn, CreatedAtColumn}+ mutableColumns = postgres.ColumnList{DiscoverySourceIdColumn, DependencyIdColumn, LastSeenAtColumn, LastSeenRunIdColumn, IsStaleColumn, CreatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsStaleColumn, CreatedAtColumn}+ )++ return pamDiscoverySourceDependenciesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ DiscoverySourceId: DiscoverySourceIdColumn,+ DependencyId: DependencyIdColumn,+ LastSeenAt: LastSeenAtColumn,+ LastSeenRunId: LastSeenRunIdColumn,+ IsStale: IsStaleColumn,+ CreatedAt: CreatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pam_discovery_source_resources.go b/backend-go/internal/database/pg/gen/table/pam_discovery_source_resources.gonew file mode 100644index 0000000000..290f5693f8--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pam_discovery_source_resources.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PamDiscoverySourceResources = newPamDiscoverySourceResourcesTable("public", "pam_discovery_source_resources", "")++type pamDiscoverySourceResourcesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ DiscoverySourceId postgres.ColumnString+ ResourceId postgres.ColumnString+ LastDiscoveredAt postgres.ColumnTimestampz+ LastDiscoveredRunId postgres.ColumnString+ IsStale postgres.ColumnBool+ CreatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PamDiscoverySourceResourcesTable struct {+ pamDiscoverySourceResourcesTable++ EXCLUDED pamDiscoverySourceResourcesTable+}++// AS creates new PamDiscoverySourceResourcesTable with assigned alias+func (a PamDiscoverySourceResourcesTable) AS(alias string) *PamDiscoverySourceResourcesTable {+ return newPamDiscoverySourceResourcesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PamDiscoverySourceResourcesTable with assigned schema name+func (a PamDiscoverySourceResourcesTable) FromSchema(schemaName string) *PamDiscoverySourceResourcesTable {+ return newPamDiscoverySourceResourcesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PamDiscoverySourceResourcesTable with assigned table prefix+func (a PamDiscoverySourceResourcesTable) WithPrefix(prefix string) *PamDiscoverySourceResourcesTable {+ return newPamDiscoverySourceResourcesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PamDiscoverySourceResourcesTable with assigned table suffix+func (a PamDiscoverySourceResourcesTable) WithSuffix(suffix string) *PamDiscoverySourceResourcesTable {+ return newPamDiscoverySourceResourcesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPamDiscoverySourceResourcesTable(schemaName, tableName, alias string) *PamDiscoverySourceResourcesTable {+ return &PamDiscoverySourceResourcesTable{+ pamDiscoverySourceResourcesTable: newPamDiscoverySourceResourcesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPamDiscoverySourceResourcesTableImpl("", "excluded", ""),+ }+}++func newPamDiscoverySourceResourcesTableImpl(schemaName, tableName, alias string) pamDiscoverySourceResourcesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ DiscoverySourceIdColumn = postgres.StringColumn("discoverySourceId")+ ResourceIdColumn = postgres.StringColumn("resourceId")+ LastDiscoveredAtColumn = postgres.TimestampzColumn("lastDiscoveredAt")+ LastDiscoveredRunIdColumn = postgres.StringColumn("lastDiscoveredRunId")+ IsStaleColumn = postgres.BoolColumn("isStale")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ allColumns = postgres.ColumnList{IDColumn, DiscoverySourceIdColumn, ResourceIdColumn, LastDiscoveredAtColumn, LastDiscoveredRunIdColumn, IsStaleColumn, CreatedAtColumn}+ mutableColumns = postgres.ColumnList{DiscoverySourceIdColumn, ResourceIdColumn, LastDiscoveredAtColumn, LastDiscoveredRunIdColumn, IsStaleColumn, CreatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsStaleColumn, CreatedAtColumn}+ )++ return pamDiscoverySourceResourcesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ DiscoverySourceId: DiscoverySourceIdColumn,+ ResourceId: ResourceIdColumn,+ LastDiscoveredAt: LastDiscoveredAtColumn,+ LastDiscoveredRunId: LastDiscoveredRunIdColumn,+ IsStale: IsStaleColumn,+ CreatedAt: CreatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pam_discovery_source_runs.go b/backend-go/internal/database/pg/gen/table/pam_discovery_source_runs.gonew file mode 100644index 0000000000..ac85612b5a--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pam_discovery_source_runs.go@@ -0,0 +1,132 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PamDiscoverySourceRuns = newPamDiscoverySourceRunsTable("public", "pam_discovery_source_runs", "")++type pamDiscoverySourceRunsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ DiscoverySourceId postgres.ColumnString+ Status postgres.ColumnString+ TriggeredBy postgres.ColumnString+ ResourcesDiscoveredCount postgres.ColumnInteger+ AccountsDiscoveredCount postgres.ColumnInteger+ DependenciesDiscoveredCount postgres.ColumnInteger+ NewResourcesCount postgres.ColumnInteger+ StaleResourcesCount postgres.ColumnInteger+ NewAccountsCount postgres.ColumnInteger+ StaleAccountsCount postgres.ColumnInteger+ NewDependenciesCount postgres.ColumnInteger+ StaleDependenciesCount postgres.ColumnInteger+ Progress postgres.ColumnString+ ErrorMessage postgres.ColumnString+ StartedAt postgres.ColumnTimestampz+ CompletedAt postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PamDiscoverySourceRunsTable struct {+ pamDiscoverySourceRunsTable++ EXCLUDED pamDiscoverySourceRunsTable+}++// AS creates new PamDiscoverySourceRunsTable with assigned alias+func (a PamDiscoverySourceRunsTable) AS(alias string) *PamDiscoverySourceRunsTable {+ return newPamDiscoverySourceRunsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PamDiscoverySourceRunsTable with assigned schema name+func (a PamDiscoverySourceRunsTable) FromSchema(schemaName string) *PamDiscoverySourceRunsTable {+ return newPamDiscoverySourceRunsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PamDiscoverySourceRunsTable with assigned table prefix+func (a PamDiscoverySourceRunsTable) WithPrefix(prefix string) *PamDiscoverySourceRunsTable {+ return newPamDiscoverySourceRunsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PamDiscoverySourceRunsTable with assigned table suffix+func (a PamDiscoverySourceRunsTable) WithSuffix(suffix string) *PamDiscoverySourceRunsTable {+ return newPamDiscoverySourceRunsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPamDiscoverySourceRunsTable(schemaName, tableName, alias string) *PamDiscoverySourceRunsTable {+ return &PamDiscoverySourceRunsTable{+ pamDiscoverySourceRunsTable: newPamDiscoverySourceRunsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPamDiscoverySourceRunsTableImpl("", "excluded", ""),+ }+}++func newPamDiscoverySourceRunsTableImpl(schemaName, tableName, alias string) pamDiscoverySourceRunsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ DiscoverySourceIdColumn = postgres.StringColumn("discoverySourceId")+ StatusColumn = postgres.StringColumn("status")+ TriggeredByColumn = postgres.StringColumn("triggeredBy")+ ResourcesDiscoveredCountColumn = postgres.IntegerColumn("resourcesDiscoveredCount")+ AccountsDiscoveredCountColumn = postgres.IntegerColumn("accountsDiscoveredCount")+ DependenciesDiscoveredCountColumn = postgres.IntegerColumn("dependenciesDiscoveredCount")+ NewResourcesCountColumn = postgres.IntegerColumn("newResourcesCount")+ StaleResourcesCountColumn = postgres.IntegerColumn("staleResourcesCount")+ NewAccountsCountColumn = postgres.IntegerColumn("newAccountsCount")+ StaleAccountsCountColumn = postgres.IntegerColumn("staleAccountsCount")+ NewDependenciesCountColumn = postgres.IntegerColumn("newDependenciesCount")+ StaleDependenciesCountColumn = postgres.IntegerColumn("staleDependenciesCount")+ ProgressColumn = postgres.StringColumn("progress")+ ErrorMessageColumn = postgres.StringColumn("errorMessage")+ StartedAtColumn = postgres.TimestampzColumn("startedAt")+ CompletedAtColumn = postgres.TimestampzColumn("completedAt")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, DiscoverySourceIdColumn, StatusColumn, TriggeredByColumn, ResourcesDiscoveredCountColumn, AccountsDiscoveredCountColumn, DependenciesDiscoveredCountColumn, NewResourcesCountColumn, StaleResourcesCountColumn, NewAccountsCountColumn, StaleAccountsCountColumn, NewDependenciesCountColumn, StaleDependenciesCountColumn, ProgressColumn, ErrorMessageColumn, StartedAtColumn, CompletedAtColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{DiscoverySourceIdColumn, StatusColumn, TriggeredByColumn, ResourcesDiscoveredCountColumn, AccountsDiscoveredCountColumn, DependenciesDiscoveredCountColumn, NewResourcesCountColumn, StaleResourcesCountColumn, NewAccountsCountColumn, StaleAccountsCountColumn, NewDependenciesCountColumn, StaleDependenciesCountColumn, ProgressColumn, ErrorMessageColumn, StartedAtColumn, CompletedAtColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, ResourcesDiscoveredCountColumn, AccountsDiscoveredCountColumn, DependenciesDiscoveredCountColumn, NewResourcesCountColumn, StaleResourcesCountColumn, NewAccountsCountColumn, StaleAccountsCountColumn, NewDependenciesCountColumn, StaleDependenciesCountColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pamDiscoverySourceRunsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ DiscoverySourceId: DiscoverySourceIdColumn,+ Status: StatusColumn,+ TriggeredBy: TriggeredByColumn,+ ResourcesDiscoveredCount: ResourcesDiscoveredCountColumn,+ AccountsDiscoveredCount: AccountsDiscoveredCountColumn,+ DependenciesDiscoveredCount: DependenciesDiscoveredCountColumn,+ NewResourcesCount: NewResourcesCountColumn,+ StaleResourcesCount: StaleResourcesCountColumn,+ NewAccountsCount: NewAccountsCountColumn,+ StaleAccountsCount: StaleAccountsCountColumn,+ NewDependenciesCount: NewDependenciesCountColumn,+ StaleDependenciesCount: StaleDependenciesCountColumn,+ Progress: ProgressColumn,+ ErrorMessage: ErrorMessageColumn,+ StartedAt: StartedAtColumn,+ CompletedAt: CompletedAtColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pam_discovery_sources.go b/backend-go/internal/database/pg/gen/table/pam_discovery_sources.gonew file mode 100644index 0000000000..2052d9e5f2--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pam_discovery_sources.go@@ -0,0 +1,111 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PamDiscoverySources = newPamDiscoverySourcesTable("public", "pam_discovery_sources", "")++type pamDiscoverySourcesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ Name postgres.ColumnString+ DiscoveryType postgres.ColumnString+ GatewayId postgres.ColumnString+ EncryptedDiscoveryCredentials postgres.ColumnBytea+ DiscoveryConfiguration postgres.ColumnString+ Schedule postgres.ColumnString+ LastRunAt postgres.ColumnTimestampz+ Status postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PamDiscoverySourcesTable struct {+ pamDiscoverySourcesTable++ EXCLUDED pamDiscoverySourcesTable+}++// AS creates new PamDiscoverySourcesTable with assigned alias+func (a PamDiscoverySourcesTable) AS(alias string) *PamDiscoverySourcesTable {+ return newPamDiscoverySourcesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PamDiscoverySourcesTable with assigned schema name+func (a PamDiscoverySourcesTable) FromSchema(schemaName string) *PamDiscoverySourcesTable {+ return newPamDiscoverySourcesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PamDiscoverySourcesTable with assigned table prefix+func (a PamDiscoverySourcesTable) WithPrefix(prefix string) *PamDiscoverySourcesTable {+ return newPamDiscoverySourcesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PamDiscoverySourcesTable with assigned table suffix+func (a PamDiscoverySourcesTable) WithSuffix(suffix string) *PamDiscoverySourcesTable {+ return newPamDiscoverySourcesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPamDiscoverySourcesTable(schemaName, tableName, alias string) *PamDiscoverySourcesTable {+ return &PamDiscoverySourcesTable{+ pamDiscoverySourcesTable: newPamDiscoverySourcesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPamDiscoverySourcesTableImpl("", "excluded", ""),+ }+}++func newPamDiscoverySourcesTableImpl(schemaName, tableName, alias string) pamDiscoverySourcesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ NameColumn = postgres.StringColumn("name")+ DiscoveryTypeColumn = postgres.StringColumn("discoveryType")+ GatewayIdColumn = postgres.StringColumn("gatewayId")+ EncryptedDiscoveryCredentialsColumn = postgres.ByteaColumn("encryptedDiscoveryCredentials")+ DiscoveryConfigurationColumn = postgres.StringColumn("discoveryConfiguration")+ ScheduleColumn = postgres.StringColumn("schedule")+ LastRunAtColumn = postgres.TimestampzColumn("lastRunAt")+ StatusColumn = postgres.StringColumn("status")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, NameColumn, DiscoveryTypeColumn, GatewayIdColumn, EncryptedDiscoveryCredentialsColumn, DiscoveryConfigurationColumn, ScheduleColumn, LastRunAtColumn, StatusColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, NameColumn, DiscoveryTypeColumn, GatewayIdColumn, EncryptedDiscoveryCredentialsColumn, DiscoveryConfigurationColumn, ScheduleColumn, LastRunAtColumn, StatusColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, ScheduleColumn, StatusColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pamDiscoverySourcesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ Name: NameColumn,+ DiscoveryType: DiscoveryTypeColumn,+ GatewayId: GatewayIdColumn,+ EncryptedDiscoveryCredentials: EncryptedDiscoveryCredentialsColumn,+ DiscoveryConfiguration: DiscoveryConfigurationColumn,+ Schedule: ScheduleColumn,+ LastRunAt: LastRunAtColumn,+ Status: StatusColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pam_folders.go b/backend-go/internal/database/pg/gen/table/pam_folders.gonew file mode 100644index 0000000000..bca02b85f7--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pam_folders.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PamFolders = newPamFoldersTable("public", "pam_folders", "")++type pamFoldersTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ ParentId postgres.ColumnString+ Name postgres.ColumnString+ Description postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PamFoldersTable struct {+ pamFoldersTable++ EXCLUDED pamFoldersTable+}++// AS creates new PamFoldersTable with assigned alias+func (a PamFoldersTable) AS(alias string) *PamFoldersTable {+ return newPamFoldersTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PamFoldersTable with assigned schema name+func (a PamFoldersTable) FromSchema(schemaName string) *PamFoldersTable {+ return newPamFoldersTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PamFoldersTable with assigned table prefix+func (a PamFoldersTable) WithPrefix(prefix string) *PamFoldersTable {+ return newPamFoldersTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PamFoldersTable with assigned table suffix+func (a PamFoldersTable) WithSuffix(suffix string) *PamFoldersTable {+ return newPamFoldersTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPamFoldersTable(schemaName, tableName, alias string) *PamFoldersTable {+ return &PamFoldersTable{+ pamFoldersTable: newPamFoldersTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPamFoldersTableImpl("", "excluded", ""),+ }+}++func newPamFoldersTableImpl(schemaName, tableName, alias string) pamFoldersTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ ParentIdColumn = postgres.StringColumn("parentId")+ NameColumn = postgres.StringColumn("name")+ DescriptionColumn = postgres.StringColumn("description")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, ParentIdColumn, NameColumn, DescriptionColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, ParentIdColumn, NameColumn, DescriptionColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pamFoldersTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ ParentId: ParentIdColumn,+ Name: NameColumn,+ Description: DescriptionColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pam_resources.go b/backend-go/internal/database/pg/gen/table/pam_resources.gonew file mode 100644index 0000000000..6053ddbb8b--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pam_resources.go@@ -0,0 +1,111 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PamResources = newPamResourcesTable("public", "pam_resources", "")++type pamResourcesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ Name postgres.ColumnString+ GatewayId postgres.ColumnString+ ResourceType postgres.ColumnString+ EncryptedConnectionDetails postgres.ColumnBytea+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ EncryptedRotationAccountCredentials postgres.ColumnBytea+ EncryptedResourceMetadata postgres.ColumnBytea+ AdServerResourceId postgres.ColumnString+ DiscoveryFingerprint postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PamResourcesTable struct {+ pamResourcesTable++ EXCLUDED pamResourcesTable+}++// AS creates new PamResourcesTable with assigned alias+func (a PamResourcesTable) AS(alias string) *PamResourcesTable {+ return newPamResourcesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PamResourcesTable with assigned schema name+func (a PamResourcesTable) FromSchema(schemaName string) *PamResourcesTable {+ return newPamResourcesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PamResourcesTable with assigned table prefix+func (a PamResourcesTable) WithPrefix(prefix string) *PamResourcesTable {+ return newPamResourcesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PamResourcesTable with assigned table suffix+func (a PamResourcesTable) WithSuffix(suffix string) *PamResourcesTable {+ return newPamResourcesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPamResourcesTable(schemaName, tableName, alias string) *PamResourcesTable {+ return &PamResourcesTable{+ pamResourcesTable: newPamResourcesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPamResourcesTableImpl("", "excluded", ""),+ }+}++func newPamResourcesTableImpl(schemaName, tableName, alias string) pamResourcesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ NameColumn = postgres.StringColumn("name")+ GatewayIdColumn = postgres.StringColumn("gatewayId")+ ResourceTypeColumn = postgres.StringColumn("resourceType")+ EncryptedConnectionDetailsColumn = postgres.ByteaColumn("encryptedConnectionDetails")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ EncryptedRotationAccountCredentialsColumn = postgres.ByteaColumn("encryptedRotationAccountCredentials")+ EncryptedResourceMetadataColumn = postgres.ByteaColumn("encryptedResourceMetadata")+ AdServerResourceIdColumn = postgres.StringColumn("adServerResourceId")+ DiscoveryFingerprintColumn = postgres.StringColumn("discoveryFingerprint")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, NameColumn, GatewayIdColumn, ResourceTypeColumn, EncryptedConnectionDetailsColumn, CreatedAtColumn, UpdatedAtColumn, EncryptedRotationAccountCredentialsColumn, EncryptedResourceMetadataColumn, AdServerResourceIdColumn, DiscoveryFingerprintColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, NameColumn, GatewayIdColumn, ResourceTypeColumn, EncryptedConnectionDetailsColumn, CreatedAtColumn, UpdatedAtColumn, EncryptedRotationAccountCredentialsColumn, EncryptedResourceMetadataColumn, AdServerResourceIdColumn, DiscoveryFingerprintColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pamResourcesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ Name: NameColumn,+ GatewayId: GatewayIdColumn,+ ResourceType: ResourceTypeColumn,+ EncryptedConnectionDetails: EncryptedConnectionDetailsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ EncryptedRotationAccountCredentials: EncryptedRotationAccountCredentialsColumn,+ EncryptedResourceMetadata: EncryptedResourceMetadataColumn,+ AdServerResourceId: AdServerResourceIdColumn,+ DiscoveryFingerprint: DiscoveryFingerprintColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pam_sessions.go b/backend-go/internal/database/pg/gen/table/pam_sessions.gonew file mode 100644index 0000000000..e01a05aa41--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pam_sessions.go@@ -0,0 +1,132 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PamSessions = newPamSessionsTable("public", "pam_sessions", "")++type pamSessionsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ AccountId postgres.ColumnString+ ResourceType postgres.ColumnString+ ResourceName postgres.ColumnString+ AccountName postgres.ColumnString+ UserId postgres.ColumnString+ ActorName postgres.ColumnString+ ActorEmail postgres.ColumnString+ ActorIp postgres.ColumnString+ ActorUserAgent postgres.ColumnString+ Status postgres.ColumnString+ EncryptedLogsBlob postgres.ColumnBytea+ ExpiresAt postgres.ColumnTimestampz+ StartedAt postgres.ColumnTimestampz+ EndedAt postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ AccessMethod postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PamSessionsTable struct {+ pamSessionsTable++ EXCLUDED pamSessionsTable+}++// AS creates new PamSessionsTable with assigned alias+func (a PamSessionsTable) AS(alias string) *PamSessionsTable {+ return newPamSessionsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PamSessionsTable with assigned schema name+func (a PamSessionsTable) FromSchema(schemaName string) *PamSessionsTable {+ return newPamSessionsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PamSessionsTable with assigned table prefix+func (a PamSessionsTable) WithPrefix(prefix string) *PamSessionsTable {+ return newPamSessionsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PamSessionsTable with assigned table suffix+func (a PamSessionsTable) WithSuffix(suffix string) *PamSessionsTable {+ return newPamSessionsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPamSessionsTable(schemaName, tableName, alias string) *PamSessionsTable {+ return &PamSessionsTable{+ pamSessionsTable: newPamSessionsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPamSessionsTableImpl("", "excluded", ""),+ }+}++func newPamSessionsTableImpl(schemaName, tableName, alias string) pamSessionsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ AccountIdColumn = postgres.StringColumn("accountId")+ ResourceTypeColumn = postgres.StringColumn("resourceType")+ ResourceNameColumn = postgres.StringColumn("resourceName")+ AccountNameColumn = postgres.StringColumn("accountName")+ UserIdColumn = postgres.StringColumn("userId")+ ActorNameColumn = postgres.StringColumn("actorName")+ ActorEmailColumn = postgres.StringColumn("actorEmail")+ ActorIpColumn = postgres.StringColumn("actorIp")+ ActorUserAgentColumn = postgres.StringColumn("actorUserAgent")+ StatusColumn = postgres.StringColumn("status")+ EncryptedLogsBlobColumn = postgres.ByteaColumn("encryptedLogsBlob")+ ExpiresAtColumn = postgres.TimestampzColumn("expiresAt")+ StartedAtColumn = postgres.TimestampzColumn("startedAt")+ EndedAtColumn = postgres.TimestampzColumn("endedAt")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ AccessMethodColumn = postgres.StringColumn("accessMethod")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, AccountIdColumn, ResourceTypeColumn, ResourceNameColumn, AccountNameColumn, UserIdColumn, ActorNameColumn, ActorEmailColumn, ActorIpColumn, ActorUserAgentColumn, StatusColumn, EncryptedLogsBlobColumn, ExpiresAtColumn, StartedAtColumn, EndedAtColumn, CreatedAtColumn, UpdatedAtColumn, AccessMethodColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, AccountIdColumn, ResourceTypeColumn, ResourceNameColumn, AccountNameColumn, UserIdColumn, ActorNameColumn, ActorEmailColumn, ActorIpColumn, ActorUserAgentColumn, StatusColumn, EncryptedLogsBlobColumn, ExpiresAtColumn, StartedAtColumn, EndedAtColumn, CreatedAtColumn, UpdatedAtColumn, AccessMethodColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pamSessionsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ AccountId: AccountIdColumn,+ ResourceType: ResourceTypeColumn,+ ResourceName: ResourceNameColumn,+ AccountName: AccountNameColumn,+ UserId: UserIdColumn,+ ActorName: ActorNameColumn,+ ActorEmail: ActorEmailColumn,+ ActorIp: ActorIpColumn,+ ActorUserAgent: ActorUserAgentColumn,+ Status: StatusColumn,+ EncryptedLogsBlob: EncryptedLogsBlobColumn,+ ExpiresAt: ExpiresAtColumn,+ StartedAt: StartedAtColumn,+ EndedAt: EndedAtColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ AccessMethod: AccessMethodColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_acme_accounts.go b/backend-go/internal/database/pg/gen/table/pki_acme_accounts.gonew file mode 100644index 0000000000..71868b7f43--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_acme_accounts.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiAcmeAccounts = newPkiAcmeAccountsTable("public", "pki_acme_accounts", "")++type pkiAcmeAccountsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProfileId postgres.ColumnString+ Emails postgres.ColumnStringArray+ PublicKey postgres.ColumnString+ PublicKeyThumbprint postgres.ColumnString+ Alg postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiAcmeAccountsTable struct {+ pkiAcmeAccountsTable++ EXCLUDED pkiAcmeAccountsTable+}++// AS creates new PkiAcmeAccountsTable with assigned alias+func (a PkiAcmeAccountsTable) AS(alias string) *PkiAcmeAccountsTable {+ return newPkiAcmeAccountsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiAcmeAccountsTable with assigned schema name+func (a PkiAcmeAccountsTable) FromSchema(schemaName string) *PkiAcmeAccountsTable {+ return newPkiAcmeAccountsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiAcmeAccountsTable with assigned table prefix+func (a PkiAcmeAccountsTable) WithPrefix(prefix string) *PkiAcmeAccountsTable {+ return newPkiAcmeAccountsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiAcmeAccountsTable with assigned table suffix+func (a PkiAcmeAccountsTable) WithSuffix(suffix string) *PkiAcmeAccountsTable {+ return newPkiAcmeAccountsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiAcmeAccountsTable(schemaName, tableName, alias string) *PkiAcmeAccountsTable {+ return &PkiAcmeAccountsTable{+ pkiAcmeAccountsTable: newPkiAcmeAccountsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiAcmeAccountsTableImpl("", "excluded", ""),+ }+}++func newPkiAcmeAccountsTableImpl(schemaName, tableName, alias string) pkiAcmeAccountsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProfileIdColumn = postgres.StringColumn("profileId")+ EmailsColumn = postgres.StringArrayColumn("emails")+ PublicKeyColumn = postgres.StringColumn("publicKey")+ PublicKeyThumbprintColumn = postgres.StringColumn("publicKeyThumbprint")+ AlgColumn = postgres.StringColumn("alg")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ProfileIdColumn, EmailsColumn, PublicKeyColumn, PublicKeyThumbprintColumn, AlgColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ProfileIdColumn, EmailsColumn, PublicKeyColumn, PublicKeyThumbprintColumn, AlgColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiAcmeAccountsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProfileId: ProfileIdColumn,+ Emails: EmailsColumn,+ PublicKey: PublicKeyColumn,+ PublicKeyThumbprint: PublicKeyThumbprintColumn,+ Alg: AlgColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_acme_auths.go b/backend-go/internal/database/pg/gen/table/pki_acme_auths.gonew file mode 100644index 0000000000..792099a133--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_acme_auths.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiAcmeAuths = newPkiAcmeAuthsTable("public", "pki_acme_auths", "")++type pkiAcmeAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AccountId postgres.ColumnString+ Status postgres.ColumnString+ Token postgres.ColumnString+ IdentifierType postgres.ColumnString+ IdentifierValue postgres.ColumnString+ ExpiresAt postgres.ColumnTimestampz+ CertificateId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiAcmeAuthsTable struct {+ pkiAcmeAuthsTable++ EXCLUDED pkiAcmeAuthsTable+}++// AS creates new PkiAcmeAuthsTable with assigned alias+func (a PkiAcmeAuthsTable) AS(alias string) *PkiAcmeAuthsTable {+ return newPkiAcmeAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiAcmeAuthsTable with assigned schema name+func (a PkiAcmeAuthsTable) FromSchema(schemaName string) *PkiAcmeAuthsTable {+ return newPkiAcmeAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiAcmeAuthsTable with assigned table prefix+func (a PkiAcmeAuthsTable) WithPrefix(prefix string) *PkiAcmeAuthsTable {+ return newPkiAcmeAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiAcmeAuthsTable with assigned table suffix+func (a PkiAcmeAuthsTable) WithSuffix(suffix string) *PkiAcmeAuthsTable {+ return newPkiAcmeAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiAcmeAuthsTable(schemaName, tableName, alias string) *PkiAcmeAuthsTable {+ return &PkiAcmeAuthsTable{+ pkiAcmeAuthsTable: newPkiAcmeAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiAcmeAuthsTableImpl("", "excluded", ""),+ }+}++func newPkiAcmeAuthsTableImpl(schemaName, tableName, alias string) pkiAcmeAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AccountIdColumn = postgres.StringColumn("accountId")+ StatusColumn = postgres.StringColumn("status")+ TokenColumn = postgres.StringColumn("token")+ IdentifierTypeColumn = postgres.StringColumn("identifierType")+ IdentifierValueColumn = postgres.StringColumn("identifierValue")+ ExpiresAtColumn = postgres.TimestampzColumn("expiresAt")+ CertificateIdColumn = postgres.StringColumn("certificateId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, AccountIdColumn, StatusColumn, TokenColumn, IdentifierTypeColumn, IdentifierValueColumn, ExpiresAtColumn, CertificateIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{AccountIdColumn, StatusColumn, TokenColumn, IdentifierTypeColumn, IdentifierValueColumn, ExpiresAtColumn, CertificateIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiAcmeAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AccountId: AccountIdColumn,+ Status: StatusColumn,+ Token: TokenColumn,+ IdentifierType: IdentifierTypeColumn,+ IdentifierValue: IdentifierValueColumn,+ ExpiresAt: ExpiresAtColumn,+ CertificateId: CertificateIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_acme_challenges.go b/backend-go/internal/database/pg/gen/table/pki_acme_challenges.gonew file mode 100644index 0000000000..7ada7d66b2--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_acme_challenges.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiAcmeChallenges = newPkiAcmeChallengesTable("public", "pki_acme_challenges", "")++type pkiAcmeChallengesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AuthId postgres.ColumnString+ Type postgres.ColumnString+ Status postgres.ColumnString+ Error postgres.ColumnString+ ValidatedAt postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiAcmeChallengesTable struct {+ pkiAcmeChallengesTable++ EXCLUDED pkiAcmeChallengesTable+}++// AS creates new PkiAcmeChallengesTable with assigned alias+func (a PkiAcmeChallengesTable) AS(alias string) *PkiAcmeChallengesTable {+ return newPkiAcmeChallengesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiAcmeChallengesTable with assigned schema name+func (a PkiAcmeChallengesTable) FromSchema(schemaName string) *PkiAcmeChallengesTable {+ return newPkiAcmeChallengesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiAcmeChallengesTable with assigned table prefix+func (a PkiAcmeChallengesTable) WithPrefix(prefix string) *PkiAcmeChallengesTable {+ return newPkiAcmeChallengesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiAcmeChallengesTable with assigned table suffix+func (a PkiAcmeChallengesTable) WithSuffix(suffix string) *PkiAcmeChallengesTable {+ return newPkiAcmeChallengesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiAcmeChallengesTable(schemaName, tableName, alias string) *PkiAcmeChallengesTable {+ return &PkiAcmeChallengesTable{+ pkiAcmeChallengesTable: newPkiAcmeChallengesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiAcmeChallengesTableImpl("", "excluded", ""),+ }+}++func newPkiAcmeChallengesTableImpl(schemaName, tableName, alias string) pkiAcmeChallengesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AuthIdColumn = postgres.StringColumn("authId")+ TypeColumn = postgres.StringColumn("type")+ StatusColumn = postgres.StringColumn("status")+ ErrorColumn = postgres.StringColumn("error")+ ValidatedAtColumn = postgres.TimestampzColumn("validatedAt")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, AuthIdColumn, TypeColumn, StatusColumn, ErrorColumn, ValidatedAtColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{AuthIdColumn, TypeColumn, StatusColumn, ErrorColumn, ValidatedAtColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiAcmeChallengesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AuthId: AuthIdColumn,+ Type: TypeColumn,+ Status: StatusColumn,+ Error: ErrorColumn,+ ValidatedAt: ValidatedAtColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_acme_enrollment_configs.go b/backend-go/internal/database/pg/gen/table/pki_acme_enrollment_configs.gonew file mode 100644index 0000000000..1d51193517--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_acme_enrollment_configs.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiAcmeEnrollmentConfigs = newPkiAcmeEnrollmentConfigsTable("public", "pki_acme_enrollment_configs", "")++type pkiAcmeEnrollmentConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ EncryptedEabSecret postgres.ColumnBytea+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ SkipDnsOwnershipVerification postgres.ColumnBool+ SkipEabBinding postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiAcmeEnrollmentConfigsTable struct {+ pkiAcmeEnrollmentConfigsTable++ EXCLUDED pkiAcmeEnrollmentConfigsTable+}++// AS creates new PkiAcmeEnrollmentConfigsTable with assigned alias+func (a PkiAcmeEnrollmentConfigsTable) AS(alias string) *PkiAcmeEnrollmentConfigsTable {+ return newPkiAcmeEnrollmentConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiAcmeEnrollmentConfigsTable with assigned schema name+func (a PkiAcmeEnrollmentConfigsTable) FromSchema(schemaName string) *PkiAcmeEnrollmentConfigsTable {+ return newPkiAcmeEnrollmentConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiAcmeEnrollmentConfigsTable with assigned table prefix+func (a PkiAcmeEnrollmentConfigsTable) WithPrefix(prefix string) *PkiAcmeEnrollmentConfigsTable {+ return newPkiAcmeEnrollmentConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiAcmeEnrollmentConfigsTable with assigned table suffix+func (a PkiAcmeEnrollmentConfigsTable) WithSuffix(suffix string) *PkiAcmeEnrollmentConfigsTable {+ return newPkiAcmeEnrollmentConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiAcmeEnrollmentConfigsTable(schemaName, tableName, alias string) *PkiAcmeEnrollmentConfigsTable {+ return &PkiAcmeEnrollmentConfigsTable{+ pkiAcmeEnrollmentConfigsTable: newPkiAcmeEnrollmentConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiAcmeEnrollmentConfigsTableImpl("", "excluded", ""),+ }+}++func newPkiAcmeEnrollmentConfigsTableImpl(schemaName, tableName, alias string) pkiAcmeEnrollmentConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ EncryptedEabSecretColumn = postgres.ByteaColumn("encryptedEabSecret")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ SkipDnsOwnershipVerificationColumn = postgres.BoolColumn("skipDnsOwnershipVerification")+ SkipEabBindingColumn = postgres.BoolColumn("skipEabBinding")+ allColumns = postgres.ColumnList{IDColumn, EncryptedEabSecretColumn, CreatedAtColumn, UpdatedAtColumn, SkipDnsOwnershipVerificationColumn, SkipEabBindingColumn}+ mutableColumns = postgres.ColumnList{EncryptedEabSecretColumn, CreatedAtColumn, UpdatedAtColumn, SkipDnsOwnershipVerificationColumn, SkipEabBindingColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, SkipDnsOwnershipVerificationColumn, SkipEabBindingColumn}+ )++ return pkiAcmeEnrollmentConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ EncryptedEabSecret: EncryptedEabSecretColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ SkipDnsOwnershipVerification: SkipDnsOwnershipVerificationColumn,+ SkipEabBinding: SkipEabBindingColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_acme_order_auths.go b/backend-go/internal/database/pg/gen/table/pki_acme_order_auths.gonew file mode 100644index 0000000000..545e6279a8--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_acme_order_auths.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiAcmeOrderAuths = newPkiAcmeOrderAuthsTable("public", "pki_acme_order_auths", "")++type pkiAcmeOrderAuthsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ OrderId postgres.ColumnString+ AuthId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiAcmeOrderAuthsTable struct {+ pkiAcmeOrderAuthsTable++ EXCLUDED pkiAcmeOrderAuthsTable+}++// AS creates new PkiAcmeOrderAuthsTable with assigned alias+func (a PkiAcmeOrderAuthsTable) AS(alias string) *PkiAcmeOrderAuthsTable {+ return newPkiAcmeOrderAuthsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiAcmeOrderAuthsTable with assigned schema name+func (a PkiAcmeOrderAuthsTable) FromSchema(schemaName string) *PkiAcmeOrderAuthsTable {+ return newPkiAcmeOrderAuthsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiAcmeOrderAuthsTable with assigned table prefix+func (a PkiAcmeOrderAuthsTable) WithPrefix(prefix string) *PkiAcmeOrderAuthsTable {+ return newPkiAcmeOrderAuthsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiAcmeOrderAuthsTable with assigned table suffix+func (a PkiAcmeOrderAuthsTable) WithSuffix(suffix string) *PkiAcmeOrderAuthsTable {+ return newPkiAcmeOrderAuthsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiAcmeOrderAuthsTable(schemaName, tableName, alias string) *PkiAcmeOrderAuthsTable {+ return &PkiAcmeOrderAuthsTable{+ pkiAcmeOrderAuthsTable: newPkiAcmeOrderAuthsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiAcmeOrderAuthsTableImpl("", "excluded", ""),+ }+}++func newPkiAcmeOrderAuthsTableImpl(schemaName, tableName, alias string) pkiAcmeOrderAuthsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ OrderIdColumn = postgres.StringColumn("orderId")+ AuthIdColumn = postgres.StringColumn("authId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, OrderIdColumn, AuthIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{OrderIdColumn, AuthIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiAcmeOrderAuthsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ OrderId: OrderIdColumn,+ AuthId: AuthIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_acme_orders.go b/backend-go/internal/database/pg/gen/table/pki_acme_orders.gonew file mode 100644index 0000000000..8f7125dd83--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_acme_orders.go@@ -0,0 +1,108 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiAcmeOrders = newPkiAcmeOrdersTable("public", "pki_acme_orders", "")++type pkiAcmeOrdersTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AccountId postgres.ColumnString+ CertificateId postgres.ColumnString+ NotBefore postgres.ColumnTimestampz+ NotAfter postgres.ColumnTimestampz+ ExpiresAt postgres.ColumnTimestampz+ Csr postgres.ColumnString+ Error postgres.ColumnString+ Status postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiAcmeOrdersTable struct {+ pkiAcmeOrdersTable++ EXCLUDED pkiAcmeOrdersTable+}++// AS creates new PkiAcmeOrdersTable with assigned alias+func (a PkiAcmeOrdersTable) AS(alias string) *PkiAcmeOrdersTable {+ return newPkiAcmeOrdersTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiAcmeOrdersTable with assigned schema name+func (a PkiAcmeOrdersTable) FromSchema(schemaName string) *PkiAcmeOrdersTable {+ return newPkiAcmeOrdersTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiAcmeOrdersTable with assigned table prefix+func (a PkiAcmeOrdersTable) WithPrefix(prefix string) *PkiAcmeOrdersTable {+ return newPkiAcmeOrdersTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiAcmeOrdersTable with assigned table suffix+func (a PkiAcmeOrdersTable) WithSuffix(suffix string) *PkiAcmeOrdersTable {+ return newPkiAcmeOrdersTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiAcmeOrdersTable(schemaName, tableName, alias string) *PkiAcmeOrdersTable {+ return &PkiAcmeOrdersTable{+ pkiAcmeOrdersTable: newPkiAcmeOrdersTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiAcmeOrdersTableImpl("", "excluded", ""),+ }+}++func newPkiAcmeOrdersTableImpl(schemaName, tableName, alias string) pkiAcmeOrdersTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AccountIdColumn = postgres.StringColumn("accountId")+ CertificateIdColumn = postgres.StringColumn("certificateId")+ NotBeforeColumn = postgres.TimestampzColumn("notBefore")+ NotAfterColumn = postgres.TimestampzColumn("notAfter")+ ExpiresAtColumn = postgres.TimestampzColumn("expiresAt")+ CsrColumn = postgres.StringColumn("csr")+ ErrorColumn = postgres.StringColumn("error")+ StatusColumn = postgres.StringColumn("status")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, AccountIdColumn, CertificateIdColumn, NotBeforeColumn, NotAfterColumn, ExpiresAtColumn, CsrColumn, ErrorColumn, StatusColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{AccountIdColumn, CertificateIdColumn, NotBeforeColumn, NotAfterColumn, ExpiresAtColumn, CsrColumn, ErrorColumn, StatusColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiAcmeOrdersTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AccountId: AccountIdColumn,+ CertificateId: CertificateIdColumn,+ NotBefore: NotBeforeColumn,+ NotAfter: NotAfterColumn,+ ExpiresAt: ExpiresAtColumn,+ Csr: CsrColumn,+ Error: ErrorColumn,+ Status: StatusColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_alert_channels.go b/backend-go/internal/database/pg/gen/table/pki_alert_channels.gonew file mode 100644index 0000000000..7501900c4d--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_alert_channels.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiAlertChannels = newPkiAlertChannelsTable("public", "pki_alert_channels", "")++type pkiAlertChannelsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AlertId postgres.ColumnString+ ChannelType postgres.ColumnString+ Config postgres.ColumnString+ Enabled postgres.ColumnBool+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ EncryptedConfig postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiAlertChannelsTable struct {+ pkiAlertChannelsTable++ EXCLUDED pkiAlertChannelsTable+}++// AS creates new PkiAlertChannelsTable with assigned alias+func (a PkiAlertChannelsTable) AS(alias string) *PkiAlertChannelsTable {+ return newPkiAlertChannelsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiAlertChannelsTable with assigned schema name+func (a PkiAlertChannelsTable) FromSchema(schemaName string) *PkiAlertChannelsTable {+ return newPkiAlertChannelsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiAlertChannelsTable with assigned table prefix+func (a PkiAlertChannelsTable) WithPrefix(prefix string) *PkiAlertChannelsTable {+ return newPkiAlertChannelsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiAlertChannelsTable with assigned table suffix+func (a PkiAlertChannelsTable) WithSuffix(suffix string) *PkiAlertChannelsTable {+ return newPkiAlertChannelsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiAlertChannelsTable(schemaName, tableName, alias string) *PkiAlertChannelsTable {+ return &PkiAlertChannelsTable{+ pkiAlertChannelsTable: newPkiAlertChannelsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiAlertChannelsTableImpl("", "excluded", ""),+ }+}++func newPkiAlertChannelsTableImpl(schemaName, tableName, alias string) pkiAlertChannelsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AlertIdColumn = postgres.StringColumn("alertId")+ ChannelTypeColumn = postgres.StringColumn("channelType")+ ConfigColumn = postgres.StringColumn("config")+ EnabledColumn = postgres.BoolColumn("enabled")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ EncryptedConfigColumn = postgres.ByteaColumn("encryptedConfig")+ allColumns = postgres.ColumnList{IDColumn, AlertIdColumn, ChannelTypeColumn, ConfigColumn, EnabledColumn, CreatedAtColumn, UpdatedAtColumn, EncryptedConfigColumn}+ mutableColumns = postgres.ColumnList{AlertIdColumn, ChannelTypeColumn, ConfigColumn, EnabledColumn, CreatedAtColumn, UpdatedAtColumn, EncryptedConfigColumn}+ defaultColumns = postgres.ColumnList{IDColumn, EnabledColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiAlertChannelsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AlertId: AlertIdColumn,+ ChannelType: ChannelTypeColumn,+ Config: ConfigColumn,+ Enabled: EnabledColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ EncryptedConfig: EncryptedConfigColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_alert_history.go b/backend-go/internal/database/pg/gen/table/pki_alert_history.gonew file mode 100644index 0000000000..9570040f82--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_alert_history.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiAlertHistory = newPkiAlertHistoryTable("public", "pki_alert_history", "")++type pkiAlertHistoryTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AlertId postgres.ColumnString+ TriggeredAt postgres.ColumnTimestampz+ HasNotificationSent postgres.ColumnBool+ NotificationError postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiAlertHistoryTable struct {+ pkiAlertHistoryTable++ EXCLUDED pkiAlertHistoryTable+}++// AS creates new PkiAlertHistoryTable with assigned alias+func (a PkiAlertHistoryTable) AS(alias string) *PkiAlertHistoryTable {+ return newPkiAlertHistoryTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiAlertHistoryTable with assigned schema name+func (a PkiAlertHistoryTable) FromSchema(schemaName string) *PkiAlertHistoryTable {+ return newPkiAlertHistoryTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiAlertHistoryTable with assigned table prefix+func (a PkiAlertHistoryTable) WithPrefix(prefix string) *PkiAlertHistoryTable {+ return newPkiAlertHistoryTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiAlertHistoryTable with assigned table suffix+func (a PkiAlertHistoryTable) WithSuffix(suffix string) *PkiAlertHistoryTable {+ return newPkiAlertHistoryTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiAlertHistoryTable(schemaName, tableName, alias string) *PkiAlertHistoryTable {+ return &PkiAlertHistoryTable{+ pkiAlertHistoryTable: newPkiAlertHistoryTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiAlertHistoryTableImpl("", "excluded", ""),+ }+}++func newPkiAlertHistoryTableImpl(schemaName, tableName, alias string) pkiAlertHistoryTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AlertIdColumn = postgres.StringColumn("alertId")+ TriggeredAtColumn = postgres.TimestampzColumn("triggeredAt")+ HasNotificationSentColumn = postgres.BoolColumn("hasNotificationSent")+ NotificationErrorColumn = postgres.StringColumn("notificationError")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, AlertIdColumn, TriggeredAtColumn, HasNotificationSentColumn, NotificationErrorColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{AlertIdColumn, TriggeredAtColumn, HasNotificationSentColumn, NotificationErrorColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, TriggeredAtColumn, HasNotificationSentColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiAlertHistoryTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AlertId: AlertIdColumn,+ TriggeredAt: TriggeredAtColumn,+ HasNotificationSent: HasNotificationSentColumn,+ NotificationError: NotificationErrorColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_alert_history_certificate.go b/backend-go/internal/database/pg/gen/table/pki_alert_history_certificate.gonew file mode 100644index 0000000000..5c2abdcd84--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_alert_history_certificate.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiAlertHistoryCertificate = newPkiAlertHistoryCertificateTable("public", "pki_alert_history_certificate", "")++type pkiAlertHistoryCertificateTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AlertHistoryId postgres.ColumnString+ CertificateId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiAlertHistoryCertificateTable struct {+ pkiAlertHistoryCertificateTable++ EXCLUDED pkiAlertHistoryCertificateTable+}++// AS creates new PkiAlertHistoryCertificateTable with assigned alias+func (a PkiAlertHistoryCertificateTable) AS(alias string) *PkiAlertHistoryCertificateTable {+ return newPkiAlertHistoryCertificateTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiAlertHistoryCertificateTable with assigned schema name+func (a PkiAlertHistoryCertificateTable) FromSchema(schemaName string) *PkiAlertHistoryCertificateTable {+ return newPkiAlertHistoryCertificateTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiAlertHistoryCertificateTable with assigned table prefix+func (a PkiAlertHistoryCertificateTable) WithPrefix(prefix string) *PkiAlertHistoryCertificateTable {+ return newPkiAlertHistoryCertificateTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiAlertHistoryCertificateTable with assigned table suffix+func (a PkiAlertHistoryCertificateTable) WithSuffix(suffix string) *PkiAlertHistoryCertificateTable {+ return newPkiAlertHistoryCertificateTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiAlertHistoryCertificateTable(schemaName, tableName, alias string) *PkiAlertHistoryCertificateTable {+ return &PkiAlertHistoryCertificateTable{+ pkiAlertHistoryCertificateTable: newPkiAlertHistoryCertificateTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiAlertHistoryCertificateTableImpl("", "excluded", ""),+ }+}++func newPkiAlertHistoryCertificateTableImpl(schemaName, tableName, alias string) pkiAlertHistoryCertificateTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AlertHistoryIdColumn = postgres.StringColumn("alertHistoryId")+ CertificateIdColumn = postgres.StringColumn("certificateId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, AlertHistoryIdColumn, CertificateIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{AlertHistoryIdColumn, CertificateIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiAlertHistoryCertificateTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AlertHistoryId: AlertHistoryIdColumn,+ CertificateId: CertificateIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_alerts.go b/backend-go/internal/database/pg/gen/table/pki_alerts.gonew file mode 100644index 0000000000..1c8427c6ae--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_alerts.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiAlerts = newPkiAlertsTable("public", "pki_alerts", "")++type pkiAlertsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ProjectId postgres.ColumnString+ PkiCollectionId postgres.ColumnString+ Name postgres.ColumnString+ AlertBeforeDays postgres.ColumnInteger+ RecipientEmails postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiAlertsTable struct {+ pkiAlertsTable++ EXCLUDED pkiAlertsTable+}++// AS creates new PkiAlertsTable with assigned alias+func (a PkiAlertsTable) AS(alias string) *PkiAlertsTable {+ return newPkiAlertsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiAlertsTable with assigned schema name+func (a PkiAlertsTable) FromSchema(schemaName string) *PkiAlertsTable {+ return newPkiAlertsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiAlertsTable with assigned table prefix+func (a PkiAlertsTable) WithPrefix(prefix string) *PkiAlertsTable {+ return newPkiAlertsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiAlertsTable with assigned table suffix+func (a PkiAlertsTable) WithSuffix(suffix string) *PkiAlertsTable {+ return newPkiAlertsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiAlertsTable(schemaName, tableName, alias string) *PkiAlertsTable {+ return &PkiAlertsTable{+ pkiAlertsTable: newPkiAlertsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiAlertsTableImpl("", "excluded", ""),+ }+}++func newPkiAlertsTableImpl(schemaName, tableName, alias string) pkiAlertsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ProjectIdColumn = postgres.StringColumn("projectId")+ PkiCollectionIdColumn = postgres.StringColumn("pkiCollectionId")+ NameColumn = postgres.StringColumn("name")+ AlertBeforeDaysColumn = postgres.IntegerColumn("alertBeforeDays")+ RecipientEmailsColumn = postgres.StringColumn("recipientEmails")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, PkiCollectionIdColumn, NameColumn, AlertBeforeDaysColumn, RecipientEmailsColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, PkiCollectionIdColumn, NameColumn, AlertBeforeDaysColumn, RecipientEmailsColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiAlertsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ProjectId: ProjectIdColumn,+ PkiCollectionId: PkiCollectionIdColumn,+ Name: NameColumn,+ AlertBeforeDays: AlertBeforeDaysColumn,+ RecipientEmails: RecipientEmailsColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_alerts_v2.go b/backend-go/internal/database/pg/gen/table/pki_alerts_v2.gonew file mode 100644index 0000000000..5674571b5a--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_alerts_v2.go@@ -0,0 +1,108 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiAlertsV2 = newPkiAlertsV2Table("public", "pki_alerts_v2", "")++type pkiAlertsV2Table struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Description postgres.ColumnString+ EventType postgres.ColumnString+ AlertBefore postgres.ColumnString+ Filters postgres.ColumnString+ Enabled postgres.ColumnBool+ ProjectId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ NotificationConfig postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiAlertsV2Table struct {+ pkiAlertsV2Table++ EXCLUDED pkiAlertsV2Table+}++// AS creates new PkiAlertsV2Table with assigned alias+func (a PkiAlertsV2Table) AS(alias string) *PkiAlertsV2Table {+ return newPkiAlertsV2Table(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiAlertsV2Table with assigned schema name+func (a PkiAlertsV2Table) FromSchema(schemaName string) *PkiAlertsV2Table {+ return newPkiAlertsV2Table(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiAlertsV2Table with assigned table prefix+func (a PkiAlertsV2Table) WithPrefix(prefix string) *PkiAlertsV2Table {+ return newPkiAlertsV2Table(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiAlertsV2Table with assigned table suffix+func (a PkiAlertsV2Table) WithSuffix(suffix string) *PkiAlertsV2Table {+ return newPkiAlertsV2Table(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiAlertsV2Table(schemaName, tableName, alias string) *PkiAlertsV2Table {+ return &PkiAlertsV2Table{+ pkiAlertsV2Table: newPkiAlertsV2TableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiAlertsV2TableImpl("", "excluded", ""),+ }+}++func newPkiAlertsV2TableImpl(schemaName, tableName, alias string) pkiAlertsV2Table {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ DescriptionColumn = postgres.StringColumn("description")+ EventTypeColumn = postgres.StringColumn("eventType")+ AlertBeforeColumn = postgres.StringColumn("alertBefore")+ FiltersColumn = postgres.StringColumn("filters")+ EnabledColumn = postgres.BoolColumn("enabled")+ ProjectIdColumn = postgres.StringColumn("projectId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ NotificationConfigColumn = postgres.StringColumn("notificationConfig")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, DescriptionColumn, EventTypeColumn, AlertBeforeColumn, FiltersColumn, EnabledColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn, NotificationConfigColumn}+ mutableColumns = postgres.ColumnList{NameColumn, DescriptionColumn, EventTypeColumn, AlertBeforeColumn, FiltersColumn, EnabledColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn, NotificationConfigColumn}+ defaultColumns = postgres.ColumnList{IDColumn, EnabledColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiAlertsV2Table{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Description: DescriptionColumn,+ EventType: EventTypeColumn,+ AlertBefore: AlertBeforeColumn,+ Filters: FiltersColumn,+ Enabled: EnabledColumn,+ ProjectId: ProjectIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ NotificationConfig: NotificationConfigColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_api_enrollment_configs.go b/backend-go/internal/database/pg/gen/table/pki_api_enrollment_configs.gonew file mode 100644index 0000000000..e45584e4f2--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_api_enrollment_configs.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiAPIEnrollmentConfigs = newPkiAPIEnrollmentConfigsTable("public", "pki_api_enrollment_configs", "")++type pkiAPIEnrollmentConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AutoRenew postgres.ColumnBool+ RenewBeforeDays postgres.ColumnInteger+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiAPIEnrollmentConfigsTable struct {+ pkiAPIEnrollmentConfigsTable++ EXCLUDED pkiAPIEnrollmentConfigsTable+}++// AS creates new PkiAPIEnrollmentConfigsTable with assigned alias+func (a PkiAPIEnrollmentConfigsTable) AS(alias string) *PkiAPIEnrollmentConfigsTable {+ return newPkiAPIEnrollmentConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiAPIEnrollmentConfigsTable with assigned schema name+func (a PkiAPIEnrollmentConfigsTable) FromSchema(schemaName string) *PkiAPIEnrollmentConfigsTable {+ return newPkiAPIEnrollmentConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiAPIEnrollmentConfigsTable with assigned table prefix+func (a PkiAPIEnrollmentConfigsTable) WithPrefix(prefix string) *PkiAPIEnrollmentConfigsTable {+ return newPkiAPIEnrollmentConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiAPIEnrollmentConfigsTable with assigned table suffix+func (a PkiAPIEnrollmentConfigsTable) WithSuffix(suffix string) *PkiAPIEnrollmentConfigsTable {+ return newPkiAPIEnrollmentConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiAPIEnrollmentConfigsTable(schemaName, tableName, alias string) *PkiAPIEnrollmentConfigsTable {+ return &PkiAPIEnrollmentConfigsTable{+ pkiAPIEnrollmentConfigsTable: newPkiAPIEnrollmentConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiAPIEnrollmentConfigsTableImpl("", "excluded", ""),+ }+}++func newPkiAPIEnrollmentConfigsTableImpl(schemaName, tableName, alias string) pkiAPIEnrollmentConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AutoRenewColumn = postgres.BoolColumn("autoRenew")+ RenewBeforeDaysColumn = postgres.IntegerColumn("renewBeforeDays")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, AutoRenewColumn, RenewBeforeDaysColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{AutoRenewColumn, RenewBeforeDaysColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AutoRenewColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiAPIEnrollmentConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AutoRenew: AutoRenewColumn,+ RenewBeforeDays: RenewBeforeDaysColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_certificate_installation_certs.go b/backend-go/internal/database/pg/gen/table/pki_certificate_installation_certs.gonew file mode 100644index 0000000000..cffad47bdc--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_certificate_installation_certs.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiCertificateInstallationCerts = newPkiCertificateInstallationCertsTable("public", "pki_certificate_installation_certs", "")++type pkiCertificateInstallationCertsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ InstallationId postgres.ColumnString+ CertificateId postgres.ColumnString+ FirstSeenAt postgres.ColumnTimestampz+ LastSeenAt postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiCertificateInstallationCertsTable struct {+ pkiCertificateInstallationCertsTable++ EXCLUDED pkiCertificateInstallationCertsTable+}++// AS creates new PkiCertificateInstallationCertsTable with assigned alias+func (a PkiCertificateInstallationCertsTable) AS(alias string) *PkiCertificateInstallationCertsTable {+ return newPkiCertificateInstallationCertsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiCertificateInstallationCertsTable with assigned schema name+func (a PkiCertificateInstallationCertsTable) FromSchema(schemaName string) *PkiCertificateInstallationCertsTable {+ return newPkiCertificateInstallationCertsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiCertificateInstallationCertsTable with assigned table prefix+func (a PkiCertificateInstallationCertsTable) WithPrefix(prefix string) *PkiCertificateInstallationCertsTable {+ return newPkiCertificateInstallationCertsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiCertificateInstallationCertsTable with assigned table suffix+func (a PkiCertificateInstallationCertsTable) WithSuffix(suffix string) *PkiCertificateInstallationCertsTable {+ return newPkiCertificateInstallationCertsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiCertificateInstallationCertsTable(schemaName, tableName, alias string) *PkiCertificateInstallationCertsTable {+ return &PkiCertificateInstallationCertsTable{+ pkiCertificateInstallationCertsTable: newPkiCertificateInstallationCertsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiCertificateInstallationCertsTableImpl("", "excluded", ""),+ }+}++func newPkiCertificateInstallationCertsTableImpl(schemaName, tableName, alias string) pkiCertificateInstallationCertsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ InstallationIdColumn = postgres.StringColumn("installationId")+ CertificateIdColumn = postgres.StringColumn("certificateId")+ FirstSeenAtColumn = postgres.TimestampzColumn("firstSeenAt")+ LastSeenAtColumn = postgres.TimestampzColumn("lastSeenAt")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, InstallationIdColumn, CertificateIdColumn, FirstSeenAtColumn, LastSeenAtColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{InstallationIdColumn, CertificateIdColumn, FirstSeenAtColumn, LastSeenAtColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiCertificateInstallationCertsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ InstallationId: InstallationIdColumn,+ CertificateId: CertificateIdColumn,+ FirstSeenAt: FirstSeenAtColumn,+ LastSeenAt: LastSeenAtColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_certificate_installations.go b/backend-go/internal/database/pg/gen/table/pki_certificate_installations.gonew file mode 100644index 0000000000..370c02d027--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_certificate_installations.go@@ -0,0 +1,108 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiCertificateInstallations = newPkiCertificateInstallationsTable("public", "pki_certificate_installations", "")++type pkiCertificateInstallationsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ LocationType postgres.ColumnString+ LocationDetails postgres.ColumnString+ LocationFingerprint postgres.ColumnString+ Name postgres.ColumnString+ Type postgres.ColumnString+ Metadata postgres.ColumnString+ LastSeenAt postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiCertificateInstallationsTable struct {+ pkiCertificateInstallationsTable++ EXCLUDED pkiCertificateInstallationsTable+}++// AS creates new PkiCertificateInstallationsTable with assigned alias+func (a PkiCertificateInstallationsTable) AS(alias string) *PkiCertificateInstallationsTable {+ return newPkiCertificateInstallationsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiCertificateInstallationsTable with assigned schema name+func (a PkiCertificateInstallationsTable) FromSchema(schemaName string) *PkiCertificateInstallationsTable {+ return newPkiCertificateInstallationsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiCertificateInstallationsTable with assigned table prefix+func (a PkiCertificateInstallationsTable) WithPrefix(prefix string) *PkiCertificateInstallationsTable {+ return newPkiCertificateInstallationsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiCertificateInstallationsTable with assigned table suffix+func (a PkiCertificateInstallationsTable) WithSuffix(suffix string) *PkiCertificateInstallationsTable {+ return newPkiCertificateInstallationsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiCertificateInstallationsTable(schemaName, tableName, alias string) *PkiCertificateInstallationsTable {+ return &PkiCertificateInstallationsTable{+ pkiCertificateInstallationsTable: newPkiCertificateInstallationsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiCertificateInstallationsTableImpl("", "excluded", ""),+ }+}++func newPkiCertificateInstallationsTableImpl(schemaName, tableName, alias string) pkiCertificateInstallationsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ LocationTypeColumn = postgres.StringColumn("locationType")+ LocationDetailsColumn = postgres.StringColumn("locationDetails")+ LocationFingerprintColumn = postgres.StringColumn("locationFingerprint")+ NameColumn = postgres.StringColumn("name")+ TypeColumn = postgres.StringColumn("type")+ MetadataColumn = postgres.StringColumn("metadata")+ LastSeenAtColumn = postgres.TimestampzColumn("lastSeenAt")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, LocationTypeColumn, LocationDetailsColumn, LocationFingerprintColumn, NameColumn, TypeColumn, MetadataColumn, LastSeenAtColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, LocationTypeColumn, LocationDetailsColumn, LocationFingerprintColumn, NameColumn, TypeColumn, MetadataColumn, LastSeenAtColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, TypeColumn, LastSeenAtColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiCertificateInstallationsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ LocationType: LocationTypeColumn,+ LocationDetails: LocationDetailsColumn,+ LocationFingerprint: LocationFingerprintColumn,+ Name: NameColumn,+ Type: TypeColumn,+ Metadata: MetadataColumn,+ LastSeenAt: LastSeenAtColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_certificate_policies.go b/backend-go/internal/database/pg/gen/table/pki_certificate_policies.gonew file mode 100644index 0000000000..1832764b22--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_certificate_policies.go@@ -0,0 +1,114 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiCertificatePolicies = newPkiCertificatePoliciesTable("public", "pki_certificate_policies", "")++type pkiCertificatePoliciesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ Name postgres.ColumnString+ Description postgres.ColumnString+ Subject postgres.ColumnString+ Sans postgres.ColumnString+ KeyUsages postgres.ColumnString+ ExtendedKeyUsages postgres.ColumnString+ Algorithms postgres.ColumnString+ Validity postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ BasicConstraints postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiCertificatePoliciesTable struct {+ pkiCertificatePoliciesTable++ EXCLUDED pkiCertificatePoliciesTable+}++// AS creates new PkiCertificatePoliciesTable with assigned alias+func (a PkiCertificatePoliciesTable) AS(alias string) *PkiCertificatePoliciesTable {+ return newPkiCertificatePoliciesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiCertificatePoliciesTable with assigned schema name+func (a PkiCertificatePoliciesTable) FromSchema(schemaName string) *PkiCertificatePoliciesTable {+ return newPkiCertificatePoliciesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiCertificatePoliciesTable with assigned table prefix+func (a PkiCertificatePoliciesTable) WithPrefix(prefix string) *PkiCertificatePoliciesTable {+ return newPkiCertificatePoliciesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiCertificatePoliciesTable with assigned table suffix+func (a PkiCertificatePoliciesTable) WithSuffix(suffix string) *PkiCertificatePoliciesTable {+ return newPkiCertificatePoliciesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiCertificatePoliciesTable(schemaName, tableName, alias string) *PkiCertificatePoliciesTable {+ return &PkiCertificatePoliciesTable{+ pkiCertificatePoliciesTable: newPkiCertificatePoliciesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiCertificatePoliciesTableImpl("", "excluded", ""),+ }+}++func newPkiCertificatePoliciesTableImpl(schemaName, tableName, alias string) pkiCertificatePoliciesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ NameColumn = postgres.StringColumn("name")+ DescriptionColumn = postgres.StringColumn("description")+ SubjectColumn = postgres.StringColumn("subject")+ SansColumn = postgres.StringColumn("sans")+ KeyUsagesColumn = postgres.StringColumn("keyUsages")+ ExtendedKeyUsagesColumn = postgres.StringColumn("extendedKeyUsages")+ AlgorithmsColumn = postgres.StringColumn("algorithms")+ ValidityColumn = postgres.StringColumn("validity")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ BasicConstraintsColumn = postgres.StringColumn("basicConstraints")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, NameColumn, DescriptionColumn, SubjectColumn, SansColumn, KeyUsagesColumn, ExtendedKeyUsagesColumn, AlgorithmsColumn, ValidityColumn, CreatedAtColumn, UpdatedAtColumn, BasicConstraintsColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, NameColumn, DescriptionColumn, SubjectColumn, SansColumn, KeyUsagesColumn, ExtendedKeyUsagesColumn, AlgorithmsColumn, ValidityColumn, CreatedAtColumn, UpdatedAtColumn, BasicConstraintsColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiCertificatePoliciesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ Name: NameColumn,+ Description: DescriptionColumn,+ Subject: SubjectColumn,+ Sans: SansColumn,+ KeyUsages: KeyUsagesColumn,+ ExtendedKeyUsages: ExtendedKeyUsagesColumn,+ Algorithms: AlgorithmsColumn,+ Validity: ValidityColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ BasicConstraints: BasicConstraintsColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_certificate_profiles.go b/backend-go/internal/database/pg/gen/table/pki_certificate_profiles.gonew file mode 100644index 0000000000..77cea4aa0d--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_certificate_profiles.go@@ -0,0 +1,120 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiCertificateProfiles = newPkiCertificateProfilesTable("public", "pki_certificate_profiles", "")++type pkiCertificateProfilesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ CaId postgres.ColumnString+ CertificatePolicyId postgres.ColumnString+ Slug postgres.ColumnString+ Description postgres.ColumnString+ EnrollmentType postgres.ColumnString+ EstConfigId postgres.ColumnString+ ApiConfigId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ AcmeConfigId postgres.ColumnString+ IssuerType postgres.ColumnString+ ExternalConfigs postgres.ColumnString+ Defaults postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiCertificateProfilesTable struct {+ pkiCertificateProfilesTable++ EXCLUDED pkiCertificateProfilesTable+}++// AS creates new PkiCertificateProfilesTable with assigned alias+func (a PkiCertificateProfilesTable) AS(alias string) *PkiCertificateProfilesTable {+ return newPkiCertificateProfilesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiCertificateProfilesTable with assigned schema name+func (a PkiCertificateProfilesTable) FromSchema(schemaName string) *PkiCertificateProfilesTable {+ return newPkiCertificateProfilesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiCertificateProfilesTable with assigned table prefix+func (a PkiCertificateProfilesTable) WithPrefix(prefix string) *PkiCertificateProfilesTable {+ return newPkiCertificateProfilesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiCertificateProfilesTable with assigned table suffix+func (a PkiCertificateProfilesTable) WithSuffix(suffix string) *PkiCertificateProfilesTable {+ return newPkiCertificateProfilesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiCertificateProfilesTable(schemaName, tableName, alias string) *PkiCertificateProfilesTable {+ return &PkiCertificateProfilesTable{+ pkiCertificateProfilesTable: newPkiCertificateProfilesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiCertificateProfilesTableImpl("", "excluded", ""),+ }+}++func newPkiCertificateProfilesTableImpl(schemaName, tableName, alias string) pkiCertificateProfilesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ CaIdColumn = postgres.StringColumn("caId")+ CertificatePolicyIdColumn = postgres.StringColumn("certificatePolicyId")+ SlugColumn = postgres.StringColumn("slug")+ DescriptionColumn = postgres.StringColumn("description")+ EnrollmentTypeColumn = postgres.StringColumn("enrollmentType")+ EstConfigIdColumn = postgres.StringColumn("estConfigId")+ ApiConfigIdColumn = postgres.StringColumn("apiConfigId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ AcmeConfigIdColumn = postgres.StringColumn("acmeConfigId")+ IssuerTypeColumn = postgres.StringColumn("issuerType")+ ExternalConfigsColumn = postgres.StringColumn("externalConfigs")+ DefaultsColumn = postgres.StringColumn("defaults")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, CaIdColumn, CertificatePolicyIdColumn, SlugColumn, DescriptionColumn, EnrollmentTypeColumn, EstConfigIdColumn, ApiConfigIdColumn, CreatedAtColumn, UpdatedAtColumn, AcmeConfigIdColumn, IssuerTypeColumn, ExternalConfigsColumn, DefaultsColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, CaIdColumn, CertificatePolicyIdColumn, SlugColumn, DescriptionColumn, EnrollmentTypeColumn, EstConfigIdColumn, ApiConfigIdColumn, CreatedAtColumn, UpdatedAtColumn, AcmeConfigIdColumn, IssuerTypeColumn, ExternalConfigsColumn, DefaultsColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, IssuerTypeColumn}+ )++ return pkiCertificateProfilesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ CaId: CaIdColumn,+ CertificatePolicyId: CertificatePolicyIdColumn,+ Slug: SlugColumn,+ Description: DescriptionColumn,+ EnrollmentType: EnrollmentTypeColumn,+ EstConfigId: EstConfigIdColumn,+ ApiConfigId: ApiConfigIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ AcmeConfigId: AcmeConfigIdColumn,+ IssuerType: IssuerTypeColumn,+ ExternalConfigs: ExternalConfigsColumn,+ Defaults: DefaultsColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_collection_items.go b/backend-go/internal/database/pg/gen/table/pki_collection_items.gonew file mode 100644index 0000000000..4359346df1--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_collection_items.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiCollectionItems = newPkiCollectionItemsTable("public", "pki_collection_items", "")++type pkiCollectionItemsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ PkiCollectionId postgres.ColumnString+ CaId postgres.ColumnString+ CertId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiCollectionItemsTable struct {+ pkiCollectionItemsTable++ EXCLUDED pkiCollectionItemsTable+}++// AS creates new PkiCollectionItemsTable with assigned alias+func (a PkiCollectionItemsTable) AS(alias string) *PkiCollectionItemsTable {+ return newPkiCollectionItemsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiCollectionItemsTable with assigned schema name+func (a PkiCollectionItemsTable) FromSchema(schemaName string) *PkiCollectionItemsTable {+ return newPkiCollectionItemsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiCollectionItemsTable with assigned table prefix+func (a PkiCollectionItemsTable) WithPrefix(prefix string) *PkiCollectionItemsTable {+ return newPkiCollectionItemsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiCollectionItemsTable with assigned table suffix+func (a PkiCollectionItemsTable) WithSuffix(suffix string) *PkiCollectionItemsTable {+ return newPkiCollectionItemsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiCollectionItemsTable(schemaName, tableName, alias string) *PkiCollectionItemsTable {+ return &PkiCollectionItemsTable{+ pkiCollectionItemsTable: newPkiCollectionItemsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiCollectionItemsTableImpl("", "excluded", ""),+ }+}++func newPkiCollectionItemsTableImpl(schemaName, tableName, alias string) pkiCollectionItemsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ PkiCollectionIdColumn = postgres.StringColumn("pkiCollectionId")+ CaIdColumn = postgres.StringColumn("caId")+ CertIdColumn = postgres.StringColumn("certId")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, PkiCollectionIdColumn, CaIdColumn, CertIdColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, PkiCollectionIdColumn, CaIdColumn, CertIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiCollectionItemsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ PkiCollectionId: PkiCollectionIdColumn,+ CaId: CaIdColumn,+ CertId: CertIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_collections.go b/backend-go/internal/database/pg/gen/table/pki_collections.gonew file mode 100644index 0000000000..c11901c8b3--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_collections.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiCollections = newPkiCollectionsTable("public", "pki_collections", "")++type pkiCollectionsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ProjectId postgres.ColumnString+ Name postgres.ColumnString+ Description postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiCollectionsTable struct {+ pkiCollectionsTable++ EXCLUDED pkiCollectionsTable+}++// AS creates new PkiCollectionsTable with assigned alias+func (a PkiCollectionsTable) AS(alias string) *PkiCollectionsTable {+ return newPkiCollectionsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiCollectionsTable with assigned schema name+func (a PkiCollectionsTable) FromSchema(schemaName string) *PkiCollectionsTable {+ return newPkiCollectionsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiCollectionsTable with assigned table prefix+func (a PkiCollectionsTable) WithPrefix(prefix string) *PkiCollectionsTable {+ return newPkiCollectionsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiCollectionsTable with assigned table suffix+func (a PkiCollectionsTable) WithSuffix(suffix string) *PkiCollectionsTable {+ return newPkiCollectionsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiCollectionsTable(schemaName, tableName, alias string) *PkiCollectionsTable {+ return &PkiCollectionsTable{+ pkiCollectionsTable: newPkiCollectionsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiCollectionsTableImpl("", "excluded", ""),+ }+}++func newPkiCollectionsTableImpl(schemaName, tableName, alias string) pkiCollectionsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ProjectIdColumn = postgres.StringColumn("projectId")+ NameColumn = postgres.StringColumn("name")+ DescriptionColumn = postgres.StringColumn("description")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, NameColumn, DescriptionColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, NameColumn, DescriptionColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiCollectionsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ProjectId: ProjectIdColumn,+ Name: NameColumn,+ Description: DescriptionColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_discovery_configs.go b/backend-go/internal/database/pg/gen/table/pki_discovery_configs.gonew file mode 100644index 0000000000..a6186b3c4a--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_discovery_configs.go@@ -0,0 +1,123 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiDiscoveryConfigs = newPkiDiscoveryConfigsTable("public", "pki_discovery_configs", "")++type pkiDiscoveryConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ Name postgres.ColumnString+ Description postgres.ColumnString+ DiscoveryType postgres.ColumnString+ TargetConfig postgres.ColumnString+ IsAutoScanEnabled postgres.ColumnBool+ ScanIntervalDays postgres.ColumnInteger+ GatewayId postgres.ColumnString+ IsActive postgres.ColumnBool+ LastScanStatus postgres.ColumnString+ LastScanJobId postgres.ColumnString+ LastScanMessage postgres.ColumnString+ LastScannedAt postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiDiscoveryConfigsTable struct {+ pkiDiscoveryConfigsTable++ EXCLUDED pkiDiscoveryConfigsTable+}++// AS creates new PkiDiscoveryConfigsTable with assigned alias+func (a PkiDiscoveryConfigsTable) AS(alias string) *PkiDiscoveryConfigsTable {+ return newPkiDiscoveryConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiDiscoveryConfigsTable with assigned schema name+func (a PkiDiscoveryConfigsTable) FromSchema(schemaName string) *PkiDiscoveryConfigsTable {+ return newPkiDiscoveryConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiDiscoveryConfigsTable with assigned table prefix+func (a PkiDiscoveryConfigsTable) WithPrefix(prefix string) *PkiDiscoveryConfigsTable {+ return newPkiDiscoveryConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiDiscoveryConfigsTable with assigned table suffix+func (a PkiDiscoveryConfigsTable) WithSuffix(suffix string) *PkiDiscoveryConfigsTable {+ return newPkiDiscoveryConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiDiscoveryConfigsTable(schemaName, tableName, alias string) *PkiDiscoveryConfigsTable {+ return &PkiDiscoveryConfigsTable{+ pkiDiscoveryConfigsTable: newPkiDiscoveryConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiDiscoveryConfigsTableImpl("", "excluded", ""),+ }+}++func newPkiDiscoveryConfigsTableImpl(schemaName, tableName, alias string) pkiDiscoveryConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ NameColumn = postgres.StringColumn("name")+ DescriptionColumn = postgres.StringColumn("description")+ DiscoveryTypeColumn = postgres.StringColumn("discoveryType")+ TargetConfigColumn = postgres.StringColumn("targetConfig")+ IsAutoScanEnabledColumn = postgres.BoolColumn("isAutoScanEnabled")+ ScanIntervalDaysColumn = postgres.IntegerColumn("scanIntervalDays")+ GatewayIdColumn = postgres.StringColumn("gatewayId")+ IsActiveColumn = postgres.BoolColumn("isActive")+ LastScanStatusColumn = postgres.StringColumn("lastScanStatus")+ LastScanJobIdColumn = postgres.StringColumn("lastScanJobId")+ LastScanMessageColumn = postgres.StringColumn("lastScanMessage")+ LastScannedAtColumn = postgres.TimestampzColumn("lastScannedAt")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, NameColumn, DescriptionColumn, DiscoveryTypeColumn, TargetConfigColumn, IsAutoScanEnabledColumn, ScanIntervalDaysColumn, GatewayIdColumn, IsActiveColumn, LastScanStatusColumn, LastScanJobIdColumn, LastScanMessageColumn, LastScannedAtColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, NameColumn, DescriptionColumn, DiscoveryTypeColumn, TargetConfigColumn, IsAutoScanEnabledColumn, ScanIntervalDaysColumn, GatewayIdColumn, IsActiveColumn, LastScanStatusColumn, LastScanJobIdColumn, LastScanMessageColumn, LastScannedAtColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, DiscoveryTypeColumn, IsAutoScanEnabledColumn, IsActiveColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiDiscoveryConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ Name: NameColumn,+ Description: DescriptionColumn,+ DiscoveryType: DiscoveryTypeColumn,+ TargetConfig: TargetConfigColumn,+ IsAutoScanEnabled: IsAutoScanEnabledColumn,+ ScanIntervalDays: ScanIntervalDaysColumn,+ GatewayId: GatewayIdColumn,+ IsActive: IsActiveColumn,+ LastScanStatus: LastScanStatusColumn,+ LastScanJobId: LastScanJobIdColumn,+ LastScanMessage: LastScanMessageColumn,+ LastScannedAt: LastScannedAtColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_discovery_installations.go b/backend-go/internal/database/pg/gen/table/pki_discovery_installations.gonew file mode 100644index 0000000000..420f36b10d--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_discovery_installations.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiDiscoveryInstallations = newPkiDiscoveryInstallationsTable("public", "pki_discovery_installations", "")++type pkiDiscoveryInstallationsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ DiscoveryId postgres.ColumnString+ InstallationId postgres.ColumnString+ LastScannedAt postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiDiscoveryInstallationsTable struct {+ pkiDiscoveryInstallationsTable++ EXCLUDED pkiDiscoveryInstallationsTable+}++// AS creates new PkiDiscoveryInstallationsTable with assigned alias+func (a PkiDiscoveryInstallationsTable) AS(alias string) *PkiDiscoveryInstallationsTable {+ return newPkiDiscoveryInstallationsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiDiscoveryInstallationsTable with assigned schema name+func (a PkiDiscoveryInstallationsTable) FromSchema(schemaName string) *PkiDiscoveryInstallationsTable {+ return newPkiDiscoveryInstallationsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiDiscoveryInstallationsTable with assigned table prefix+func (a PkiDiscoveryInstallationsTable) WithPrefix(prefix string) *PkiDiscoveryInstallationsTable {+ return newPkiDiscoveryInstallationsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiDiscoveryInstallationsTable with assigned table suffix+func (a PkiDiscoveryInstallationsTable) WithSuffix(suffix string) *PkiDiscoveryInstallationsTable {+ return newPkiDiscoveryInstallationsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiDiscoveryInstallationsTable(schemaName, tableName, alias string) *PkiDiscoveryInstallationsTable {+ return &PkiDiscoveryInstallationsTable{+ pkiDiscoveryInstallationsTable: newPkiDiscoveryInstallationsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiDiscoveryInstallationsTableImpl("", "excluded", ""),+ }+}++func newPkiDiscoveryInstallationsTableImpl(schemaName, tableName, alias string) pkiDiscoveryInstallationsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ DiscoveryIdColumn = postgres.StringColumn("discoveryId")+ InstallationIdColumn = postgres.StringColumn("installationId")+ LastScannedAtColumn = postgres.TimestampzColumn("lastScannedAt")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, DiscoveryIdColumn, InstallationIdColumn, LastScannedAtColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{DiscoveryIdColumn, InstallationIdColumn, LastScannedAtColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiDiscoveryInstallationsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ DiscoveryId: DiscoveryIdColumn,+ InstallationId: InstallationIdColumn,+ LastScannedAt: LastScannedAtColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_discovery_scan_history.go b/backend-go/internal/database/pg/gen/table/pki_discovery_scan_history.gonew file mode 100644index 0000000000..5958a00dab--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_discovery_scan_history.go@@ -0,0 +1,108 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiDiscoveryScanHistory = newPkiDiscoveryScanHistoryTable("public", "pki_discovery_scan_history", "")++type pkiDiscoveryScanHistoryTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ DiscoveryConfigId postgres.ColumnString+ StartedAt postgres.ColumnTimestampz+ CompletedAt postgres.ColumnTimestampz+ Status postgres.ColumnString+ TargetsScannedCount postgres.ColumnInteger+ CertificatesFoundCount postgres.ColumnInteger+ InstallationsFoundCount postgres.ColumnInteger+ ErrorMessage postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiDiscoveryScanHistoryTable struct {+ pkiDiscoveryScanHistoryTable++ EXCLUDED pkiDiscoveryScanHistoryTable+}++// AS creates new PkiDiscoveryScanHistoryTable with assigned alias+func (a PkiDiscoveryScanHistoryTable) AS(alias string) *PkiDiscoveryScanHistoryTable {+ return newPkiDiscoveryScanHistoryTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiDiscoveryScanHistoryTable with assigned schema name+func (a PkiDiscoveryScanHistoryTable) FromSchema(schemaName string) *PkiDiscoveryScanHistoryTable {+ return newPkiDiscoveryScanHistoryTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiDiscoveryScanHistoryTable with assigned table prefix+func (a PkiDiscoveryScanHistoryTable) WithPrefix(prefix string) *PkiDiscoveryScanHistoryTable {+ return newPkiDiscoveryScanHistoryTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiDiscoveryScanHistoryTable with assigned table suffix+func (a PkiDiscoveryScanHistoryTable) WithSuffix(suffix string) *PkiDiscoveryScanHistoryTable {+ return newPkiDiscoveryScanHistoryTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiDiscoveryScanHistoryTable(schemaName, tableName, alias string) *PkiDiscoveryScanHistoryTable {+ return &PkiDiscoveryScanHistoryTable{+ pkiDiscoveryScanHistoryTable: newPkiDiscoveryScanHistoryTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiDiscoveryScanHistoryTableImpl("", "excluded", ""),+ }+}++func newPkiDiscoveryScanHistoryTableImpl(schemaName, tableName, alias string) pkiDiscoveryScanHistoryTable {+ var (+ IDColumn = postgres.StringColumn("id")+ DiscoveryConfigIdColumn = postgres.StringColumn("discoveryConfigId")+ StartedAtColumn = postgres.TimestampzColumn("startedAt")+ CompletedAtColumn = postgres.TimestampzColumn("completedAt")+ StatusColumn = postgres.StringColumn("status")+ TargetsScannedCountColumn = postgres.IntegerColumn("targetsScannedCount")+ CertificatesFoundCountColumn = postgres.IntegerColumn("certificatesFoundCount")+ InstallationsFoundCountColumn = postgres.IntegerColumn("installationsFoundCount")+ ErrorMessageColumn = postgres.StringColumn("errorMessage")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, DiscoveryConfigIdColumn, StartedAtColumn, CompletedAtColumn, StatusColumn, TargetsScannedCountColumn, CertificatesFoundCountColumn, InstallationsFoundCountColumn, ErrorMessageColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{DiscoveryConfigIdColumn, StartedAtColumn, CompletedAtColumn, StatusColumn, TargetsScannedCountColumn, CertificatesFoundCountColumn, InstallationsFoundCountColumn, ErrorMessageColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, TargetsScannedCountColumn, CertificatesFoundCountColumn, InstallationsFoundCountColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiDiscoveryScanHistoryTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ DiscoveryConfigId: DiscoveryConfigIdColumn,+ StartedAt: StartedAtColumn,+ CompletedAt: CompletedAtColumn,+ Status: StatusColumn,+ TargetsScannedCount: TargetsScannedCountColumn,+ CertificatesFoundCount: CertificatesFoundCountColumn,+ InstallationsFoundCount: InstallationsFoundCountColumn,+ ErrorMessage: ErrorMessageColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_est_enrollment_configs.go b/backend-go/internal/database/pg/gen/table/pki_est_enrollment_configs.gonew file mode 100644index 0000000000..d1f44300fc--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_est_enrollment_configs.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiEstEnrollmentConfigs = newPkiEstEnrollmentConfigsTable("public", "pki_est_enrollment_configs", "")++type pkiEstEnrollmentConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ DisableBootstrapCaValidation postgres.ColumnBool+ HashedPassphrase postgres.ColumnString+ EncryptedCaChain postgres.ColumnBytea+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiEstEnrollmentConfigsTable struct {+ pkiEstEnrollmentConfigsTable++ EXCLUDED pkiEstEnrollmentConfigsTable+}++// AS creates new PkiEstEnrollmentConfigsTable with assigned alias+func (a PkiEstEnrollmentConfigsTable) AS(alias string) *PkiEstEnrollmentConfigsTable {+ return newPkiEstEnrollmentConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiEstEnrollmentConfigsTable with assigned schema name+func (a PkiEstEnrollmentConfigsTable) FromSchema(schemaName string) *PkiEstEnrollmentConfigsTable {+ return newPkiEstEnrollmentConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiEstEnrollmentConfigsTable with assigned table prefix+func (a PkiEstEnrollmentConfigsTable) WithPrefix(prefix string) *PkiEstEnrollmentConfigsTable {+ return newPkiEstEnrollmentConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiEstEnrollmentConfigsTable with assigned table suffix+func (a PkiEstEnrollmentConfigsTable) WithSuffix(suffix string) *PkiEstEnrollmentConfigsTable {+ return newPkiEstEnrollmentConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiEstEnrollmentConfigsTable(schemaName, tableName, alias string) *PkiEstEnrollmentConfigsTable {+ return &PkiEstEnrollmentConfigsTable{+ pkiEstEnrollmentConfigsTable: newPkiEstEnrollmentConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiEstEnrollmentConfigsTableImpl("", "excluded", ""),+ }+}++func newPkiEstEnrollmentConfigsTableImpl(schemaName, tableName, alias string) pkiEstEnrollmentConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ DisableBootstrapCaValidationColumn = postgres.BoolColumn("disableBootstrapCaValidation")+ HashedPassphraseColumn = postgres.StringColumn("hashedPassphrase")+ EncryptedCaChainColumn = postgres.ByteaColumn("encryptedCaChain")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, DisableBootstrapCaValidationColumn, HashedPassphraseColumn, EncryptedCaChainColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{DisableBootstrapCaValidationColumn, HashedPassphraseColumn, EncryptedCaChainColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, DisableBootstrapCaValidationColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiEstEnrollmentConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ DisableBootstrapCaValidation: DisableBootstrapCaValidationColumn,+ HashedPassphrase: HashedPassphraseColumn,+ EncryptedCaChain: EncryptedCaChainColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_subscribers.go b/backend-go/internal/database/pg/gen/table/pki_subscribers.gonew file mode 100644index 0000000000..f8a7bf1721--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_subscribers.go@@ -0,0 +1,132 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiSubscribers = newPkiSubscribersTable("public", "pki_subscribers", "")++type pkiSubscribersTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ProjectId postgres.ColumnString+ CaId postgres.ColumnString+ Name postgres.ColumnString+ CommonName postgres.ColumnString+ SubjectAlternativeNames postgres.ColumnStringArray+ TTL postgres.ColumnString+ KeyUsages postgres.ColumnStringArray+ ExtendedKeyUsages postgres.ColumnStringArray+ Status postgres.ColumnString+ EnableAutoRenewal postgres.ColumnBool+ AutoRenewalPeriodInDays postgres.ColumnInteger+ LastAutoRenewAt postgres.ColumnTimestampz+ LastOperationStatus postgres.ColumnString+ LastOperationMessage postgres.ColumnString+ LastOperationAt postgres.ColumnTimestampz+ Properties postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiSubscribersTable struct {+ pkiSubscribersTable++ EXCLUDED pkiSubscribersTable+}++// AS creates new PkiSubscribersTable with assigned alias+func (a PkiSubscribersTable) AS(alias string) *PkiSubscribersTable {+ return newPkiSubscribersTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiSubscribersTable with assigned schema name+func (a PkiSubscribersTable) FromSchema(schemaName string) *PkiSubscribersTable {+ return newPkiSubscribersTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiSubscribersTable with assigned table prefix+func (a PkiSubscribersTable) WithPrefix(prefix string) *PkiSubscribersTable {+ return newPkiSubscribersTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiSubscribersTable with assigned table suffix+func (a PkiSubscribersTable) WithSuffix(suffix string) *PkiSubscribersTable {+ return newPkiSubscribersTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiSubscribersTable(schemaName, tableName, alias string) *PkiSubscribersTable {+ return &PkiSubscribersTable{+ pkiSubscribersTable: newPkiSubscribersTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiSubscribersTableImpl("", "excluded", ""),+ }+}++func newPkiSubscribersTableImpl(schemaName, tableName, alias string) pkiSubscribersTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ProjectIdColumn = postgres.StringColumn("projectId")+ CaIdColumn = postgres.StringColumn("caId")+ NameColumn = postgres.StringColumn("name")+ CommonNameColumn = postgres.StringColumn("commonName")+ SubjectAlternativeNamesColumn = postgres.StringArrayColumn("subjectAlternativeNames")+ TTLColumn = postgres.StringColumn("ttl")+ KeyUsagesColumn = postgres.StringArrayColumn("keyUsages")+ ExtendedKeyUsagesColumn = postgres.StringArrayColumn("extendedKeyUsages")+ StatusColumn = postgres.StringColumn("status")+ EnableAutoRenewalColumn = postgres.BoolColumn("enableAutoRenewal")+ AutoRenewalPeriodInDaysColumn = postgres.IntegerColumn("autoRenewalPeriodInDays")+ LastAutoRenewAtColumn = postgres.TimestampzColumn("lastAutoRenewAt")+ LastOperationStatusColumn = postgres.StringColumn("lastOperationStatus")+ LastOperationMessageColumn = postgres.StringColumn("lastOperationMessage")+ LastOperationAtColumn = postgres.TimestampzColumn("lastOperationAt")+ PropertiesColumn = postgres.StringColumn("properties")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, CaIdColumn, NameColumn, CommonNameColumn, SubjectAlternativeNamesColumn, TTLColumn, KeyUsagesColumn, ExtendedKeyUsagesColumn, StatusColumn, EnableAutoRenewalColumn, AutoRenewalPeriodInDaysColumn, LastAutoRenewAtColumn, LastOperationStatusColumn, LastOperationMessageColumn, LastOperationAtColumn, PropertiesColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, CaIdColumn, NameColumn, CommonNameColumn, SubjectAlternativeNamesColumn, TTLColumn, KeyUsagesColumn, ExtendedKeyUsagesColumn, StatusColumn, EnableAutoRenewalColumn, AutoRenewalPeriodInDaysColumn, LastAutoRenewAtColumn, LastOperationStatusColumn, LastOperationMessageColumn, LastOperationAtColumn, PropertiesColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, EnableAutoRenewalColumn}+ )++ return pkiSubscribersTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ProjectId: ProjectIdColumn,+ CaId: CaIdColumn,+ Name: NameColumn,+ CommonName: CommonNameColumn,+ SubjectAlternativeNames: SubjectAlternativeNamesColumn,+ TTL: TTLColumn,+ KeyUsages: KeyUsagesColumn,+ ExtendedKeyUsages: ExtendedKeyUsagesColumn,+ Status: StatusColumn,+ EnableAutoRenewal: EnableAutoRenewalColumn,+ AutoRenewalPeriodInDays: AutoRenewalPeriodInDaysColumn,+ LastAutoRenewAt: LastAutoRenewAtColumn,+ LastOperationStatus: LastOperationStatusColumn,+ LastOperationMessage: LastOperationMessageColumn,+ LastOperationAt: LastOperationAtColumn,+ Properties: PropertiesColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/pki_syncs.go b/backend-go/internal/database/pg/gen/table/pki_syncs.gonew file mode 100644index 0000000000..91afbc7573--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/pki_syncs.go@@ -0,0 +1,150 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var PkiSyncs = newPkiSyncsTable("public", "pki_syncs", "")++type pkiSyncsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Description postgres.ColumnString+ Destination postgres.ColumnString+ IsAutoSyncEnabled postgres.ColumnBool+ Version postgres.ColumnInteger+ DestinationConfig postgres.ColumnString+ SyncOptions postgres.ColumnString+ ProjectId postgres.ColumnString+ SubscriberId postgres.ColumnString+ ConnectionId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ SyncStatus postgres.ColumnString+ LastSyncJobId postgres.ColumnString+ LastSyncMessage postgres.ColumnString+ LastSyncedAt postgres.ColumnTimestampz+ ImportStatus postgres.ColumnString+ LastImportJobId postgres.ColumnString+ LastImportMessage postgres.ColumnString+ LastImportedAt postgres.ColumnTimestampz+ RemoveStatus postgres.ColumnString+ LastRemoveJobId postgres.ColumnString+ LastRemoveMessage postgres.ColumnString+ LastRemovedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type PkiSyncsTable struct {+ pkiSyncsTable++ EXCLUDED pkiSyncsTable+}++// AS creates new PkiSyncsTable with assigned alias+func (a PkiSyncsTable) AS(alias string) *PkiSyncsTable {+ return newPkiSyncsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new PkiSyncsTable with assigned schema name+func (a PkiSyncsTable) FromSchema(schemaName string) *PkiSyncsTable {+ return newPkiSyncsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new PkiSyncsTable with assigned table prefix+func (a PkiSyncsTable) WithPrefix(prefix string) *PkiSyncsTable {+ return newPkiSyncsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new PkiSyncsTable with assigned table suffix+func (a PkiSyncsTable) WithSuffix(suffix string) *PkiSyncsTable {+ return newPkiSyncsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newPkiSyncsTable(schemaName, tableName, alias string) *PkiSyncsTable {+ return &PkiSyncsTable{+ pkiSyncsTable: newPkiSyncsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newPkiSyncsTableImpl("", "excluded", ""),+ }+}++func newPkiSyncsTableImpl(schemaName, tableName, alias string) pkiSyncsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ DescriptionColumn = postgres.StringColumn("description")+ DestinationColumn = postgres.StringColumn("destination")+ IsAutoSyncEnabledColumn = postgres.BoolColumn("isAutoSyncEnabled")+ VersionColumn = postgres.IntegerColumn("version")+ DestinationConfigColumn = postgres.StringColumn("destinationConfig")+ SyncOptionsColumn = postgres.StringColumn("syncOptions")+ ProjectIdColumn = postgres.StringColumn("projectId")+ SubscriberIdColumn = postgres.StringColumn("subscriberId")+ ConnectionIdColumn = postgres.StringColumn("connectionId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ SyncStatusColumn = postgres.StringColumn("syncStatus")+ LastSyncJobIdColumn = postgres.StringColumn("lastSyncJobId")+ LastSyncMessageColumn = postgres.StringColumn("lastSyncMessage")+ LastSyncedAtColumn = postgres.TimestampzColumn("lastSyncedAt")+ ImportStatusColumn = postgres.StringColumn("importStatus")+ LastImportJobIdColumn = postgres.StringColumn("lastImportJobId")+ LastImportMessageColumn = postgres.StringColumn("lastImportMessage")+ LastImportedAtColumn = postgres.TimestampzColumn("lastImportedAt")+ RemoveStatusColumn = postgres.StringColumn("removeStatus")+ LastRemoveJobIdColumn = postgres.StringColumn("lastRemoveJobId")+ LastRemoveMessageColumn = postgres.StringColumn("lastRemoveMessage")+ LastRemovedAtColumn = postgres.TimestampzColumn("lastRemovedAt")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, DescriptionColumn, DestinationColumn, IsAutoSyncEnabledColumn, VersionColumn, DestinationConfigColumn, SyncOptionsColumn, ProjectIdColumn, SubscriberIdColumn, ConnectionIdColumn, CreatedAtColumn, UpdatedAtColumn, SyncStatusColumn, LastSyncJobIdColumn, LastSyncMessageColumn, LastSyncedAtColumn, ImportStatusColumn, LastImportJobIdColumn, LastImportMessageColumn, LastImportedAtColumn, RemoveStatusColumn, LastRemoveJobIdColumn, LastRemoveMessageColumn, LastRemovedAtColumn}+ mutableColumns = postgres.ColumnList{NameColumn, DescriptionColumn, DestinationColumn, IsAutoSyncEnabledColumn, VersionColumn, DestinationConfigColumn, SyncOptionsColumn, ProjectIdColumn, SubscriberIdColumn, ConnectionIdColumn, CreatedAtColumn, UpdatedAtColumn, SyncStatusColumn, LastSyncJobIdColumn, LastSyncMessageColumn, LastSyncedAtColumn, ImportStatusColumn, LastImportJobIdColumn, LastImportMessageColumn, LastImportedAtColumn, RemoveStatusColumn, LastRemoveJobIdColumn, LastRemoveMessageColumn, LastRemovedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsAutoSyncEnabledColumn, VersionColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return pkiSyncsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Description: DescriptionColumn,+ Destination: DestinationColumn,+ IsAutoSyncEnabled: IsAutoSyncEnabledColumn,+ Version: VersionColumn,+ DestinationConfig: DestinationConfigColumn,+ SyncOptions: SyncOptionsColumn,+ ProjectId: ProjectIdColumn,+ SubscriberId: SubscriberIdColumn,+ ConnectionId: ConnectionIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ SyncStatus: SyncStatusColumn,+ LastSyncJobId: LastSyncJobIdColumn,+ LastSyncMessage: LastSyncMessageColumn,+ LastSyncedAt: LastSyncedAtColumn,+ ImportStatus: ImportStatusColumn,+ LastImportJobId: LastImportJobIdColumn,+ LastImportMessage: LastImportMessageColumn,+ LastImportedAt: LastImportedAtColumn,+ RemoveStatus: RemoveStatusColumn,+ LastRemoveJobId: LastRemoveJobIdColumn,+ LastRemoveMessage: LastRemoveMessageColumn,+ LastRemovedAt: LastRemovedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/project_bots.go b/backend-go/internal/database/pg/gen/table/project_bots.gonew file mode 100644index 0000000000..7ff7a65a58--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/project_bots.go@@ -0,0 +1,120 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ProjectBots = newProjectBotsTable("public", "project_bots", "")++type projectBotsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ IsActive postgres.ColumnBool+ EncryptedPrivateKey postgres.ColumnString+ PublicKey postgres.ColumnString+ Iv postgres.ColumnString+ Tag postgres.ColumnString+ Algorithm postgres.ColumnString+ KeyEncoding postgres.ColumnString+ EncryptedProjectKey postgres.ColumnString+ EncryptedProjectKeyNonce postgres.ColumnString+ ProjectId postgres.ColumnString+ SenderId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ProjectBotsTable struct {+ projectBotsTable++ EXCLUDED projectBotsTable+}++// AS creates new ProjectBotsTable with assigned alias+func (a ProjectBotsTable) AS(alias string) *ProjectBotsTable {+ return newProjectBotsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ProjectBotsTable with assigned schema name+func (a ProjectBotsTable) FromSchema(schemaName string) *ProjectBotsTable {+ return newProjectBotsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ProjectBotsTable with assigned table prefix+func (a ProjectBotsTable) WithPrefix(prefix string) *ProjectBotsTable {+ return newProjectBotsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ProjectBotsTable with assigned table suffix+func (a ProjectBotsTable) WithSuffix(suffix string) *ProjectBotsTable {+ return newProjectBotsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newProjectBotsTable(schemaName, tableName, alias string) *ProjectBotsTable {+ return &ProjectBotsTable{+ projectBotsTable: newProjectBotsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newProjectBotsTableImpl("", "excluded", ""),+ }+}++func newProjectBotsTableImpl(schemaName, tableName, alias string) projectBotsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ IsActiveColumn = postgres.BoolColumn("isActive")+ EncryptedPrivateKeyColumn = postgres.StringColumn("encryptedPrivateKey")+ PublicKeyColumn = postgres.StringColumn("publicKey")+ IvColumn = postgres.StringColumn("iv")+ TagColumn = postgres.StringColumn("tag")+ AlgorithmColumn = postgres.StringColumn("algorithm")+ KeyEncodingColumn = postgres.StringColumn("keyEncoding")+ EncryptedProjectKeyColumn = postgres.StringColumn("encryptedProjectKey")+ EncryptedProjectKeyNonceColumn = postgres.StringColumn("encryptedProjectKeyNonce")+ ProjectIdColumn = postgres.StringColumn("projectId")+ SenderIdColumn = postgres.StringColumn("senderId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, IsActiveColumn, EncryptedPrivateKeyColumn, PublicKeyColumn, IvColumn, TagColumn, AlgorithmColumn, KeyEncodingColumn, EncryptedProjectKeyColumn, EncryptedProjectKeyNonceColumn, ProjectIdColumn, SenderIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{NameColumn, IsActiveColumn, EncryptedPrivateKeyColumn, PublicKeyColumn, IvColumn, TagColumn, AlgorithmColumn, KeyEncodingColumn, EncryptedProjectKeyColumn, EncryptedProjectKeyNonceColumn, ProjectIdColumn, SenderIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsActiveColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return projectBotsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ IsActive: IsActiveColumn,+ EncryptedPrivateKey: EncryptedPrivateKeyColumn,+ PublicKey: PublicKeyColumn,+ Iv: IvColumn,+ Tag: TagColumn,+ Algorithm: AlgorithmColumn,+ KeyEncoding: KeyEncodingColumn,+ EncryptedProjectKey: EncryptedProjectKeyColumn,+ EncryptedProjectKeyNonce: EncryptedProjectKeyNonceColumn,+ ProjectId: ProjectIdColumn,+ SenderId: SenderIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/project_environments.go b/backend-go/internal/database/pg/gen/table/project_environments.gonew file mode 100644index 0000000000..fa192d0584--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/project_environments.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ProjectEnvironments = newProjectEnvironmentsTable("public", "project_environments", "")++type projectEnvironmentsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Slug postgres.ColumnString+ Position postgres.ColumnInteger+ ProjectId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ProjectEnvironmentsTable struct {+ projectEnvironmentsTable++ EXCLUDED projectEnvironmentsTable+}++// AS creates new ProjectEnvironmentsTable with assigned alias+func (a ProjectEnvironmentsTable) AS(alias string) *ProjectEnvironmentsTable {+ return newProjectEnvironmentsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ProjectEnvironmentsTable with assigned schema name+func (a ProjectEnvironmentsTable) FromSchema(schemaName string) *ProjectEnvironmentsTable {+ return newProjectEnvironmentsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ProjectEnvironmentsTable with assigned table prefix+func (a ProjectEnvironmentsTable) WithPrefix(prefix string) *ProjectEnvironmentsTable {+ return newProjectEnvironmentsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ProjectEnvironmentsTable with assigned table suffix+func (a ProjectEnvironmentsTable) WithSuffix(suffix string) *ProjectEnvironmentsTable {+ return newProjectEnvironmentsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newProjectEnvironmentsTable(schemaName, tableName, alias string) *ProjectEnvironmentsTable {+ return &ProjectEnvironmentsTable{+ projectEnvironmentsTable: newProjectEnvironmentsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newProjectEnvironmentsTableImpl("", "excluded", ""),+ }+}++func newProjectEnvironmentsTableImpl(schemaName, tableName, alias string) projectEnvironmentsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ SlugColumn = postgres.StringColumn("slug")+ PositionColumn = postgres.IntegerColumn("position")+ ProjectIdColumn = postgres.StringColumn("projectId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, SlugColumn, PositionColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{NameColumn, SlugColumn, PositionColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return projectEnvironmentsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Slug: SlugColumn,+ Position: PositionColumn,+ ProjectId: ProjectIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/project_gateways.go b/backend-go/internal/database/pg/gen/table/project_gateways.gonew file mode 100644index 0000000000..ef7f053e86--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/project_gateways.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ProjectGateways = newProjectGatewaysTable("public", "project_gateways", "")++type projectGatewaysTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ GatewayId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ProjectGatewaysTable struct {+ projectGatewaysTable++ EXCLUDED projectGatewaysTable+}++// AS creates new ProjectGatewaysTable with assigned alias+func (a ProjectGatewaysTable) AS(alias string) *ProjectGatewaysTable {+ return newProjectGatewaysTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ProjectGatewaysTable with assigned schema name+func (a ProjectGatewaysTable) FromSchema(schemaName string) *ProjectGatewaysTable {+ return newProjectGatewaysTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ProjectGatewaysTable with assigned table prefix+func (a ProjectGatewaysTable) WithPrefix(prefix string) *ProjectGatewaysTable {+ return newProjectGatewaysTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ProjectGatewaysTable with assigned table suffix+func (a ProjectGatewaysTable) WithSuffix(suffix string) *ProjectGatewaysTable {+ return newProjectGatewaysTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newProjectGatewaysTable(schemaName, tableName, alias string) *ProjectGatewaysTable {+ return &ProjectGatewaysTable{+ projectGatewaysTable: newProjectGatewaysTableImpl(schemaName, tableName, alias),+ EXCLUDED: newProjectGatewaysTableImpl("", "excluded", ""),+ }+}++func newProjectGatewaysTableImpl(schemaName, tableName, alias string) projectGatewaysTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ GatewayIdColumn = postgres.StringColumn("gatewayId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, GatewayIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, GatewayIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return projectGatewaysTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ GatewayId: GatewayIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/project_keys.go b/backend-go/internal/database/pg/gen/table/project_keys.gonew file mode 100644index 0000000000..869aaa8a4f--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/project_keys.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ProjectKeys = newProjectKeysTable("public", "project_keys", "")++type projectKeysTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ EncryptedKey postgres.ColumnString+ Nonce postgres.ColumnString+ ReceiverId postgres.ColumnString+ SenderId postgres.ColumnString+ ProjectId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ProjectKeysTable struct {+ projectKeysTable++ EXCLUDED projectKeysTable+}++// AS creates new ProjectKeysTable with assigned alias+func (a ProjectKeysTable) AS(alias string) *ProjectKeysTable {+ return newProjectKeysTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ProjectKeysTable with assigned schema name+func (a ProjectKeysTable) FromSchema(schemaName string) *ProjectKeysTable {+ return newProjectKeysTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ProjectKeysTable with assigned table prefix+func (a ProjectKeysTable) WithPrefix(prefix string) *ProjectKeysTable {+ return newProjectKeysTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ProjectKeysTable with assigned table suffix+func (a ProjectKeysTable) WithSuffix(suffix string) *ProjectKeysTable {+ return newProjectKeysTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newProjectKeysTable(schemaName, tableName, alias string) *ProjectKeysTable {+ return &ProjectKeysTable{+ projectKeysTable: newProjectKeysTableImpl(schemaName, tableName, alias),+ EXCLUDED: newProjectKeysTableImpl("", "excluded", ""),+ }+}++func newProjectKeysTableImpl(schemaName, tableName, alias string) projectKeysTable {+ var (+ IDColumn = postgres.StringColumn("id")+ EncryptedKeyColumn = postgres.StringColumn("encryptedKey")+ NonceColumn = postgres.StringColumn("nonce")+ ReceiverIdColumn = postgres.StringColumn("receiverId")+ SenderIdColumn = postgres.StringColumn("senderId")+ ProjectIdColumn = postgres.StringColumn("projectId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, EncryptedKeyColumn, NonceColumn, ReceiverIdColumn, SenderIdColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{EncryptedKeyColumn, NonceColumn, ReceiverIdColumn, SenderIdColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return projectKeysTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ EncryptedKey: EncryptedKeyColumn,+ Nonce: NonceColumn,+ ReceiverId: ReceiverIdColumn,+ SenderId: SenderIdColumn,+ ProjectId: ProjectIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/project_microsoft_teams_configs.go b/backend-go/internal/database/pg/gen/table/project_microsoft_teams_configs.gonew file mode 100644index 0000000000..22b9f0de71--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/project_microsoft_teams_configs.go@@ -0,0 +1,102 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ProjectMicrosoftTeamsConfigs = newProjectMicrosoftTeamsConfigsTable("public", "project_microsoft_teams_configs", "")++type projectMicrosoftTeamsConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ MicrosoftTeamsIntegrationId postgres.ColumnString+ IsAccessRequestNotificationEnabled postgres.ColumnBool+ IsSecretRequestNotificationEnabled postgres.ColumnBool+ AccessRequestChannels postgres.ColumnString+ SecretRequestChannels postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ProjectMicrosoftTeamsConfigsTable struct {+ projectMicrosoftTeamsConfigsTable++ EXCLUDED projectMicrosoftTeamsConfigsTable+}++// AS creates new ProjectMicrosoftTeamsConfigsTable with assigned alias+func (a ProjectMicrosoftTeamsConfigsTable) AS(alias string) *ProjectMicrosoftTeamsConfigsTable {+ return newProjectMicrosoftTeamsConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ProjectMicrosoftTeamsConfigsTable with assigned schema name+func (a ProjectMicrosoftTeamsConfigsTable) FromSchema(schemaName string) *ProjectMicrosoftTeamsConfigsTable {+ return newProjectMicrosoftTeamsConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ProjectMicrosoftTeamsConfigsTable with assigned table prefix+func (a ProjectMicrosoftTeamsConfigsTable) WithPrefix(prefix string) *ProjectMicrosoftTeamsConfigsTable {+ return newProjectMicrosoftTeamsConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ProjectMicrosoftTeamsConfigsTable with assigned table suffix+func (a ProjectMicrosoftTeamsConfigsTable) WithSuffix(suffix string) *ProjectMicrosoftTeamsConfigsTable {+ return newProjectMicrosoftTeamsConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newProjectMicrosoftTeamsConfigsTable(schemaName, tableName, alias string) *ProjectMicrosoftTeamsConfigsTable {+ return &ProjectMicrosoftTeamsConfigsTable{+ projectMicrosoftTeamsConfigsTable: newProjectMicrosoftTeamsConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newProjectMicrosoftTeamsConfigsTableImpl("", "excluded", ""),+ }+}++func newProjectMicrosoftTeamsConfigsTableImpl(schemaName, tableName, alias string) projectMicrosoftTeamsConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ MicrosoftTeamsIntegrationIdColumn = postgres.StringColumn("microsoftTeamsIntegrationId")+ IsAccessRequestNotificationEnabledColumn = postgres.BoolColumn("isAccessRequestNotificationEnabled")+ IsSecretRequestNotificationEnabledColumn = postgres.BoolColumn("isSecretRequestNotificationEnabled")+ AccessRequestChannelsColumn = postgres.StringColumn("accessRequestChannels")+ SecretRequestChannelsColumn = postgres.StringColumn("secretRequestChannels")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, MicrosoftTeamsIntegrationIdColumn, IsAccessRequestNotificationEnabledColumn, IsSecretRequestNotificationEnabledColumn, AccessRequestChannelsColumn, SecretRequestChannelsColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, MicrosoftTeamsIntegrationIdColumn, IsAccessRequestNotificationEnabledColumn, IsSecretRequestNotificationEnabledColumn, AccessRequestChannelsColumn, SecretRequestChannelsColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsAccessRequestNotificationEnabledColumn, IsSecretRequestNotificationEnabledColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return projectMicrosoftTeamsConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ MicrosoftTeamsIntegrationId: MicrosoftTeamsIntegrationIdColumn,+ IsAccessRequestNotificationEnabled: IsAccessRequestNotificationEnabledColumn,+ IsSecretRequestNotificationEnabled: IsSecretRequestNotificationEnabledColumn,+ AccessRequestChannels: AccessRequestChannelsColumn,+ SecretRequestChannels: SecretRequestChannelsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/project_slack_configs.go b/backend-go/internal/database/pg/gen/table/project_slack_configs.gonew file mode 100644index 0000000000..a4e0642b8a--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/project_slack_configs.go@@ -0,0 +1,108 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ProjectSlackConfigs = newProjectSlackConfigsTable("public", "project_slack_configs", "")++type projectSlackConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ SlackIntegrationId postgres.ColumnString+ IsAccessRequestNotificationEnabled postgres.ColumnBool+ AccessRequestChannels postgres.ColumnString+ IsSecretRequestNotificationEnabled postgres.ColumnBool+ SecretRequestChannels postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IsSecretSyncErrorNotificationEnabled postgres.ColumnBool+ SecretSyncErrorChannels postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ProjectSlackConfigsTable struct {+ projectSlackConfigsTable++ EXCLUDED projectSlackConfigsTable+}++// AS creates new ProjectSlackConfigsTable with assigned alias+func (a ProjectSlackConfigsTable) AS(alias string) *ProjectSlackConfigsTable {+ return newProjectSlackConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ProjectSlackConfigsTable with assigned schema name+func (a ProjectSlackConfigsTable) FromSchema(schemaName string) *ProjectSlackConfigsTable {+ return newProjectSlackConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ProjectSlackConfigsTable with assigned table prefix+func (a ProjectSlackConfigsTable) WithPrefix(prefix string) *ProjectSlackConfigsTable {+ return newProjectSlackConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ProjectSlackConfigsTable with assigned table suffix+func (a ProjectSlackConfigsTable) WithSuffix(suffix string) *ProjectSlackConfigsTable {+ return newProjectSlackConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newProjectSlackConfigsTable(schemaName, tableName, alias string) *ProjectSlackConfigsTable {+ return &ProjectSlackConfigsTable{+ projectSlackConfigsTable: newProjectSlackConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newProjectSlackConfigsTableImpl("", "excluded", ""),+ }+}++func newProjectSlackConfigsTableImpl(schemaName, tableName, alias string) projectSlackConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ SlackIntegrationIdColumn = postgres.StringColumn("slackIntegrationId")+ IsAccessRequestNotificationEnabledColumn = postgres.BoolColumn("isAccessRequestNotificationEnabled")+ AccessRequestChannelsColumn = postgres.StringColumn("accessRequestChannels")+ IsSecretRequestNotificationEnabledColumn = postgres.BoolColumn("isSecretRequestNotificationEnabled")+ SecretRequestChannelsColumn = postgres.StringColumn("secretRequestChannels")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IsSecretSyncErrorNotificationEnabledColumn = postgres.BoolColumn("isSecretSyncErrorNotificationEnabled")+ SecretSyncErrorChannelsColumn = postgres.StringColumn("secretSyncErrorChannels")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, SlackIntegrationIdColumn, IsAccessRequestNotificationEnabledColumn, AccessRequestChannelsColumn, IsSecretRequestNotificationEnabledColumn, SecretRequestChannelsColumn, CreatedAtColumn, UpdatedAtColumn, IsSecretSyncErrorNotificationEnabledColumn, SecretSyncErrorChannelsColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, SlackIntegrationIdColumn, IsAccessRequestNotificationEnabledColumn, AccessRequestChannelsColumn, IsSecretRequestNotificationEnabledColumn, SecretRequestChannelsColumn, CreatedAtColumn, UpdatedAtColumn, IsSecretSyncErrorNotificationEnabledColumn, SecretSyncErrorChannelsColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsAccessRequestNotificationEnabledColumn, AccessRequestChannelsColumn, IsSecretRequestNotificationEnabledColumn, SecretRequestChannelsColumn, CreatedAtColumn, UpdatedAtColumn, IsSecretSyncErrorNotificationEnabledColumn, SecretSyncErrorChannelsColumn}+ )++ return projectSlackConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ SlackIntegrationId: SlackIntegrationIdColumn,+ IsAccessRequestNotificationEnabled: IsAccessRequestNotificationEnabledColumn,+ AccessRequestChannels: AccessRequestChannelsColumn,+ IsSecretRequestNotificationEnabled: IsSecretRequestNotificationEnabledColumn,+ SecretRequestChannels: SecretRequestChannelsColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IsSecretSyncErrorNotificationEnabled: IsSecretSyncErrorNotificationEnabledColumn,+ SecretSyncErrorChannels: SecretSyncErrorChannelsColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/project_split_backfill_ids.go b/backend-go/internal/database/pg/gen/table/project_split_backfill_ids.gonew file mode 100644index 0000000000..d3d17c510a--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/project_split_backfill_ids.go@@ -0,0 +1,87 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ProjectSplitBackfillIds = newProjectSplitBackfillIdsTable("public", "project_split_backfill_ids", "")++type projectSplitBackfillIdsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ SourceProjectId postgres.ColumnString+ DestinationProjectType postgres.ColumnString+ DestinationProjectId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ProjectSplitBackfillIdsTable struct {+ projectSplitBackfillIdsTable++ EXCLUDED projectSplitBackfillIdsTable+}++// AS creates new ProjectSplitBackfillIdsTable with assigned alias+func (a ProjectSplitBackfillIdsTable) AS(alias string) *ProjectSplitBackfillIdsTable {+ return newProjectSplitBackfillIdsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ProjectSplitBackfillIdsTable with assigned schema name+func (a ProjectSplitBackfillIdsTable) FromSchema(schemaName string) *ProjectSplitBackfillIdsTable {+ return newProjectSplitBackfillIdsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ProjectSplitBackfillIdsTable with assigned table prefix+func (a ProjectSplitBackfillIdsTable) WithPrefix(prefix string) *ProjectSplitBackfillIdsTable {+ return newProjectSplitBackfillIdsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ProjectSplitBackfillIdsTable with assigned table suffix+func (a ProjectSplitBackfillIdsTable) WithSuffix(suffix string) *ProjectSplitBackfillIdsTable {+ return newProjectSplitBackfillIdsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newProjectSplitBackfillIdsTable(schemaName, tableName, alias string) *ProjectSplitBackfillIdsTable {+ return &ProjectSplitBackfillIdsTable{+ projectSplitBackfillIdsTable: newProjectSplitBackfillIdsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newProjectSplitBackfillIdsTableImpl("", "excluded", ""),+ }+}++func newProjectSplitBackfillIdsTableImpl(schemaName, tableName, alias string) projectSplitBackfillIdsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ SourceProjectIdColumn = postgres.StringColumn("sourceProjectId")+ DestinationProjectTypeColumn = postgres.StringColumn("destinationProjectType")+ DestinationProjectIdColumn = postgres.StringColumn("destinationProjectId")+ allColumns = postgres.ColumnList{IDColumn, SourceProjectIdColumn, DestinationProjectTypeColumn, DestinationProjectIdColumn}+ mutableColumns = postgres.ColumnList{SourceProjectIdColumn, DestinationProjectTypeColumn, DestinationProjectIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return projectSplitBackfillIdsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ SourceProjectId: SourceProjectIdColumn,+ DestinationProjectType: DestinationProjectTypeColumn,+ DestinationProjectId: DestinationProjectIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/project_ssh_configs.go b/backend-go/internal/database/pg/gen/table/project_ssh_configs.gonew file mode 100644index 0000000000..7b5052b244--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/project_ssh_configs.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ProjectSSHConfigs = newProjectSSHConfigsTable("public", "project_ssh_configs", "")++type projectSSHConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ProjectId postgres.ColumnString+ DefaultUserSshCaId postgres.ColumnString+ DefaultHostSshCaId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ProjectSSHConfigsTable struct {+ projectSSHConfigsTable++ EXCLUDED projectSSHConfigsTable+}++// AS creates new ProjectSSHConfigsTable with assigned alias+func (a ProjectSSHConfigsTable) AS(alias string) *ProjectSSHConfigsTable {+ return newProjectSSHConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ProjectSSHConfigsTable with assigned schema name+func (a ProjectSSHConfigsTable) FromSchema(schemaName string) *ProjectSSHConfigsTable {+ return newProjectSSHConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ProjectSSHConfigsTable with assigned table prefix+func (a ProjectSSHConfigsTable) WithPrefix(prefix string) *ProjectSSHConfigsTable {+ return newProjectSSHConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ProjectSSHConfigsTable with assigned table suffix+func (a ProjectSSHConfigsTable) WithSuffix(suffix string) *ProjectSSHConfigsTable {+ return newProjectSSHConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newProjectSSHConfigsTable(schemaName, tableName, alias string) *ProjectSSHConfigsTable {+ return &ProjectSSHConfigsTable{+ projectSSHConfigsTable: newProjectSSHConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newProjectSSHConfigsTableImpl("", "excluded", ""),+ }+}++func newProjectSSHConfigsTableImpl(schemaName, tableName, alias string) projectSSHConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ProjectIdColumn = postgres.StringColumn("projectId")+ DefaultUserSshCaIdColumn = postgres.StringColumn("defaultUserSshCaId")+ DefaultHostSshCaIdColumn = postgres.StringColumn("defaultHostSshCaId")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, DefaultUserSshCaIdColumn, DefaultHostSshCaIdColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, DefaultUserSshCaIdColumn, DefaultHostSshCaIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return projectSSHConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ProjectId: ProjectIdColumn,+ DefaultUserSshCaId: DefaultUserSshCaIdColumn,+ DefaultHostSshCaId: DefaultHostSshCaIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/project_template_group_memberships.go b/backend-go/internal/database/pg/gen/table/project_template_group_memberships.gonew file mode 100644index 0000000000..a68d7d280f--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/project_template_group_memberships.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ProjectTemplateGroupMemberships = newProjectTemplateGroupMembershipsTable("public", "project_template_group_memberships", "")++type projectTemplateGroupMembershipsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectTemplateId postgres.ColumnString+ GroupId postgres.ColumnString+ Roles postgres.ColumnStringArray+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ProjectTemplateGroupMembershipsTable struct {+ projectTemplateGroupMembershipsTable++ EXCLUDED projectTemplateGroupMembershipsTable+}++// AS creates new ProjectTemplateGroupMembershipsTable with assigned alias+func (a ProjectTemplateGroupMembershipsTable) AS(alias string) *ProjectTemplateGroupMembershipsTable {+ return newProjectTemplateGroupMembershipsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ProjectTemplateGroupMembershipsTable with assigned schema name+func (a ProjectTemplateGroupMembershipsTable) FromSchema(schemaName string) *ProjectTemplateGroupMembershipsTable {+ return newProjectTemplateGroupMembershipsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ProjectTemplateGroupMembershipsTable with assigned table prefix+func (a ProjectTemplateGroupMembershipsTable) WithPrefix(prefix string) *ProjectTemplateGroupMembershipsTable {+ return newProjectTemplateGroupMembershipsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ProjectTemplateGroupMembershipsTable with assigned table suffix+func (a ProjectTemplateGroupMembershipsTable) WithSuffix(suffix string) *ProjectTemplateGroupMembershipsTable {+ return newProjectTemplateGroupMembershipsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newProjectTemplateGroupMembershipsTable(schemaName, tableName, alias string) *ProjectTemplateGroupMembershipsTable {+ return &ProjectTemplateGroupMembershipsTable{+ projectTemplateGroupMembershipsTable: newProjectTemplateGroupMembershipsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newProjectTemplateGroupMembershipsTableImpl("", "excluded", ""),+ }+}++func newProjectTemplateGroupMembershipsTableImpl(schemaName, tableName, alias string) projectTemplateGroupMembershipsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectTemplateIdColumn = postgres.StringColumn("projectTemplateId")+ GroupIdColumn = postgres.StringColumn("groupId")+ RolesColumn = postgres.StringArrayColumn("roles")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ProjectTemplateIdColumn, GroupIdColumn, RolesColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ProjectTemplateIdColumn, GroupIdColumn, RolesColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return projectTemplateGroupMembershipsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectTemplateId: ProjectTemplateIdColumn,+ GroupId: GroupIdColumn,+ Roles: RolesColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/project_template_identity_memberships.go b/backend-go/internal/database/pg/gen/table/project_template_identity_memberships.gonew file mode 100644index 0000000000..81cd9e5a8e--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/project_template_identity_memberships.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ProjectTemplateIdentityMemberships = newProjectTemplateIdentityMembershipsTable("public", "project_template_identity_memberships", "")++type projectTemplateIdentityMembershipsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectTemplateId postgres.ColumnString+ IdentityId postgres.ColumnString+ Roles postgres.ColumnStringArray+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ProjectTemplateIdentityMembershipsTable struct {+ projectTemplateIdentityMembershipsTable++ EXCLUDED projectTemplateIdentityMembershipsTable+}++// AS creates new ProjectTemplateIdentityMembershipsTable with assigned alias+func (a ProjectTemplateIdentityMembershipsTable) AS(alias string) *ProjectTemplateIdentityMembershipsTable {+ return newProjectTemplateIdentityMembershipsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ProjectTemplateIdentityMembershipsTable with assigned schema name+func (a ProjectTemplateIdentityMembershipsTable) FromSchema(schemaName string) *ProjectTemplateIdentityMembershipsTable {+ return newProjectTemplateIdentityMembershipsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ProjectTemplateIdentityMembershipsTable with assigned table prefix+func (a ProjectTemplateIdentityMembershipsTable) WithPrefix(prefix string) *ProjectTemplateIdentityMembershipsTable {+ return newProjectTemplateIdentityMembershipsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ProjectTemplateIdentityMembershipsTable with assigned table suffix+func (a ProjectTemplateIdentityMembershipsTable) WithSuffix(suffix string) *ProjectTemplateIdentityMembershipsTable {+ return newProjectTemplateIdentityMembershipsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newProjectTemplateIdentityMembershipsTable(schemaName, tableName, alias string) *ProjectTemplateIdentityMembershipsTable {+ return &ProjectTemplateIdentityMembershipsTable{+ projectTemplateIdentityMembershipsTable: newProjectTemplateIdentityMembershipsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newProjectTemplateIdentityMembershipsTableImpl("", "excluded", ""),+ }+}++func newProjectTemplateIdentityMembershipsTableImpl(schemaName, tableName, alias string) projectTemplateIdentityMembershipsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectTemplateIdColumn = postgres.StringColumn("projectTemplateId")+ IdentityIdColumn = postgres.StringColumn("identityId")+ RolesColumn = postgres.StringArrayColumn("roles")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ProjectTemplateIdColumn, IdentityIdColumn, RolesColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ProjectTemplateIdColumn, IdentityIdColumn, RolesColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return projectTemplateIdentityMembershipsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectTemplateId: ProjectTemplateIdColumn,+ IdentityId: IdentityIdColumn,+ Roles: RolesColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/project_template_user_memberships.go b/backend-go/internal/database/pg/gen/table/project_template_user_memberships.gonew file mode 100644index 0000000000..38580fe18b--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/project_template_user_memberships.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ProjectTemplateUserMemberships = newProjectTemplateUserMembershipsTable("public", "project_template_user_memberships", "")++type projectTemplateUserMembershipsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectTemplateId postgres.ColumnString+ MembershipId postgres.ColumnString+ Roles postgres.ColumnStringArray+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ProjectTemplateUserMembershipsTable struct {+ projectTemplateUserMembershipsTable++ EXCLUDED projectTemplateUserMembershipsTable+}++// AS creates new ProjectTemplateUserMembershipsTable with assigned alias+func (a ProjectTemplateUserMembershipsTable) AS(alias string) *ProjectTemplateUserMembershipsTable {+ return newProjectTemplateUserMembershipsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ProjectTemplateUserMembershipsTable with assigned schema name+func (a ProjectTemplateUserMembershipsTable) FromSchema(schemaName string) *ProjectTemplateUserMembershipsTable {+ return newProjectTemplateUserMembershipsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ProjectTemplateUserMembershipsTable with assigned table prefix+func (a ProjectTemplateUserMembershipsTable) WithPrefix(prefix string) *ProjectTemplateUserMembershipsTable {+ return newProjectTemplateUserMembershipsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ProjectTemplateUserMembershipsTable with assigned table suffix+func (a ProjectTemplateUserMembershipsTable) WithSuffix(suffix string) *ProjectTemplateUserMembershipsTable {+ return newProjectTemplateUserMembershipsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newProjectTemplateUserMembershipsTable(schemaName, tableName, alias string) *ProjectTemplateUserMembershipsTable {+ return &ProjectTemplateUserMembershipsTable{+ projectTemplateUserMembershipsTable: newProjectTemplateUserMembershipsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newProjectTemplateUserMembershipsTableImpl("", "excluded", ""),+ }+}++func newProjectTemplateUserMembershipsTableImpl(schemaName, tableName, alias string) projectTemplateUserMembershipsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectTemplateIdColumn = postgres.StringColumn("projectTemplateId")+ MembershipIdColumn = postgres.StringColumn("membershipId")+ RolesColumn = postgres.StringArrayColumn("roles")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ProjectTemplateIdColumn, MembershipIdColumn, RolesColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ProjectTemplateIdColumn, MembershipIdColumn, RolesColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return projectTemplateUserMembershipsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectTemplateId: ProjectTemplateIdColumn,+ MembershipId: MembershipIdColumn,+ Roles: RolesColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/project_templates.go b/backend-go/internal/database/pg/gen/table/project_templates.gonew file mode 100644index 0000000000..d69fee6f88--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/project_templates.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ProjectTemplates = newProjectTemplatesTable("public", "project_templates", "")++type projectTemplatesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Description postgres.ColumnString+ Roles postgres.ColumnString+ Environments postgres.ColumnString+ OrgId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ Type postgres.ColumnString+ ProjectManagedIdentities postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ProjectTemplatesTable struct {+ projectTemplatesTable++ EXCLUDED projectTemplatesTable+}++// AS creates new ProjectTemplatesTable with assigned alias+func (a ProjectTemplatesTable) AS(alias string) *ProjectTemplatesTable {+ return newProjectTemplatesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ProjectTemplatesTable with assigned schema name+func (a ProjectTemplatesTable) FromSchema(schemaName string) *ProjectTemplatesTable {+ return newProjectTemplatesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ProjectTemplatesTable with assigned table prefix+func (a ProjectTemplatesTable) WithPrefix(prefix string) *ProjectTemplatesTable {+ return newProjectTemplatesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ProjectTemplatesTable with assigned table suffix+func (a ProjectTemplatesTable) WithSuffix(suffix string) *ProjectTemplatesTable {+ return newProjectTemplatesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newProjectTemplatesTable(schemaName, tableName, alias string) *ProjectTemplatesTable {+ return &ProjectTemplatesTable{+ projectTemplatesTable: newProjectTemplatesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newProjectTemplatesTableImpl("", "excluded", ""),+ }+}++func newProjectTemplatesTableImpl(schemaName, tableName, alias string) projectTemplatesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ DescriptionColumn = postgres.StringColumn("description")+ RolesColumn = postgres.StringColumn("roles")+ EnvironmentsColumn = postgres.StringColumn("environments")+ OrgIdColumn = postgres.StringColumn("orgId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ TypeColumn = postgres.StringColumn("type")+ ProjectManagedIdentitiesColumn = postgres.StringColumn("projectManagedIdentities")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, DescriptionColumn, RolesColumn, EnvironmentsColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, TypeColumn, ProjectManagedIdentitiesColumn}+ mutableColumns = postgres.ColumnList{NameColumn, DescriptionColumn, RolesColumn, EnvironmentsColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, TypeColumn, ProjectManagedIdentitiesColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, TypeColumn}+ )++ return projectTemplatesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Description: DescriptionColumn,+ Roles: RolesColumn,+ Environments: EnvironmentsColumn,+ OrgId: OrgIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ Type: TypeColumn,+ ProjectManagedIdentities: ProjectManagedIdentitiesColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/projects.go b/backend-go/internal/database/pg/gen/table/projects.gonew file mode 100644index 0000000000..c18aaf6ae4--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/projects.go@@ -0,0 +1,144 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var Projects = newProjectsTable("public", "projects", "")++type projectsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Slug postgres.ColumnString+ AutoCapitalization postgres.ColumnBool+ OrgId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ Version postgres.ColumnInteger+ UpgradeStatus postgres.ColumnString+ PitVersionLimit postgres.ColumnInteger+ KmsCertificateKeyId postgres.ColumnString+ AuditLogsRetentionDays postgres.ColumnInteger+ KmsSecretManagerKeyId postgres.ColumnString+ KmsSecretManagerEncryptedDataKey postgres.ColumnBytea+ Description postgres.ColumnString+ Type postgres.ColumnString+ EnforceCapitalization postgres.ColumnBool+ HasDeleteProtection postgres.ColumnBool+ SecretSharing postgres.ColumnBool+ ShowSnapshotsLegacy postgres.ColumnBool+ DefaultProduct postgres.ColumnString+ SecretDetectionIgnoreValues postgres.ColumnStringArray+ EnforceEncryptedSecretManagerSecretMetadata postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ProjectsTable struct {+ projectsTable++ EXCLUDED projectsTable+}++// AS creates new ProjectsTable with assigned alias+func (a ProjectsTable) AS(alias string) *ProjectsTable {+ return newProjectsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ProjectsTable with assigned schema name+func (a ProjectsTable) FromSchema(schemaName string) *ProjectsTable {+ return newProjectsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ProjectsTable with assigned table prefix+func (a ProjectsTable) WithPrefix(prefix string) *ProjectsTable {+ return newProjectsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ProjectsTable with assigned table suffix+func (a ProjectsTable) WithSuffix(suffix string) *ProjectsTable {+ return newProjectsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newProjectsTable(schemaName, tableName, alias string) *ProjectsTable {+ return &ProjectsTable{+ projectsTable: newProjectsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newProjectsTableImpl("", "excluded", ""),+ }+}++func newProjectsTableImpl(schemaName, tableName, alias string) projectsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ SlugColumn = postgres.StringColumn("slug")+ AutoCapitalizationColumn = postgres.BoolColumn("autoCapitalization")+ OrgIdColumn = postgres.StringColumn("orgId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ VersionColumn = postgres.IntegerColumn("version")+ UpgradeStatusColumn = postgres.StringColumn("upgradeStatus")+ PitVersionLimitColumn = postgres.IntegerColumn("pitVersionLimit")+ KmsCertificateKeyIdColumn = postgres.StringColumn("kmsCertificateKeyId")+ AuditLogsRetentionDaysColumn = postgres.IntegerColumn("auditLogsRetentionDays")+ KmsSecretManagerKeyIdColumn = postgres.StringColumn("kmsSecretManagerKeyId")+ KmsSecretManagerEncryptedDataKeyColumn = postgres.ByteaColumn("kmsSecretManagerEncryptedDataKey")+ DescriptionColumn = postgres.StringColumn("description")+ TypeColumn = postgres.StringColumn("type")+ EnforceCapitalizationColumn = postgres.BoolColumn("enforceCapitalization")+ HasDeleteProtectionColumn = postgres.BoolColumn("hasDeleteProtection")+ SecretSharingColumn = postgres.BoolColumn("secretSharing")+ ShowSnapshotsLegacyColumn = postgres.BoolColumn("showSnapshotsLegacy")+ DefaultProductColumn = postgres.StringColumn("defaultProduct")+ SecretDetectionIgnoreValuesColumn = postgres.StringArrayColumn("secretDetectionIgnoreValues")+ EnforceEncryptedSecretManagerSecretMetadataColumn = postgres.BoolColumn("enforceEncryptedSecretManagerSecretMetadata")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, SlugColumn, AutoCapitalizationColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, VersionColumn, UpgradeStatusColumn, PitVersionLimitColumn, KmsCertificateKeyIdColumn, AuditLogsRetentionDaysColumn, KmsSecretManagerKeyIdColumn, KmsSecretManagerEncryptedDataKeyColumn, DescriptionColumn, TypeColumn, EnforceCapitalizationColumn, HasDeleteProtectionColumn, SecretSharingColumn, ShowSnapshotsLegacyColumn, DefaultProductColumn, SecretDetectionIgnoreValuesColumn, EnforceEncryptedSecretManagerSecretMetadataColumn}+ mutableColumns = postgres.ColumnList{NameColumn, SlugColumn, AutoCapitalizationColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, VersionColumn, UpgradeStatusColumn, PitVersionLimitColumn, KmsCertificateKeyIdColumn, AuditLogsRetentionDaysColumn, KmsSecretManagerKeyIdColumn, KmsSecretManagerEncryptedDataKeyColumn, DescriptionColumn, TypeColumn, EnforceCapitalizationColumn, HasDeleteProtectionColumn, SecretSharingColumn, ShowSnapshotsLegacyColumn, DefaultProductColumn, SecretDetectionIgnoreValuesColumn, EnforceEncryptedSecretManagerSecretMetadataColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AutoCapitalizationColumn, CreatedAtColumn, UpdatedAtColumn, VersionColumn, PitVersionLimitColumn, EnforceCapitalizationColumn, HasDeleteProtectionColumn, SecretSharingColumn, ShowSnapshotsLegacyColumn}+ )++ return projectsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Slug: SlugColumn,+ AutoCapitalization: AutoCapitalizationColumn,+ OrgId: OrgIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ Version: VersionColumn,+ UpgradeStatus: UpgradeStatusColumn,+ PitVersionLimit: PitVersionLimitColumn,+ KmsCertificateKeyId: KmsCertificateKeyIdColumn,+ AuditLogsRetentionDays: AuditLogsRetentionDaysColumn,+ KmsSecretManagerKeyId: KmsSecretManagerKeyIdColumn,+ KmsSecretManagerEncryptedDataKey: KmsSecretManagerEncryptedDataKeyColumn,+ Description: DescriptionColumn,+ Type: TypeColumn,+ EnforceCapitalization: EnforceCapitalizationColumn,+ HasDeleteProtection: HasDeleteProtectionColumn,+ SecretSharing: SecretSharingColumn,+ ShowSnapshotsLegacy: ShowSnapshotsLegacyColumn,+ DefaultProduct: DefaultProductColumn,+ SecretDetectionIgnoreValues: SecretDetectionIgnoreValuesColumn,+ EnforceEncryptedSecretManagerSecretMetadata: EnforceEncryptedSecretManagerSecretMetadataColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/queue_jobs.go b/backend-go/internal/database/pg/gen/table/queue_jobs.gonew file mode 100644index 0000000000..8e3c689e1d--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/queue_jobs.go@@ -0,0 +1,123 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var QueueJobs = newQueueJobsTable("public", "queue_jobs", "")++type queueJobsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ QueueName postgres.ColumnString+ QueueType postgres.ColumnString+ QueueJobName postgres.ColumnString+ JobId postgres.ColumnString+ QueueData postgres.ColumnString+ QueueOptions postgres.ColumnString+ Status postgres.ColumnString+ Attempts postgres.ColumnInteger+ MaxAttempts postgres.ColumnInteger+ ErrorMessage postgres.ColumnString+ LastHeartBeat postgres.ColumnTimestampz+ StartedAt postgres.ColumnTimestampz+ CompletedAt postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type QueueJobsTable struct {+ queueJobsTable++ EXCLUDED queueJobsTable+}++// AS creates new QueueJobsTable with assigned alias+func (a QueueJobsTable) AS(alias string) *QueueJobsTable {+ return newQueueJobsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new QueueJobsTable with assigned schema name+func (a QueueJobsTable) FromSchema(schemaName string) *QueueJobsTable {+ return newQueueJobsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new QueueJobsTable with assigned table prefix+func (a QueueJobsTable) WithPrefix(prefix string) *QueueJobsTable {+ return newQueueJobsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new QueueJobsTable with assigned table suffix+func (a QueueJobsTable) WithSuffix(suffix string) *QueueJobsTable {+ return newQueueJobsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newQueueJobsTable(schemaName, tableName, alias string) *QueueJobsTable {+ return &QueueJobsTable{+ queueJobsTable: newQueueJobsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newQueueJobsTableImpl("", "excluded", ""),+ }+}++func newQueueJobsTableImpl(schemaName, tableName, alias string) queueJobsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ QueueNameColumn = postgres.StringColumn("queueName")+ QueueTypeColumn = postgres.StringColumn("queueType")+ QueueJobNameColumn = postgres.StringColumn("queueJobName")+ JobIdColumn = postgres.StringColumn("jobId")+ QueueDataColumn = postgres.StringColumn("queueData")+ QueueOptionsColumn = postgres.StringColumn("queueOptions")+ StatusColumn = postgres.StringColumn("status")+ AttemptsColumn = postgres.IntegerColumn("attempts")+ MaxAttemptsColumn = postgres.IntegerColumn("maxAttempts")+ ErrorMessageColumn = postgres.StringColumn("errorMessage")+ LastHeartBeatColumn = postgres.TimestampzColumn("lastHeartBeat")+ StartedAtColumn = postgres.TimestampzColumn("startedAt")+ CompletedAtColumn = postgres.TimestampzColumn("completedAt")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, QueueNameColumn, QueueTypeColumn, QueueJobNameColumn, JobIdColumn, QueueDataColumn, QueueOptionsColumn, StatusColumn, AttemptsColumn, MaxAttemptsColumn, ErrorMessageColumn, LastHeartBeatColumn, StartedAtColumn, CompletedAtColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{QueueNameColumn, QueueTypeColumn, QueueJobNameColumn, JobIdColumn, QueueDataColumn, QueueOptionsColumn, StatusColumn, AttemptsColumn, MaxAttemptsColumn, ErrorMessageColumn, LastHeartBeatColumn, StartedAtColumn, CompletedAtColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, QueueTypeColumn, StatusColumn, AttemptsColumn, MaxAttemptsColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return queueJobsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ QueueName: QueueNameColumn,+ QueueType: QueueTypeColumn,+ QueueJobName: QueueJobNameColumn,+ JobId: JobIdColumn,+ QueueData: QueueDataColumn,+ QueueOptions: QueueOptionsColumn,+ Status: StatusColumn,+ Attempts: AttemptsColumn,+ MaxAttempts: MaxAttemptsColumn,+ ErrorMessage: ErrorMessageColumn,+ LastHeartBeat: LastHeartBeatColumn,+ StartedAt: StartedAtColumn,+ CompletedAt: CompletedAtColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/rate_limit.go b/backend-go/internal/database/pg/gen/table/rate_limit.gonew file mode 100644index 0000000000..b7b28d1db8--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/rate_limit.go@@ -0,0 +1,111 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var RateLimit = newRateLimitTable("public", "rate_limit", "")++type rateLimitTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ReadRateLimit postgres.ColumnInteger+ WriteRateLimit postgres.ColumnInteger+ SecretsRateLimit postgres.ColumnInteger+ AuthRateLimit postgres.ColumnInteger+ InviteUserRateLimit postgres.ColumnInteger+ MfaRateLimit postgres.ColumnInteger+ PublicEndpointLimit postgres.ColumnInteger+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IdentityCreationLimit postgres.ColumnInteger+ ProjectCreationLimit postgres.ColumnInteger++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type RateLimitTable struct {+ rateLimitTable++ EXCLUDED rateLimitTable+}++// AS creates new RateLimitTable with assigned alias+func (a RateLimitTable) AS(alias string) *RateLimitTable {+ return newRateLimitTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new RateLimitTable with assigned schema name+func (a RateLimitTable) FromSchema(schemaName string) *RateLimitTable {+ return newRateLimitTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new RateLimitTable with assigned table prefix+func (a RateLimitTable) WithPrefix(prefix string) *RateLimitTable {+ return newRateLimitTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new RateLimitTable with assigned table suffix+func (a RateLimitTable) WithSuffix(suffix string) *RateLimitTable {+ return newRateLimitTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newRateLimitTable(schemaName, tableName, alias string) *RateLimitTable {+ return &RateLimitTable{+ rateLimitTable: newRateLimitTableImpl(schemaName, tableName, alias),+ EXCLUDED: newRateLimitTableImpl("", "excluded", ""),+ }+}++func newRateLimitTableImpl(schemaName, tableName, alias string) rateLimitTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ReadRateLimitColumn = postgres.IntegerColumn("readRateLimit")+ WriteRateLimitColumn = postgres.IntegerColumn("writeRateLimit")+ SecretsRateLimitColumn = postgres.IntegerColumn("secretsRateLimit")+ AuthRateLimitColumn = postgres.IntegerColumn("authRateLimit")+ InviteUserRateLimitColumn = postgres.IntegerColumn("inviteUserRateLimit")+ MfaRateLimitColumn = postgres.IntegerColumn("mfaRateLimit")+ PublicEndpointLimitColumn = postgres.IntegerColumn("publicEndpointLimit")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IdentityCreationLimitColumn = postgres.IntegerColumn("identityCreationLimit")+ ProjectCreationLimitColumn = postgres.IntegerColumn("projectCreationLimit")+ allColumns = postgres.ColumnList{IDColumn, ReadRateLimitColumn, WriteRateLimitColumn, SecretsRateLimitColumn, AuthRateLimitColumn, InviteUserRateLimitColumn, MfaRateLimitColumn, PublicEndpointLimitColumn, CreatedAtColumn, UpdatedAtColumn, IdentityCreationLimitColumn, ProjectCreationLimitColumn}+ mutableColumns = postgres.ColumnList{ReadRateLimitColumn, WriteRateLimitColumn, SecretsRateLimitColumn, AuthRateLimitColumn, InviteUserRateLimitColumn, MfaRateLimitColumn, PublicEndpointLimitColumn, CreatedAtColumn, UpdatedAtColumn, IdentityCreationLimitColumn, ProjectCreationLimitColumn}+ defaultColumns = postgres.ColumnList{IDColumn, ReadRateLimitColumn, WriteRateLimitColumn, SecretsRateLimitColumn, AuthRateLimitColumn, InviteUserRateLimitColumn, MfaRateLimitColumn, PublicEndpointLimitColumn, CreatedAtColumn, UpdatedAtColumn, IdentityCreationLimitColumn, ProjectCreationLimitColumn}+ )++ return rateLimitTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ReadRateLimit: ReadRateLimitColumn,+ WriteRateLimit: WriteRateLimitColumn,+ SecretsRateLimit: SecretsRateLimitColumn,+ AuthRateLimit: AuthRateLimitColumn,+ InviteUserRateLimit: InviteUserRateLimitColumn,+ MfaRateLimit: MfaRateLimitColumn,+ PublicEndpointLimit: PublicEndpointLimitColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IdentityCreationLimit: IdentityCreationLimitColumn,+ ProjectCreationLimit: ProjectCreationLimitColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/relays.go b/backend-go/internal/database/pg/gen/table/relays.gonew file mode 100644index 0000000000..49a95cffb7--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/relays.go@@ -0,0 +1,102 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var Relays = newRelaysTable("public", "relays", "")++type relaysTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ OrgId postgres.ColumnString+ IdentityId postgres.ColumnString+ Name postgres.ColumnString+ Host postgres.ColumnString+ Heartbeat postgres.ColumnTimestampz+ HealthAlertedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type RelaysTable struct {+ relaysTable++ EXCLUDED relaysTable+}++// AS creates new RelaysTable with assigned alias+func (a RelaysTable) AS(alias string) *RelaysTable {+ return newRelaysTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new RelaysTable with assigned schema name+func (a RelaysTable) FromSchema(schemaName string) *RelaysTable {+ return newRelaysTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new RelaysTable with assigned table prefix+func (a RelaysTable) WithPrefix(prefix string) *RelaysTable {+ return newRelaysTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new RelaysTable with assigned table suffix+func (a RelaysTable) WithSuffix(suffix string) *RelaysTable {+ return newRelaysTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newRelaysTable(schemaName, tableName, alias string) *RelaysTable {+ return &RelaysTable{+ relaysTable: newRelaysTableImpl(schemaName, tableName, alias),+ EXCLUDED: newRelaysTableImpl("", "excluded", ""),+ }+}++func newRelaysTableImpl(schemaName, tableName, alias string) relaysTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ OrgIdColumn = postgres.StringColumn("orgId")+ IdentityIdColumn = postgres.StringColumn("identityId")+ NameColumn = postgres.StringColumn("name")+ HostColumn = postgres.StringColumn("host")+ HeartbeatColumn = postgres.TimestampzColumn("heartbeat")+ HealthAlertedAtColumn = postgres.TimestampzColumn("healthAlertedAt")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, OrgIdColumn, IdentityIdColumn, NameColumn, HostColumn, HeartbeatColumn, HealthAlertedAtColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, OrgIdColumn, IdentityIdColumn, NameColumn, HostColumn, HeartbeatColumn, HealthAlertedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return relaysTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ OrgId: OrgIdColumn,+ IdentityId: IdentityIdColumn,+ Name: NameColumn,+ Host: HostColumn,+ Heartbeat: HeartbeatColumn,+ HealthAlertedAt: HealthAlertedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/reminders.go b/backend-go/internal/database/pg/gen/table/reminders.gonew file mode 100644index 0000000000..ef4beb34c4--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/reminders.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var Reminders = newRemindersTable("public", "reminders", "")++type remindersTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ SecretId postgres.ColumnString+ Message postgres.ColumnString+ RepeatDays postgres.ColumnInteger+ NextReminderDate postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ FromDate postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type RemindersTable struct {+ remindersTable++ EXCLUDED remindersTable+}++// AS creates new RemindersTable with assigned alias+func (a RemindersTable) AS(alias string) *RemindersTable {+ return newRemindersTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new RemindersTable with assigned schema name+func (a RemindersTable) FromSchema(schemaName string) *RemindersTable {+ return newRemindersTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new RemindersTable with assigned table prefix+func (a RemindersTable) WithPrefix(prefix string) *RemindersTable {+ return newRemindersTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new RemindersTable with assigned table suffix+func (a RemindersTable) WithSuffix(suffix string) *RemindersTable {+ return newRemindersTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newRemindersTable(schemaName, tableName, alias string) *RemindersTable {+ return &RemindersTable{+ remindersTable: newRemindersTableImpl(schemaName, tableName, alias),+ EXCLUDED: newRemindersTableImpl("", "excluded", ""),+ }+}++func newRemindersTableImpl(schemaName, tableName, alias string) remindersTable {+ var (+ IDColumn = postgres.StringColumn("id")+ SecretIdColumn = postgres.StringColumn("secretId")+ MessageColumn = postgres.StringColumn("message")+ RepeatDaysColumn = postgres.IntegerColumn("repeatDays")+ NextReminderDateColumn = postgres.TimestampzColumn("nextReminderDate")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ FromDateColumn = postgres.TimestampzColumn("fromDate")+ allColumns = postgres.ColumnList{IDColumn, SecretIdColumn, MessageColumn, RepeatDaysColumn, NextReminderDateColumn, CreatedAtColumn, UpdatedAtColumn, FromDateColumn}+ mutableColumns = postgres.ColumnList{SecretIdColumn, MessageColumn, RepeatDaysColumn, NextReminderDateColumn, CreatedAtColumn, UpdatedAtColumn, FromDateColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return remindersTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ SecretId: SecretIdColumn,+ Message: MessageColumn,+ RepeatDays: RepeatDaysColumn,+ NextReminderDate: NextReminderDateColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ FromDate: FromDateColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/reminders_recipients.go b/backend-go/internal/database/pg/gen/table/reminders_recipients.gonew file mode 100644index 0000000000..37d9e41298--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/reminders_recipients.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var RemindersRecipients = newRemindersRecipientsTable("public", "reminders_recipients", "")++type remindersRecipientsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ReminderId postgres.ColumnString+ UserId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type RemindersRecipientsTable struct {+ remindersRecipientsTable++ EXCLUDED remindersRecipientsTable+}++// AS creates new RemindersRecipientsTable with assigned alias+func (a RemindersRecipientsTable) AS(alias string) *RemindersRecipientsTable {+ return newRemindersRecipientsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new RemindersRecipientsTable with assigned schema name+func (a RemindersRecipientsTable) FromSchema(schemaName string) *RemindersRecipientsTable {+ return newRemindersRecipientsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new RemindersRecipientsTable with assigned table prefix+func (a RemindersRecipientsTable) WithPrefix(prefix string) *RemindersRecipientsTable {+ return newRemindersRecipientsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new RemindersRecipientsTable with assigned table suffix+func (a RemindersRecipientsTable) WithSuffix(suffix string) *RemindersRecipientsTable {+ return newRemindersRecipientsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newRemindersRecipientsTable(schemaName, tableName, alias string) *RemindersRecipientsTable {+ return &RemindersRecipientsTable{+ remindersRecipientsTable: newRemindersRecipientsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newRemindersRecipientsTableImpl("", "excluded", ""),+ }+}++func newRemindersRecipientsTableImpl(schemaName, tableName, alias string) remindersRecipientsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ReminderIdColumn = postgres.StringColumn("reminderId")+ UserIdColumn = postgres.StringColumn("userId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ReminderIdColumn, UserIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ReminderIdColumn, UserIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return remindersRecipientsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ReminderId: ReminderIdColumn,+ UserId: UserIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/resource_metadata.go b/backend-go/internal/database/pg/gen/table/resource_metadata.gonew file mode 100644index 0000000000..7646df2ba7--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/resource_metadata.go@@ -0,0 +1,123 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ResourceMetadata = newResourceMetadataTable("public", "resource_metadata", "")++type resourceMetadataTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Key postgres.ColumnString+ Value postgres.ColumnString+ OrgId postgres.ColumnString+ UserId postgres.ColumnString+ IdentityId postgres.ColumnString+ SecretId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ DynamicSecretId postgres.ColumnString+ EncryptedValue postgres.ColumnBytea+ CertificateId postgres.ColumnString+ CertificateRequestId postgres.ColumnString+ CertificateRequestCreatedAt postgres.ColumnTimestampz+ PamResourceId postgres.ColumnString+ PamAccountId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ResourceMetadataTable struct {+ resourceMetadataTable++ EXCLUDED resourceMetadataTable+}++// AS creates new ResourceMetadataTable with assigned alias+func (a ResourceMetadataTable) AS(alias string) *ResourceMetadataTable {+ return newResourceMetadataTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ResourceMetadataTable with assigned schema name+func (a ResourceMetadataTable) FromSchema(schemaName string) *ResourceMetadataTable {+ return newResourceMetadataTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ResourceMetadataTable with assigned table prefix+func (a ResourceMetadataTable) WithPrefix(prefix string) *ResourceMetadataTable {+ return newResourceMetadataTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ResourceMetadataTable with assigned table suffix+func (a ResourceMetadataTable) WithSuffix(suffix string) *ResourceMetadataTable {+ return newResourceMetadataTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newResourceMetadataTable(schemaName, tableName, alias string) *ResourceMetadataTable {+ return &ResourceMetadataTable{+ resourceMetadataTable: newResourceMetadataTableImpl(schemaName, tableName, alias),+ EXCLUDED: newResourceMetadataTableImpl("", "excluded", ""),+ }+}++func newResourceMetadataTableImpl(schemaName, tableName, alias string) resourceMetadataTable {+ var (+ IDColumn = postgres.StringColumn("id")+ KeyColumn = postgres.StringColumn("key")+ ValueColumn = postgres.StringColumn("value")+ OrgIdColumn = postgres.StringColumn("orgId")+ UserIdColumn = postgres.StringColumn("userId")+ IdentityIdColumn = postgres.StringColumn("identityId")+ SecretIdColumn = postgres.StringColumn("secretId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ DynamicSecretIdColumn = postgres.StringColumn("dynamicSecretId")+ EncryptedValueColumn = postgres.ByteaColumn("encryptedValue")+ CertificateIdColumn = postgres.StringColumn("certificateId")+ CertificateRequestIdColumn = postgres.StringColumn("certificateRequestId")+ CertificateRequestCreatedAtColumn = postgres.TimestampzColumn("certificateRequestCreatedAt")+ PamResourceIdColumn = postgres.StringColumn("pamResourceId")+ PamAccountIdColumn = postgres.StringColumn("pamAccountId")+ allColumns = postgres.ColumnList{IDColumn, KeyColumn, ValueColumn, OrgIdColumn, UserIdColumn, IdentityIdColumn, SecretIdColumn, CreatedAtColumn, UpdatedAtColumn, DynamicSecretIdColumn, EncryptedValueColumn, CertificateIdColumn, CertificateRequestIdColumn, CertificateRequestCreatedAtColumn, PamResourceIdColumn, PamAccountIdColumn}+ mutableColumns = postgres.ColumnList{KeyColumn, ValueColumn, OrgIdColumn, UserIdColumn, IdentityIdColumn, SecretIdColumn, CreatedAtColumn, UpdatedAtColumn, DynamicSecretIdColumn, EncryptedValueColumn, CertificateIdColumn, CertificateRequestIdColumn, CertificateRequestCreatedAtColumn, PamResourceIdColumn, PamAccountIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return resourceMetadataTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Key: KeyColumn,+ Value: ValueColumn,+ OrgId: OrgIdColumn,+ UserId: UserIdColumn,+ IdentityId: IdentityIdColumn,+ SecretId: SecretIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ DynamicSecretId: DynamicSecretIdColumn,+ EncryptedValue: EncryptedValueColumn,+ CertificateId: CertificateIdColumn,+ CertificateRequestId: CertificateRequestIdColumn,+ CertificateRequestCreatedAt: CertificateRequestCreatedAtColumn,+ PamResourceId: PamResourceIdColumn,+ PamAccountId: PamAccountIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/roles.go b/backend-go/internal/database/pg/gen/table/roles.gonew file mode 100644index 0000000000..d2cf9c6f3b--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/roles.go@@ -0,0 +1,102 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var Roles = newRolesTable("public", "roles", "")++type rolesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Description postgres.ColumnString+ Slug postgres.ColumnString+ Permissions postgres.ColumnString+ OrgId postgres.ColumnString+ ProjectId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type RolesTable struct {+ rolesTable++ EXCLUDED rolesTable+}++// AS creates new RolesTable with assigned alias+func (a RolesTable) AS(alias string) *RolesTable {+ return newRolesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new RolesTable with assigned schema name+func (a RolesTable) FromSchema(schemaName string) *RolesTable {+ return newRolesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new RolesTable with assigned table prefix+func (a RolesTable) WithPrefix(prefix string) *RolesTable {+ return newRolesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new RolesTable with assigned table suffix+func (a RolesTable) WithSuffix(suffix string) *RolesTable {+ return newRolesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newRolesTable(schemaName, tableName, alias string) *RolesTable {+ return &RolesTable{+ rolesTable: newRolesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newRolesTableImpl("", "excluded", ""),+ }+}++func newRolesTableImpl(schemaName, tableName, alias string) rolesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ DescriptionColumn = postgres.StringColumn("description")+ SlugColumn = postgres.StringColumn("slug")+ PermissionsColumn = postgres.StringColumn("permissions")+ OrgIdColumn = postgres.StringColumn("orgId")+ ProjectIdColumn = postgres.StringColumn("projectId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, DescriptionColumn, SlugColumn, PermissionsColumn, OrgIdColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{NameColumn, DescriptionColumn, SlugColumn, PermissionsColumn, OrgIdColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return rolesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Description: DescriptionColumn,+ Slug: SlugColumn,+ Permissions: PermissionsColumn,+ OrgId: OrgIdColumn,+ ProjectId: ProjectIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/saml_configs.go b/backend-go/internal/database/pg/gen/table/saml_configs.gonew file mode 100644index 0000000000..256f467e69--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/saml_configs.go@@ -0,0 +1,135 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SamlConfigs = newSamlConfigsTable("public", "saml_configs", "")++type samlConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ AuthProvider postgres.ColumnString+ IsActive postgres.ColumnBool+ EncryptedEntryPoint postgres.ColumnString+ EntryPointIV postgres.ColumnString+ EntryPointTag postgres.ColumnString+ EncryptedIssuer postgres.ColumnString+ IssuerTag postgres.ColumnString+ IssuerIV postgres.ColumnString+ EncryptedCert postgres.ColumnString+ CertIV postgres.ColumnString+ CertTag postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ OrgId postgres.ColumnString+ LastUsed postgres.ColumnTimestampz+ EncryptedSamlEntryPoint postgres.ColumnBytea+ EncryptedSamlIssuer postgres.ColumnBytea+ EncryptedSamlCertificate postgres.ColumnBytea+ EnableGroupSync postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SamlConfigsTable struct {+ samlConfigsTable++ EXCLUDED samlConfigsTable+}++// AS creates new SamlConfigsTable with assigned alias+func (a SamlConfigsTable) AS(alias string) *SamlConfigsTable {+ return newSamlConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SamlConfigsTable with assigned schema name+func (a SamlConfigsTable) FromSchema(schemaName string) *SamlConfigsTable {+ return newSamlConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SamlConfigsTable with assigned table prefix+func (a SamlConfigsTable) WithPrefix(prefix string) *SamlConfigsTable {+ return newSamlConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SamlConfigsTable with assigned table suffix+func (a SamlConfigsTable) WithSuffix(suffix string) *SamlConfigsTable {+ return newSamlConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSamlConfigsTable(schemaName, tableName, alias string) *SamlConfigsTable {+ return &SamlConfigsTable{+ samlConfigsTable: newSamlConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSamlConfigsTableImpl("", "excluded", ""),+ }+}++func newSamlConfigsTableImpl(schemaName, tableName, alias string) samlConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ AuthProviderColumn = postgres.StringColumn("authProvider")+ IsActiveColumn = postgres.BoolColumn("isActive")+ EncryptedEntryPointColumn = postgres.StringColumn("encryptedEntryPoint")+ EntryPointIVColumn = postgres.StringColumn("entryPointIV")+ EntryPointTagColumn = postgres.StringColumn("entryPointTag")+ EncryptedIssuerColumn = postgres.StringColumn("encryptedIssuer")+ IssuerTagColumn = postgres.StringColumn("issuerTag")+ IssuerIVColumn = postgres.StringColumn("issuerIV")+ EncryptedCertColumn = postgres.StringColumn("encryptedCert")+ CertIVColumn = postgres.StringColumn("certIV")+ CertTagColumn = postgres.StringColumn("certTag")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ OrgIdColumn = postgres.StringColumn("orgId")+ LastUsedColumn = postgres.TimestampzColumn("lastUsed")+ EncryptedSamlEntryPointColumn = postgres.ByteaColumn("encryptedSamlEntryPoint")+ EncryptedSamlIssuerColumn = postgres.ByteaColumn("encryptedSamlIssuer")+ EncryptedSamlCertificateColumn = postgres.ByteaColumn("encryptedSamlCertificate")+ EnableGroupSyncColumn = postgres.BoolColumn("enableGroupSync")+ allColumns = postgres.ColumnList{IDColumn, AuthProviderColumn, IsActiveColumn, EncryptedEntryPointColumn, EntryPointIVColumn, EntryPointTagColumn, EncryptedIssuerColumn, IssuerTagColumn, IssuerIVColumn, EncryptedCertColumn, CertIVColumn, CertTagColumn, CreatedAtColumn, UpdatedAtColumn, OrgIdColumn, LastUsedColumn, EncryptedSamlEntryPointColumn, EncryptedSamlIssuerColumn, EncryptedSamlCertificateColumn, EnableGroupSyncColumn}+ mutableColumns = postgres.ColumnList{AuthProviderColumn, IsActiveColumn, EncryptedEntryPointColumn, EntryPointIVColumn, EntryPointTagColumn, EncryptedIssuerColumn, IssuerTagColumn, IssuerIVColumn, EncryptedCertColumn, CertIVColumn, CertTagColumn, CreatedAtColumn, UpdatedAtColumn, OrgIdColumn, LastUsedColumn, EncryptedSamlEntryPointColumn, EncryptedSamlIssuerColumn, EncryptedSamlCertificateColumn, EnableGroupSyncColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, EnableGroupSyncColumn}+ )++ return samlConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ AuthProvider: AuthProviderColumn,+ IsActive: IsActiveColumn,+ EncryptedEntryPoint: EncryptedEntryPointColumn,+ EntryPointIV: EntryPointIVColumn,+ EntryPointTag: EntryPointTagColumn,+ EncryptedIssuer: EncryptedIssuerColumn,+ IssuerTag: IssuerTagColumn,+ IssuerIV: IssuerIVColumn,+ EncryptedCert: EncryptedCertColumn,+ CertIV: CertIVColumn,+ CertTag: CertTagColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ OrgId: OrgIdColumn,+ LastUsed: LastUsedColumn,+ EncryptedSamlEntryPoint: EncryptedSamlEntryPointColumn,+ EncryptedSamlIssuer: EncryptedSamlIssuerColumn,+ EncryptedSamlCertificate: EncryptedSamlCertificateColumn,+ EnableGroupSync: EnableGroupSyncColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/scim_events.go b/backend-go/internal/database/pg/gen/table/scim_events.gonew file mode 100644index 0000000000..f4e6d9744a--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/scim_events.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ScimEvents = newScimEventsTable("public", "scim_events", "")++type scimEventsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ OrgId postgres.ColumnString+ EventType postgres.ColumnString+ Event postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ScimEventsTable struct {+ scimEventsTable++ EXCLUDED scimEventsTable+}++// AS creates new ScimEventsTable with assigned alias+func (a ScimEventsTable) AS(alias string) *ScimEventsTable {+ return newScimEventsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ScimEventsTable with assigned schema name+func (a ScimEventsTable) FromSchema(schemaName string) *ScimEventsTable {+ return newScimEventsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ScimEventsTable with assigned table prefix+func (a ScimEventsTable) WithPrefix(prefix string) *ScimEventsTable {+ return newScimEventsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ScimEventsTable with assigned table suffix+func (a ScimEventsTable) WithSuffix(suffix string) *ScimEventsTable {+ return newScimEventsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newScimEventsTable(schemaName, tableName, alias string) *ScimEventsTable {+ return &ScimEventsTable{+ scimEventsTable: newScimEventsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newScimEventsTableImpl("", "excluded", ""),+ }+}++func newScimEventsTableImpl(schemaName, tableName, alias string) scimEventsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ OrgIdColumn = postgres.StringColumn("orgId")+ EventTypeColumn = postgres.StringColumn("eventType")+ EventColumn = postgres.StringColumn("event")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, OrgIdColumn, EventTypeColumn, EventColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{OrgIdColumn, EventTypeColumn, EventColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return scimEventsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ OrgId: OrgIdColumn,+ EventType: EventTypeColumn,+ Event: EventColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/scim_tokens.go b/backend-go/internal/database/pg/gen/table/scim_tokens.gonew file mode 100644index 0000000000..281e118f6c--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/scim_tokens.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ScimTokens = newScimTokensTable("public", "scim_tokens", "")++type scimTokensTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ TtlDays postgres.ColumnInteger+ Description postgres.ColumnString+ OrgId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ExpiryNotificationSent postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ScimTokensTable struct {+ scimTokensTable++ EXCLUDED scimTokensTable+}++// AS creates new ScimTokensTable with assigned alias+func (a ScimTokensTable) AS(alias string) *ScimTokensTable {+ return newScimTokensTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ScimTokensTable with assigned schema name+func (a ScimTokensTable) FromSchema(schemaName string) *ScimTokensTable {+ return newScimTokensTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ScimTokensTable with assigned table prefix+func (a ScimTokensTable) WithPrefix(prefix string) *ScimTokensTable {+ return newScimTokensTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ScimTokensTable with assigned table suffix+func (a ScimTokensTable) WithSuffix(suffix string) *ScimTokensTable {+ return newScimTokensTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newScimTokensTable(schemaName, tableName, alias string) *ScimTokensTable {+ return &ScimTokensTable{+ scimTokensTable: newScimTokensTableImpl(schemaName, tableName, alias),+ EXCLUDED: newScimTokensTableImpl("", "excluded", ""),+ }+}++func newScimTokensTableImpl(schemaName, tableName, alias string) scimTokensTable {+ var (+ IDColumn = postgres.StringColumn("id")+ TtlDaysColumn = postgres.IntegerColumn("ttlDays")+ DescriptionColumn = postgres.StringColumn("description")+ OrgIdColumn = postgres.StringColumn("orgId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ExpiryNotificationSentColumn = postgres.BoolColumn("expiryNotificationSent")+ allColumns = postgres.ColumnList{IDColumn, TtlDaysColumn, DescriptionColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, ExpiryNotificationSentColumn}+ mutableColumns = postgres.ColumnList{TtlDaysColumn, DescriptionColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, ExpiryNotificationSentColumn}+ defaultColumns = postgres.ColumnList{IDColumn, TtlDaysColumn, CreatedAtColumn, UpdatedAtColumn, ExpiryNotificationSentColumn}+ )++ return scimTokensTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ TtlDays: TtlDaysColumn,+ Description: DescriptionColumn,+ OrgId: OrgIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ExpiryNotificationSent: ExpiryNotificationSentColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_approval_policies.go b/backend-go/internal/database/pg/gen/table/secret_approval_policies.gonew file mode 100644index 0000000000..26a9f2abf1--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_approval_policies.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretApprovalPolicies = newSecretApprovalPoliciesTable("public", "secret_approval_policies", "")++type secretApprovalPoliciesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ SecretPath postgres.ColumnString+ Approvals postgres.ColumnInteger+ EnvId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ EnforcementLevel postgres.ColumnString+ DeletedAt postgres.ColumnTimestampz+ AllowedSelfApprovals postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretApprovalPoliciesTable struct {+ secretApprovalPoliciesTable++ EXCLUDED secretApprovalPoliciesTable+}++// AS creates new SecretApprovalPoliciesTable with assigned alias+func (a SecretApprovalPoliciesTable) AS(alias string) *SecretApprovalPoliciesTable {+ return newSecretApprovalPoliciesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretApprovalPoliciesTable with assigned schema name+func (a SecretApprovalPoliciesTable) FromSchema(schemaName string) *SecretApprovalPoliciesTable {+ return newSecretApprovalPoliciesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretApprovalPoliciesTable with assigned table prefix+func (a SecretApprovalPoliciesTable) WithPrefix(prefix string) *SecretApprovalPoliciesTable {+ return newSecretApprovalPoliciesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretApprovalPoliciesTable with assigned table suffix+func (a SecretApprovalPoliciesTable) WithSuffix(suffix string) *SecretApprovalPoliciesTable {+ return newSecretApprovalPoliciesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretApprovalPoliciesTable(schemaName, tableName, alias string) *SecretApprovalPoliciesTable {+ return &SecretApprovalPoliciesTable{+ secretApprovalPoliciesTable: newSecretApprovalPoliciesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretApprovalPoliciesTableImpl("", "excluded", ""),+ }+}++func newSecretApprovalPoliciesTableImpl(schemaName, tableName, alias string) secretApprovalPoliciesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ SecretPathColumn = postgres.StringColumn("secretPath")+ ApprovalsColumn = postgres.IntegerColumn("approvals")+ EnvIdColumn = postgres.StringColumn("envId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ EnforcementLevelColumn = postgres.StringColumn("enforcementLevel")+ DeletedAtColumn = postgres.TimestampzColumn("deletedAt")+ AllowedSelfApprovalsColumn = postgres.BoolColumn("allowedSelfApprovals")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, SecretPathColumn, ApprovalsColumn, EnvIdColumn, CreatedAtColumn, UpdatedAtColumn, EnforcementLevelColumn, DeletedAtColumn, AllowedSelfApprovalsColumn}+ mutableColumns = postgres.ColumnList{NameColumn, SecretPathColumn, ApprovalsColumn, EnvIdColumn, CreatedAtColumn, UpdatedAtColumn, EnforcementLevelColumn, DeletedAtColumn, AllowedSelfApprovalsColumn}+ defaultColumns = postgres.ColumnList{IDColumn, ApprovalsColumn, CreatedAtColumn, UpdatedAtColumn, EnforcementLevelColumn, AllowedSelfApprovalsColumn}+ )++ return secretApprovalPoliciesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ SecretPath: SecretPathColumn,+ Approvals: ApprovalsColumn,+ EnvId: EnvIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ EnforcementLevel: EnforcementLevelColumn,+ DeletedAt: DeletedAtColumn,+ AllowedSelfApprovals: AllowedSelfApprovalsColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_approval_policies_approvers.go b/backend-go/internal/database/pg/gen/table/secret_approval_policies_approvers.gonew file mode 100644index 0000000000..541603f2e3--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_approval_policies_approvers.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretApprovalPoliciesApprovers = newSecretApprovalPoliciesApproversTable("public", "secret_approval_policies_approvers", "")++type secretApprovalPoliciesApproversTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ PolicyId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ApproverUserId postgres.ColumnString+ ApproverGroupId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretApprovalPoliciesApproversTable struct {+ secretApprovalPoliciesApproversTable++ EXCLUDED secretApprovalPoliciesApproversTable+}++// AS creates new SecretApprovalPoliciesApproversTable with assigned alias+func (a SecretApprovalPoliciesApproversTable) AS(alias string) *SecretApprovalPoliciesApproversTable {+ return newSecretApprovalPoliciesApproversTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretApprovalPoliciesApproversTable with assigned schema name+func (a SecretApprovalPoliciesApproversTable) FromSchema(schemaName string) *SecretApprovalPoliciesApproversTable {+ return newSecretApprovalPoliciesApproversTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretApprovalPoliciesApproversTable with assigned table prefix+func (a SecretApprovalPoliciesApproversTable) WithPrefix(prefix string) *SecretApprovalPoliciesApproversTable {+ return newSecretApprovalPoliciesApproversTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretApprovalPoliciesApproversTable with assigned table suffix+func (a SecretApprovalPoliciesApproversTable) WithSuffix(suffix string) *SecretApprovalPoliciesApproversTable {+ return newSecretApprovalPoliciesApproversTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretApprovalPoliciesApproversTable(schemaName, tableName, alias string) *SecretApprovalPoliciesApproversTable {+ return &SecretApprovalPoliciesApproversTable{+ secretApprovalPoliciesApproversTable: newSecretApprovalPoliciesApproversTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretApprovalPoliciesApproversTableImpl("", "excluded", ""),+ }+}++func newSecretApprovalPoliciesApproversTableImpl(schemaName, tableName, alias string) secretApprovalPoliciesApproversTable {+ var (+ IDColumn = postgres.StringColumn("id")+ PolicyIdColumn = postgres.StringColumn("policyId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ApproverUserIdColumn = postgres.StringColumn("approverUserId")+ ApproverGroupIdColumn = postgres.StringColumn("approverGroupId")+ allColumns = postgres.ColumnList{IDColumn, PolicyIdColumn, CreatedAtColumn, UpdatedAtColumn, ApproverUserIdColumn, ApproverGroupIdColumn}+ mutableColumns = postgres.ColumnList{PolicyIdColumn, CreatedAtColumn, UpdatedAtColumn, ApproverUserIdColumn, ApproverGroupIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretApprovalPoliciesApproversTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ PolicyId: PolicyIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ApproverUserId: ApproverUserIdColumn,+ ApproverGroupId: ApproverGroupIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_approval_policies_bypassers.go b/backend-go/internal/database/pg/gen/table/secret_approval_policies_bypassers.gonew file mode 100644index 0000000000..bc5a06b7c6--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_approval_policies_bypassers.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretApprovalPoliciesBypassers = newSecretApprovalPoliciesBypassersTable("public", "secret_approval_policies_bypassers", "")++type secretApprovalPoliciesBypassersTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ BypasserGroupId postgres.ColumnString+ BypasserUserId postgres.ColumnString+ PolicyId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretApprovalPoliciesBypassersTable struct {+ secretApprovalPoliciesBypassersTable++ EXCLUDED secretApprovalPoliciesBypassersTable+}++// AS creates new SecretApprovalPoliciesBypassersTable with assigned alias+func (a SecretApprovalPoliciesBypassersTable) AS(alias string) *SecretApprovalPoliciesBypassersTable {+ return newSecretApprovalPoliciesBypassersTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretApprovalPoliciesBypassersTable with assigned schema name+func (a SecretApprovalPoliciesBypassersTable) FromSchema(schemaName string) *SecretApprovalPoliciesBypassersTable {+ return newSecretApprovalPoliciesBypassersTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretApprovalPoliciesBypassersTable with assigned table prefix+func (a SecretApprovalPoliciesBypassersTable) WithPrefix(prefix string) *SecretApprovalPoliciesBypassersTable {+ return newSecretApprovalPoliciesBypassersTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretApprovalPoliciesBypassersTable with assigned table suffix+func (a SecretApprovalPoliciesBypassersTable) WithSuffix(suffix string) *SecretApprovalPoliciesBypassersTable {+ return newSecretApprovalPoliciesBypassersTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretApprovalPoliciesBypassersTable(schemaName, tableName, alias string) *SecretApprovalPoliciesBypassersTable {+ return &SecretApprovalPoliciesBypassersTable{+ secretApprovalPoliciesBypassersTable: newSecretApprovalPoliciesBypassersTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretApprovalPoliciesBypassersTableImpl("", "excluded", ""),+ }+}++func newSecretApprovalPoliciesBypassersTableImpl(schemaName, tableName, alias string) secretApprovalPoliciesBypassersTable {+ var (+ IDColumn = postgres.StringColumn("id")+ BypasserGroupIdColumn = postgres.StringColumn("bypasserGroupId")+ BypasserUserIdColumn = postgres.StringColumn("bypasserUserId")+ PolicyIdColumn = postgres.StringColumn("policyId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, BypasserGroupIdColumn, BypasserUserIdColumn, PolicyIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{BypasserGroupIdColumn, BypasserUserIdColumn, PolicyIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretApprovalPoliciesBypassersTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ BypasserGroupId: BypasserGroupIdColumn,+ BypasserUserId: BypasserUserIdColumn,+ PolicyId: PolicyIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_approval_policies_environments.go b/backend-go/internal/database/pg/gen/table/secret_approval_policies_environments.gonew file mode 100644index 0000000000..7879442331--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_approval_policies_environments.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretApprovalPoliciesEnvironments = newSecretApprovalPoliciesEnvironmentsTable("public", "secret_approval_policies_environments", "")++type secretApprovalPoliciesEnvironmentsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ PolicyId postgres.ColumnString+ EnvId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretApprovalPoliciesEnvironmentsTable struct {+ secretApprovalPoliciesEnvironmentsTable++ EXCLUDED secretApprovalPoliciesEnvironmentsTable+}++// AS creates new SecretApprovalPoliciesEnvironmentsTable with assigned alias+func (a SecretApprovalPoliciesEnvironmentsTable) AS(alias string) *SecretApprovalPoliciesEnvironmentsTable {+ return newSecretApprovalPoliciesEnvironmentsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretApprovalPoliciesEnvironmentsTable with assigned schema name+func (a SecretApprovalPoliciesEnvironmentsTable) FromSchema(schemaName string) *SecretApprovalPoliciesEnvironmentsTable {+ return newSecretApprovalPoliciesEnvironmentsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretApprovalPoliciesEnvironmentsTable with assigned table prefix+func (a SecretApprovalPoliciesEnvironmentsTable) WithPrefix(prefix string) *SecretApprovalPoliciesEnvironmentsTable {+ return newSecretApprovalPoliciesEnvironmentsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretApprovalPoliciesEnvironmentsTable with assigned table suffix+func (a SecretApprovalPoliciesEnvironmentsTable) WithSuffix(suffix string) *SecretApprovalPoliciesEnvironmentsTable {+ return newSecretApprovalPoliciesEnvironmentsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretApprovalPoliciesEnvironmentsTable(schemaName, tableName, alias string) *SecretApprovalPoliciesEnvironmentsTable {+ return &SecretApprovalPoliciesEnvironmentsTable{+ secretApprovalPoliciesEnvironmentsTable: newSecretApprovalPoliciesEnvironmentsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretApprovalPoliciesEnvironmentsTableImpl("", "excluded", ""),+ }+}++func newSecretApprovalPoliciesEnvironmentsTableImpl(schemaName, tableName, alias string) secretApprovalPoliciesEnvironmentsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ PolicyIdColumn = postgres.StringColumn("policyId")+ EnvIdColumn = postgres.StringColumn("envId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, PolicyIdColumn, EnvIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{PolicyIdColumn, EnvIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretApprovalPoliciesEnvironmentsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ PolicyId: PolicyIdColumn,+ EnvId: EnvIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_approval_request_secret_tags.go b/backend-go/internal/database/pg/gen/table/secret_approval_request_secret_tags.gonew file mode 100644index 0000000000..a8081fe5af--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_approval_request_secret_tags.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretApprovalRequestSecretTags = newSecretApprovalRequestSecretTagsTable("public", "secret_approval_request_secret_tags", "")++type secretApprovalRequestSecretTagsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ SecretId postgres.ColumnString+ TagId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretApprovalRequestSecretTagsTable struct {+ secretApprovalRequestSecretTagsTable++ EXCLUDED secretApprovalRequestSecretTagsTable+}++// AS creates new SecretApprovalRequestSecretTagsTable with assigned alias+func (a SecretApprovalRequestSecretTagsTable) AS(alias string) *SecretApprovalRequestSecretTagsTable {+ return newSecretApprovalRequestSecretTagsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretApprovalRequestSecretTagsTable with assigned schema name+func (a SecretApprovalRequestSecretTagsTable) FromSchema(schemaName string) *SecretApprovalRequestSecretTagsTable {+ return newSecretApprovalRequestSecretTagsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretApprovalRequestSecretTagsTable with assigned table prefix+func (a SecretApprovalRequestSecretTagsTable) WithPrefix(prefix string) *SecretApprovalRequestSecretTagsTable {+ return newSecretApprovalRequestSecretTagsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretApprovalRequestSecretTagsTable with assigned table suffix+func (a SecretApprovalRequestSecretTagsTable) WithSuffix(suffix string) *SecretApprovalRequestSecretTagsTable {+ return newSecretApprovalRequestSecretTagsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretApprovalRequestSecretTagsTable(schemaName, tableName, alias string) *SecretApprovalRequestSecretTagsTable {+ return &SecretApprovalRequestSecretTagsTable{+ secretApprovalRequestSecretTagsTable: newSecretApprovalRequestSecretTagsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretApprovalRequestSecretTagsTableImpl("", "excluded", ""),+ }+}++func newSecretApprovalRequestSecretTagsTableImpl(schemaName, tableName, alias string) secretApprovalRequestSecretTagsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ SecretIdColumn = postgres.StringColumn("secretId")+ TagIdColumn = postgres.StringColumn("tagId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, SecretIdColumn, TagIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{SecretIdColumn, TagIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretApprovalRequestSecretTagsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ SecretId: SecretIdColumn,+ TagId: TagIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_approval_request_secret_tags_v2.go b/backend-go/internal/database/pg/gen/table/secret_approval_request_secret_tags_v2.gonew file mode 100644index 0000000000..1e42913b00--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_approval_request_secret_tags_v2.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretApprovalRequestSecretTagsV2 = newSecretApprovalRequestSecretTagsV2Table("public", "secret_approval_request_secret_tags_v2", "")++type secretApprovalRequestSecretTagsV2Table struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ SecretId postgres.ColumnString+ TagId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretApprovalRequestSecretTagsV2Table struct {+ secretApprovalRequestSecretTagsV2Table++ EXCLUDED secretApprovalRequestSecretTagsV2Table+}++// AS creates new SecretApprovalRequestSecretTagsV2Table with assigned alias+func (a SecretApprovalRequestSecretTagsV2Table) AS(alias string) *SecretApprovalRequestSecretTagsV2Table {+ return newSecretApprovalRequestSecretTagsV2Table(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretApprovalRequestSecretTagsV2Table with assigned schema name+func (a SecretApprovalRequestSecretTagsV2Table) FromSchema(schemaName string) *SecretApprovalRequestSecretTagsV2Table {+ return newSecretApprovalRequestSecretTagsV2Table(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretApprovalRequestSecretTagsV2Table with assigned table prefix+func (a SecretApprovalRequestSecretTagsV2Table) WithPrefix(prefix string) *SecretApprovalRequestSecretTagsV2Table {+ return newSecretApprovalRequestSecretTagsV2Table(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretApprovalRequestSecretTagsV2Table with assigned table suffix+func (a SecretApprovalRequestSecretTagsV2Table) WithSuffix(suffix string) *SecretApprovalRequestSecretTagsV2Table {+ return newSecretApprovalRequestSecretTagsV2Table(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretApprovalRequestSecretTagsV2Table(schemaName, tableName, alias string) *SecretApprovalRequestSecretTagsV2Table {+ return &SecretApprovalRequestSecretTagsV2Table{+ secretApprovalRequestSecretTagsV2Table: newSecretApprovalRequestSecretTagsV2TableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretApprovalRequestSecretTagsV2TableImpl("", "excluded", ""),+ }+}++func newSecretApprovalRequestSecretTagsV2TableImpl(schemaName, tableName, alias string) secretApprovalRequestSecretTagsV2Table {+ var (+ IDColumn = postgres.StringColumn("id")+ SecretIdColumn = postgres.StringColumn("secretId")+ TagIdColumn = postgres.StringColumn("tagId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, SecretIdColumn, TagIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{SecretIdColumn, TagIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretApprovalRequestSecretTagsV2Table{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ SecretId: SecretIdColumn,+ TagId: TagIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_approval_requests.go b/backend-go/internal/database/pg/gen/table/secret_approval_requests.gonew file mode 100644index 0000000000..8fb05ea265--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_approval_requests.go@@ -0,0 +1,114 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretApprovalRequests = newSecretApprovalRequestsTable("public", "secret_approval_requests", "")++type secretApprovalRequestsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ PolicyId postgres.ColumnString+ HasMerged postgres.ColumnBool+ Status postgres.ColumnString+ Conflicts postgres.ColumnString+ Slug postgres.ColumnString+ FolderId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IsReplicated postgres.ColumnBool+ CommitterUserId postgres.ColumnString+ StatusChangedByUserId postgres.ColumnString+ BypassReason postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretApprovalRequestsTable struct {+ secretApprovalRequestsTable++ EXCLUDED secretApprovalRequestsTable+}++// AS creates new SecretApprovalRequestsTable with assigned alias+func (a SecretApprovalRequestsTable) AS(alias string) *SecretApprovalRequestsTable {+ return newSecretApprovalRequestsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretApprovalRequestsTable with assigned schema name+func (a SecretApprovalRequestsTable) FromSchema(schemaName string) *SecretApprovalRequestsTable {+ return newSecretApprovalRequestsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretApprovalRequestsTable with assigned table prefix+func (a SecretApprovalRequestsTable) WithPrefix(prefix string) *SecretApprovalRequestsTable {+ return newSecretApprovalRequestsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretApprovalRequestsTable with assigned table suffix+func (a SecretApprovalRequestsTable) WithSuffix(suffix string) *SecretApprovalRequestsTable {+ return newSecretApprovalRequestsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretApprovalRequestsTable(schemaName, tableName, alias string) *SecretApprovalRequestsTable {+ return &SecretApprovalRequestsTable{+ secretApprovalRequestsTable: newSecretApprovalRequestsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretApprovalRequestsTableImpl("", "excluded", ""),+ }+}++func newSecretApprovalRequestsTableImpl(schemaName, tableName, alias string) secretApprovalRequestsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ PolicyIdColumn = postgres.StringColumn("policyId")+ HasMergedColumn = postgres.BoolColumn("hasMerged")+ StatusColumn = postgres.StringColumn("status")+ ConflictsColumn = postgres.StringColumn("conflicts")+ SlugColumn = postgres.StringColumn("slug")+ FolderIdColumn = postgres.StringColumn("folderId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IsReplicatedColumn = postgres.BoolColumn("isReplicated")+ CommitterUserIdColumn = postgres.StringColumn("committerUserId")+ StatusChangedByUserIdColumn = postgres.StringColumn("statusChangedByUserId")+ BypassReasonColumn = postgres.StringColumn("bypassReason")+ allColumns = postgres.ColumnList{IDColumn, PolicyIdColumn, HasMergedColumn, StatusColumn, ConflictsColumn, SlugColumn, FolderIdColumn, CreatedAtColumn, UpdatedAtColumn, IsReplicatedColumn, CommitterUserIdColumn, StatusChangedByUserIdColumn, BypassReasonColumn}+ mutableColumns = postgres.ColumnList{PolicyIdColumn, HasMergedColumn, StatusColumn, ConflictsColumn, SlugColumn, FolderIdColumn, CreatedAtColumn, UpdatedAtColumn, IsReplicatedColumn, CommitterUserIdColumn, StatusChangedByUserIdColumn, BypassReasonColumn}+ defaultColumns = postgres.ColumnList{IDColumn, HasMergedColumn, StatusColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretApprovalRequestsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ PolicyId: PolicyIdColumn,+ HasMerged: HasMergedColumn,+ Status: StatusColumn,+ Conflicts: ConflictsColumn,+ Slug: SlugColumn,+ FolderId: FolderIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IsReplicated: IsReplicatedColumn,+ CommitterUserId: CommitterUserIdColumn,+ StatusChangedByUserId: StatusChangedByUserIdColumn,+ BypassReason: BypassReasonColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_approval_requests_reviewers.go b/backend-go/internal/database/pg/gen/table/secret_approval_requests_reviewers.gonew file mode 100644index 0000000000..4856aabb2f--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_approval_requests_reviewers.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretApprovalRequestsReviewers = newSecretApprovalRequestsReviewersTable("public", "secret_approval_requests_reviewers", "")++type secretApprovalRequestsReviewersTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Status postgres.ColumnString+ RequestId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ReviewerUserId postgres.ColumnString+ Comment postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretApprovalRequestsReviewersTable struct {+ secretApprovalRequestsReviewersTable++ EXCLUDED secretApprovalRequestsReviewersTable+}++// AS creates new SecretApprovalRequestsReviewersTable with assigned alias+func (a SecretApprovalRequestsReviewersTable) AS(alias string) *SecretApprovalRequestsReviewersTable {+ return newSecretApprovalRequestsReviewersTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretApprovalRequestsReviewersTable with assigned schema name+func (a SecretApprovalRequestsReviewersTable) FromSchema(schemaName string) *SecretApprovalRequestsReviewersTable {+ return newSecretApprovalRequestsReviewersTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretApprovalRequestsReviewersTable with assigned table prefix+func (a SecretApprovalRequestsReviewersTable) WithPrefix(prefix string) *SecretApprovalRequestsReviewersTable {+ return newSecretApprovalRequestsReviewersTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretApprovalRequestsReviewersTable with assigned table suffix+func (a SecretApprovalRequestsReviewersTable) WithSuffix(suffix string) *SecretApprovalRequestsReviewersTable {+ return newSecretApprovalRequestsReviewersTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretApprovalRequestsReviewersTable(schemaName, tableName, alias string) *SecretApprovalRequestsReviewersTable {+ return &SecretApprovalRequestsReviewersTable{+ secretApprovalRequestsReviewersTable: newSecretApprovalRequestsReviewersTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretApprovalRequestsReviewersTableImpl("", "excluded", ""),+ }+}++func newSecretApprovalRequestsReviewersTableImpl(schemaName, tableName, alias string) secretApprovalRequestsReviewersTable {+ var (+ IDColumn = postgres.StringColumn("id")+ StatusColumn = postgres.StringColumn("status")+ RequestIdColumn = postgres.StringColumn("requestId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ReviewerUserIdColumn = postgres.StringColumn("reviewerUserId")+ CommentColumn = postgres.StringColumn("comment")+ allColumns = postgres.ColumnList{IDColumn, StatusColumn, RequestIdColumn, CreatedAtColumn, UpdatedAtColumn, ReviewerUserIdColumn, CommentColumn}+ mutableColumns = postgres.ColumnList{StatusColumn, RequestIdColumn, CreatedAtColumn, UpdatedAtColumn, ReviewerUserIdColumn, CommentColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretApprovalRequestsReviewersTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Status: StatusColumn,+ RequestId: RequestIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ReviewerUserId: ReviewerUserIdColumn,+ Comment: CommentColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_approval_requests_secrets.go b/backend-go/internal/database/pg/gen/table/secret_approval_requests_secrets.gonew file mode 100644index 0000000000..08b50b5dc7--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_approval_requests_secrets.go@@ -0,0 +1,147 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretApprovalRequestsSecrets = newSecretApprovalRequestsSecretsTable("public", "secret_approval_requests_secrets", "")++type secretApprovalRequestsSecretsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Version postgres.ColumnInteger+ SecretBlindIndex postgres.ColumnString+ SecretKeyCiphertext postgres.ColumnString+ SecretKeyIV postgres.ColumnString+ SecretKeyTag postgres.ColumnString+ SecretValueCiphertext postgres.ColumnString+ SecretValueIV postgres.ColumnString+ SecretValueTag postgres.ColumnString+ SecretCommentCiphertext postgres.ColumnString+ SecretCommentIV postgres.ColumnString+ SecretCommentTag postgres.ColumnString+ SecretReminderNote postgres.ColumnString+ SecretReminderRepeatDays postgres.ColumnInteger+ SkipMultilineEncoding postgres.ColumnBool+ Algorithm postgres.ColumnString+ KeyEncoding postgres.ColumnString+ Metadata postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ RequestId postgres.ColumnString+ Op postgres.ColumnString+ SecretId postgres.ColumnString+ SecretVersion postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretApprovalRequestsSecretsTable struct {+ secretApprovalRequestsSecretsTable++ EXCLUDED secretApprovalRequestsSecretsTable+}++// AS creates new SecretApprovalRequestsSecretsTable with assigned alias+func (a SecretApprovalRequestsSecretsTable) AS(alias string) *SecretApprovalRequestsSecretsTable {+ return newSecretApprovalRequestsSecretsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretApprovalRequestsSecretsTable with assigned schema name+func (a SecretApprovalRequestsSecretsTable) FromSchema(schemaName string) *SecretApprovalRequestsSecretsTable {+ return newSecretApprovalRequestsSecretsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretApprovalRequestsSecretsTable with assigned table prefix+func (a SecretApprovalRequestsSecretsTable) WithPrefix(prefix string) *SecretApprovalRequestsSecretsTable {+ return newSecretApprovalRequestsSecretsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretApprovalRequestsSecretsTable with assigned table suffix+func (a SecretApprovalRequestsSecretsTable) WithSuffix(suffix string) *SecretApprovalRequestsSecretsTable {+ return newSecretApprovalRequestsSecretsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretApprovalRequestsSecretsTable(schemaName, tableName, alias string) *SecretApprovalRequestsSecretsTable {+ return &SecretApprovalRequestsSecretsTable{+ secretApprovalRequestsSecretsTable: newSecretApprovalRequestsSecretsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretApprovalRequestsSecretsTableImpl("", "excluded", ""),+ }+}++func newSecretApprovalRequestsSecretsTableImpl(schemaName, tableName, alias string) secretApprovalRequestsSecretsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ VersionColumn = postgres.IntegerColumn("version")+ SecretBlindIndexColumn = postgres.StringColumn("secretBlindIndex")+ SecretKeyCiphertextColumn = postgres.StringColumn("secretKeyCiphertext")+ SecretKeyIVColumn = postgres.StringColumn("secretKeyIV")+ SecretKeyTagColumn = postgres.StringColumn("secretKeyTag")+ SecretValueCiphertextColumn = postgres.StringColumn("secretValueCiphertext")+ SecretValueIVColumn = postgres.StringColumn("secretValueIV")+ SecretValueTagColumn = postgres.StringColumn("secretValueTag")+ SecretCommentCiphertextColumn = postgres.StringColumn("secretCommentCiphertext")+ SecretCommentIVColumn = postgres.StringColumn("secretCommentIV")+ SecretCommentTagColumn = postgres.StringColumn("secretCommentTag")+ SecretReminderNoteColumn = postgres.StringColumn("secretReminderNote")+ SecretReminderRepeatDaysColumn = postgres.IntegerColumn("secretReminderRepeatDays")+ SkipMultilineEncodingColumn = postgres.BoolColumn("skipMultilineEncoding")+ AlgorithmColumn = postgres.StringColumn("algorithm")+ KeyEncodingColumn = postgres.StringColumn("keyEncoding")+ MetadataColumn = postgres.StringColumn("metadata")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ RequestIdColumn = postgres.StringColumn("requestId")+ OpColumn = postgres.StringColumn("op")+ SecretIdColumn = postgres.StringColumn("secretId")+ SecretVersionColumn = postgres.StringColumn("secretVersion")+ allColumns = postgres.ColumnList{IDColumn, VersionColumn, SecretBlindIndexColumn, SecretKeyCiphertextColumn, SecretKeyIVColumn, SecretKeyTagColumn, SecretValueCiphertextColumn, SecretValueIVColumn, SecretValueTagColumn, SecretCommentCiphertextColumn, SecretCommentIVColumn, SecretCommentTagColumn, SecretReminderNoteColumn, SecretReminderRepeatDaysColumn, SkipMultilineEncodingColumn, AlgorithmColumn, KeyEncodingColumn, MetadataColumn, CreatedAtColumn, UpdatedAtColumn, RequestIdColumn, OpColumn, SecretIdColumn, SecretVersionColumn}+ mutableColumns = postgres.ColumnList{VersionColumn, SecretBlindIndexColumn, SecretKeyCiphertextColumn, SecretKeyIVColumn, SecretKeyTagColumn, SecretValueCiphertextColumn, SecretValueIVColumn, SecretValueTagColumn, SecretCommentCiphertextColumn, SecretCommentIVColumn, SecretCommentTagColumn, SecretReminderNoteColumn, SecretReminderRepeatDaysColumn, SkipMultilineEncodingColumn, AlgorithmColumn, KeyEncodingColumn, MetadataColumn, CreatedAtColumn, UpdatedAtColumn, RequestIdColumn, OpColumn, SecretIdColumn, SecretVersionColumn}+ defaultColumns = postgres.ColumnList{IDColumn, VersionColumn, SkipMultilineEncodingColumn, AlgorithmColumn, KeyEncodingColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretApprovalRequestsSecretsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Version: VersionColumn,+ SecretBlindIndex: SecretBlindIndexColumn,+ SecretKeyCiphertext: SecretKeyCiphertextColumn,+ SecretKeyIV: SecretKeyIVColumn,+ SecretKeyTag: SecretKeyTagColumn,+ SecretValueCiphertext: SecretValueCiphertextColumn,+ SecretValueIV: SecretValueIVColumn,+ SecretValueTag: SecretValueTagColumn,+ SecretCommentCiphertext: SecretCommentCiphertextColumn,+ SecretCommentIV: SecretCommentIVColumn,+ SecretCommentTag: SecretCommentTagColumn,+ SecretReminderNote: SecretReminderNoteColumn,+ SecretReminderRepeatDays: SecretReminderRepeatDaysColumn,+ SkipMultilineEncoding: SkipMultilineEncodingColumn,+ Algorithm: AlgorithmColumn,+ KeyEncoding: KeyEncodingColumn,+ Metadata: MetadataColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ RequestId: RequestIdColumn,+ Op: OpColumn,+ SecretId: SecretIdColumn,+ SecretVersion: SecretVersionColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_approval_requests_secrets_v2.go b/backend-go/internal/database/pg/gen/table/secret_approval_requests_secrets_v2.gonew file mode 100644index 0000000000..caebeb0c82--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_approval_requests_secrets_v2.go@@ -0,0 +1,126 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretApprovalRequestsSecretsV2 = newSecretApprovalRequestsSecretsV2Table("public", "secret_approval_requests_secrets_v2", "")++type secretApprovalRequestsSecretsV2Table struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Version postgres.ColumnInteger+ Key postgres.ColumnString+ EncryptedValue postgres.ColumnBytea+ EncryptedComment postgres.ColumnBytea+ ReminderNote postgres.ColumnString+ ReminderRepeatDays postgres.ColumnInteger+ SkipMultilineEncoding postgres.ColumnBool+ Metadata postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ RequestId postgres.ColumnString+ Op postgres.ColumnString+ SecretId postgres.ColumnString+ SecretVersion postgres.ColumnString+ SecretMetadata postgres.ColumnString+ InternalMetadata postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretApprovalRequestsSecretsV2Table struct {+ secretApprovalRequestsSecretsV2Table++ EXCLUDED secretApprovalRequestsSecretsV2Table+}++// AS creates new SecretApprovalRequestsSecretsV2Table with assigned alias+func (a SecretApprovalRequestsSecretsV2Table) AS(alias string) *SecretApprovalRequestsSecretsV2Table {+ return newSecretApprovalRequestsSecretsV2Table(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretApprovalRequestsSecretsV2Table with assigned schema name+func (a SecretApprovalRequestsSecretsV2Table) FromSchema(schemaName string) *SecretApprovalRequestsSecretsV2Table {+ return newSecretApprovalRequestsSecretsV2Table(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretApprovalRequestsSecretsV2Table with assigned table prefix+func (a SecretApprovalRequestsSecretsV2Table) WithPrefix(prefix string) *SecretApprovalRequestsSecretsV2Table {+ return newSecretApprovalRequestsSecretsV2Table(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretApprovalRequestsSecretsV2Table with assigned table suffix+func (a SecretApprovalRequestsSecretsV2Table) WithSuffix(suffix string) *SecretApprovalRequestsSecretsV2Table {+ return newSecretApprovalRequestsSecretsV2Table(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretApprovalRequestsSecretsV2Table(schemaName, tableName, alias string) *SecretApprovalRequestsSecretsV2Table {+ return &SecretApprovalRequestsSecretsV2Table{+ secretApprovalRequestsSecretsV2Table: newSecretApprovalRequestsSecretsV2TableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretApprovalRequestsSecretsV2TableImpl("", "excluded", ""),+ }+}++func newSecretApprovalRequestsSecretsV2TableImpl(schemaName, tableName, alias string) secretApprovalRequestsSecretsV2Table {+ var (+ IDColumn = postgres.StringColumn("id")+ VersionColumn = postgres.IntegerColumn("version")+ KeyColumn = postgres.StringColumn("key")+ EncryptedValueColumn = postgres.ByteaColumn("encryptedValue")+ EncryptedCommentColumn = postgres.ByteaColumn("encryptedComment")+ ReminderNoteColumn = postgres.StringColumn("reminderNote")+ ReminderRepeatDaysColumn = postgres.IntegerColumn("reminderRepeatDays")+ SkipMultilineEncodingColumn = postgres.BoolColumn("skipMultilineEncoding")+ MetadataColumn = postgres.StringColumn("metadata")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ RequestIdColumn = postgres.StringColumn("requestId")+ OpColumn = postgres.StringColumn("op")+ SecretIdColumn = postgres.StringColumn("secretId")+ SecretVersionColumn = postgres.StringColumn("secretVersion")+ SecretMetadataColumn = postgres.StringColumn("secretMetadata")+ InternalMetadataColumn = postgres.StringColumn("internalMetadata")+ allColumns = postgres.ColumnList{IDColumn, VersionColumn, KeyColumn, EncryptedValueColumn, EncryptedCommentColumn, ReminderNoteColumn, ReminderRepeatDaysColumn, SkipMultilineEncodingColumn, MetadataColumn, CreatedAtColumn, UpdatedAtColumn, RequestIdColumn, OpColumn, SecretIdColumn, SecretVersionColumn, SecretMetadataColumn, InternalMetadataColumn}+ mutableColumns = postgres.ColumnList{VersionColumn, KeyColumn, EncryptedValueColumn, EncryptedCommentColumn, ReminderNoteColumn, ReminderRepeatDaysColumn, SkipMultilineEncodingColumn, MetadataColumn, CreatedAtColumn, UpdatedAtColumn, RequestIdColumn, OpColumn, SecretIdColumn, SecretVersionColumn, SecretMetadataColumn, InternalMetadataColumn}+ defaultColumns = postgres.ColumnList{IDColumn, VersionColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretApprovalRequestsSecretsV2Table{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Version: VersionColumn,+ Key: KeyColumn,+ EncryptedValue: EncryptedValueColumn,+ EncryptedComment: EncryptedCommentColumn,+ ReminderNote: ReminderNoteColumn,+ ReminderRepeatDays: ReminderRepeatDaysColumn,+ SkipMultilineEncoding: SkipMultilineEncodingColumn,+ Metadata: MetadataColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ RequestId: RequestIdColumn,+ Op: OpColumn,+ SecretId: SecretIdColumn,+ SecretVersion: SecretVersionColumn,+ SecretMetadata: SecretMetadataColumn,+ InternalMetadata: InternalMetadataColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_blind_indexes.go b/backend-go/internal/database/pg/gen/table/secret_blind_indexes.gonew file mode 100644index 0000000000..86776e8428--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_blind_indexes.go@@ -0,0 +1,102 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretBlindIndexes = newSecretBlindIndexesTable("public", "secret_blind_indexes", "")++type secretBlindIndexesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ EncryptedSaltCipherText postgres.ColumnString+ SaltIV postgres.ColumnString+ SaltTag postgres.ColumnString+ Algorithm postgres.ColumnString+ KeyEncoding postgres.ColumnString+ ProjectId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretBlindIndexesTable struct {+ secretBlindIndexesTable++ EXCLUDED secretBlindIndexesTable+}++// AS creates new SecretBlindIndexesTable with assigned alias+func (a SecretBlindIndexesTable) AS(alias string) *SecretBlindIndexesTable {+ return newSecretBlindIndexesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretBlindIndexesTable with assigned schema name+func (a SecretBlindIndexesTable) FromSchema(schemaName string) *SecretBlindIndexesTable {+ return newSecretBlindIndexesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretBlindIndexesTable with assigned table prefix+func (a SecretBlindIndexesTable) WithPrefix(prefix string) *SecretBlindIndexesTable {+ return newSecretBlindIndexesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretBlindIndexesTable with assigned table suffix+func (a SecretBlindIndexesTable) WithSuffix(suffix string) *SecretBlindIndexesTable {+ return newSecretBlindIndexesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretBlindIndexesTable(schemaName, tableName, alias string) *SecretBlindIndexesTable {+ return &SecretBlindIndexesTable{+ secretBlindIndexesTable: newSecretBlindIndexesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretBlindIndexesTableImpl("", "excluded", ""),+ }+}++func newSecretBlindIndexesTableImpl(schemaName, tableName, alias string) secretBlindIndexesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ EncryptedSaltCipherTextColumn = postgres.StringColumn("encryptedSaltCipherText")+ SaltIVColumn = postgres.StringColumn("saltIV")+ SaltTagColumn = postgres.StringColumn("saltTag")+ AlgorithmColumn = postgres.StringColumn("algorithm")+ KeyEncodingColumn = postgres.StringColumn("keyEncoding")+ ProjectIdColumn = postgres.StringColumn("projectId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, EncryptedSaltCipherTextColumn, SaltIVColumn, SaltTagColumn, AlgorithmColumn, KeyEncodingColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{EncryptedSaltCipherTextColumn, SaltIVColumn, SaltTagColumn, AlgorithmColumn, KeyEncodingColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, AlgorithmColumn, KeyEncodingColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretBlindIndexesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ EncryptedSaltCipherText: EncryptedSaltCipherTextColumn,+ SaltIV: SaltIVColumn,+ SaltTag: SaltTagColumn,+ Algorithm: AlgorithmColumn,+ KeyEncoding: KeyEncodingColumn,+ ProjectId: ProjectIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_folder_versions.go b/backend-go/internal/database/pg/gen/table/secret_folder_versions.gonew file mode 100644index 0000000000..b60d74be72--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_folder_versions.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretFolderVersions = newSecretFolderVersionsTable("public", "secret_folder_versions", "")++type secretFolderVersionsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Version postgres.ColumnInteger+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ EnvId postgres.ColumnString+ FolderId postgres.ColumnString+ Description postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretFolderVersionsTable struct {+ secretFolderVersionsTable++ EXCLUDED secretFolderVersionsTable+}++// AS creates new SecretFolderVersionsTable with assigned alias+func (a SecretFolderVersionsTable) AS(alias string) *SecretFolderVersionsTable {+ return newSecretFolderVersionsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretFolderVersionsTable with assigned schema name+func (a SecretFolderVersionsTable) FromSchema(schemaName string) *SecretFolderVersionsTable {+ return newSecretFolderVersionsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretFolderVersionsTable with assigned table prefix+func (a SecretFolderVersionsTable) WithPrefix(prefix string) *SecretFolderVersionsTable {+ return newSecretFolderVersionsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretFolderVersionsTable with assigned table suffix+func (a SecretFolderVersionsTable) WithSuffix(suffix string) *SecretFolderVersionsTable {+ return newSecretFolderVersionsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretFolderVersionsTable(schemaName, tableName, alias string) *SecretFolderVersionsTable {+ return &SecretFolderVersionsTable{+ secretFolderVersionsTable: newSecretFolderVersionsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretFolderVersionsTableImpl("", "excluded", ""),+ }+}++func newSecretFolderVersionsTableImpl(schemaName, tableName, alias string) secretFolderVersionsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ VersionColumn = postgres.IntegerColumn("version")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ EnvIdColumn = postgres.StringColumn("envId")+ FolderIdColumn = postgres.StringColumn("folderId")+ DescriptionColumn = postgres.StringColumn("description")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, VersionColumn, CreatedAtColumn, UpdatedAtColumn, EnvIdColumn, FolderIdColumn, DescriptionColumn}+ mutableColumns = postgres.ColumnList{NameColumn, VersionColumn, CreatedAtColumn, UpdatedAtColumn, EnvIdColumn, FolderIdColumn, DescriptionColumn}+ defaultColumns = postgres.ColumnList{IDColumn, VersionColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretFolderVersionsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Version: VersionColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ EnvId: EnvIdColumn,+ FolderId: FolderIdColumn,+ Description: DescriptionColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_folders.go b/backend-go/internal/database/pg/gen/table/secret_folders.gonew file mode 100644index 0000000000..0119a7bd04--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_folders.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretFolders = newSecretFoldersTable("public", "secret_folders", "")++type secretFoldersTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Version postgres.ColumnInteger+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ EnvId postgres.ColumnString+ ParentId postgres.ColumnString+ IsReserved postgres.ColumnBool+ Description postgres.ColumnString+ LastSecretModified postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretFoldersTable struct {+ secretFoldersTable++ EXCLUDED secretFoldersTable+}++// AS creates new SecretFoldersTable with assigned alias+func (a SecretFoldersTable) AS(alias string) *SecretFoldersTable {+ return newSecretFoldersTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretFoldersTable with assigned schema name+func (a SecretFoldersTable) FromSchema(schemaName string) *SecretFoldersTable {+ return newSecretFoldersTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretFoldersTable with assigned table prefix+func (a SecretFoldersTable) WithPrefix(prefix string) *SecretFoldersTable {+ return newSecretFoldersTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretFoldersTable with assigned table suffix+func (a SecretFoldersTable) WithSuffix(suffix string) *SecretFoldersTable {+ return newSecretFoldersTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretFoldersTable(schemaName, tableName, alias string) *SecretFoldersTable {+ return &SecretFoldersTable{+ secretFoldersTable: newSecretFoldersTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretFoldersTableImpl("", "excluded", ""),+ }+}++func newSecretFoldersTableImpl(schemaName, tableName, alias string) secretFoldersTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ VersionColumn = postgres.IntegerColumn("version")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ EnvIdColumn = postgres.StringColumn("envId")+ ParentIdColumn = postgres.StringColumn("parentId")+ IsReservedColumn = postgres.BoolColumn("isReserved")+ DescriptionColumn = postgres.StringColumn("description")+ LastSecretModifiedColumn = postgres.TimestampzColumn("lastSecretModified")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, VersionColumn, CreatedAtColumn, UpdatedAtColumn, EnvIdColumn, ParentIdColumn, IsReservedColumn, DescriptionColumn, LastSecretModifiedColumn}+ mutableColumns = postgres.ColumnList{NameColumn, VersionColumn, CreatedAtColumn, UpdatedAtColumn, EnvIdColumn, ParentIdColumn, IsReservedColumn, DescriptionColumn, LastSecretModifiedColumn}+ defaultColumns = postgres.ColumnList{IDColumn, VersionColumn, CreatedAtColumn, UpdatedAtColumn, IsReservedColumn}+ )++ return secretFoldersTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Version: VersionColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ EnvId: EnvIdColumn,+ ParentId: ParentIdColumn,+ IsReserved: IsReservedColumn,+ Description: DescriptionColumn,+ LastSecretModified: LastSecretModifiedColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_imports.go b/backend-go/internal/database/pg/gen/table/secret_imports.gonew file mode 100644index 0000000000..dfeebc2d5f--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_imports.go@@ -0,0 +1,114 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretImports = newSecretImportsTable("public", "secret_imports", "")++type secretImportsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Version postgres.ColumnInteger+ ImportPath postgres.ColumnString+ ImportEnv postgres.ColumnString+ Position postgres.ColumnInteger+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ FolderId postgres.ColumnString+ IsReplication postgres.ColumnBool+ IsReplicationSuccess postgres.ColumnBool+ ReplicationStatus postgres.ColumnString+ LastReplicated postgres.ColumnTimestampz+ IsReserved postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretImportsTable struct {+ secretImportsTable++ EXCLUDED secretImportsTable+}++// AS creates new SecretImportsTable with assigned alias+func (a SecretImportsTable) AS(alias string) *SecretImportsTable {+ return newSecretImportsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretImportsTable with assigned schema name+func (a SecretImportsTable) FromSchema(schemaName string) *SecretImportsTable {+ return newSecretImportsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretImportsTable with assigned table prefix+func (a SecretImportsTable) WithPrefix(prefix string) *SecretImportsTable {+ return newSecretImportsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretImportsTable with assigned table suffix+func (a SecretImportsTable) WithSuffix(suffix string) *SecretImportsTable {+ return newSecretImportsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretImportsTable(schemaName, tableName, alias string) *SecretImportsTable {+ return &SecretImportsTable{+ secretImportsTable: newSecretImportsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretImportsTableImpl("", "excluded", ""),+ }+}++func newSecretImportsTableImpl(schemaName, tableName, alias string) secretImportsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ VersionColumn = postgres.IntegerColumn("version")+ ImportPathColumn = postgres.StringColumn("importPath")+ ImportEnvColumn = postgres.StringColumn("importEnv")+ PositionColumn = postgres.IntegerColumn("position")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ FolderIdColumn = postgres.StringColumn("folderId")+ IsReplicationColumn = postgres.BoolColumn("isReplication")+ IsReplicationSuccessColumn = postgres.BoolColumn("isReplicationSuccess")+ ReplicationStatusColumn = postgres.StringColumn("replicationStatus")+ LastReplicatedColumn = postgres.TimestampzColumn("lastReplicated")+ IsReservedColumn = postgres.BoolColumn("isReserved")+ allColumns = postgres.ColumnList{IDColumn, VersionColumn, ImportPathColumn, ImportEnvColumn, PositionColumn, CreatedAtColumn, UpdatedAtColumn, FolderIdColumn, IsReplicationColumn, IsReplicationSuccessColumn, ReplicationStatusColumn, LastReplicatedColumn, IsReservedColumn}+ mutableColumns = postgres.ColumnList{VersionColumn, ImportPathColumn, ImportEnvColumn, PositionColumn, CreatedAtColumn, UpdatedAtColumn, FolderIdColumn, IsReplicationColumn, IsReplicationSuccessColumn, ReplicationStatusColumn, LastReplicatedColumn, IsReservedColumn}+ defaultColumns = postgres.ColumnList{IDColumn, VersionColumn, CreatedAtColumn, UpdatedAtColumn, IsReplicationColumn, IsReservedColumn}+ )++ return secretImportsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Version: VersionColumn,+ ImportPath: ImportPathColumn,+ ImportEnv: ImportEnvColumn,+ Position: PositionColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ FolderId: FolderIdColumn,+ IsReplication: IsReplicationColumn,+ IsReplicationSuccess: IsReplicationSuccessColumn,+ ReplicationStatus: ReplicationStatusColumn,+ LastReplicated: LastReplicatedColumn,+ IsReserved: IsReservedColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_references.go b/backend-go/internal/database/pg/gen/table/secret_references.gonew file mode 100644index 0000000000..e05009ab03--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_references.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretReferences = newSecretReferencesTable("public", "secret_references", "")++type secretReferencesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Environment postgres.ColumnString+ SecretPath postgres.ColumnString+ SecretId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretReferencesTable struct {+ secretReferencesTable++ EXCLUDED secretReferencesTable+}++// AS creates new SecretReferencesTable with assigned alias+func (a SecretReferencesTable) AS(alias string) *SecretReferencesTable {+ return newSecretReferencesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretReferencesTable with assigned schema name+func (a SecretReferencesTable) FromSchema(schemaName string) *SecretReferencesTable {+ return newSecretReferencesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretReferencesTable with assigned table prefix+func (a SecretReferencesTable) WithPrefix(prefix string) *SecretReferencesTable {+ return newSecretReferencesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretReferencesTable with assigned table suffix+func (a SecretReferencesTable) WithSuffix(suffix string) *SecretReferencesTable {+ return newSecretReferencesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretReferencesTable(schemaName, tableName, alias string) *SecretReferencesTable {+ return &SecretReferencesTable{+ secretReferencesTable: newSecretReferencesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretReferencesTableImpl("", "excluded", ""),+ }+}++func newSecretReferencesTableImpl(schemaName, tableName, alias string) secretReferencesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ EnvironmentColumn = postgres.StringColumn("environment")+ SecretPathColumn = postgres.StringColumn("secretPath")+ SecretIdColumn = postgres.StringColumn("secretId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, EnvironmentColumn, SecretPathColumn, SecretIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{EnvironmentColumn, SecretPathColumn, SecretIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretReferencesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Environment: EnvironmentColumn,+ SecretPath: SecretPathColumn,+ SecretId: SecretIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_references_v2.go b/backend-go/internal/database/pg/gen/table/secret_references_v2.gonew file mode 100644index 0000000000..c7ce332a9d--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_references_v2.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretReferencesV2 = newSecretReferencesV2Table("public", "secret_references_v2", "")++type secretReferencesV2Table struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Environment postgres.ColumnString+ SecretPath postgres.ColumnString+ SecretKey postgres.ColumnString+ SecretId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretReferencesV2Table struct {+ secretReferencesV2Table++ EXCLUDED secretReferencesV2Table+}++// AS creates new SecretReferencesV2Table with assigned alias+func (a SecretReferencesV2Table) AS(alias string) *SecretReferencesV2Table {+ return newSecretReferencesV2Table(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretReferencesV2Table with assigned schema name+func (a SecretReferencesV2Table) FromSchema(schemaName string) *SecretReferencesV2Table {+ return newSecretReferencesV2Table(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretReferencesV2Table with assigned table prefix+func (a SecretReferencesV2Table) WithPrefix(prefix string) *SecretReferencesV2Table {+ return newSecretReferencesV2Table(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretReferencesV2Table with assigned table suffix+func (a SecretReferencesV2Table) WithSuffix(suffix string) *SecretReferencesV2Table {+ return newSecretReferencesV2Table(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretReferencesV2Table(schemaName, tableName, alias string) *SecretReferencesV2Table {+ return &SecretReferencesV2Table{+ secretReferencesV2Table: newSecretReferencesV2TableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretReferencesV2TableImpl("", "excluded", ""),+ }+}++func newSecretReferencesV2TableImpl(schemaName, tableName, alias string) secretReferencesV2Table {+ var (+ IDColumn = postgres.StringColumn("id")+ EnvironmentColumn = postgres.StringColumn("environment")+ SecretPathColumn = postgres.StringColumn("secretPath")+ SecretKeyColumn = postgres.StringColumn("secretKey")+ SecretIdColumn = postgres.StringColumn("secretId")+ allColumns = postgres.ColumnList{IDColumn, EnvironmentColumn, SecretPathColumn, SecretKeyColumn, SecretIdColumn}+ mutableColumns = postgres.ColumnList{EnvironmentColumn, SecretPathColumn, SecretKeyColumn, SecretIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return secretReferencesV2Table{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Environment: EnvironmentColumn,+ SecretPath: SecretPathColumn,+ SecretKey: SecretKeyColumn,+ SecretId: SecretIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_reminder_recipients.go b/backend-go/internal/database/pg/gen/table/secret_reminder_recipients.gonew file mode 100644index 0000000000..e7c1e8f4d8--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_reminder_recipients.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretReminderRecipients = newSecretReminderRecipientsTable("public", "secret_reminder_recipients", "")++type secretReminderRecipientsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ SecretId postgres.ColumnString+ UserId postgres.ColumnString+ ProjectId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretReminderRecipientsTable struct {+ secretReminderRecipientsTable++ EXCLUDED secretReminderRecipientsTable+}++// AS creates new SecretReminderRecipientsTable with assigned alias+func (a SecretReminderRecipientsTable) AS(alias string) *SecretReminderRecipientsTable {+ return newSecretReminderRecipientsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretReminderRecipientsTable with assigned schema name+func (a SecretReminderRecipientsTable) FromSchema(schemaName string) *SecretReminderRecipientsTable {+ return newSecretReminderRecipientsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretReminderRecipientsTable with assigned table prefix+func (a SecretReminderRecipientsTable) WithPrefix(prefix string) *SecretReminderRecipientsTable {+ return newSecretReminderRecipientsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretReminderRecipientsTable with assigned table suffix+func (a SecretReminderRecipientsTable) WithSuffix(suffix string) *SecretReminderRecipientsTable {+ return newSecretReminderRecipientsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretReminderRecipientsTable(schemaName, tableName, alias string) *SecretReminderRecipientsTable {+ return &SecretReminderRecipientsTable{+ secretReminderRecipientsTable: newSecretReminderRecipientsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretReminderRecipientsTableImpl("", "excluded", ""),+ }+}++func newSecretReminderRecipientsTableImpl(schemaName, tableName, alias string) secretReminderRecipientsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ SecretIdColumn = postgres.StringColumn("secretId")+ UserIdColumn = postgres.StringColumn("userId")+ ProjectIdColumn = postgres.StringColumn("projectId")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, SecretIdColumn, UserIdColumn, ProjectIdColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, SecretIdColumn, UserIdColumn, ProjectIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretReminderRecipientsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ SecretId: SecretIdColumn,+ UserId: UserIdColumn,+ ProjectId: ProjectIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_rotation_output_v2.go b/backend-go/internal/database/pg/gen/table/secret_rotation_output_v2.gonew file mode 100644index 0000000000..fa9fc886de--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_rotation_output_v2.go@@ -0,0 +1,87 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretRotationOutputV2 = newSecretRotationOutputV2Table("public", "secret_rotation_output_v2", "")++type secretRotationOutputV2Table struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Key postgres.ColumnString+ SecretId postgres.ColumnString+ RotationId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretRotationOutputV2Table struct {+ secretRotationOutputV2Table++ EXCLUDED secretRotationOutputV2Table+}++// AS creates new SecretRotationOutputV2Table with assigned alias+func (a SecretRotationOutputV2Table) AS(alias string) *SecretRotationOutputV2Table {+ return newSecretRotationOutputV2Table(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretRotationOutputV2Table with assigned schema name+func (a SecretRotationOutputV2Table) FromSchema(schemaName string) *SecretRotationOutputV2Table {+ return newSecretRotationOutputV2Table(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretRotationOutputV2Table with assigned table prefix+func (a SecretRotationOutputV2Table) WithPrefix(prefix string) *SecretRotationOutputV2Table {+ return newSecretRotationOutputV2Table(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretRotationOutputV2Table with assigned table suffix+func (a SecretRotationOutputV2Table) WithSuffix(suffix string) *SecretRotationOutputV2Table {+ return newSecretRotationOutputV2Table(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretRotationOutputV2Table(schemaName, tableName, alias string) *SecretRotationOutputV2Table {+ return &SecretRotationOutputV2Table{+ secretRotationOutputV2Table: newSecretRotationOutputV2TableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretRotationOutputV2TableImpl("", "excluded", ""),+ }+}++func newSecretRotationOutputV2TableImpl(schemaName, tableName, alias string) secretRotationOutputV2Table {+ var (+ IDColumn = postgres.StringColumn("id")+ KeyColumn = postgres.StringColumn("key")+ SecretIdColumn = postgres.StringColumn("secretId")+ RotationIdColumn = postgres.StringColumn("rotationId")+ allColumns = postgres.ColumnList{IDColumn, KeyColumn, SecretIdColumn, RotationIdColumn}+ mutableColumns = postgres.ColumnList{KeyColumn, SecretIdColumn, RotationIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return secretRotationOutputV2Table{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Key: KeyColumn,+ SecretId: SecretIdColumn,+ RotationId: RotationIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_rotation_outputs.go b/backend-go/internal/database/pg/gen/table/secret_rotation_outputs.gonew file mode 100644index 0000000000..3c35dcaf73--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_rotation_outputs.go@@ -0,0 +1,87 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretRotationOutputs = newSecretRotationOutputsTable("public", "secret_rotation_outputs", "")++type secretRotationOutputsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Key postgres.ColumnString+ SecretId postgres.ColumnString+ RotationId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretRotationOutputsTable struct {+ secretRotationOutputsTable++ EXCLUDED secretRotationOutputsTable+}++// AS creates new SecretRotationOutputsTable with assigned alias+func (a SecretRotationOutputsTable) AS(alias string) *SecretRotationOutputsTable {+ return newSecretRotationOutputsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretRotationOutputsTable with assigned schema name+func (a SecretRotationOutputsTable) FromSchema(schemaName string) *SecretRotationOutputsTable {+ return newSecretRotationOutputsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretRotationOutputsTable with assigned table prefix+func (a SecretRotationOutputsTable) WithPrefix(prefix string) *SecretRotationOutputsTable {+ return newSecretRotationOutputsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretRotationOutputsTable with assigned table suffix+func (a SecretRotationOutputsTable) WithSuffix(suffix string) *SecretRotationOutputsTable {+ return newSecretRotationOutputsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretRotationOutputsTable(schemaName, tableName, alias string) *SecretRotationOutputsTable {+ return &SecretRotationOutputsTable{+ secretRotationOutputsTable: newSecretRotationOutputsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretRotationOutputsTableImpl("", "excluded", ""),+ }+}++func newSecretRotationOutputsTableImpl(schemaName, tableName, alias string) secretRotationOutputsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ KeyColumn = postgres.StringColumn("key")+ SecretIdColumn = postgres.StringColumn("secretId")+ RotationIdColumn = postgres.StringColumn("rotationId")+ allColumns = postgres.ColumnList{IDColumn, KeyColumn, SecretIdColumn, RotationIdColumn}+ mutableColumns = postgres.ColumnList{KeyColumn, SecretIdColumn, RotationIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return secretRotationOutputsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Key: KeyColumn,+ SecretId: SecretIdColumn,+ RotationId: RotationIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_rotation_v2_secret_mappings.go b/backend-go/internal/database/pg/gen/table/secret_rotation_v2_secret_mappings.gonew file mode 100644index 0000000000..11152e0673--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_rotation_v2_secret_mappings.go@@ -0,0 +1,84 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretRotationV2SecretMappings = newSecretRotationV2SecretMappingsTable("public", "secret_rotation_v2_secret_mappings", "")++type secretRotationV2SecretMappingsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ SecretId postgres.ColumnString+ RotationId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretRotationV2SecretMappingsTable struct {+ secretRotationV2SecretMappingsTable++ EXCLUDED secretRotationV2SecretMappingsTable+}++// AS creates new SecretRotationV2SecretMappingsTable with assigned alias+func (a SecretRotationV2SecretMappingsTable) AS(alias string) *SecretRotationV2SecretMappingsTable {+ return newSecretRotationV2SecretMappingsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretRotationV2SecretMappingsTable with assigned schema name+func (a SecretRotationV2SecretMappingsTable) FromSchema(schemaName string) *SecretRotationV2SecretMappingsTable {+ return newSecretRotationV2SecretMappingsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretRotationV2SecretMappingsTable with assigned table prefix+func (a SecretRotationV2SecretMappingsTable) WithPrefix(prefix string) *SecretRotationV2SecretMappingsTable {+ return newSecretRotationV2SecretMappingsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretRotationV2SecretMappingsTable with assigned table suffix+func (a SecretRotationV2SecretMappingsTable) WithSuffix(suffix string) *SecretRotationV2SecretMappingsTable {+ return newSecretRotationV2SecretMappingsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretRotationV2SecretMappingsTable(schemaName, tableName, alias string) *SecretRotationV2SecretMappingsTable {+ return &SecretRotationV2SecretMappingsTable{+ secretRotationV2SecretMappingsTable: newSecretRotationV2SecretMappingsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretRotationV2SecretMappingsTableImpl("", "excluded", ""),+ }+}++func newSecretRotationV2SecretMappingsTableImpl(schemaName, tableName, alias string) secretRotationV2SecretMappingsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ SecretIdColumn = postgres.StringColumn("secretId")+ RotationIdColumn = postgres.StringColumn("rotationId")+ allColumns = postgres.ColumnList{IDColumn, SecretIdColumn, RotationIdColumn}+ mutableColumns = postgres.ColumnList{SecretIdColumn, RotationIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return secretRotationV2SecretMappingsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ SecretId: SecretIdColumn,+ RotationId: RotationIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_rotations.go b/backend-go/internal/database/pg/gen/table/secret_rotations.gonew file mode 100644index 0000000000..fef7bcf366--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_rotations.go@@ -0,0 +1,123 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretRotations = newSecretRotationsTable("public", "secret_rotations", "")++type secretRotationsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Provider postgres.ColumnString+ SecretPath postgres.ColumnString+ Interval postgres.ColumnInteger+ LastRotatedAt postgres.ColumnTimestampz+ Status postgres.ColumnString+ StatusMessage postgres.ColumnString+ EncryptedData postgres.ColumnString+ EncryptedDataIV postgres.ColumnString+ EncryptedDataTag postgres.ColumnString+ Algorithm postgres.ColumnString+ KeyEncoding postgres.ColumnString+ EnvId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ EncryptedRotationData postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretRotationsTable struct {+ secretRotationsTable++ EXCLUDED secretRotationsTable+}++// AS creates new SecretRotationsTable with assigned alias+func (a SecretRotationsTable) AS(alias string) *SecretRotationsTable {+ return newSecretRotationsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretRotationsTable with assigned schema name+func (a SecretRotationsTable) FromSchema(schemaName string) *SecretRotationsTable {+ return newSecretRotationsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretRotationsTable with assigned table prefix+func (a SecretRotationsTable) WithPrefix(prefix string) *SecretRotationsTable {+ return newSecretRotationsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretRotationsTable with assigned table suffix+func (a SecretRotationsTable) WithSuffix(suffix string) *SecretRotationsTable {+ return newSecretRotationsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretRotationsTable(schemaName, tableName, alias string) *SecretRotationsTable {+ return &SecretRotationsTable{+ secretRotationsTable: newSecretRotationsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretRotationsTableImpl("", "excluded", ""),+ }+}++func newSecretRotationsTableImpl(schemaName, tableName, alias string) secretRotationsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProviderColumn = postgres.StringColumn("provider")+ SecretPathColumn = postgres.StringColumn("secretPath")+ IntervalColumn = postgres.IntegerColumn("interval")+ LastRotatedAtColumn = postgres.TimestampzColumn("lastRotatedAt")+ StatusColumn = postgres.StringColumn("status")+ StatusMessageColumn = postgres.StringColumn("statusMessage")+ EncryptedDataColumn = postgres.StringColumn("encryptedData")+ EncryptedDataIVColumn = postgres.StringColumn("encryptedDataIV")+ EncryptedDataTagColumn = postgres.StringColumn("encryptedDataTag")+ AlgorithmColumn = postgres.StringColumn("algorithm")+ KeyEncodingColumn = postgres.StringColumn("keyEncoding")+ EnvIdColumn = postgres.StringColumn("envId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ EncryptedRotationDataColumn = postgres.ByteaColumn("encryptedRotationData")+ allColumns = postgres.ColumnList{IDColumn, ProviderColumn, SecretPathColumn, IntervalColumn, LastRotatedAtColumn, StatusColumn, StatusMessageColumn, EncryptedDataColumn, EncryptedDataIVColumn, EncryptedDataTagColumn, AlgorithmColumn, KeyEncodingColumn, EnvIdColumn, CreatedAtColumn, UpdatedAtColumn, EncryptedRotationDataColumn}+ mutableColumns = postgres.ColumnList{ProviderColumn, SecretPathColumn, IntervalColumn, LastRotatedAtColumn, StatusColumn, StatusMessageColumn, EncryptedDataColumn, EncryptedDataIVColumn, EncryptedDataTagColumn, AlgorithmColumn, KeyEncodingColumn, EnvIdColumn, CreatedAtColumn, UpdatedAtColumn, EncryptedRotationDataColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretRotationsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Provider: ProviderColumn,+ SecretPath: SecretPathColumn,+ Interval: IntervalColumn,+ LastRotatedAt: LastRotatedAtColumn,+ Status: StatusColumn,+ StatusMessage: StatusMessageColumn,+ EncryptedData: EncryptedDataColumn,+ EncryptedDataIV: EncryptedDataIVColumn,+ EncryptedDataTag: EncryptedDataTagColumn,+ Algorithm: AlgorithmColumn,+ KeyEncoding: KeyEncodingColumn,+ EnvId: EnvIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ EncryptedRotationData: EncryptedRotationDataColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_rotations_v2.go b/backend-go/internal/database/pg/gen/table/secret_rotations_v2.gonew file mode 100644index 0000000000..da224f4314--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_rotations_v2.go@@ -0,0 +1,141 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretRotationsV2 = newSecretRotationsV2Table("public", "secret_rotations_v2", "")++type secretRotationsV2Table struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Description postgres.ColumnString+ Type postgres.ColumnString+ Parameters postgres.ColumnString+ SecretsMapping postgres.ColumnString+ EncryptedGeneratedCredentials postgres.ColumnBytea+ IsAutoRotationEnabled postgres.ColumnBool+ ActiveIndex postgres.ColumnInteger+ FolderId postgres.ColumnString+ ConnectionId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ RotationInterval postgres.ColumnInteger+ RotateAtUtc postgres.ColumnString+ RotationStatus postgres.ColumnString+ LastRotationAttemptedAt postgres.ColumnTimestampz+ LastRotatedAt postgres.ColumnTimestampz+ EncryptedLastRotationMessage postgres.ColumnBytea+ LastRotationJobId postgres.ColumnString+ NextRotationAt postgres.ColumnTimestampz+ IsLastRotationManual postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretRotationsV2Table struct {+ secretRotationsV2Table++ EXCLUDED secretRotationsV2Table+}++// AS creates new SecretRotationsV2Table with assigned alias+func (a SecretRotationsV2Table) AS(alias string) *SecretRotationsV2Table {+ return newSecretRotationsV2Table(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretRotationsV2Table with assigned schema name+func (a SecretRotationsV2Table) FromSchema(schemaName string) *SecretRotationsV2Table {+ return newSecretRotationsV2Table(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretRotationsV2Table with assigned table prefix+func (a SecretRotationsV2Table) WithPrefix(prefix string) *SecretRotationsV2Table {+ return newSecretRotationsV2Table(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretRotationsV2Table with assigned table suffix+func (a SecretRotationsV2Table) WithSuffix(suffix string) *SecretRotationsV2Table {+ return newSecretRotationsV2Table(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretRotationsV2Table(schemaName, tableName, alias string) *SecretRotationsV2Table {+ return &SecretRotationsV2Table{+ secretRotationsV2Table: newSecretRotationsV2TableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretRotationsV2TableImpl("", "excluded", ""),+ }+}++func newSecretRotationsV2TableImpl(schemaName, tableName, alias string) secretRotationsV2Table {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ DescriptionColumn = postgres.StringColumn("description")+ TypeColumn = postgres.StringColumn("type")+ ParametersColumn = postgres.StringColumn("parameters")+ SecretsMappingColumn = postgres.StringColumn("secretsMapping")+ EncryptedGeneratedCredentialsColumn = postgres.ByteaColumn("encryptedGeneratedCredentials")+ IsAutoRotationEnabledColumn = postgres.BoolColumn("isAutoRotationEnabled")+ ActiveIndexColumn = postgres.IntegerColumn("activeIndex")+ FolderIdColumn = postgres.StringColumn("folderId")+ ConnectionIdColumn = postgres.StringColumn("connectionId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ RotationIntervalColumn = postgres.IntegerColumn("rotationInterval")+ RotateAtUtcColumn = postgres.StringColumn("rotateAtUtc")+ RotationStatusColumn = postgres.StringColumn("rotationStatus")+ LastRotationAttemptedAtColumn = postgres.TimestampzColumn("lastRotationAttemptedAt")+ LastRotatedAtColumn = postgres.TimestampzColumn("lastRotatedAt")+ EncryptedLastRotationMessageColumn = postgres.ByteaColumn("encryptedLastRotationMessage")+ LastRotationJobIdColumn = postgres.StringColumn("lastRotationJobId")+ NextRotationAtColumn = postgres.TimestampzColumn("nextRotationAt")+ IsLastRotationManualColumn = postgres.BoolColumn("isLastRotationManual")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, DescriptionColumn, TypeColumn, ParametersColumn, SecretsMappingColumn, EncryptedGeneratedCredentialsColumn, IsAutoRotationEnabledColumn, ActiveIndexColumn, FolderIdColumn, ConnectionIdColumn, CreatedAtColumn, UpdatedAtColumn, RotationIntervalColumn, RotateAtUtcColumn, RotationStatusColumn, LastRotationAttemptedAtColumn, LastRotatedAtColumn, EncryptedLastRotationMessageColumn, LastRotationJobIdColumn, NextRotationAtColumn, IsLastRotationManualColumn}+ mutableColumns = postgres.ColumnList{NameColumn, DescriptionColumn, TypeColumn, ParametersColumn, SecretsMappingColumn, EncryptedGeneratedCredentialsColumn, IsAutoRotationEnabledColumn, ActiveIndexColumn, FolderIdColumn, ConnectionIdColumn, CreatedAtColumn, UpdatedAtColumn, RotationIntervalColumn, RotateAtUtcColumn, RotationStatusColumn, LastRotationAttemptedAtColumn, LastRotatedAtColumn, EncryptedLastRotationMessageColumn, LastRotationJobIdColumn, NextRotationAtColumn, IsLastRotationManualColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsAutoRotationEnabledColumn, ActiveIndexColumn, CreatedAtColumn, UpdatedAtColumn, IsLastRotationManualColumn}+ )++ return secretRotationsV2Table{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Description: DescriptionColumn,+ Type: TypeColumn,+ Parameters: ParametersColumn,+ SecretsMapping: SecretsMappingColumn,+ EncryptedGeneratedCredentials: EncryptedGeneratedCredentialsColumn,+ IsAutoRotationEnabled: IsAutoRotationEnabledColumn,+ ActiveIndex: ActiveIndexColumn,+ FolderId: FolderIdColumn,+ ConnectionId: ConnectionIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ RotationInterval: RotationIntervalColumn,+ RotateAtUtc: RotateAtUtcColumn,+ RotationStatus: RotationStatusColumn,+ LastRotationAttemptedAt: LastRotationAttemptedAtColumn,+ LastRotatedAt: LastRotatedAtColumn,+ EncryptedLastRotationMessage: EncryptedLastRotationMessageColumn,+ LastRotationJobId: LastRotationJobIdColumn,+ NextRotationAt: NextRotationAtColumn,+ IsLastRotationManual: IsLastRotationManualColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_scanning_configs.go b/backend-go/internal/database/pg/gen/table/secret_scanning_configs.gonew file mode 100644index 0000000000..3967d6697b--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_scanning_configs.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretScanningConfigs = newSecretScanningConfigsTable("public", "secret_scanning_configs", "")++type secretScanningConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ProjectId postgres.ColumnString+ Content postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretScanningConfigsTable struct {+ secretScanningConfigsTable++ EXCLUDED secretScanningConfigsTable+}++// AS creates new SecretScanningConfigsTable with assigned alias+func (a SecretScanningConfigsTable) AS(alias string) *SecretScanningConfigsTable {+ return newSecretScanningConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretScanningConfigsTable with assigned schema name+func (a SecretScanningConfigsTable) FromSchema(schemaName string) *SecretScanningConfigsTable {+ return newSecretScanningConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretScanningConfigsTable with assigned table prefix+func (a SecretScanningConfigsTable) WithPrefix(prefix string) *SecretScanningConfigsTable {+ return newSecretScanningConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretScanningConfigsTable with assigned table suffix+func (a SecretScanningConfigsTable) WithSuffix(suffix string) *SecretScanningConfigsTable {+ return newSecretScanningConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretScanningConfigsTable(schemaName, tableName, alias string) *SecretScanningConfigsTable {+ return &SecretScanningConfigsTable{+ secretScanningConfigsTable: newSecretScanningConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretScanningConfigsTableImpl("", "excluded", ""),+ }+}++func newSecretScanningConfigsTableImpl(schemaName, tableName, alias string) secretScanningConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ProjectIdColumn = postgres.StringColumn("projectId")+ ContentColumn = postgres.StringColumn("content")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ProjectIdColumn, ContentColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ProjectIdColumn, ContentColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretScanningConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ProjectId: ProjectIdColumn,+ Content: ContentColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_scanning_data_sources.go b/backend-go/internal/database/pg/gen/table/secret_scanning_data_sources.gonew file mode 100644index 0000000000..d3997db581--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_scanning_data_sources.go@@ -0,0 +1,114 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretScanningDataSources = newSecretScanningDataSourcesTable("public", "secret_scanning_data_sources", "")++type secretScanningDataSourcesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ExternalId postgres.ColumnString+ Name postgres.ColumnString+ Description postgres.ColumnString+ Type postgres.ColumnString+ Config postgres.ColumnString+ EncryptedCredentials postgres.ColumnBytea+ ConnectionId postgres.ColumnString+ IsAutoScanEnabled postgres.ColumnBool+ ProjectId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IsDisconnected postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretScanningDataSourcesTable struct {+ secretScanningDataSourcesTable++ EXCLUDED secretScanningDataSourcesTable+}++// AS creates new SecretScanningDataSourcesTable with assigned alias+func (a SecretScanningDataSourcesTable) AS(alias string) *SecretScanningDataSourcesTable {+ return newSecretScanningDataSourcesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretScanningDataSourcesTable with assigned schema name+func (a SecretScanningDataSourcesTable) FromSchema(schemaName string) *SecretScanningDataSourcesTable {+ return newSecretScanningDataSourcesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretScanningDataSourcesTable with assigned table prefix+func (a SecretScanningDataSourcesTable) WithPrefix(prefix string) *SecretScanningDataSourcesTable {+ return newSecretScanningDataSourcesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretScanningDataSourcesTable with assigned table suffix+func (a SecretScanningDataSourcesTable) WithSuffix(suffix string) *SecretScanningDataSourcesTable {+ return newSecretScanningDataSourcesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretScanningDataSourcesTable(schemaName, tableName, alias string) *SecretScanningDataSourcesTable {+ return &SecretScanningDataSourcesTable{+ secretScanningDataSourcesTable: newSecretScanningDataSourcesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretScanningDataSourcesTableImpl("", "excluded", ""),+ }+}++func newSecretScanningDataSourcesTableImpl(schemaName, tableName, alias string) secretScanningDataSourcesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ExternalIdColumn = postgres.StringColumn("externalId")+ NameColumn = postgres.StringColumn("name")+ DescriptionColumn = postgres.StringColumn("description")+ TypeColumn = postgres.StringColumn("type")+ ConfigColumn = postgres.StringColumn("config")+ EncryptedCredentialsColumn = postgres.ByteaColumn("encryptedCredentials")+ ConnectionIdColumn = postgres.StringColumn("connectionId")+ IsAutoScanEnabledColumn = postgres.BoolColumn("isAutoScanEnabled")+ ProjectIdColumn = postgres.StringColumn("projectId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IsDisconnectedColumn = postgres.BoolColumn("isDisconnected")+ allColumns = postgres.ColumnList{IDColumn, ExternalIdColumn, NameColumn, DescriptionColumn, TypeColumn, ConfigColumn, EncryptedCredentialsColumn, ConnectionIdColumn, IsAutoScanEnabledColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn, IsDisconnectedColumn}+ mutableColumns = postgres.ColumnList{ExternalIdColumn, NameColumn, DescriptionColumn, TypeColumn, ConfigColumn, EncryptedCredentialsColumn, ConnectionIdColumn, IsAutoScanEnabledColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn, IsDisconnectedColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsAutoScanEnabledColumn, CreatedAtColumn, UpdatedAtColumn, IsDisconnectedColumn}+ )++ return secretScanningDataSourcesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ExternalId: ExternalIdColumn,+ Name: NameColumn,+ Description: DescriptionColumn,+ Type: TypeColumn,+ Config: ConfigColumn,+ EncryptedCredentials: EncryptedCredentialsColumn,+ ConnectionId: ConnectionIdColumn,+ IsAutoScanEnabled: IsAutoScanEnabledColumn,+ ProjectId: ProjectIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IsDisconnected: IsDisconnectedColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_scanning_findings.go b/backend-go/internal/database/pg/gen/table/secret_scanning_findings.gonew file mode 100644index 0000000000..d6f512fb82--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_scanning_findings.go@@ -0,0 +1,120 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretScanningFindings = newSecretScanningFindingsTable("public", "secret_scanning_findings", "")++type secretScanningFindingsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ DataSourceName postgres.ColumnString+ DataSourceType postgres.ColumnString+ ResourceName postgres.ColumnString+ ResourceType postgres.ColumnString+ Rule postgres.ColumnString+ Severity postgres.ColumnString+ Status postgres.ColumnString+ Remarks postgres.ColumnString+ Fingerprint postgres.ColumnString+ Details postgres.ColumnString+ ProjectId postgres.ColumnString+ ScanId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretScanningFindingsTable struct {+ secretScanningFindingsTable++ EXCLUDED secretScanningFindingsTable+}++// AS creates new SecretScanningFindingsTable with assigned alias+func (a SecretScanningFindingsTable) AS(alias string) *SecretScanningFindingsTable {+ return newSecretScanningFindingsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretScanningFindingsTable with assigned schema name+func (a SecretScanningFindingsTable) FromSchema(schemaName string) *SecretScanningFindingsTable {+ return newSecretScanningFindingsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretScanningFindingsTable with assigned table prefix+func (a SecretScanningFindingsTable) WithPrefix(prefix string) *SecretScanningFindingsTable {+ return newSecretScanningFindingsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretScanningFindingsTable with assigned table suffix+func (a SecretScanningFindingsTable) WithSuffix(suffix string) *SecretScanningFindingsTable {+ return newSecretScanningFindingsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretScanningFindingsTable(schemaName, tableName, alias string) *SecretScanningFindingsTable {+ return &SecretScanningFindingsTable{+ secretScanningFindingsTable: newSecretScanningFindingsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretScanningFindingsTableImpl("", "excluded", ""),+ }+}++func newSecretScanningFindingsTableImpl(schemaName, tableName, alias string) secretScanningFindingsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ DataSourceNameColumn = postgres.StringColumn("dataSourceName")+ DataSourceTypeColumn = postgres.StringColumn("dataSourceType")+ ResourceNameColumn = postgres.StringColumn("resourceName")+ ResourceTypeColumn = postgres.StringColumn("resourceType")+ RuleColumn = postgres.StringColumn("rule")+ SeverityColumn = postgres.StringColumn("severity")+ StatusColumn = postgres.StringColumn("status")+ RemarksColumn = postgres.StringColumn("remarks")+ FingerprintColumn = postgres.StringColumn("fingerprint")+ DetailsColumn = postgres.StringColumn("details")+ ProjectIdColumn = postgres.StringColumn("projectId")+ ScanIdColumn = postgres.StringColumn("scanId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, DataSourceNameColumn, DataSourceTypeColumn, ResourceNameColumn, ResourceTypeColumn, RuleColumn, SeverityColumn, StatusColumn, RemarksColumn, FingerprintColumn, DetailsColumn, ProjectIdColumn, ScanIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{DataSourceNameColumn, DataSourceTypeColumn, ResourceNameColumn, ResourceTypeColumn, RuleColumn, SeverityColumn, StatusColumn, RemarksColumn, FingerprintColumn, DetailsColumn, ProjectIdColumn, ScanIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, StatusColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretScanningFindingsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ DataSourceName: DataSourceNameColumn,+ DataSourceType: DataSourceTypeColumn,+ ResourceName: ResourceNameColumn,+ ResourceType: ResourceTypeColumn,+ Rule: RuleColumn,+ Severity: SeverityColumn,+ Status: StatusColumn,+ Remarks: RemarksColumn,+ Fingerprint: FingerprintColumn,+ Details: DetailsColumn,+ ProjectId: ProjectIdColumn,+ ScanId: ScanIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_scanning_git_risks.go b/backend-go/internal/database/pg/gen/table/secret_scanning_git_risks.gonew file mode 100644index 0000000000..b24b100213--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_scanning_git_risks.go@@ -0,0 +1,168 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretScanningGitRisks = newSecretScanningGitRisksTable("public", "secret_scanning_git_risks", "")++type secretScanningGitRisksTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Description postgres.ColumnString+ StartLine postgres.ColumnString+ EndLine postgres.ColumnString+ StartColumn postgres.ColumnString+ EndColumn postgres.ColumnString+ File postgres.ColumnString+ SymlinkFile postgres.ColumnString+ Commit postgres.ColumnString+ Entropy postgres.ColumnString+ Author postgres.ColumnString+ Email postgres.ColumnString+ Date postgres.ColumnString+ Message postgres.ColumnString+ Tags postgres.ColumnStringArray+ RuleID postgres.ColumnString+ Fingerprint postgres.ColumnString+ FingerPrintWithoutCommitId postgres.ColumnString+ IsFalsePositive postgres.ColumnBool+ IsResolved postgres.ColumnBool+ RiskOwner postgres.ColumnString+ InstallationId postgres.ColumnString+ RepositoryId postgres.ColumnString+ RepositoryLink postgres.ColumnString+ RepositoryFullName postgres.ColumnString+ PusherName postgres.ColumnString+ PusherEmail postgres.ColumnString+ Status postgres.ColumnString+ OrgId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretScanningGitRisksTable struct {+ secretScanningGitRisksTable++ EXCLUDED secretScanningGitRisksTable+}++// AS creates new SecretScanningGitRisksTable with assigned alias+func (a SecretScanningGitRisksTable) AS(alias string) *SecretScanningGitRisksTable {+ return newSecretScanningGitRisksTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretScanningGitRisksTable with assigned schema name+func (a SecretScanningGitRisksTable) FromSchema(schemaName string) *SecretScanningGitRisksTable {+ return newSecretScanningGitRisksTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretScanningGitRisksTable with assigned table prefix+func (a SecretScanningGitRisksTable) WithPrefix(prefix string) *SecretScanningGitRisksTable {+ return newSecretScanningGitRisksTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretScanningGitRisksTable with assigned table suffix+func (a SecretScanningGitRisksTable) WithSuffix(suffix string) *SecretScanningGitRisksTable {+ return newSecretScanningGitRisksTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretScanningGitRisksTable(schemaName, tableName, alias string) *SecretScanningGitRisksTable {+ return &SecretScanningGitRisksTable{+ secretScanningGitRisksTable: newSecretScanningGitRisksTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretScanningGitRisksTableImpl("", "excluded", ""),+ }+}++func newSecretScanningGitRisksTableImpl(schemaName, tableName, alias string) secretScanningGitRisksTable {+ var (+ IDColumn = postgres.StringColumn("id")+ DescriptionColumn = postgres.StringColumn("description")+ StartLineColumn = postgres.StringColumn("startLine")+ EndLineColumn = postgres.StringColumn("endLine")+ StartColumnColumn = postgres.StringColumn("startColumn")+ EndColumnColumn = postgres.StringColumn("endColumn")+ FileColumn = postgres.StringColumn("file")+ SymlinkFileColumn = postgres.StringColumn("symlinkFile")+ CommitColumn = postgres.StringColumn("commit")+ EntropyColumn = postgres.StringColumn("entropy")+ AuthorColumn = postgres.StringColumn("author")+ EmailColumn = postgres.StringColumn("email")+ DateColumn = postgres.StringColumn("date")+ MessageColumn = postgres.StringColumn("message")+ TagsColumn = postgres.StringArrayColumn("tags")+ RuleIDColumn = postgres.StringColumn("ruleID")+ FingerprintColumn = postgres.StringColumn("fingerprint")+ FingerPrintWithoutCommitIdColumn = postgres.StringColumn("fingerPrintWithoutCommitId")+ IsFalsePositiveColumn = postgres.BoolColumn("isFalsePositive")+ IsResolvedColumn = postgres.BoolColumn("isResolved")+ RiskOwnerColumn = postgres.StringColumn("riskOwner")+ InstallationIdColumn = postgres.StringColumn("installationId")+ RepositoryIdColumn = postgres.StringColumn("repositoryId")+ RepositoryLinkColumn = postgres.StringColumn("repositoryLink")+ RepositoryFullNameColumn = postgres.StringColumn("repositoryFullName")+ PusherNameColumn = postgres.StringColumn("pusherName")+ PusherEmailColumn = postgres.StringColumn("pusherEmail")+ StatusColumn = postgres.StringColumn("status")+ OrgIdColumn = postgres.StringColumn("orgId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, DescriptionColumn, StartLineColumn, EndLineColumn, StartColumnColumn, EndColumnColumn, FileColumn, SymlinkFileColumn, CommitColumn, EntropyColumn, AuthorColumn, EmailColumn, DateColumn, MessageColumn, TagsColumn, RuleIDColumn, FingerprintColumn, FingerPrintWithoutCommitIdColumn, IsFalsePositiveColumn, IsResolvedColumn, RiskOwnerColumn, InstallationIdColumn, RepositoryIdColumn, RepositoryLinkColumn, RepositoryFullNameColumn, PusherNameColumn, PusherEmailColumn, StatusColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{DescriptionColumn, StartLineColumn, EndLineColumn, StartColumnColumn, EndColumnColumn, FileColumn, SymlinkFileColumn, CommitColumn, EntropyColumn, AuthorColumn, EmailColumn, DateColumn, MessageColumn, TagsColumn, RuleIDColumn, FingerprintColumn, FingerPrintWithoutCommitIdColumn, IsFalsePositiveColumn, IsResolvedColumn, RiskOwnerColumn, InstallationIdColumn, RepositoryIdColumn, RepositoryLinkColumn, RepositoryFullNameColumn, PusherNameColumn, PusherEmailColumn, StatusColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsFalsePositiveColumn, IsResolvedColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretScanningGitRisksTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Description: DescriptionColumn,+ StartLine: StartLineColumn,+ EndLine: EndLineColumn,+ StartColumn: StartColumnColumn,+ EndColumn: EndColumnColumn,+ File: FileColumn,+ SymlinkFile: SymlinkFileColumn,+ Commit: CommitColumn,+ Entropy: EntropyColumn,+ Author: AuthorColumn,+ Email: EmailColumn,+ Date: DateColumn,+ Message: MessageColumn,+ Tags: TagsColumn,+ RuleID: RuleIDColumn,+ Fingerprint: FingerprintColumn,+ FingerPrintWithoutCommitId: FingerPrintWithoutCommitIdColumn,+ IsFalsePositive: IsFalsePositiveColumn,+ IsResolved: IsResolvedColumn,+ RiskOwner: RiskOwnerColumn,+ InstallationId: InstallationIdColumn,+ RepositoryId: RepositoryIdColumn,+ RepositoryLink: RepositoryLinkColumn,+ RepositoryFullName: RepositoryFullNameColumn,+ PusherName: PusherNameColumn,+ PusherEmail: PusherEmailColumn,+ Status: StatusColumn,+ OrgId: OrgIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_scanning_resources.go b/backend-go/internal/database/pg/gen/table/secret_scanning_resources.gonew file mode 100644index 0000000000..f29f61a606--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_scanning_resources.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretScanningResources = newSecretScanningResourcesTable("public", "secret_scanning_resources", "")++type secretScanningResourcesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ExternalId postgres.ColumnString+ Name postgres.ColumnString+ Type postgres.ColumnString+ DataSourceId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretScanningResourcesTable struct {+ secretScanningResourcesTable++ EXCLUDED secretScanningResourcesTable+}++// AS creates new SecretScanningResourcesTable with assigned alias+func (a SecretScanningResourcesTable) AS(alias string) *SecretScanningResourcesTable {+ return newSecretScanningResourcesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretScanningResourcesTable with assigned schema name+func (a SecretScanningResourcesTable) FromSchema(schemaName string) *SecretScanningResourcesTable {+ return newSecretScanningResourcesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretScanningResourcesTable with assigned table prefix+func (a SecretScanningResourcesTable) WithPrefix(prefix string) *SecretScanningResourcesTable {+ return newSecretScanningResourcesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretScanningResourcesTable with assigned table suffix+func (a SecretScanningResourcesTable) WithSuffix(suffix string) *SecretScanningResourcesTable {+ return newSecretScanningResourcesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretScanningResourcesTable(schemaName, tableName, alias string) *SecretScanningResourcesTable {+ return &SecretScanningResourcesTable{+ secretScanningResourcesTable: newSecretScanningResourcesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretScanningResourcesTableImpl("", "excluded", ""),+ }+}++func newSecretScanningResourcesTableImpl(schemaName, tableName, alias string) secretScanningResourcesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ExternalIdColumn = postgres.StringColumn("externalId")+ NameColumn = postgres.StringColumn("name")+ TypeColumn = postgres.StringColumn("type")+ DataSourceIdColumn = postgres.StringColumn("dataSourceId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, ExternalIdColumn, NameColumn, TypeColumn, DataSourceIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{ExternalIdColumn, NameColumn, TypeColumn, DataSourceIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretScanningResourcesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ExternalId: ExternalIdColumn,+ Name: NameColumn,+ Type: TypeColumn,+ DataSourceId: DataSourceIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_scanning_scans.go b/backend-go/internal/database/pg/gen/table/secret_scanning_scans.gonew file mode 100644index 0000000000..5fa55120d5--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_scanning_scans.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretScanningScans = newSecretScanningScansTable("public", "secret_scanning_scans", "")++type secretScanningScansTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Status postgres.ColumnString+ StatusMessage postgres.ColumnString+ Type postgres.ColumnString+ ResourceId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretScanningScansTable struct {+ secretScanningScansTable++ EXCLUDED secretScanningScansTable+}++// AS creates new SecretScanningScansTable with assigned alias+func (a SecretScanningScansTable) AS(alias string) *SecretScanningScansTable {+ return newSecretScanningScansTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretScanningScansTable with assigned schema name+func (a SecretScanningScansTable) FromSchema(schemaName string) *SecretScanningScansTable {+ return newSecretScanningScansTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretScanningScansTable with assigned table prefix+func (a SecretScanningScansTable) WithPrefix(prefix string) *SecretScanningScansTable {+ return newSecretScanningScansTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretScanningScansTable with assigned table suffix+func (a SecretScanningScansTable) WithSuffix(suffix string) *SecretScanningScansTable {+ return newSecretScanningScansTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretScanningScansTable(schemaName, tableName, alias string) *SecretScanningScansTable {+ return &SecretScanningScansTable{+ secretScanningScansTable: newSecretScanningScansTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretScanningScansTableImpl("", "excluded", ""),+ }+}++func newSecretScanningScansTableImpl(schemaName, tableName, alias string) secretScanningScansTable {+ var (+ IDColumn = postgres.StringColumn("id")+ StatusColumn = postgres.StringColumn("status")+ StatusMessageColumn = postgres.StringColumn("statusMessage")+ TypeColumn = postgres.StringColumn("type")+ ResourceIdColumn = postgres.StringColumn("resourceId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ allColumns = postgres.ColumnList{IDColumn, StatusColumn, StatusMessageColumn, TypeColumn, ResourceIdColumn, CreatedAtColumn}+ mutableColumns = postgres.ColumnList{StatusColumn, StatusMessageColumn, TypeColumn, ResourceIdColumn, CreatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, StatusColumn, CreatedAtColumn}+ )++ return secretScanningScansTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Status: StatusColumn,+ StatusMessage: StatusMessageColumn,+ Type: TypeColumn,+ ResourceId: ResourceIdColumn,+ CreatedAt: CreatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_sharing.go b/backend-go/internal/database/pg/gen/table/secret_sharing.gonew file mode 100644index 0000000000..4e2e7d6a1d--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_sharing.go@@ -0,0 +1,135 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretSharing = newSecretSharingTable("public", "secret_sharing", "")++type secretSharingTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ EncryptedValue postgres.ColumnString+ Iv postgres.ColumnString+ Tag postgres.ColumnString+ HashedHex postgres.ColumnString+ ExpiresAt postgres.ColumnTimestampz+ UserId postgres.ColumnString+ OrgId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ExpiresAfterViews postgres.ColumnInteger+ AccessType postgres.ColumnString+ Name postgres.ColumnString+ LastViewedAt postgres.ColumnTimestampz+ Password postgres.ColumnString+ EncryptedSecret postgres.ColumnBytea+ Identifier postgres.ColumnString+ Type postgres.ColumnString+ AuthorizedEmails postgres.ColumnString+ IdentityId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretSharingTable struct {+ secretSharingTable++ EXCLUDED secretSharingTable+}++// AS creates new SecretSharingTable with assigned alias+func (a SecretSharingTable) AS(alias string) *SecretSharingTable {+ return newSecretSharingTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretSharingTable with assigned schema name+func (a SecretSharingTable) FromSchema(schemaName string) *SecretSharingTable {+ return newSecretSharingTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretSharingTable with assigned table prefix+func (a SecretSharingTable) WithPrefix(prefix string) *SecretSharingTable {+ return newSecretSharingTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretSharingTable with assigned table suffix+func (a SecretSharingTable) WithSuffix(suffix string) *SecretSharingTable {+ return newSecretSharingTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretSharingTable(schemaName, tableName, alias string) *SecretSharingTable {+ return &SecretSharingTable{+ secretSharingTable: newSecretSharingTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretSharingTableImpl("", "excluded", ""),+ }+}++func newSecretSharingTableImpl(schemaName, tableName, alias string) secretSharingTable {+ var (+ IDColumn = postgres.StringColumn("id")+ EncryptedValueColumn = postgres.StringColumn("encryptedValue")+ IvColumn = postgres.StringColumn("iv")+ TagColumn = postgres.StringColumn("tag")+ HashedHexColumn = postgres.StringColumn("hashedHex")+ ExpiresAtColumn = postgres.TimestampzColumn("expiresAt")+ UserIdColumn = postgres.StringColumn("userId")+ OrgIdColumn = postgres.StringColumn("orgId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ExpiresAfterViewsColumn = postgres.IntegerColumn("expiresAfterViews")+ AccessTypeColumn = postgres.StringColumn("accessType")+ NameColumn = postgres.StringColumn("name")+ LastViewedAtColumn = postgres.TimestampzColumn("lastViewedAt")+ PasswordColumn = postgres.StringColumn("password")+ EncryptedSecretColumn = postgres.ByteaColumn("encryptedSecret")+ IdentifierColumn = postgres.StringColumn("identifier")+ TypeColumn = postgres.StringColumn("type")+ AuthorizedEmailsColumn = postgres.StringColumn("authorizedEmails")+ IdentityIdColumn = postgres.StringColumn("identityId")+ allColumns = postgres.ColumnList{IDColumn, EncryptedValueColumn, IvColumn, TagColumn, HashedHexColumn, ExpiresAtColumn, UserIdColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, ExpiresAfterViewsColumn, AccessTypeColumn, NameColumn, LastViewedAtColumn, PasswordColumn, EncryptedSecretColumn, IdentifierColumn, TypeColumn, AuthorizedEmailsColumn, IdentityIdColumn}+ mutableColumns = postgres.ColumnList{EncryptedValueColumn, IvColumn, TagColumn, HashedHexColumn, ExpiresAtColumn, UserIdColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, ExpiresAfterViewsColumn, AccessTypeColumn, NameColumn, LastViewedAtColumn, PasswordColumn, EncryptedSecretColumn, IdentifierColumn, TypeColumn, AuthorizedEmailsColumn, IdentityIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, AccessTypeColumn, TypeColumn}+ )++ return secretSharingTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ EncryptedValue: EncryptedValueColumn,+ Iv: IvColumn,+ Tag: TagColumn,+ HashedHex: HashedHexColumn,+ ExpiresAt: ExpiresAtColumn,+ UserId: UserIdColumn,+ OrgId: OrgIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ExpiresAfterViews: ExpiresAfterViewsColumn,+ AccessType: AccessTypeColumn,+ Name: NameColumn,+ LastViewedAt: LastViewedAtColumn,+ Password: PasswordColumn,+ EncryptedSecret: EncryptedSecretColumn,+ Identifier: IdentifierColumn,+ Type: TypeColumn,+ AuthorizedEmails: AuthorizedEmailsColumn,+ IdentityId: IdentityIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_snapshot_folders.go b/backend-go/internal/database/pg/gen/table/secret_snapshot_folders.gonew file mode 100644index 0000000000..e978939861--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_snapshot_folders.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretSnapshotFolders = newSecretSnapshotFoldersTable("public", "secret_snapshot_folders", "")++type secretSnapshotFoldersTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ EnvId postgres.ColumnString+ FolderVersionId postgres.ColumnString+ SnapshotId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretSnapshotFoldersTable struct {+ secretSnapshotFoldersTable++ EXCLUDED secretSnapshotFoldersTable+}++// AS creates new SecretSnapshotFoldersTable with assigned alias+func (a SecretSnapshotFoldersTable) AS(alias string) *SecretSnapshotFoldersTable {+ return newSecretSnapshotFoldersTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretSnapshotFoldersTable with assigned schema name+func (a SecretSnapshotFoldersTable) FromSchema(schemaName string) *SecretSnapshotFoldersTable {+ return newSecretSnapshotFoldersTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretSnapshotFoldersTable with assigned table prefix+func (a SecretSnapshotFoldersTable) WithPrefix(prefix string) *SecretSnapshotFoldersTable {+ return newSecretSnapshotFoldersTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretSnapshotFoldersTable with assigned table suffix+func (a SecretSnapshotFoldersTable) WithSuffix(suffix string) *SecretSnapshotFoldersTable {+ return newSecretSnapshotFoldersTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretSnapshotFoldersTable(schemaName, tableName, alias string) *SecretSnapshotFoldersTable {+ return &SecretSnapshotFoldersTable{+ secretSnapshotFoldersTable: newSecretSnapshotFoldersTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretSnapshotFoldersTableImpl("", "excluded", ""),+ }+}++func newSecretSnapshotFoldersTableImpl(schemaName, tableName, alias string) secretSnapshotFoldersTable {+ var (+ IDColumn = postgres.StringColumn("id")+ EnvIdColumn = postgres.StringColumn("envId")+ FolderVersionIdColumn = postgres.StringColumn("folderVersionId")+ SnapshotIdColumn = postgres.StringColumn("snapshotId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, EnvIdColumn, FolderVersionIdColumn, SnapshotIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{EnvIdColumn, FolderVersionIdColumn, SnapshotIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretSnapshotFoldersTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ EnvId: EnvIdColumn,+ FolderVersionId: FolderVersionIdColumn,+ SnapshotId: SnapshotIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_snapshot_secrets.go b/backend-go/internal/database/pg/gen/table/secret_snapshot_secrets.gonew file mode 100644index 0000000000..4bcd8d813e--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_snapshot_secrets.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretSnapshotSecrets = newSecretSnapshotSecretsTable("public", "secret_snapshot_secrets", "")++type secretSnapshotSecretsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ EnvId postgres.ColumnString+ SecretVersionId postgres.ColumnString+ SnapshotId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretSnapshotSecretsTable struct {+ secretSnapshotSecretsTable++ EXCLUDED secretSnapshotSecretsTable+}++// AS creates new SecretSnapshotSecretsTable with assigned alias+func (a SecretSnapshotSecretsTable) AS(alias string) *SecretSnapshotSecretsTable {+ return newSecretSnapshotSecretsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretSnapshotSecretsTable with assigned schema name+func (a SecretSnapshotSecretsTable) FromSchema(schemaName string) *SecretSnapshotSecretsTable {+ return newSecretSnapshotSecretsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretSnapshotSecretsTable with assigned table prefix+func (a SecretSnapshotSecretsTable) WithPrefix(prefix string) *SecretSnapshotSecretsTable {+ return newSecretSnapshotSecretsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretSnapshotSecretsTable with assigned table suffix+func (a SecretSnapshotSecretsTable) WithSuffix(suffix string) *SecretSnapshotSecretsTable {+ return newSecretSnapshotSecretsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretSnapshotSecretsTable(schemaName, tableName, alias string) *SecretSnapshotSecretsTable {+ return &SecretSnapshotSecretsTable{+ secretSnapshotSecretsTable: newSecretSnapshotSecretsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretSnapshotSecretsTableImpl("", "excluded", ""),+ }+}++func newSecretSnapshotSecretsTableImpl(schemaName, tableName, alias string) secretSnapshotSecretsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ EnvIdColumn = postgres.StringColumn("envId")+ SecretVersionIdColumn = postgres.StringColumn("secretVersionId")+ SnapshotIdColumn = postgres.StringColumn("snapshotId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, EnvIdColumn, SecretVersionIdColumn, SnapshotIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{EnvIdColumn, SecretVersionIdColumn, SnapshotIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretSnapshotSecretsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ EnvId: EnvIdColumn,+ SecretVersionId: SecretVersionIdColumn,+ SnapshotId: SnapshotIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_snapshot_secrets_v2.go b/backend-go/internal/database/pg/gen/table/secret_snapshot_secrets_v2.gonew file mode 100644index 0000000000..205c06bfbc--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_snapshot_secrets_v2.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretSnapshotSecretsV2 = newSecretSnapshotSecretsV2Table("public", "secret_snapshot_secrets_v2", "")++type secretSnapshotSecretsV2Table struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ EnvId postgres.ColumnString+ SecretVersionId postgres.ColumnString+ SnapshotId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretSnapshotSecretsV2Table struct {+ secretSnapshotSecretsV2Table++ EXCLUDED secretSnapshotSecretsV2Table+}++// AS creates new SecretSnapshotSecretsV2Table with assigned alias+func (a SecretSnapshotSecretsV2Table) AS(alias string) *SecretSnapshotSecretsV2Table {+ return newSecretSnapshotSecretsV2Table(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretSnapshotSecretsV2Table with assigned schema name+func (a SecretSnapshotSecretsV2Table) FromSchema(schemaName string) *SecretSnapshotSecretsV2Table {+ return newSecretSnapshotSecretsV2Table(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretSnapshotSecretsV2Table with assigned table prefix+func (a SecretSnapshotSecretsV2Table) WithPrefix(prefix string) *SecretSnapshotSecretsV2Table {+ return newSecretSnapshotSecretsV2Table(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretSnapshotSecretsV2Table with assigned table suffix+func (a SecretSnapshotSecretsV2Table) WithSuffix(suffix string) *SecretSnapshotSecretsV2Table {+ return newSecretSnapshotSecretsV2Table(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretSnapshotSecretsV2Table(schemaName, tableName, alias string) *SecretSnapshotSecretsV2Table {+ return &SecretSnapshotSecretsV2Table{+ secretSnapshotSecretsV2Table: newSecretSnapshotSecretsV2TableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretSnapshotSecretsV2TableImpl("", "excluded", ""),+ }+}++func newSecretSnapshotSecretsV2TableImpl(schemaName, tableName, alias string) secretSnapshotSecretsV2Table {+ var (+ IDColumn = postgres.StringColumn("id")+ EnvIdColumn = postgres.StringColumn("envId")+ SecretVersionIdColumn = postgres.StringColumn("secretVersionId")+ SnapshotIdColumn = postgres.StringColumn("snapshotId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, EnvIdColumn, SecretVersionIdColumn, SnapshotIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{EnvIdColumn, SecretVersionIdColumn, SnapshotIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretSnapshotSecretsV2Table{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ EnvId: EnvIdColumn,+ SecretVersionId: SecretVersionIdColumn,+ SnapshotId: SnapshotIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_snapshots.go b/backend-go/internal/database/pg/gen/table/secret_snapshots.gonew file mode 100644index 0000000000..a9a1b4eb69--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_snapshots.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretSnapshots = newSecretSnapshotsTable("public", "secret_snapshots", "")++type secretSnapshotsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ EnvId postgres.ColumnString+ FolderId postgres.ColumnString+ ParentFolderId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretSnapshotsTable struct {+ secretSnapshotsTable++ EXCLUDED secretSnapshotsTable+}++// AS creates new SecretSnapshotsTable with assigned alias+func (a SecretSnapshotsTable) AS(alias string) *SecretSnapshotsTable {+ return newSecretSnapshotsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretSnapshotsTable with assigned schema name+func (a SecretSnapshotsTable) FromSchema(schemaName string) *SecretSnapshotsTable {+ return newSecretSnapshotsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretSnapshotsTable with assigned table prefix+func (a SecretSnapshotsTable) WithPrefix(prefix string) *SecretSnapshotsTable {+ return newSecretSnapshotsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretSnapshotsTable with assigned table suffix+func (a SecretSnapshotsTable) WithSuffix(suffix string) *SecretSnapshotsTable {+ return newSecretSnapshotsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretSnapshotsTable(schemaName, tableName, alias string) *SecretSnapshotsTable {+ return &SecretSnapshotsTable{+ secretSnapshotsTable: newSecretSnapshotsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretSnapshotsTableImpl("", "excluded", ""),+ }+}++func newSecretSnapshotsTableImpl(schemaName, tableName, alias string) secretSnapshotsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ EnvIdColumn = postgres.StringColumn("envId")+ FolderIdColumn = postgres.StringColumn("folderId")+ ParentFolderIdColumn = postgres.StringColumn("parentFolderId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, EnvIdColumn, FolderIdColumn, ParentFolderIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{EnvIdColumn, FolderIdColumn, ParentFolderIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretSnapshotsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ EnvId: EnvIdColumn,+ FolderId: FolderIdColumn,+ ParentFolderId: ParentFolderIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_syncs.go b/backend-go/internal/database/pg/gen/table/secret_syncs.gonew file mode 100644index 0000000000..b784bd1b32--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_syncs.go@@ -0,0 +1,150 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretSyncs = newSecretSyncsTable("public", "secret_syncs", "")++type secretSyncsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Description postgres.ColumnString+ Destination postgres.ColumnString+ IsAutoSyncEnabled postgres.ColumnBool+ Version postgres.ColumnInteger+ DestinationConfig postgres.ColumnString+ SyncOptions postgres.ColumnString+ ProjectId postgres.ColumnString+ FolderId postgres.ColumnString+ ConnectionId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ SyncStatus postgres.ColumnString+ LastSyncJobId postgres.ColumnString+ LastSyncMessage postgres.ColumnString+ LastSyncedAt postgres.ColumnTimestampz+ ImportStatus postgres.ColumnString+ LastImportJobId postgres.ColumnString+ LastImportMessage postgres.ColumnString+ LastImportedAt postgres.ColumnTimestampz+ RemoveStatus postgres.ColumnString+ LastRemoveJobId postgres.ColumnString+ LastRemoveMessage postgres.ColumnString+ LastRemovedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretSyncsTable struct {+ secretSyncsTable++ EXCLUDED secretSyncsTable+}++// AS creates new SecretSyncsTable with assigned alias+func (a SecretSyncsTable) AS(alias string) *SecretSyncsTable {+ return newSecretSyncsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretSyncsTable with assigned schema name+func (a SecretSyncsTable) FromSchema(schemaName string) *SecretSyncsTable {+ return newSecretSyncsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretSyncsTable with assigned table prefix+func (a SecretSyncsTable) WithPrefix(prefix string) *SecretSyncsTable {+ return newSecretSyncsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretSyncsTable with assigned table suffix+func (a SecretSyncsTable) WithSuffix(suffix string) *SecretSyncsTable {+ return newSecretSyncsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretSyncsTable(schemaName, tableName, alias string) *SecretSyncsTable {+ return &SecretSyncsTable{+ secretSyncsTable: newSecretSyncsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretSyncsTableImpl("", "excluded", ""),+ }+}++func newSecretSyncsTableImpl(schemaName, tableName, alias string) secretSyncsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ DescriptionColumn = postgres.StringColumn("description")+ DestinationColumn = postgres.StringColumn("destination")+ IsAutoSyncEnabledColumn = postgres.BoolColumn("isAutoSyncEnabled")+ VersionColumn = postgres.IntegerColumn("version")+ DestinationConfigColumn = postgres.StringColumn("destinationConfig")+ SyncOptionsColumn = postgres.StringColumn("syncOptions")+ ProjectIdColumn = postgres.StringColumn("projectId")+ FolderIdColumn = postgres.StringColumn("folderId")+ ConnectionIdColumn = postgres.StringColumn("connectionId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ SyncStatusColumn = postgres.StringColumn("syncStatus")+ LastSyncJobIdColumn = postgres.StringColumn("lastSyncJobId")+ LastSyncMessageColumn = postgres.StringColumn("lastSyncMessage")+ LastSyncedAtColumn = postgres.TimestampzColumn("lastSyncedAt")+ ImportStatusColumn = postgres.StringColumn("importStatus")+ LastImportJobIdColumn = postgres.StringColumn("lastImportJobId")+ LastImportMessageColumn = postgres.StringColumn("lastImportMessage")+ LastImportedAtColumn = postgres.TimestampzColumn("lastImportedAt")+ RemoveStatusColumn = postgres.StringColumn("removeStatus")+ LastRemoveJobIdColumn = postgres.StringColumn("lastRemoveJobId")+ LastRemoveMessageColumn = postgres.StringColumn("lastRemoveMessage")+ LastRemovedAtColumn = postgres.TimestampzColumn("lastRemovedAt")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, DescriptionColumn, DestinationColumn, IsAutoSyncEnabledColumn, VersionColumn, DestinationConfigColumn, SyncOptionsColumn, ProjectIdColumn, FolderIdColumn, ConnectionIdColumn, CreatedAtColumn, UpdatedAtColumn, SyncStatusColumn, LastSyncJobIdColumn, LastSyncMessageColumn, LastSyncedAtColumn, ImportStatusColumn, LastImportJobIdColumn, LastImportMessageColumn, LastImportedAtColumn, RemoveStatusColumn, LastRemoveJobIdColumn, LastRemoveMessageColumn, LastRemovedAtColumn}+ mutableColumns = postgres.ColumnList{NameColumn, DescriptionColumn, DestinationColumn, IsAutoSyncEnabledColumn, VersionColumn, DestinationConfigColumn, SyncOptionsColumn, ProjectIdColumn, FolderIdColumn, ConnectionIdColumn, CreatedAtColumn, UpdatedAtColumn, SyncStatusColumn, LastSyncJobIdColumn, LastSyncMessageColumn, LastSyncedAtColumn, ImportStatusColumn, LastImportJobIdColumn, LastImportMessageColumn, LastImportedAtColumn, RemoveStatusColumn, LastRemoveJobIdColumn, LastRemoveMessageColumn, LastRemovedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsAutoSyncEnabledColumn, VersionColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretSyncsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Description: DescriptionColumn,+ Destination: DestinationColumn,+ IsAutoSyncEnabled: IsAutoSyncEnabledColumn,+ Version: VersionColumn,+ DestinationConfig: DestinationConfigColumn,+ SyncOptions: SyncOptionsColumn,+ ProjectId: ProjectIdColumn,+ FolderId: FolderIdColumn,+ ConnectionId: ConnectionIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ SyncStatus: SyncStatusColumn,+ LastSyncJobId: LastSyncJobIdColumn,+ LastSyncMessage: LastSyncMessageColumn,+ LastSyncedAt: LastSyncedAtColumn,+ ImportStatus: ImportStatusColumn,+ LastImportJobId: LastImportJobIdColumn,+ LastImportMessage: LastImportMessageColumn,+ LastImportedAt: LastImportedAtColumn,+ RemoveStatus: RemoveStatusColumn,+ LastRemoveJobId: LastRemoveJobIdColumn,+ LastRemoveMessage: LastRemoveMessageColumn,+ LastRemovedAt: LastRemovedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_tag_junction.go b/backend-go/internal/database/pg/gen/table/secret_tag_junction.gonew file mode 100644index 0000000000..709652a75f--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_tag_junction.go@@ -0,0 +1,84 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretTagJunction = newSecretTagJunctionTable("public", "secret_tag_junction", "")++type secretTagJunctionTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ SecretsId postgres.ColumnString+ SecretTagsid postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretTagJunctionTable struct {+ secretTagJunctionTable++ EXCLUDED secretTagJunctionTable+}++// AS creates new SecretTagJunctionTable with assigned alias+func (a SecretTagJunctionTable) AS(alias string) *SecretTagJunctionTable {+ return newSecretTagJunctionTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretTagJunctionTable with assigned schema name+func (a SecretTagJunctionTable) FromSchema(schemaName string) *SecretTagJunctionTable {+ return newSecretTagJunctionTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretTagJunctionTable with assigned table prefix+func (a SecretTagJunctionTable) WithPrefix(prefix string) *SecretTagJunctionTable {+ return newSecretTagJunctionTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretTagJunctionTable with assigned table suffix+func (a SecretTagJunctionTable) WithSuffix(suffix string) *SecretTagJunctionTable {+ return newSecretTagJunctionTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretTagJunctionTable(schemaName, tableName, alias string) *SecretTagJunctionTable {+ return &SecretTagJunctionTable{+ secretTagJunctionTable: newSecretTagJunctionTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretTagJunctionTableImpl("", "excluded", ""),+ }+}++func newSecretTagJunctionTableImpl(schemaName, tableName, alias string) secretTagJunctionTable {+ var (+ IDColumn = postgres.StringColumn("id")+ SecretsIdColumn = postgres.StringColumn("secretsId")+ SecretTagsidColumn = postgres.StringColumn("secret_tagsId")+ allColumns = postgres.ColumnList{IDColumn, SecretsIdColumn, SecretTagsidColumn}+ mutableColumns = postgres.ColumnList{SecretsIdColumn, SecretTagsidColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return secretTagJunctionTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ SecretsId: SecretsIdColumn,+ SecretTagsid: SecretTagsidColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_tags.go b/backend-go/internal/database/pg/gen/table/secret_tags.gonew file mode 100644index 0000000000..40b088fa6a--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_tags.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretTags = newSecretTagsTable("public", "secret_tags", "")++type secretTagsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Slug postgres.ColumnString+ Color postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ CreatedBy postgres.ColumnString+ ProjectId postgres.ColumnString+ CreatedByActorType postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretTagsTable struct {+ secretTagsTable++ EXCLUDED secretTagsTable+}++// AS creates new SecretTagsTable with assigned alias+func (a SecretTagsTable) AS(alias string) *SecretTagsTable {+ return newSecretTagsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretTagsTable with assigned schema name+func (a SecretTagsTable) FromSchema(schemaName string) *SecretTagsTable {+ return newSecretTagsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretTagsTable with assigned table prefix+func (a SecretTagsTable) WithPrefix(prefix string) *SecretTagsTable {+ return newSecretTagsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretTagsTable with assigned table suffix+func (a SecretTagsTable) WithSuffix(suffix string) *SecretTagsTable {+ return newSecretTagsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretTagsTable(schemaName, tableName, alias string) *SecretTagsTable {+ return &SecretTagsTable{+ secretTagsTable: newSecretTagsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretTagsTableImpl("", "excluded", ""),+ }+}++func newSecretTagsTableImpl(schemaName, tableName, alias string) secretTagsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ SlugColumn = postgres.StringColumn("slug")+ ColorColumn = postgres.StringColumn("color")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ CreatedByColumn = postgres.StringColumn("createdBy")+ ProjectIdColumn = postgres.StringColumn("projectId")+ CreatedByActorTypeColumn = postgres.StringColumn("createdByActorType")+ allColumns = postgres.ColumnList{IDColumn, SlugColumn, ColorColumn, CreatedAtColumn, UpdatedAtColumn, CreatedByColumn, ProjectIdColumn, CreatedByActorTypeColumn}+ mutableColumns = postgres.ColumnList{SlugColumn, ColorColumn, CreatedAtColumn, UpdatedAtColumn, CreatedByColumn, ProjectIdColumn, CreatedByActorTypeColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, CreatedByActorTypeColumn}+ )++ return secretTagsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Slug: SlugColumn,+ Color: ColorColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ CreatedBy: CreatedByColumn,+ ProjectId: ProjectIdColumn,+ CreatedByActorType: CreatedByActorTypeColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_v2_tag_junction.go b/backend-go/internal/database/pg/gen/table/secret_v2_tag_junction.gonew file mode 100644index 0000000000..1092402883--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_v2_tag_junction.go@@ -0,0 +1,84 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretV2TagJunction = newSecretV2TagJunctionTable("public", "secret_v2_tag_junction", "")++type secretV2TagJunctionTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ SecretsV2id postgres.ColumnString+ SecretTagsid postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretV2TagJunctionTable struct {+ secretV2TagJunctionTable++ EXCLUDED secretV2TagJunctionTable+}++// AS creates new SecretV2TagJunctionTable with assigned alias+func (a SecretV2TagJunctionTable) AS(alias string) *SecretV2TagJunctionTable {+ return newSecretV2TagJunctionTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretV2TagJunctionTable with assigned schema name+func (a SecretV2TagJunctionTable) FromSchema(schemaName string) *SecretV2TagJunctionTable {+ return newSecretV2TagJunctionTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretV2TagJunctionTable with assigned table prefix+func (a SecretV2TagJunctionTable) WithPrefix(prefix string) *SecretV2TagJunctionTable {+ return newSecretV2TagJunctionTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretV2TagJunctionTable with assigned table suffix+func (a SecretV2TagJunctionTable) WithSuffix(suffix string) *SecretV2TagJunctionTable {+ return newSecretV2TagJunctionTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretV2TagJunctionTable(schemaName, tableName, alias string) *SecretV2TagJunctionTable {+ return &SecretV2TagJunctionTable{+ secretV2TagJunctionTable: newSecretV2TagJunctionTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretV2TagJunctionTableImpl("", "excluded", ""),+ }+}++func newSecretV2TagJunctionTableImpl(schemaName, tableName, alias string) secretV2TagJunctionTable {+ var (+ IDColumn = postgres.StringColumn("id")+ SecretsV2idColumn = postgres.StringColumn("secrets_v2Id")+ SecretTagsidColumn = postgres.StringColumn("secret_tagsId")+ allColumns = postgres.ColumnList{IDColumn, SecretsV2idColumn, SecretTagsidColumn}+ mutableColumns = postgres.ColumnList{SecretsV2idColumn, SecretTagsidColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return secretV2TagJunctionTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ SecretsV2id: SecretsV2idColumn,+ SecretTagsid: SecretTagsidColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_version_tag_junction.go b/backend-go/internal/database/pg/gen/table/secret_version_tag_junction.gonew file mode 100644index 0000000000..895c2479e4--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_version_tag_junction.go@@ -0,0 +1,84 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretVersionTagJunction = newSecretVersionTagJunctionTable("public", "secret_version_tag_junction", "")++type secretVersionTagJunctionTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ SecretVersionsid postgres.ColumnString+ SecretTagsid postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretVersionTagJunctionTable struct {+ secretVersionTagJunctionTable++ EXCLUDED secretVersionTagJunctionTable+}++// AS creates new SecretVersionTagJunctionTable with assigned alias+func (a SecretVersionTagJunctionTable) AS(alias string) *SecretVersionTagJunctionTable {+ return newSecretVersionTagJunctionTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretVersionTagJunctionTable with assigned schema name+func (a SecretVersionTagJunctionTable) FromSchema(schemaName string) *SecretVersionTagJunctionTable {+ return newSecretVersionTagJunctionTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretVersionTagJunctionTable with assigned table prefix+func (a SecretVersionTagJunctionTable) WithPrefix(prefix string) *SecretVersionTagJunctionTable {+ return newSecretVersionTagJunctionTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretVersionTagJunctionTable with assigned table suffix+func (a SecretVersionTagJunctionTable) WithSuffix(suffix string) *SecretVersionTagJunctionTable {+ return newSecretVersionTagJunctionTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretVersionTagJunctionTable(schemaName, tableName, alias string) *SecretVersionTagJunctionTable {+ return &SecretVersionTagJunctionTable{+ secretVersionTagJunctionTable: newSecretVersionTagJunctionTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretVersionTagJunctionTableImpl("", "excluded", ""),+ }+}++func newSecretVersionTagJunctionTableImpl(schemaName, tableName, alias string) secretVersionTagJunctionTable {+ var (+ IDColumn = postgres.StringColumn("id")+ SecretVersionsidColumn = postgres.StringColumn("secret_versionsId")+ SecretTagsidColumn = postgres.StringColumn("secret_tagsId")+ allColumns = postgres.ColumnList{IDColumn, SecretVersionsidColumn, SecretTagsidColumn}+ mutableColumns = postgres.ColumnList{SecretVersionsidColumn, SecretTagsidColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return secretVersionTagJunctionTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ SecretVersionsid: SecretVersionsidColumn,+ SecretTagsid: SecretTagsidColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_version_v2_tag_junction.go b/backend-go/internal/database/pg/gen/table/secret_version_v2_tag_junction.gonew file mode 100644index 0000000000..b2999404f5--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_version_v2_tag_junction.go@@ -0,0 +1,84 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretVersionV2TagJunction = newSecretVersionV2TagJunctionTable("public", "secret_version_v2_tag_junction", "")++type secretVersionV2TagJunctionTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ SecretVersionsV2id postgres.ColumnString+ SecretTagsid postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretVersionV2TagJunctionTable struct {+ secretVersionV2TagJunctionTable++ EXCLUDED secretVersionV2TagJunctionTable+}++// AS creates new SecretVersionV2TagJunctionTable with assigned alias+func (a SecretVersionV2TagJunctionTable) AS(alias string) *SecretVersionV2TagJunctionTable {+ return newSecretVersionV2TagJunctionTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretVersionV2TagJunctionTable with assigned schema name+func (a SecretVersionV2TagJunctionTable) FromSchema(schemaName string) *SecretVersionV2TagJunctionTable {+ return newSecretVersionV2TagJunctionTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretVersionV2TagJunctionTable with assigned table prefix+func (a SecretVersionV2TagJunctionTable) WithPrefix(prefix string) *SecretVersionV2TagJunctionTable {+ return newSecretVersionV2TagJunctionTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretVersionV2TagJunctionTable with assigned table suffix+func (a SecretVersionV2TagJunctionTable) WithSuffix(suffix string) *SecretVersionV2TagJunctionTable {+ return newSecretVersionV2TagJunctionTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretVersionV2TagJunctionTable(schemaName, tableName, alias string) *SecretVersionV2TagJunctionTable {+ return &SecretVersionV2TagJunctionTable{+ secretVersionV2TagJunctionTable: newSecretVersionV2TagJunctionTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretVersionV2TagJunctionTableImpl("", "excluded", ""),+ }+}++func newSecretVersionV2TagJunctionTableImpl(schemaName, tableName, alias string) secretVersionV2TagJunctionTable {+ var (+ IDColumn = postgres.StringColumn("id")+ SecretVersionsV2idColumn = postgres.StringColumn("secret_versions_v2Id")+ SecretTagsidColumn = postgres.StringColumn("secret_tagsId")+ allColumns = postgres.ColumnList{IDColumn, SecretVersionsV2idColumn, SecretTagsidColumn}+ mutableColumns = postgres.ColumnList{SecretVersionsV2idColumn, SecretTagsidColumn}+ defaultColumns = postgres.ColumnList{IDColumn}+ )++ return secretVersionV2TagJunctionTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ SecretVersionsV2id: SecretVersionsV2idColumn,+ SecretTagsid: SecretTagsidColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_versions.go b/backend-go/internal/database/pg/gen/table/secret_versions.gonew file mode 100644index 0000000000..d466e91578--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_versions.go@@ -0,0 +1,150 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretVersions = newSecretVersionsTable("public", "secret_versions", "")++type secretVersionsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Version postgres.ColumnInteger+ Type postgres.ColumnString+ SecretBlindIndex postgres.ColumnString+ SecretKeyCiphertext postgres.ColumnString+ SecretKeyIV postgres.ColumnString+ SecretKeyTag postgres.ColumnString+ SecretValueCiphertext postgres.ColumnString+ SecretValueIV postgres.ColumnString+ SecretValueTag postgres.ColumnString+ SecretCommentCiphertext postgres.ColumnString+ SecretCommentIV postgres.ColumnString+ SecretCommentTag postgres.ColumnString+ SecretReminderNote postgres.ColumnString+ SecretReminderRepeatDays postgres.ColumnInteger+ SkipMultilineEncoding postgres.ColumnBool+ Algorithm postgres.ColumnString+ KeyEncoding postgres.ColumnString+ Metadata postgres.ColumnString+ EnvId postgres.ColumnString+ SecretId postgres.ColumnString+ FolderId postgres.ColumnString+ UserId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretVersionsTable struct {+ secretVersionsTable++ EXCLUDED secretVersionsTable+}++// AS creates new SecretVersionsTable with assigned alias+func (a SecretVersionsTable) AS(alias string) *SecretVersionsTable {+ return newSecretVersionsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretVersionsTable with assigned schema name+func (a SecretVersionsTable) FromSchema(schemaName string) *SecretVersionsTable {+ return newSecretVersionsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretVersionsTable with assigned table prefix+func (a SecretVersionsTable) WithPrefix(prefix string) *SecretVersionsTable {+ return newSecretVersionsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretVersionsTable with assigned table suffix+func (a SecretVersionsTable) WithSuffix(suffix string) *SecretVersionsTable {+ return newSecretVersionsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretVersionsTable(schemaName, tableName, alias string) *SecretVersionsTable {+ return &SecretVersionsTable{+ secretVersionsTable: newSecretVersionsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretVersionsTableImpl("", "excluded", ""),+ }+}++func newSecretVersionsTableImpl(schemaName, tableName, alias string) secretVersionsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ VersionColumn = postgres.IntegerColumn("version")+ TypeColumn = postgres.StringColumn("type")+ SecretBlindIndexColumn = postgres.StringColumn("secretBlindIndex")+ SecretKeyCiphertextColumn = postgres.StringColumn("secretKeyCiphertext")+ SecretKeyIVColumn = postgres.StringColumn("secretKeyIV")+ SecretKeyTagColumn = postgres.StringColumn("secretKeyTag")+ SecretValueCiphertextColumn = postgres.StringColumn("secretValueCiphertext")+ SecretValueIVColumn = postgres.StringColumn("secretValueIV")+ SecretValueTagColumn = postgres.StringColumn("secretValueTag")+ SecretCommentCiphertextColumn = postgres.StringColumn("secretCommentCiphertext")+ SecretCommentIVColumn = postgres.StringColumn("secretCommentIV")+ SecretCommentTagColumn = postgres.StringColumn("secretCommentTag")+ SecretReminderNoteColumn = postgres.StringColumn("secretReminderNote")+ SecretReminderRepeatDaysColumn = postgres.IntegerColumn("secretReminderRepeatDays")+ SkipMultilineEncodingColumn = postgres.BoolColumn("skipMultilineEncoding")+ AlgorithmColumn = postgres.StringColumn("algorithm")+ KeyEncodingColumn = postgres.StringColumn("keyEncoding")+ MetadataColumn = postgres.StringColumn("metadata")+ EnvIdColumn = postgres.StringColumn("envId")+ SecretIdColumn = postgres.StringColumn("secretId")+ FolderIdColumn = postgres.StringColumn("folderId")+ UserIdColumn = postgres.StringColumn("userId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, VersionColumn, TypeColumn, SecretBlindIndexColumn, SecretKeyCiphertextColumn, SecretKeyIVColumn, SecretKeyTagColumn, SecretValueCiphertextColumn, SecretValueIVColumn, SecretValueTagColumn, SecretCommentCiphertextColumn, SecretCommentIVColumn, SecretCommentTagColumn, SecretReminderNoteColumn, SecretReminderRepeatDaysColumn, SkipMultilineEncodingColumn, AlgorithmColumn, KeyEncodingColumn, MetadataColumn, EnvIdColumn, SecretIdColumn, FolderIdColumn, UserIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{VersionColumn, TypeColumn, SecretBlindIndexColumn, SecretKeyCiphertextColumn, SecretKeyIVColumn, SecretKeyTagColumn, SecretValueCiphertextColumn, SecretValueIVColumn, SecretValueTagColumn, SecretCommentCiphertextColumn, SecretCommentIVColumn, SecretCommentTagColumn, SecretReminderNoteColumn, SecretReminderRepeatDaysColumn, SkipMultilineEncodingColumn, AlgorithmColumn, KeyEncodingColumn, MetadataColumn, EnvIdColumn, SecretIdColumn, FolderIdColumn, UserIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, VersionColumn, TypeColumn, SkipMultilineEncodingColumn, AlgorithmColumn, KeyEncodingColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretVersionsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Version: VersionColumn,+ Type: TypeColumn,+ SecretBlindIndex: SecretBlindIndexColumn,+ SecretKeyCiphertext: SecretKeyCiphertextColumn,+ SecretKeyIV: SecretKeyIVColumn,+ SecretKeyTag: SecretKeyTagColumn,+ SecretValueCiphertext: SecretValueCiphertextColumn,+ SecretValueIV: SecretValueIVColumn,+ SecretValueTag: SecretValueTagColumn,+ SecretCommentCiphertext: SecretCommentCiphertextColumn,+ SecretCommentIV: SecretCommentIVColumn,+ SecretCommentTag: SecretCommentTagColumn,+ SecretReminderNote: SecretReminderNoteColumn,+ SecretReminderRepeatDays: SecretReminderRepeatDaysColumn,+ SkipMultilineEncoding: SkipMultilineEncodingColumn,+ Algorithm: AlgorithmColumn,+ KeyEncoding: KeyEncodingColumn,+ Metadata: MetadataColumn,+ EnvId: EnvIdColumn,+ SecretId: SecretIdColumn,+ FolderId: FolderIdColumn,+ UserId: UserIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secret_versions_v2.go b/backend-go/internal/database/pg/gen/table/secret_versions_v2.gonew file mode 100644index 0000000000..76d2cba6cd--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secret_versions_v2.go@@ -0,0 +1,144 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretVersionsV2 = newSecretVersionsV2Table("public", "secret_versions_v2", "")++type secretVersionsV2Table struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Version postgres.ColumnInteger+ Type postgres.ColumnString+ Key postgres.ColumnString+ EncryptedValue postgres.ColumnBytea+ EncryptedComment postgres.ColumnBytea+ ReminderNote postgres.ColumnString+ ReminderRepeatDays postgres.ColumnInteger+ SkipMultilineEncoding postgres.ColumnBool+ Metadata postgres.ColumnString+ EnvId postgres.ColumnString+ SecretId postgres.ColumnString+ FolderId postgres.ColumnString+ UserId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ UserActorId postgres.ColumnString+ IdentityActorId postgres.ColumnString+ ActorType postgres.ColumnString+ ParentVersionId postgres.ColumnString+ IsRedacted postgres.ColumnBool+ RedactedAt postgres.ColumnTimestampz+ RedactedByUserId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretVersionsV2Table struct {+ secretVersionsV2Table++ EXCLUDED secretVersionsV2Table+}++// AS creates new SecretVersionsV2Table with assigned alias+func (a SecretVersionsV2Table) AS(alias string) *SecretVersionsV2Table {+ return newSecretVersionsV2Table(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretVersionsV2Table with assigned schema name+func (a SecretVersionsV2Table) FromSchema(schemaName string) *SecretVersionsV2Table {+ return newSecretVersionsV2Table(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretVersionsV2Table with assigned table prefix+func (a SecretVersionsV2Table) WithPrefix(prefix string) *SecretVersionsV2Table {+ return newSecretVersionsV2Table(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretVersionsV2Table with assigned table suffix+func (a SecretVersionsV2Table) WithSuffix(suffix string) *SecretVersionsV2Table {+ return newSecretVersionsV2Table(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretVersionsV2Table(schemaName, tableName, alias string) *SecretVersionsV2Table {+ return &SecretVersionsV2Table{+ secretVersionsV2Table: newSecretVersionsV2TableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretVersionsV2TableImpl("", "excluded", ""),+ }+}++func newSecretVersionsV2TableImpl(schemaName, tableName, alias string) secretVersionsV2Table {+ var (+ IDColumn = postgres.StringColumn("id")+ VersionColumn = postgres.IntegerColumn("version")+ TypeColumn = postgres.StringColumn("type")+ KeyColumn = postgres.StringColumn("key")+ EncryptedValueColumn = postgres.ByteaColumn("encryptedValue")+ EncryptedCommentColumn = postgres.ByteaColumn("encryptedComment")+ ReminderNoteColumn = postgres.StringColumn("reminderNote")+ ReminderRepeatDaysColumn = postgres.IntegerColumn("reminderRepeatDays")+ SkipMultilineEncodingColumn = postgres.BoolColumn("skipMultilineEncoding")+ MetadataColumn = postgres.StringColumn("metadata")+ EnvIdColumn = postgres.StringColumn("envId")+ SecretIdColumn = postgres.StringColumn("secretId")+ FolderIdColumn = postgres.StringColumn("folderId")+ UserIdColumn = postgres.StringColumn("userId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ UserActorIdColumn = postgres.StringColumn("userActorId")+ IdentityActorIdColumn = postgres.StringColumn("identityActorId")+ ActorTypeColumn = postgres.StringColumn("actorType")+ ParentVersionIdColumn = postgres.StringColumn("parentVersionId")+ IsRedactedColumn = postgres.BoolColumn("isRedacted")+ RedactedAtColumn = postgres.TimestampzColumn("redactedAt")+ RedactedByUserIdColumn = postgres.StringColumn("redactedByUserId")+ allColumns = postgres.ColumnList{IDColumn, VersionColumn, TypeColumn, KeyColumn, EncryptedValueColumn, EncryptedCommentColumn, ReminderNoteColumn, ReminderRepeatDaysColumn, SkipMultilineEncodingColumn, MetadataColumn, EnvIdColumn, SecretIdColumn, FolderIdColumn, UserIdColumn, CreatedAtColumn, UpdatedAtColumn, UserActorIdColumn, IdentityActorIdColumn, ActorTypeColumn, ParentVersionIdColumn, IsRedactedColumn, RedactedAtColumn, RedactedByUserIdColumn}+ mutableColumns = postgres.ColumnList{VersionColumn, TypeColumn, KeyColumn, EncryptedValueColumn, EncryptedCommentColumn, ReminderNoteColumn, ReminderRepeatDaysColumn, SkipMultilineEncodingColumn, MetadataColumn, EnvIdColumn, SecretIdColumn, FolderIdColumn, UserIdColumn, CreatedAtColumn, UpdatedAtColumn, UserActorIdColumn, IdentityActorIdColumn, ActorTypeColumn, ParentVersionIdColumn, IsRedactedColumn, RedactedAtColumn, RedactedByUserIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, VersionColumn, TypeColumn, SkipMultilineEncodingColumn, CreatedAtColumn, UpdatedAtColumn, IsRedactedColumn}+ )++ return secretVersionsV2Table{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Version: VersionColumn,+ Type: TypeColumn,+ Key: KeyColumn,+ EncryptedValue: EncryptedValueColumn,+ EncryptedComment: EncryptedCommentColumn,+ ReminderNote: ReminderNoteColumn,+ ReminderRepeatDays: ReminderRepeatDaysColumn,+ SkipMultilineEncoding: SkipMultilineEncodingColumn,+ Metadata: MetadataColumn,+ EnvId: EnvIdColumn,+ SecretId: SecretIdColumn,+ FolderId: FolderIdColumn,+ UserId: UserIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ UserActorId: UserActorIdColumn,+ IdentityActorId: IdentityActorIdColumn,+ ActorType: ActorTypeColumn,+ ParentVersionId: ParentVersionIdColumn,+ IsRedacted: IsRedactedColumn,+ RedactedAt: RedactedAtColumn,+ RedactedByUserId: RedactedByUserIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secrets.go b/backend-go/internal/database/pg/gen/table/secrets.gonew file mode 100644index 0000000000..e5de5cd6a4--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secrets.go@@ -0,0 +1,144 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var Secrets = newSecretsTable("public", "secrets", "")++type secretsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Version postgres.ColumnInteger+ Type postgres.ColumnString+ SecretBlindIndex postgres.ColumnString+ SecretKeyCiphertext postgres.ColumnString+ SecretKeyIV postgres.ColumnString+ SecretKeyTag postgres.ColumnString+ SecretValueCiphertext postgres.ColumnString+ SecretValueIV postgres.ColumnString+ SecretValueTag postgres.ColumnString+ SecretCommentCiphertext postgres.ColumnString+ SecretCommentIV postgres.ColumnString+ SecretCommentTag postgres.ColumnString+ SecretReminderNote postgres.ColumnString+ SecretReminderRepeatDays postgres.ColumnInteger+ SkipMultilineEncoding postgres.ColumnBool+ Algorithm postgres.ColumnString+ KeyEncoding postgres.ColumnString+ Metadata postgres.ColumnString+ UserId postgres.ColumnString+ FolderId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretsTable struct {+ secretsTable++ EXCLUDED secretsTable+}++// AS creates new SecretsTable with assigned alias+func (a SecretsTable) AS(alias string) *SecretsTable {+ return newSecretsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretsTable with assigned schema name+func (a SecretsTable) FromSchema(schemaName string) *SecretsTable {+ return newSecretsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretsTable with assigned table prefix+func (a SecretsTable) WithPrefix(prefix string) *SecretsTable {+ return newSecretsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretsTable with assigned table suffix+func (a SecretsTable) WithSuffix(suffix string) *SecretsTable {+ return newSecretsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretsTable(schemaName, tableName, alias string) *SecretsTable {+ return &SecretsTable{+ secretsTable: newSecretsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretsTableImpl("", "excluded", ""),+ }+}++func newSecretsTableImpl(schemaName, tableName, alias string) secretsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ VersionColumn = postgres.IntegerColumn("version")+ TypeColumn = postgres.StringColumn("type")+ SecretBlindIndexColumn = postgres.StringColumn("secretBlindIndex")+ SecretKeyCiphertextColumn = postgres.StringColumn("secretKeyCiphertext")+ SecretKeyIVColumn = postgres.StringColumn("secretKeyIV")+ SecretKeyTagColumn = postgres.StringColumn("secretKeyTag")+ SecretValueCiphertextColumn = postgres.StringColumn("secretValueCiphertext")+ SecretValueIVColumn = postgres.StringColumn("secretValueIV")+ SecretValueTagColumn = postgres.StringColumn("secretValueTag")+ SecretCommentCiphertextColumn = postgres.StringColumn("secretCommentCiphertext")+ SecretCommentIVColumn = postgres.StringColumn("secretCommentIV")+ SecretCommentTagColumn = postgres.StringColumn("secretCommentTag")+ SecretReminderNoteColumn = postgres.StringColumn("secretReminderNote")+ SecretReminderRepeatDaysColumn = postgres.IntegerColumn("secretReminderRepeatDays")+ SkipMultilineEncodingColumn = postgres.BoolColumn("skipMultilineEncoding")+ AlgorithmColumn = postgres.StringColumn("algorithm")+ KeyEncodingColumn = postgres.StringColumn("keyEncoding")+ MetadataColumn = postgres.StringColumn("metadata")+ UserIdColumn = postgres.StringColumn("userId")+ FolderIdColumn = postgres.StringColumn("folderId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, VersionColumn, TypeColumn, SecretBlindIndexColumn, SecretKeyCiphertextColumn, SecretKeyIVColumn, SecretKeyTagColumn, SecretValueCiphertextColumn, SecretValueIVColumn, SecretValueTagColumn, SecretCommentCiphertextColumn, SecretCommentIVColumn, SecretCommentTagColumn, SecretReminderNoteColumn, SecretReminderRepeatDaysColumn, SkipMultilineEncodingColumn, AlgorithmColumn, KeyEncodingColumn, MetadataColumn, UserIdColumn, FolderIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{VersionColumn, TypeColumn, SecretBlindIndexColumn, SecretKeyCiphertextColumn, SecretKeyIVColumn, SecretKeyTagColumn, SecretValueCiphertextColumn, SecretValueIVColumn, SecretValueTagColumn, SecretCommentCiphertextColumn, SecretCommentIVColumn, SecretCommentTagColumn, SecretReminderNoteColumn, SecretReminderRepeatDaysColumn, SkipMultilineEncodingColumn, AlgorithmColumn, KeyEncodingColumn, MetadataColumn, UserIdColumn, FolderIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, VersionColumn, TypeColumn, SkipMultilineEncodingColumn, AlgorithmColumn, KeyEncodingColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Version: VersionColumn,+ Type: TypeColumn,+ SecretBlindIndex: SecretBlindIndexColumn,+ SecretKeyCiphertext: SecretKeyCiphertextColumn,+ SecretKeyIV: SecretKeyIVColumn,+ SecretKeyTag: SecretKeyTagColumn,+ SecretValueCiphertext: SecretValueCiphertextColumn,+ SecretValueIV: SecretValueIVColumn,+ SecretValueTag: SecretValueTagColumn,+ SecretCommentCiphertext: SecretCommentCiphertextColumn,+ SecretCommentIV: SecretCommentIVColumn,+ SecretCommentTag: SecretCommentTagColumn,+ SecretReminderNote: SecretReminderNoteColumn,+ SecretReminderRepeatDays: SecretReminderRepeatDaysColumn,+ SkipMultilineEncoding: SkipMultilineEncodingColumn,+ Algorithm: AlgorithmColumn,+ KeyEncoding: KeyEncodingColumn,+ Metadata: MetadataColumn,+ UserId: UserIdColumn,+ FolderId: FolderIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/secrets_v2.go b/backend-go/internal/database/pg/gen/table/secrets_v2.gonew file mode 100644index 0000000000..52812ad687--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/secrets_v2.go@@ -0,0 +1,117 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SecretsV2 = newSecretsV2Table("public", "secrets_v2", "")++type secretsV2Table struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Version postgres.ColumnInteger+ Type postgres.ColumnString+ Key postgres.ColumnString+ EncryptedValue postgres.ColumnBytea+ EncryptedComment postgres.ColumnBytea+ ReminderNote postgres.ColumnString+ ReminderRepeatDays postgres.ColumnInteger+ SkipMultilineEncoding postgres.ColumnBool+ Metadata postgres.ColumnString+ UserId postgres.ColumnString+ FolderId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SecretsV2Table struct {+ secretsV2Table++ EXCLUDED secretsV2Table+}++// AS creates new SecretsV2Table with assigned alias+func (a SecretsV2Table) AS(alias string) *SecretsV2Table {+ return newSecretsV2Table(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SecretsV2Table with assigned schema name+func (a SecretsV2Table) FromSchema(schemaName string) *SecretsV2Table {+ return newSecretsV2Table(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SecretsV2Table with assigned table prefix+func (a SecretsV2Table) WithPrefix(prefix string) *SecretsV2Table {+ return newSecretsV2Table(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SecretsV2Table with assigned table suffix+func (a SecretsV2Table) WithSuffix(suffix string) *SecretsV2Table {+ return newSecretsV2Table(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSecretsV2Table(schemaName, tableName, alias string) *SecretsV2Table {+ return &SecretsV2Table{+ secretsV2Table: newSecretsV2TableImpl(schemaName, tableName, alias),+ EXCLUDED: newSecretsV2TableImpl("", "excluded", ""),+ }+}++func newSecretsV2TableImpl(schemaName, tableName, alias string) secretsV2Table {+ var (+ IDColumn = postgres.StringColumn("id")+ VersionColumn = postgres.IntegerColumn("version")+ TypeColumn = postgres.StringColumn("type")+ KeyColumn = postgres.StringColumn("key")+ EncryptedValueColumn = postgres.ByteaColumn("encryptedValue")+ EncryptedCommentColumn = postgres.ByteaColumn("encryptedComment")+ ReminderNoteColumn = postgres.StringColumn("reminderNote")+ ReminderRepeatDaysColumn = postgres.IntegerColumn("reminderRepeatDays")+ SkipMultilineEncodingColumn = postgres.BoolColumn("skipMultilineEncoding")+ MetadataColumn = postgres.StringColumn("metadata")+ UserIdColumn = postgres.StringColumn("userId")+ FolderIdColumn = postgres.StringColumn("folderId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, VersionColumn, TypeColumn, KeyColumn, EncryptedValueColumn, EncryptedCommentColumn, ReminderNoteColumn, ReminderRepeatDaysColumn, SkipMultilineEncodingColumn, MetadataColumn, UserIdColumn, FolderIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{VersionColumn, TypeColumn, KeyColumn, EncryptedValueColumn, EncryptedCommentColumn, ReminderNoteColumn, ReminderRepeatDaysColumn, SkipMultilineEncodingColumn, MetadataColumn, UserIdColumn, FolderIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, VersionColumn, TypeColumn, SkipMultilineEncodingColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return secretsV2Table{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Version: VersionColumn,+ Type: TypeColumn,+ Key: KeyColumn,+ EncryptedValue: EncryptedValueColumn,+ EncryptedComment: EncryptedCommentColumn,+ ReminderNote: ReminderNoteColumn,+ ReminderRepeatDays: ReminderRepeatDaysColumn,+ SkipMultilineEncoding: SkipMultilineEncodingColumn,+ Metadata: MetadataColumn,+ UserId: UserIdColumn,+ FolderId: FolderIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/service_tokens.go b/backend-go/internal/database/pg/gen/table/service_tokens.gonew file mode 100644index 0000000000..5d4d55b883--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/service_tokens.go@@ -0,0 +1,120 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var ServiceTokens = newServiceTokensTable("public", "service_tokens", "")++type serviceTokensTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Name postgres.ColumnString+ Scopes postgres.ColumnString+ Permissions postgres.ColumnStringArray+ LastUsed postgres.ColumnTimestampz+ ExpiresAt postgres.ColumnTimestampz+ SecretHash postgres.ColumnString+ EncryptedKey postgres.ColumnString+ Iv postgres.ColumnString+ Tag postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ CreatedBy postgres.ColumnString+ ProjectId postgres.ColumnString+ ExpiryNotificationSent postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type ServiceTokensTable struct {+ serviceTokensTable++ EXCLUDED serviceTokensTable+}++// AS creates new ServiceTokensTable with assigned alias+func (a ServiceTokensTable) AS(alias string) *ServiceTokensTable {+ return newServiceTokensTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new ServiceTokensTable with assigned schema name+func (a ServiceTokensTable) FromSchema(schemaName string) *ServiceTokensTable {+ return newServiceTokensTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new ServiceTokensTable with assigned table prefix+func (a ServiceTokensTable) WithPrefix(prefix string) *ServiceTokensTable {+ return newServiceTokensTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new ServiceTokensTable with assigned table suffix+func (a ServiceTokensTable) WithSuffix(suffix string) *ServiceTokensTable {+ return newServiceTokensTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newServiceTokensTable(schemaName, tableName, alias string) *ServiceTokensTable {+ return &ServiceTokensTable{+ serviceTokensTable: newServiceTokensTableImpl(schemaName, tableName, alias),+ EXCLUDED: newServiceTokensTableImpl("", "excluded", ""),+ }+}++func newServiceTokensTableImpl(schemaName, tableName, alias string) serviceTokensTable {+ var (+ IDColumn = postgres.StringColumn("id")+ NameColumn = postgres.StringColumn("name")+ ScopesColumn = postgres.StringColumn("scopes")+ PermissionsColumn = postgres.StringArrayColumn("permissions")+ LastUsedColumn = postgres.TimestampzColumn("lastUsed")+ ExpiresAtColumn = postgres.TimestampzColumn("expiresAt")+ SecretHashColumn = postgres.StringColumn("secretHash")+ EncryptedKeyColumn = postgres.StringColumn("encryptedKey")+ IvColumn = postgres.StringColumn("iv")+ TagColumn = postgres.StringColumn("tag")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ CreatedByColumn = postgres.StringColumn("createdBy")+ ProjectIdColumn = postgres.StringColumn("projectId")+ ExpiryNotificationSentColumn = postgres.BoolColumn("expiryNotificationSent")+ allColumns = postgres.ColumnList{IDColumn, NameColumn, ScopesColumn, PermissionsColumn, LastUsedColumn, ExpiresAtColumn, SecretHashColumn, EncryptedKeyColumn, IvColumn, TagColumn, CreatedAtColumn, UpdatedAtColumn, CreatedByColumn, ProjectIdColumn, ExpiryNotificationSentColumn}+ mutableColumns = postgres.ColumnList{NameColumn, ScopesColumn, PermissionsColumn, LastUsedColumn, ExpiresAtColumn, SecretHashColumn, EncryptedKeyColumn, IvColumn, TagColumn, CreatedAtColumn, UpdatedAtColumn, CreatedByColumn, ProjectIdColumn, ExpiryNotificationSentColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, ExpiryNotificationSentColumn}+ )++ return serviceTokensTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Name: NameColumn,+ Scopes: ScopesColumn,+ Permissions: PermissionsColumn,+ LastUsed: LastUsedColumn,+ ExpiresAt: ExpiresAtColumn,+ SecretHash: SecretHashColumn,+ EncryptedKey: EncryptedKeyColumn,+ Iv: IvColumn,+ Tag: TagColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ CreatedBy: CreatedByColumn,+ ProjectId: ProjectIdColumn,+ ExpiryNotificationSent: ExpiryNotificationSentColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/slack_integrations.go b/backend-go/internal/database/pg/gen/table/slack_integrations.gonew file mode 100644index 0000000000..51ab9378b3--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/slack_integrations.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SlackIntegrations = newSlackIntegrationsTable("public", "slack_integrations", "")++type slackIntegrationsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ TeamId postgres.ColumnString+ TeamName postgres.ColumnString+ SlackUserId postgres.ColumnString+ SlackAppId postgres.ColumnString+ EncryptedBotAccessToken postgres.ColumnBytea+ SlackBotId postgres.ColumnString+ SlackBotUserId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SlackIntegrationsTable struct {+ slackIntegrationsTable++ EXCLUDED slackIntegrationsTable+}++// AS creates new SlackIntegrationsTable with assigned alias+func (a SlackIntegrationsTable) AS(alias string) *SlackIntegrationsTable {+ return newSlackIntegrationsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SlackIntegrationsTable with assigned schema name+func (a SlackIntegrationsTable) FromSchema(schemaName string) *SlackIntegrationsTable {+ return newSlackIntegrationsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SlackIntegrationsTable with assigned table prefix+func (a SlackIntegrationsTable) WithPrefix(prefix string) *SlackIntegrationsTable {+ return newSlackIntegrationsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SlackIntegrationsTable with assigned table suffix+func (a SlackIntegrationsTable) WithSuffix(suffix string) *SlackIntegrationsTable {+ return newSlackIntegrationsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSlackIntegrationsTable(schemaName, tableName, alias string) *SlackIntegrationsTable {+ return &SlackIntegrationsTable{+ slackIntegrationsTable: newSlackIntegrationsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSlackIntegrationsTableImpl("", "excluded", ""),+ }+}++func newSlackIntegrationsTableImpl(schemaName, tableName, alias string) slackIntegrationsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ TeamIdColumn = postgres.StringColumn("teamId")+ TeamNameColumn = postgres.StringColumn("teamName")+ SlackUserIdColumn = postgres.StringColumn("slackUserId")+ SlackAppIdColumn = postgres.StringColumn("slackAppId")+ EncryptedBotAccessTokenColumn = postgres.ByteaColumn("encryptedBotAccessToken")+ SlackBotIdColumn = postgres.StringColumn("slackBotId")+ SlackBotUserIdColumn = postgres.StringColumn("slackBotUserId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, TeamIdColumn, TeamNameColumn, SlackUserIdColumn, SlackAppIdColumn, EncryptedBotAccessTokenColumn, SlackBotIdColumn, SlackBotUserIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{TeamIdColumn, TeamNameColumn, SlackUserIdColumn, SlackAppIdColumn, EncryptedBotAccessTokenColumn, SlackBotIdColumn, SlackBotUserIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn}+ )++ return slackIntegrationsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ TeamId: TeamIdColumn,+ TeamName: TeamNameColumn,+ SlackUserId: SlackUserIdColumn,+ SlackAppId: SlackAppIdColumn,+ EncryptedBotAccessToken: EncryptedBotAccessTokenColumn,+ SlackBotId: SlackBotIdColumn,+ SlackBotUserId: SlackBotUserIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ssh_certificate_authorities.go b/backend-go/internal/database/pg/gen/table/ssh_certificate_authorities.gonew file mode 100644index 0000000000..6c1cff5f97--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ssh_certificate_authorities.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SSHCertificateAuthorities = newSSHCertificateAuthoritiesTable("public", "ssh_certificate_authorities", "")++type sSHCertificateAuthoritiesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ProjectId postgres.ColumnString+ Status postgres.ColumnString+ FriendlyName postgres.ColumnString+ KeyAlgorithm postgres.ColumnString+ KeySource postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SSHCertificateAuthoritiesTable struct {+ sSHCertificateAuthoritiesTable++ EXCLUDED sSHCertificateAuthoritiesTable+}++// AS creates new SSHCertificateAuthoritiesTable with assigned alias+func (a SSHCertificateAuthoritiesTable) AS(alias string) *SSHCertificateAuthoritiesTable {+ return newSSHCertificateAuthoritiesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SSHCertificateAuthoritiesTable with assigned schema name+func (a SSHCertificateAuthoritiesTable) FromSchema(schemaName string) *SSHCertificateAuthoritiesTable {+ return newSSHCertificateAuthoritiesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SSHCertificateAuthoritiesTable with assigned table prefix+func (a SSHCertificateAuthoritiesTable) WithPrefix(prefix string) *SSHCertificateAuthoritiesTable {+ return newSSHCertificateAuthoritiesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SSHCertificateAuthoritiesTable with assigned table suffix+func (a SSHCertificateAuthoritiesTable) WithSuffix(suffix string) *SSHCertificateAuthoritiesTable {+ return newSSHCertificateAuthoritiesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSSHCertificateAuthoritiesTable(schemaName, tableName, alias string) *SSHCertificateAuthoritiesTable {+ return &SSHCertificateAuthoritiesTable{+ sSHCertificateAuthoritiesTable: newSSHCertificateAuthoritiesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSSHCertificateAuthoritiesTableImpl("", "excluded", ""),+ }+}++func newSSHCertificateAuthoritiesTableImpl(schemaName, tableName, alias string) sSHCertificateAuthoritiesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ProjectIdColumn = postgres.StringColumn("projectId")+ StatusColumn = postgres.StringColumn("status")+ FriendlyNameColumn = postgres.StringColumn("friendlyName")+ KeyAlgorithmColumn = postgres.StringColumn("keyAlgorithm")+ KeySourceColumn = postgres.StringColumn("keySource")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, StatusColumn, FriendlyNameColumn, KeyAlgorithmColumn, KeySourceColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, StatusColumn, FriendlyNameColumn, KeyAlgorithmColumn, KeySourceColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return sSHCertificateAuthoritiesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ProjectId: ProjectIdColumn,+ Status: StatusColumn,+ FriendlyName: FriendlyNameColumn,+ KeyAlgorithm: KeyAlgorithmColumn,+ KeySource: KeySourceColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ssh_certificate_authority_secrets.go b/backend-go/internal/database/pg/gen/table/ssh_certificate_authority_secrets.gonew file mode 100644index 0000000000..dd15a65d41--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ssh_certificate_authority_secrets.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SSHCertificateAuthoritySecrets = newSSHCertificateAuthoritySecretsTable("public", "ssh_certificate_authority_secrets", "")++type sSHCertificateAuthoritySecretsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ SshCaId postgres.ColumnString+ EncryptedPrivateKey postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SSHCertificateAuthoritySecretsTable struct {+ sSHCertificateAuthoritySecretsTable++ EXCLUDED sSHCertificateAuthoritySecretsTable+}++// AS creates new SSHCertificateAuthoritySecretsTable with assigned alias+func (a SSHCertificateAuthoritySecretsTable) AS(alias string) *SSHCertificateAuthoritySecretsTable {+ return newSSHCertificateAuthoritySecretsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SSHCertificateAuthoritySecretsTable with assigned schema name+func (a SSHCertificateAuthoritySecretsTable) FromSchema(schemaName string) *SSHCertificateAuthoritySecretsTable {+ return newSSHCertificateAuthoritySecretsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SSHCertificateAuthoritySecretsTable with assigned table prefix+func (a SSHCertificateAuthoritySecretsTable) WithPrefix(prefix string) *SSHCertificateAuthoritySecretsTable {+ return newSSHCertificateAuthoritySecretsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SSHCertificateAuthoritySecretsTable with assigned table suffix+func (a SSHCertificateAuthoritySecretsTable) WithSuffix(suffix string) *SSHCertificateAuthoritySecretsTable {+ return newSSHCertificateAuthoritySecretsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSSHCertificateAuthoritySecretsTable(schemaName, tableName, alias string) *SSHCertificateAuthoritySecretsTable {+ return &SSHCertificateAuthoritySecretsTable{+ sSHCertificateAuthoritySecretsTable: newSSHCertificateAuthoritySecretsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSSHCertificateAuthoritySecretsTableImpl("", "excluded", ""),+ }+}++func newSSHCertificateAuthoritySecretsTableImpl(schemaName, tableName, alias string) sSHCertificateAuthoritySecretsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ SshCaIdColumn = postgres.StringColumn("sshCaId")+ EncryptedPrivateKeyColumn = postgres.ByteaColumn("encryptedPrivateKey")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, SshCaIdColumn, EncryptedPrivateKeyColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, SshCaIdColumn, EncryptedPrivateKeyColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return sSHCertificateAuthoritySecretsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ SshCaId: SshCaIdColumn,+ EncryptedPrivateKey: EncryptedPrivateKeyColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ssh_certificate_bodies.go b/backend-go/internal/database/pg/gen/table/ssh_certificate_bodies.gonew file mode 100644index 0000000000..d8ed2506fe--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ssh_certificate_bodies.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SSHCertificateBodies = newSSHCertificateBodiesTable("public", "ssh_certificate_bodies", "")++type sSHCertificateBodiesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ SshCertId postgres.ColumnString+ EncryptedCertificate postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SSHCertificateBodiesTable struct {+ sSHCertificateBodiesTable++ EXCLUDED sSHCertificateBodiesTable+}++// AS creates new SSHCertificateBodiesTable with assigned alias+func (a SSHCertificateBodiesTable) AS(alias string) *SSHCertificateBodiesTable {+ return newSSHCertificateBodiesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SSHCertificateBodiesTable with assigned schema name+func (a SSHCertificateBodiesTable) FromSchema(schemaName string) *SSHCertificateBodiesTable {+ return newSSHCertificateBodiesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SSHCertificateBodiesTable with assigned table prefix+func (a SSHCertificateBodiesTable) WithPrefix(prefix string) *SSHCertificateBodiesTable {+ return newSSHCertificateBodiesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SSHCertificateBodiesTable with assigned table suffix+func (a SSHCertificateBodiesTable) WithSuffix(suffix string) *SSHCertificateBodiesTable {+ return newSSHCertificateBodiesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSSHCertificateBodiesTable(schemaName, tableName, alias string) *SSHCertificateBodiesTable {+ return &SSHCertificateBodiesTable{+ sSHCertificateBodiesTable: newSSHCertificateBodiesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSSHCertificateBodiesTableImpl("", "excluded", ""),+ }+}++func newSSHCertificateBodiesTableImpl(schemaName, tableName, alias string) sSHCertificateBodiesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ SshCertIdColumn = postgres.StringColumn("sshCertId")+ EncryptedCertificateColumn = postgres.ByteaColumn("encryptedCertificate")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, SshCertIdColumn, EncryptedCertificateColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, SshCertIdColumn, EncryptedCertificateColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return sSHCertificateBodiesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ SshCertId: SshCertIdColumn,+ EncryptedCertificate: EncryptedCertificateColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ssh_certificate_templates.go b/backend-go/internal/database/pg/gen/table/ssh_certificate_templates.gonew file mode 100644index 0000000000..506b2ba9d9--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ssh_certificate_templates.go@@ -0,0 +1,114 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SSHCertificateTemplates = newSSHCertificateTemplatesTable("public", "ssh_certificate_templates", "")++type sSHCertificateTemplatesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ SshCaId postgres.ColumnString+ Status postgres.ColumnString+ Name postgres.ColumnString+ TTL postgres.ColumnString+ MaxTTL postgres.ColumnString+ AllowedUsers postgres.ColumnStringArray+ AllowedHosts postgres.ColumnStringArray+ AllowUserCertificates postgres.ColumnBool+ AllowHostCertificates postgres.ColumnBool+ AllowCustomKeyIds postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SSHCertificateTemplatesTable struct {+ sSHCertificateTemplatesTable++ EXCLUDED sSHCertificateTemplatesTable+}++// AS creates new SSHCertificateTemplatesTable with assigned alias+func (a SSHCertificateTemplatesTable) AS(alias string) *SSHCertificateTemplatesTable {+ return newSSHCertificateTemplatesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SSHCertificateTemplatesTable with assigned schema name+func (a SSHCertificateTemplatesTable) FromSchema(schemaName string) *SSHCertificateTemplatesTable {+ return newSSHCertificateTemplatesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SSHCertificateTemplatesTable with assigned table prefix+func (a SSHCertificateTemplatesTable) WithPrefix(prefix string) *SSHCertificateTemplatesTable {+ return newSSHCertificateTemplatesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SSHCertificateTemplatesTable with assigned table suffix+func (a SSHCertificateTemplatesTable) WithSuffix(suffix string) *SSHCertificateTemplatesTable {+ return newSSHCertificateTemplatesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSSHCertificateTemplatesTable(schemaName, tableName, alias string) *SSHCertificateTemplatesTable {+ return &SSHCertificateTemplatesTable{+ sSHCertificateTemplatesTable: newSSHCertificateTemplatesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSSHCertificateTemplatesTableImpl("", "excluded", ""),+ }+}++func newSSHCertificateTemplatesTableImpl(schemaName, tableName, alias string) sSHCertificateTemplatesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ SshCaIdColumn = postgres.StringColumn("sshCaId")+ StatusColumn = postgres.StringColumn("status")+ NameColumn = postgres.StringColumn("name")+ TTLColumn = postgres.StringColumn("ttl")+ MaxTTLColumn = postgres.StringColumn("maxTTL")+ AllowedUsersColumn = postgres.StringArrayColumn("allowedUsers")+ AllowedHostsColumn = postgres.StringArrayColumn("allowedHosts")+ AllowUserCertificatesColumn = postgres.BoolColumn("allowUserCertificates")+ AllowHostCertificatesColumn = postgres.BoolColumn("allowHostCertificates")+ AllowCustomKeyIdsColumn = postgres.BoolColumn("allowCustomKeyIds")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, SshCaIdColumn, StatusColumn, NameColumn, TTLColumn, MaxTTLColumn, AllowedUsersColumn, AllowedHostsColumn, AllowUserCertificatesColumn, AllowHostCertificatesColumn, AllowCustomKeyIdsColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, SshCaIdColumn, StatusColumn, NameColumn, TTLColumn, MaxTTLColumn, AllowedUsersColumn, AllowedHostsColumn, AllowUserCertificatesColumn, AllowHostCertificatesColumn, AllowCustomKeyIdsColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return sSHCertificateTemplatesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ SshCaId: SshCaIdColumn,+ Status: StatusColumn,+ Name: NameColumn,+ TTL: TTLColumn,+ MaxTTL: MaxTTLColumn,+ AllowedUsers: AllowedUsersColumn,+ AllowedHosts: AllowedHostsColumn,+ AllowUserCertificates: AllowUserCertificatesColumn,+ AllowHostCertificates: AllowHostCertificatesColumn,+ AllowCustomKeyIds: AllowCustomKeyIdsColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ssh_certificates.go b/backend-go/internal/database/pg/gen/table/ssh_certificates.gonew file mode 100644index 0000000000..944b83c634--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ssh_certificates.go@@ -0,0 +1,111 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SSHCertificates = newSSHCertificatesTable("public", "ssh_certificates", "")++type sSHCertificatesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ SshCaId postgres.ColumnString+ SshCertificateTemplateId postgres.ColumnString+ SerialNumber postgres.ColumnString+ CertType postgres.ColumnString+ Principals postgres.ColumnStringArray+ KeyId postgres.ColumnString+ NotBefore postgres.ColumnTimestampz+ NotAfter postgres.ColumnTimestampz+ SshHostId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SSHCertificatesTable struct {+ sSHCertificatesTable++ EXCLUDED sSHCertificatesTable+}++// AS creates new SSHCertificatesTable with assigned alias+func (a SSHCertificatesTable) AS(alias string) *SSHCertificatesTable {+ return newSSHCertificatesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SSHCertificatesTable with assigned schema name+func (a SSHCertificatesTable) FromSchema(schemaName string) *SSHCertificatesTable {+ return newSSHCertificatesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SSHCertificatesTable with assigned table prefix+func (a SSHCertificatesTable) WithPrefix(prefix string) *SSHCertificatesTable {+ return newSSHCertificatesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SSHCertificatesTable with assigned table suffix+func (a SSHCertificatesTable) WithSuffix(suffix string) *SSHCertificatesTable {+ return newSSHCertificatesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSSHCertificatesTable(schemaName, tableName, alias string) *SSHCertificatesTable {+ return &SSHCertificatesTable{+ sSHCertificatesTable: newSSHCertificatesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSSHCertificatesTableImpl("", "excluded", ""),+ }+}++func newSSHCertificatesTableImpl(schemaName, tableName, alias string) sSHCertificatesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ SshCaIdColumn = postgres.StringColumn("sshCaId")+ SshCertificateTemplateIdColumn = postgres.StringColumn("sshCertificateTemplateId")+ SerialNumberColumn = postgres.StringColumn("serialNumber")+ CertTypeColumn = postgres.StringColumn("certType")+ PrincipalsColumn = postgres.StringArrayColumn("principals")+ KeyIdColumn = postgres.StringColumn("keyId")+ NotBeforeColumn = postgres.TimestampzColumn("notBefore")+ NotAfterColumn = postgres.TimestampzColumn("notAfter")+ SshHostIdColumn = postgres.StringColumn("sshHostId")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, SshCaIdColumn, SshCertificateTemplateIdColumn, SerialNumberColumn, CertTypeColumn, PrincipalsColumn, KeyIdColumn, NotBeforeColumn, NotAfterColumn, SshHostIdColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, SshCaIdColumn, SshCertificateTemplateIdColumn, SerialNumberColumn, CertTypeColumn, PrincipalsColumn, KeyIdColumn, NotBeforeColumn, NotAfterColumn, SshHostIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return sSHCertificatesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ SshCaId: SshCaIdColumn,+ SshCertificateTemplateId: SshCertificateTemplateIdColumn,+ SerialNumber: SerialNumberColumn,+ CertType: CertTypeColumn,+ Principals: PrincipalsColumn,+ KeyId: KeyIdColumn,+ NotBefore: NotBeforeColumn,+ NotAfter: NotAfterColumn,+ SshHostId: SshHostIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ssh_host_group_memberships.go b/backend-go/internal/database/pg/gen/table/ssh_host_group_memberships.gonew file mode 100644index 0000000000..39bcd236db--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ssh_host_group_memberships.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SSHHostGroupMemberships = newSSHHostGroupMembershipsTable("public", "ssh_host_group_memberships", "")++type sSHHostGroupMembershipsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ SshHostGroupId postgres.ColumnString+ SshHostId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SSHHostGroupMembershipsTable struct {+ sSHHostGroupMembershipsTable++ EXCLUDED sSHHostGroupMembershipsTable+}++// AS creates new SSHHostGroupMembershipsTable with assigned alias+func (a SSHHostGroupMembershipsTable) AS(alias string) *SSHHostGroupMembershipsTable {+ return newSSHHostGroupMembershipsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SSHHostGroupMembershipsTable with assigned schema name+func (a SSHHostGroupMembershipsTable) FromSchema(schemaName string) *SSHHostGroupMembershipsTable {+ return newSSHHostGroupMembershipsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SSHHostGroupMembershipsTable with assigned table prefix+func (a SSHHostGroupMembershipsTable) WithPrefix(prefix string) *SSHHostGroupMembershipsTable {+ return newSSHHostGroupMembershipsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SSHHostGroupMembershipsTable with assigned table suffix+func (a SSHHostGroupMembershipsTable) WithSuffix(suffix string) *SSHHostGroupMembershipsTable {+ return newSSHHostGroupMembershipsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSSHHostGroupMembershipsTable(schemaName, tableName, alias string) *SSHHostGroupMembershipsTable {+ return &SSHHostGroupMembershipsTable{+ sSHHostGroupMembershipsTable: newSSHHostGroupMembershipsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSSHHostGroupMembershipsTableImpl("", "excluded", ""),+ }+}++func newSSHHostGroupMembershipsTableImpl(schemaName, tableName, alias string) sSHHostGroupMembershipsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ SshHostGroupIdColumn = postgres.StringColumn("sshHostGroupId")+ SshHostIdColumn = postgres.StringColumn("sshHostId")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, SshHostGroupIdColumn, SshHostIdColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, SshHostGroupIdColumn, SshHostIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return sSHHostGroupMembershipsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ SshHostGroupId: SshHostGroupIdColumn,+ SshHostId: SshHostIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ssh_host_groups.go b/backend-go/internal/database/pg/gen/table/ssh_host_groups.gonew file mode 100644index 0000000000..b7df9433d4--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ssh_host_groups.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SSHHostGroups = newSSHHostGroupsTable("public", "ssh_host_groups", "")++type sSHHostGroupsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ProjectId postgres.ColumnString+ Name postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SSHHostGroupsTable struct {+ sSHHostGroupsTable++ EXCLUDED sSHHostGroupsTable+}++// AS creates new SSHHostGroupsTable with assigned alias+func (a SSHHostGroupsTable) AS(alias string) *SSHHostGroupsTable {+ return newSSHHostGroupsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SSHHostGroupsTable with assigned schema name+func (a SSHHostGroupsTable) FromSchema(schemaName string) *SSHHostGroupsTable {+ return newSSHHostGroupsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SSHHostGroupsTable with assigned table prefix+func (a SSHHostGroupsTable) WithPrefix(prefix string) *SSHHostGroupsTable {+ return newSSHHostGroupsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SSHHostGroupsTable with assigned table suffix+func (a SSHHostGroupsTable) WithSuffix(suffix string) *SSHHostGroupsTable {+ return newSSHHostGroupsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSSHHostGroupsTable(schemaName, tableName, alias string) *SSHHostGroupsTable {+ return &SSHHostGroupsTable{+ sSHHostGroupsTable: newSSHHostGroupsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSSHHostGroupsTableImpl("", "excluded", ""),+ }+}++func newSSHHostGroupsTableImpl(schemaName, tableName, alias string) sSHHostGroupsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ProjectIdColumn = postgres.StringColumn("projectId")+ NameColumn = postgres.StringColumn("name")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, NameColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, NameColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return sSHHostGroupsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ProjectId: ProjectIdColumn,+ Name: NameColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ssh_host_login_user_mappings.go b/backend-go/internal/database/pg/gen/table/ssh_host_login_user_mappings.gonew file mode 100644index 0000000000..13789d30e7--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ssh_host_login_user_mappings.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SSHHostLoginUserMappings = newSSHHostLoginUserMappingsTable("public", "ssh_host_login_user_mappings", "")++type sSHHostLoginUserMappingsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ SshHostLoginUserId postgres.ColumnString+ UserId postgres.ColumnString+ GroupId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SSHHostLoginUserMappingsTable struct {+ sSHHostLoginUserMappingsTable++ EXCLUDED sSHHostLoginUserMappingsTable+}++// AS creates new SSHHostLoginUserMappingsTable with assigned alias+func (a SSHHostLoginUserMappingsTable) AS(alias string) *SSHHostLoginUserMappingsTable {+ return newSSHHostLoginUserMappingsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SSHHostLoginUserMappingsTable with assigned schema name+func (a SSHHostLoginUserMappingsTable) FromSchema(schemaName string) *SSHHostLoginUserMappingsTable {+ return newSSHHostLoginUserMappingsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SSHHostLoginUserMappingsTable with assigned table prefix+func (a SSHHostLoginUserMappingsTable) WithPrefix(prefix string) *SSHHostLoginUserMappingsTable {+ return newSSHHostLoginUserMappingsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SSHHostLoginUserMappingsTable with assigned table suffix+func (a SSHHostLoginUserMappingsTable) WithSuffix(suffix string) *SSHHostLoginUserMappingsTable {+ return newSSHHostLoginUserMappingsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSSHHostLoginUserMappingsTable(schemaName, tableName, alias string) *SSHHostLoginUserMappingsTable {+ return &SSHHostLoginUserMappingsTable{+ sSHHostLoginUserMappingsTable: newSSHHostLoginUserMappingsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSSHHostLoginUserMappingsTableImpl("", "excluded", ""),+ }+}++func newSSHHostLoginUserMappingsTableImpl(schemaName, tableName, alias string) sSHHostLoginUserMappingsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ SshHostLoginUserIdColumn = postgres.StringColumn("sshHostLoginUserId")+ UserIdColumn = postgres.StringColumn("userId")+ GroupIdColumn = postgres.StringColumn("groupId")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, SshHostLoginUserIdColumn, UserIdColumn, GroupIdColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, SshHostLoginUserIdColumn, UserIdColumn, GroupIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return sSHHostLoginUserMappingsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ SshHostLoginUserId: SshHostLoginUserIdColumn,+ UserId: UserIdColumn,+ GroupId: GroupIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ssh_host_login_users.go b/backend-go/internal/database/pg/gen/table/ssh_host_login_users.gonew file mode 100644index 0000000000..d9447bb00e--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ssh_host_login_users.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SSHHostLoginUsers = newSSHHostLoginUsersTable("public", "ssh_host_login_users", "")++type sSHHostLoginUsersTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ SshHostId postgres.ColumnString+ LoginUser postgres.ColumnString+ SshHostGroupId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SSHHostLoginUsersTable struct {+ sSHHostLoginUsersTable++ EXCLUDED sSHHostLoginUsersTable+}++// AS creates new SSHHostLoginUsersTable with assigned alias+func (a SSHHostLoginUsersTable) AS(alias string) *SSHHostLoginUsersTable {+ return newSSHHostLoginUsersTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SSHHostLoginUsersTable with assigned schema name+func (a SSHHostLoginUsersTable) FromSchema(schemaName string) *SSHHostLoginUsersTable {+ return newSSHHostLoginUsersTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SSHHostLoginUsersTable with assigned table prefix+func (a SSHHostLoginUsersTable) WithPrefix(prefix string) *SSHHostLoginUsersTable {+ return newSSHHostLoginUsersTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SSHHostLoginUsersTable with assigned table suffix+func (a SSHHostLoginUsersTable) WithSuffix(suffix string) *SSHHostLoginUsersTable {+ return newSSHHostLoginUsersTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSSHHostLoginUsersTable(schemaName, tableName, alias string) *SSHHostLoginUsersTable {+ return &SSHHostLoginUsersTable{+ sSHHostLoginUsersTable: newSSHHostLoginUsersTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSSHHostLoginUsersTableImpl("", "excluded", ""),+ }+}++func newSSHHostLoginUsersTableImpl(schemaName, tableName, alias string) sSHHostLoginUsersTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ SshHostIdColumn = postgres.StringColumn("sshHostId")+ LoginUserColumn = postgres.StringColumn("loginUser")+ SshHostGroupIdColumn = postgres.StringColumn("sshHostGroupId")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, SshHostIdColumn, LoginUserColumn, SshHostGroupIdColumn}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, SshHostIdColumn, LoginUserColumn, SshHostGroupIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return sSHHostLoginUsersTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ SshHostId: SshHostIdColumn,+ LoginUser: LoginUserColumn,+ SshHostGroupId: SshHostGroupIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/ssh_hosts.go b/backend-go/internal/database/pg/gen/table/ssh_hosts.gonew file mode 100644index 0000000000..f7275494aa--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/ssh_hosts.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SSHHosts = newSSHHostsTable("public", "ssh_hosts", "")++type sSHHostsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ ProjectId postgres.ColumnString+ Hostname postgres.ColumnString+ UserCertTtl postgres.ColumnString+ HostCertTtl postgres.ColumnString+ UserSshCaId postgres.ColumnString+ HostSshCaId postgres.ColumnString+ Alias_ postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SSHHostsTable struct {+ sSHHostsTable++ EXCLUDED sSHHostsTable+}++// AS creates new SSHHostsTable with assigned alias+func (a SSHHostsTable) AS(alias string) *SSHHostsTable {+ return newSSHHostsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SSHHostsTable with assigned schema name+func (a SSHHostsTable) FromSchema(schemaName string) *SSHHostsTable {+ return newSSHHostsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SSHHostsTable with assigned table prefix+func (a SSHHostsTable) WithPrefix(prefix string) *SSHHostsTable {+ return newSSHHostsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SSHHostsTable with assigned table suffix+func (a SSHHostsTable) WithSuffix(suffix string) *SSHHostsTable {+ return newSSHHostsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSSHHostsTable(schemaName, tableName, alias string) *SSHHostsTable {+ return &SSHHostsTable{+ sSHHostsTable: newSSHHostsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSSHHostsTableImpl("", "excluded", ""),+ }+}++func newSSHHostsTableImpl(schemaName, tableName, alias string) sSHHostsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ ProjectIdColumn = postgres.StringColumn("projectId")+ HostnameColumn = postgres.StringColumn("hostname")+ UserCertTtlColumn = postgres.StringColumn("userCertTtl")+ HostCertTtlColumn = postgres.StringColumn("hostCertTtl")+ UserSshCaIdColumn = postgres.StringColumn("userSshCaId")+ HostSshCaIdColumn = postgres.StringColumn("hostSshCaId")+ Alias_Column = postgres.StringColumn("alias")+ allColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, HostnameColumn, UserCertTtlColumn, HostCertTtlColumn, UserSshCaIdColumn, HostSshCaIdColumn, Alias_Column}+ mutableColumns = postgres.ColumnList{CreatedAtColumn, UpdatedAtColumn, ProjectIdColumn, HostnameColumn, UserCertTtlColumn, HostCertTtlColumn, UserSshCaIdColumn, HostSshCaIdColumn, Alias_Column}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return sSHHostsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ ProjectId: ProjectIdColumn,+ Hostname: HostnameColumn,+ UserCertTtl: UserCertTtlColumn,+ HostCertTtl: HostCertTtlColumn,+ UserSshCaId: UserSshCaIdColumn,+ HostSshCaId: HostSshCaIdColumn,+ Alias_: Alias_Column,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/super_admin.go b/backend-go/internal/database/pg/gen/table/super_admin.gonew file mode 100644index 0000000000..cb4896794b--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/super_admin.go@@ -0,0 +1,156 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var SuperAdmin = newSuperAdminTable("public", "super_admin", "")++type superAdminTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Initialized postgres.ColumnBool+ AllowSignUp postgres.ColumnBool+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ AllowedSignUpDomain postgres.ColumnString+ InstanceId postgres.ColumnString+ TrustSamlEmails postgres.ColumnBool+ TrustLdapEmails postgres.ColumnBool+ TrustOidcEmails postgres.ColumnBool+ DefaultAuthOrgId postgres.ColumnString+ EnabledLoginMethods postgres.ColumnStringArray+ EncryptedSlackClientId postgres.ColumnBytea+ EncryptedSlackClientSecret postgres.ColumnBytea+ AuthConsentContent postgres.ColumnString+ PageFrameContent postgres.ColumnString+ AdminIdentityIds postgres.ColumnStringArray+ EncryptedMicrosoftTeamsAppId postgres.ColumnBytea+ EncryptedMicrosoftTeamsClientSecret postgres.ColumnBytea+ EncryptedMicrosoftTeamsBotId postgres.ColumnBytea+ EncryptedGitHubAppConnectionClientId postgres.ColumnBytea+ EncryptedGitHubAppConnectionClientSecret postgres.ColumnBytea+ EncryptedGitHubAppConnectionSlug postgres.ColumnBytea+ EncryptedGitHubAppConnectionId postgres.ColumnBytea+ EncryptedGitHubAppConnectionPrivateKey postgres.ColumnBytea+ EncryptedEnvOverrides postgres.ColumnBytea+ FipsEnabled postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type SuperAdminTable struct {+ superAdminTable++ EXCLUDED superAdminTable+}++// AS creates new SuperAdminTable with assigned alias+func (a SuperAdminTable) AS(alias string) *SuperAdminTable {+ return newSuperAdminTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new SuperAdminTable with assigned schema name+func (a SuperAdminTable) FromSchema(schemaName string) *SuperAdminTable {+ return newSuperAdminTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new SuperAdminTable with assigned table prefix+func (a SuperAdminTable) WithPrefix(prefix string) *SuperAdminTable {+ return newSuperAdminTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new SuperAdminTable with assigned table suffix+func (a SuperAdminTable) WithSuffix(suffix string) *SuperAdminTable {+ return newSuperAdminTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newSuperAdminTable(schemaName, tableName, alias string) *SuperAdminTable {+ return &SuperAdminTable{+ superAdminTable: newSuperAdminTableImpl(schemaName, tableName, alias),+ EXCLUDED: newSuperAdminTableImpl("", "excluded", ""),+ }+}++func newSuperAdminTableImpl(schemaName, tableName, alias string) superAdminTable {+ var (+ IDColumn = postgres.StringColumn("id")+ InitializedColumn = postgres.BoolColumn("initialized")+ AllowSignUpColumn = postgres.BoolColumn("allowSignUp")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ AllowedSignUpDomainColumn = postgres.StringColumn("allowedSignUpDomain")+ InstanceIdColumn = postgres.StringColumn("instanceId")+ TrustSamlEmailsColumn = postgres.BoolColumn("trustSamlEmails")+ TrustLdapEmailsColumn = postgres.BoolColumn("trustLdapEmails")+ TrustOidcEmailsColumn = postgres.BoolColumn("trustOidcEmails")+ DefaultAuthOrgIdColumn = postgres.StringColumn("defaultAuthOrgId")+ EnabledLoginMethodsColumn = postgres.StringArrayColumn("enabledLoginMethods")+ EncryptedSlackClientIdColumn = postgres.ByteaColumn("encryptedSlackClientId")+ EncryptedSlackClientSecretColumn = postgres.ByteaColumn("encryptedSlackClientSecret")+ AuthConsentContentColumn = postgres.StringColumn("authConsentContent")+ PageFrameContentColumn = postgres.StringColumn("pageFrameContent")+ AdminIdentityIdsColumn = postgres.StringArrayColumn("adminIdentityIds")+ EncryptedMicrosoftTeamsAppIdColumn = postgres.ByteaColumn("encryptedMicrosoftTeamsAppId")+ EncryptedMicrosoftTeamsClientSecretColumn = postgres.ByteaColumn("encryptedMicrosoftTeamsClientSecret")+ EncryptedMicrosoftTeamsBotIdColumn = postgres.ByteaColumn("encryptedMicrosoftTeamsBotId")+ EncryptedGitHubAppConnectionClientIdColumn = postgres.ByteaColumn("encryptedGitHubAppConnectionClientId")+ EncryptedGitHubAppConnectionClientSecretColumn = postgres.ByteaColumn("encryptedGitHubAppConnectionClientSecret")+ EncryptedGitHubAppConnectionSlugColumn = postgres.ByteaColumn("encryptedGitHubAppConnectionSlug")+ EncryptedGitHubAppConnectionIdColumn = postgres.ByteaColumn("encryptedGitHubAppConnectionId")+ EncryptedGitHubAppConnectionPrivateKeyColumn = postgres.ByteaColumn("encryptedGitHubAppConnectionPrivateKey")+ EncryptedEnvOverridesColumn = postgres.ByteaColumn("encryptedEnvOverrides")+ FipsEnabledColumn = postgres.BoolColumn("fipsEnabled")+ allColumns = postgres.ColumnList{IDColumn, InitializedColumn, AllowSignUpColumn, CreatedAtColumn, UpdatedAtColumn, AllowedSignUpDomainColumn, InstanceIdColumn, TrustSamlEmailsColumn, TrustLdapEmailsColumn, TrustOidcEmailsColumn, DefaultAuthOrgIdColumn, EnabledLoginMethodsColumn, EncryptedSlackClientIdColumn, EncryptedSlackClientSecretColumn, AuthConsentContentColumn, PageFrameContentColumn, AdminIdentityIdsColumn, EncryptedMicrosoftTeamsAppIdColumn, EncryptedMicrosoftTeamsClientSecretColumn, EncryptedMicrosoftTeamsBotIdColumn, EncryptedGitHubAppConnectionClientIdColumn, EncryptedGitHubAppConnectionClientSecretColumn, EncryptedGitHubAppConnectionSlugColumn, EncryptedGitHubAppConnectionIdColumn, EncryptedGitHubAppConnectionPrivateKeyColumn, EncryptedEnvOverridesColumn, FipsEnabledColumn}+ mutableColumns = postgres.ColumnList{InitializedColumn, AllowSignUpColumn, CreatedAtColumn, UpdatedAtColumn, AllowedSignUpDomainColumn, InstanceIdColumn, TrustSamlEmailsColumn, TrustLdapEmailsColumn, TrustOidcEmailsColumn, DefaultAuthOrgIdColumn, EnabledLoginMethodsColumn, EncryptedSlackClientIdColumn, EncryptedSlackClientSecretColumn, AuthConsentContentColumn, PageFrameContentColumn, AdminIdentityIdsColumn, EncryptedMicrosoftTeamsAppIdColumn, EncryptedMicrosoftTeamsClientSecretColumn, EncryptedMicrosoftTeamsBotIdColumn, EncryptedGitHubAppConnectionClientIdColumn, EncryptedGitHubAppConnectionClientSecretColumn, EncryptedGitHubAppConnectionSlugColumn, EncryptedGitHubAppConnectionIdColumn, EncryptedGitHubAppConnectionPrivateKeyColumn, EncryptedEnvOverridesColumn, FipsEnabledColumn}+ defaultColumns = postgres.ColumnList{IDColumn, InitializedColumn, AllowSignUpColumn, CreatedAtColumn, UpdatedAtColumn, InstanceIdColumn, TrustSamlEmailsColumn, TrustLdapEmailsColumn, TrustOidcEmailsColumn, FipsEnabledColumn}+ )++ return superAdminTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Initialized: InitializedColumn,+ AllowSignUp: AllowSignUpColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ AllowedSignUpDomain: AllowedSignUpDomainColumn,+ InstanceId: InstanceIdColumn,+ TrustSamlEmails: TrustSamlEmailsColumn,+ TrustLdapEmails: TrustLdapEmailsColumn,+ TrustOidcEmails: TrustOidcEmailsColumn,+ DefaultAuthOrgId: DefaultAuthOrgIdColumn,+ EnabledLoginMethods: EnabledLoginMethodsColumn,+ EncryptedSlackClientId: EncryptedSlackClientIdColumn,+ EncryptedSlackClientSecret: EncryptedSlackClientSecretColumn,+ AuthConsentContent: AuthConsentContentColumn,+ PageFrameContent: PageFrameContentColumn,+ AdminIdentityIds: AdminIdentityIdsColumn,+ EncryptedMicrosoftTeamsAppId: EncryptedMicrosoftTeamsAppIdColumn,+ EncryptedMicrosoftTeamsClientSecret: EncryptedMicrosoftTeamsClientSecretColumn,+ EncryptedMicrosoftTeamsBotId: EncryptedMicrosoftTeamsBotIdColumn,+ EncryptedGitHubAppConnectionClientId: EncryptedGitHubAppConnectionClientIdColumn,+ EncryptedGitHubAppConnectionClientSecret: EncryptedGitHubAppConnectionClientSecretColumn,+ EncryptedGitHubAppConnectionSlug: EncryptedGitHubAppConnectionSlugColumn,+ EncryptedGitHubAppConnectionId: EncryptedGitHubAppConnectionIdColumn,+ EncryptedGitHubAppConnectionPrivateKey: EncryptedGitHubAppConnectionPrivateKeyColumn,+ EncryptedEnvOverrides: EncryptedEnvOverridesColumn,+ FipsEnabled: FipsEnabledColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/table_use_schema.go b/backend-go/internal/database/pg/gen/table/table_use_schema.gonew file mode 100644index 0000000000..b1cf438b12--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/table_use_schema.go@@ -0,0 +1,246 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++// UseSchema sets a new schema name for all generated table SQL builder types. It is recommended to invoke+// this method only once at the beginning of the program.+func UseSchema(schema string) {+ AccessApprovalPolicies = AccessApprovalPolicies.FromSchema(schema)+ AccessApprovalPoliciesApprovers = AccessApprovalPoliciesApprovers.FromSchema(schema)+ AccessApprovalPoliciesBypassers = AccessApprovalPoliciesBypassers.FromSchema(schema)+ AccessApprovalPoliciesEnvironments = AccessApprovalPoliciesEnvironments.FromSchema(schema)+ AccessApprovalRequests = AccessApprovalRequests.FromSchema(schema)+ AccessApprovalRequestsReviewers = AccessApprovalRequestsReviewers.FromSchema(schema)+ AdditionalPrivileges = AdditionalPrivileges.FromSchema(schema)+ AiMcpActivityLogs = AiMcpActivityLogs.FromSchema(schema)+ AiMcpEndpointServerTools = AiMcpEndpointServerTools.FromSchema(schema)+ AiMcpEndpointServers = AiMcpEndpointServers.FromSchema(schema)+ AiMcpEndpoints = AiMcpEndpoints.FromSchema(schema)+ AiMcpServerTools = AiMcpServerTools.FromSchema(schema)+ AiMcpServerUserCredentials = AiMcpServerUserCredentials.FromSchema(schema)+ AiMcpServers = AiMcpServers.FromSchema(schema)+ APIKeys = APIKeys.FromSchema(schema)+ AppConnectionCredentialRotations = AppConnectionCredentialRotations.FromSchema(schema)+ AppConnections = AppConnections.FromSchema(schema)+ ApprovalPolicies = ApprovalPolicies.FromSchema(schema)+ ApprovalPolicyStepApprovers = ApprovalPolicyStepApprovers.FromSchema(schema)+ ApprovalPolicySteps = ApprovalPolicySteps.FromSchema(schema)+ ApprovalRequestApprovals = ApprovalRequestApprovals.FromSchema(schema)+ ApprovalRequestGrants = ApprovalRequestGrants.FromSchema(schema)+ ApprovalRequestStepEligibleApprovers = ApprovalRequestStepEligibleApprovers.FromSchema(schema)+ ApprovalRequestSteps = ApprovalRequestSteps.FromSchema(schema)+ ApprovalRequests = ApprovalRequests.FromSchema(schema)+ AuditLogStreams = AuditLogStreams.FromSchema(schema)+ AuditLogs = AuditLogs.FromSchema(schema)+ AuthTokenSessions = AuthTokenSessions.FromSchema(schema)+ AuthTokens = AuthTokens.FromSchema(schema)+ BackupPrivateKey = BackupPrivateKey.FromSchema(schema)+ CaSigningConfigs = CaSigningConfigs.FromSchema(schema)+ CertificateAuthorities = CertificateAuthorities.FromSchema(schema)+ CertificateAuthorityCerts = CertificateAuthorityCerts.FromSchema(schema)+ CertificateAuthorityCrl = CertificateAuthorityCrl.FromSchema(schema)+ CertificateAuthoritySecret = CertificateAuthoritySecret.FromSchema(schema)+ CertificateBodies = CertificateBodies.FromSchema(schema)+ CertificateRequests = CertificateRequests.FromSchema(schema)+ CertificateSecrets = CertificateSecrets.FromSchema(schema)+ CertificateSyncs = CertificateSyncs.FromSchema(schema)+ CertificateTemplateEstConfigs = CertificateTemplateEstConfigs.FromSchema(schema)+ CertificateTemplates = CertificateTemplates.FromSchema(schema)+ Certificates = Certificates.FromSchema(schema)+ DynamicSecretLeases = DynamicSecretLeases.FromSchema(schema)+ DynamicSecrets = DynamicSecrets.FromSchema(schema)+ ExternalCertificateAuthorities = ExternalCertificateAuthorities.FromSchema(schema)+ ExternalGroupOrgRoleMappings = ExternalGroupOrgRoleMappings.FromSchema(schema)+ ExternalKms = ExternalKms.FromSchema(schema)+ FolderCheckpointResources = FolderCheckpointResources.FromSchema(schema)+ FolderCheckpoints = FolderCheckpoints.FromSchema(schema)+ FolderCommitChanges = FolderCommitChanges.FromSchema(schema)+ FolderCommits = FolderCommits.FromSchema(schema)+ FolderTreeCheckpointResources = FolderTreeCheckpointResources.FromSchema(schema)+ FolderTreeCheckpoints = FolderTreeCheckpoints.FromSchema(schema)+ Gateways = Gateways.FromSchema(schema)+ GatewaysV2 = GatewaysV2.FromSchema(schema)+ GitAppInstallSessions = GitAppInstallSessions.FromSchema(schema)+ GitAppOrg = GitAppOrg.FromSchema(schema)+ GithubOrgSyncConfigs = GithubOrgSyncConfigs.FromSchema(schema)+ Groups = Groups.FromSchema(schema)+ Identities = Identities.FromSchema(schema)+ IdentityAccessTokens = IdentityAccessTokens.FromSchema(schema)+ IdentityAlicloudAuths = IdentityAlicloudAuths.FromSchema(schema)+ IdentityAuthTemplates = IdentityAuthTemplates.FromSchema(schema)+ IdentityAwsAuths = IdentityAwsAuths.FromSchema(schema)+ IdentityAzureAuths = IdentityAzureAuths.FromSchema(schema)+ IdentityGcpAuths = IdentityGcpAuths.FromSchema(schema)+ IdentityGroupMembership = IdentityGroupMembership.FromSchema(schema)+ IdentityJwtAuths = IdentityJwtAuths.FromSchema(schema)+ IdentityKubernetesAuths = IdentityKubernetesAuths.FromSchema(schema)+ IdentityLdapAuths = IdentityLdapAuths.FromSchema(schema)+ IdentityMetadata = IdentityMetadata.FromSchema(schema)+ IdentityOciAuths = IdentityOciAuths.FromSchema(schema)+ IdentityOidcAuths = IdentityOidcAuths.FromSchema(schema)+ IdentitySpiffeAuths = IdentitySpiffeAuths.FromSchema(schema)+ IdentityTLSCertAuths = IdentityTLSCertAuths.FromSchema(schema)+ IdentityTokenAuths = IdentityTokenAuths.FromSchema(schema)+ IdentityUaClientSecrets = IdentityUaClientSecrets.FromSchema(schema)+ IdentityUniversalAuths = IdentityUniversalAuths.FromSchema(schema)+ IncidentContacts = IncidentContacts.FromSchema(schema)+ InfisicalMigrations = InfisicalMigrations.FromSchema(schema)+ InfisicalMigrationsLock = InfisicalMigrationsLock.FromSchema(schema)+ InfisicalMigrationsStartupLock = InfisicalMigrationsStartupLock.FromSchema(schema)+ InstanceRelayConfig = InstanceRelayConfig.FromSchema(schema)+ IntegrationAuths = IntegrationAuths.FromSchema(schema)+ Integrations = Integrations.FromSchema(schema)+ IntermediateCertificateRequests = IntermediateCertificateRequests.FromSchema(schema)+ InternalCertificateAuthorities = InternalCertificateAuthorities.FromSchema(schema)+ InternalKms = InternalKms.FromSchema(schema)+ InternalKmsKeyVersion = InternalKmsKeyVersion.FromSchema(schema)+ KeyValueStore = KeyValueStore.FromSchema(schema)+ KmipClientCertificates = KmipClientCertificates.FromSchema(schema)+ KmipClients = KmipClients.FromSchema(schema)+ KmipOrgConfigs = KmipOrgConfigs.FromSchema(schema)+ KmipOrgServerCertificates = KmipOrgServerCertificates.FromSchema(schema)+ KmsKeys = KmsKeys.FromSchema(schema)+ KmsRootConfig = KmsRootConfig.FromSchema(schema)+ LdapConfigs = LdapConfigs.FromSchema(schema)+ LdapGroupMaps = LdapGroupMaps.FromSchema(schema)+ MembershipRoles = MembershipRoles.FromSchema(schema)+ Memberships = Memberships.FromSchema(schema)+ MicrosoftTeamsIntegrations = MicrosoftTeamsIntegrations.FromSchema(schema)+ OidcConfigs = OidcConfigs.FromSchema(schema)+ OrgBots = OrgBots.FromSchema(schema)+ OrgGatewayConfig = OrgGatewayConfig.FromSchema(schema)+ OrgGatewayConfigV2 = OrgGatewayConfigV2.FromSchema(schema)+ OrgRelayConfig = OrgRelayConfig.FromSchema(schema)+ OrganizationAssets = OrganizationAssets.FromSchema(schema)+ Organizations = Organizations.FromSchema(schema)+ PamAccountDependencies = PamAccountDependencies.FromSchema(schema)+ PamAccounts = PamAccounts.FromSchema(schema)+ PamDiscoverySourceAccounts = PamDiscoverySourceAccounts.FromSchema(schema)+ PamDiscoverySourceDependencies = PamDiscoverySourceDependencies.FromSchema(schema)+ PamDiscoverySourceResources = PamDiscoverySourceResources.FromSchema(schema)+ PamDiscoverySourceRuns = PamDiscoverySourceRuns.FromSchema(schema)+ PamDiscoverySources = PamDiscoverySources.FromSchema(schema)+ PamFolders = PamFolders.FromSchema(schema)+ PamResources = PamResources.FromSchema(schema)+ PamSessions = PamSessions.FromSchema(schema)+ PkiAcmeAccounts = PkiAcmeAccounts.FromSchema(schema)+ PkiAcmeAuths = PkiAcmeAuths.FromSchema(schema)+ PkiAcmeChallenges = PkiAcmeChallenges.FromSchema(schema)+ PkiAcmeEnrollmentConfigs = PkiAcmeEnrollmentConfigs.FromSchema(schema)+ PkiAcmeOrderAuths = PkiAcmeOrderAuths.FromSchema(schema)+ PkiAcmeOrders = PkiAcmeOrders.FromSchema(schema)+ PkiAlertChannels = PkiAlertChannels.FromSchema(schema)+ PkiAlertHistory = PkiAlertHistory.FromSchema(schema)+ PkiAlertHistoryCertificate = PkiAlertHistoryCertificate.FromSchema(schema)+ PkiAlerts = PkiAlerts.FromSchema(schema)+ PkiAlertsV2 = PkiAlertsV2.FromSchema(schema)+ PkiAPIEnrollmentConfigs = PkiAPIEnrollmentConfigs.FromSchema(schema)+ PkiCertificateInstallationCerts = PkiCertificateInstallationCerts.FromSchema(schema)+ PkiCertificateInstallations = PkiCertificateInstallations.FromSchema(schema)+ PkiCertificatePolicies = PkiCertificatePolicies.FromSchema(schema)+ PkiCertificateProfiles = PkiCertificateProfiles.FromSchema(schema)+ PkiCollectionItems = PkiCollectionItems.FromSchema(schema)+ PkiCollections = PkiCollections.FromSchema(schema)+ PkiDiscoveryConfigs = PkiDiscoveryConfigs.FromSchema(schema)+ PkiDiscoveryInstallations = PkiDiscoveryInstallations.FromSchema(schema)+ PkiDiscoveryScanHistory = PkiDiscoveryScanHistory.FromSchema(schema)+ PkiEstEnrollmentConfigs = PkiEstEnrollmentConfigs.FromSchema(schema)+ PkiSubscribers = PkiSubscribers.FromSchema(schema)+ PkiSyncs = PkiSyncs.FromSchema(schema)+ ProjectBots = ProjectBots.FromSchema(schema)+ ProjectEnvironments = ProjectEnvironments.FromSchema(schema)+ ProjectGateways = ProjectGateways.FromSchema(schema)+ ProjectKeys = ProjectKeys.FromSchema(schema)+ ProjectMicrosoftTeamsConfigs = ProjectMicrosoftTeamsConfigs.FromSchema(schema)+ ProjectSlackConfigs = ProjectSlackConfigs.FromSchema(schema)+ ProjectSplitBackfillIds = ProjectSplitBackfillIds.FromSchema(schema)+ ProjectSSHConfigs = ProjectSSHConfigs.FromSchema(schema)+ ProjectTemplateGroupMemberships = ProjectTemplateGroupMemberships.FromSchema(schema)+ ProjectTemplateIdentityMemberships = ProjectTemplateIdentityMemberships.FromSchema(schema)+ ProjectTemplateUserMemberships = ProjectTemplateUserMemberships.FromSchema(schema)+ ProjectTemplates = ProjectTemplates.FromSchema(schema)+ Projects = Projects.FromSchema(schema)+ QueueJobs = QueueJobs.FromSchema(schema)+ RateLimit = RateLimit.FromSchema(schema)+ Relays = Relays.FromSchema(schema)+ Reminders = Reminders.FromSchema(schema)+ RemindersRecipients = RemindersRecipients.FromSchema(schema)+ ResourceMetadata = ResourceMetadata.FromSchema(schema)+ Roles = Roles.FromSchema(schema)+ SamlConfigs = SamlConfigs.FromSchema(schema)+ ScimEvents = ScimEvents.FromSchema(schema)+ ScimTokens = ScimTokens.FromSchema(schema)+ SecretApprovalPolicies = SecretApprovalPolicies.FromSchema(schema)+ SecretApprovalPoliciesApprovers = SecretApprovalPoliciesApprovers.FromSchema(schema)+ SecretApprovalPoliciesBypassers = SecretApprovalPoliciesBypassers.FromSchema(schema)+ SecretApprovalPoliciesEnvironments = SecretApprovalPoliciesEnvironments.FromSchema(schema)+ SecretApprovalRequestSecretTags = SecretApprovalRequestSecretTags.FromSchema(schema)+ SecretApprovalRequestSecretTagsV2 = SecretApprovalRequestSecretTagsV2.FromSchema(schema)+ SecretApprovalRequests = SecretApprovalRequests.FromSchema(schema)+ SecretApprovalRequestsReviewers = SecretApprovalRequestsReviewers.FromSchema(schema)+ SecretApprovalRequestsSecrets = SecretApprovalRequestsSecrets.FromSchema(schema)+ SecretApprovalRequestsSecretsV2 = SecretApprovalRequestsSecretsV2.FromSchema(schema)+ SecretBlindIndexes = SecretBlindIndexes.FromSchema(schema)+ SecretFolderVersions = SecretFolderVersions.FromSchema(schema)+ SecretFolders = SecretFolders.FromSchema(schema)+ SecretImports = SecretImports.FromSchema(schema)+ SecretReferences = SecretReferences.FromSchema(schema)+ SecretReferencesV2 = SecretReferencesV2.FromSchema(schema)+ SecretReminderRecipients = SecretReminderRecipients.FromSchema(schema)+ SecretRotationOutputV2 = SecretRotationOutputV2.FromSchema(schema)+ SecretRotationOutputs = SecretRotationOutputs.FromSchema(schema)+ SecretRotationV2SecretMappings = SecretRotationV2SecretMappings.FromSchema(schema)+ SecretRotations = SecretRotations.FromSchema(schema)+ SecretRotationsV2 = SecretRotationsV2.FromSchema(schema)+ SecretScanningConfigs = SecretScanningConfigs.FromSchema(schema)+ SecretScanningDataSources = SecretScanningDataSources.FromSchema(schema)+ SecretScanningFindings = SecretScanningFindings.FromSchema(schema)+ SecretScanningGitRisks = SecretScanningGitRisks.FromSchema(schema)+ SecretScanningResources = SecretScanningResources.FromSchema(schema)+ SecretScanningScans = SecretScanningScans.FromSchema(schema)+ SecretSharing = SecretSharing.FromSchema(schema)+ SecretSnapshotFolders = SecretSnapshotFolders.FromSchema(schema)+ SecretSnapshotSecrets = SecretSnapshotSecrets.FromSchema(schema)+ SecretSnapshotSecretsV2 = SecretSnapshotSecretsV2.FromSchema(schema)+ SecretSnapshots = SecretSnapshots.FromSchema(schema)+ SecretSyncs = SecretSyncs.FromSchema(schema)+ SecretTagJunction = SecretTagJunction.FromSchema(schema)+ SecretTags = SecretTags.FromSchema(schema)+ SecretV2TagJunction = SecretV2TagJunction.FromSchema(schema)+ SecretVersionTagJunction = SecretVersionTagJunction.FromSchema(schema)+ SecretVersionV2TagJunction = SecretVersionV2TagJunction.FromSchema(schema)+ SecretVersions = SecretVersions.FromSchema(schema)+ SecretVersionsV2 = SecretVersionsV2.FromSchema(schema)+ Secrets = Secrets.FromSchema(schema)+ SecretsV2 = SecretsV2.FromSchema(schema)+ ServiceTokens = ServiceTokens.FromSchema(schema)+ SlackIntegrations = SlackIntegrations.FromSchema(schema)+ SSHCertificateAuthorities = SSHCertificateAuthorities.FromSchema(schema)+ SSHCertificateAuthoritySecrets = SSHCertificateAuthoritySecrets.FromSchema(schema)+ SSHCertificateBodies = SSHCertificateBodies.FromSchema(schema)+ SSHCertificateTemplates = SSHCertificateTemplates.FromSchema(schema)+ SSHCertificates = SSHCertificates.FromSchema(schema)+ SSHHostGroupMemberships = SSHHostGroupMemberships.FromSchema(schema)+ SSHHostGroups = SSHHostGroups.FromSchema(schema)+ SSHHostLoginUserMappings = SSHHostLoginUserMappings.FromSchema(schema)+ SSHHostLoginUsers = SSHHostLoginUsers.FromSchema(schema)+ SSHHosts = SSHHosts.FromSchema(schema)+ SuperAdmin = SuperAdmin.FromSchema(schema)+ TotpConfigs = TotpConfigs.FromSchema(schema)+ TrustedIps = TrustedIps.FromSchema(schema)+ UserActions = UserActions.FromSchema(schema)+ UserAliases = UserAliases.FromSchema(schema)+ UserEncryptionKeys = UserEncryptionKeys.FromSchema(schema)+ UserGroupMembership = UserGroupMembership.FromSchema(schema)+ UserNotifications = UserNotifications.FromSchema(schema)+ Users = Users.FromSchema(schema)+ VaultExternalMigrationConfigs = VaultExternalMigrationConfigs.FromSchema(schema)+ WebauthnCredentials = WebauthnCredentials.FromSchema(schema)+ Webhooks = Webhooks.FromSchema(schema)+ WorkflowIntegrations = WorkflowIntegrations.FromSchema(schema)+}diff --git a/backend-go/internal/database/pg/gen/table/totp_configs.go b/backend-go/internal/database/pg/gen/table/totp_configs.gonew file mode 100644index 0000000000..a8d9948e99--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/totp_configs.go@@ -0,0 +1,96 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var TotpConfigs = newTotpConfigsTable("public", "totp_configs", "")++type totpConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ UserId postgres.ColumnString+ IsVerified postgres.ColumnBool+ EncryptedRecoveryCodes postgres.ColumnBytea+ EncryptedSecret postgres.ColumnBytea+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type TotpConfigsTable struct {+ totpConfigsTable++ EXCLUDED totpConfigsTable+}++// AS creates new TotpConfigsTable with assigned alias+func (a TotpConfigsTable) AS(alias string) *TotpConfigsTable {+ return newTotpConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new TotpConfigsTable with assigned schema name+func (a TotpConfigsTable) FromSchema(schemaName string) *TotpConfigsTable {+ return newTotpConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new TotpConfigsTable with assigned table prefix+func (a TotpConfigsTable) WithPrefix(prefix string) *TotpConfigsTable {+ return newTotpConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new TotpConfigsTable with assigned table suffix+func (a TotpConfigsTable) WithSuffix(suffix string) *TotpConfigsTable {+ return newTotpConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newTotpConfigsTable(schemaName, tableName, alias string) *TotpConfigsTable {+ return &TotpConfigsTable{+ totpConfigsTable: newTotpConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newTotpConfigsTableImpl("", "excluded", ""),+ }+}++func newTotpConfigsTableImpl(schemaName, tableName, alias string) totpConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ UserIdColumn = postgres.StringColumn("userId")+ IsVerifiedColumn = postgres.BoolColumn("isVerified")+ EncryptedRecoveryCodesColumn = postgres.ByteaColumn("encryptedRecoveryCodes")+ EncryptedSecretColumn = postgres.ByteaColumn("encryptedSecret")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, UserIdColumn, IsVerifiedColumn, EncryptedRecoveryCodesColumn, EncryptedSecretColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{UserIdColumn, IsVerifiedColumn, EncryptedRecoveryCodesColumn, EncryptedSecretColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsVerifiedColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return totpConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ UserId: UserIdColumn,+ IsVerified: IsVerifiedColumn,+ EncryptedRecoveryCodes: EncryptedRecoveryCodesColumn,+ EncryptedSecret: EncryptedSecretColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/trusted_ips.go b/backend-go/internal/database/pg/gen/table/trusted_ips.gonew file mode 100644index 0000000000..4cde9dadf0--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/trusted_ips.go@@ -0,0 +1,102 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var TrustedIps = newTrustedIpsTable("public", "trusted_ips", "")++type trustedIpsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ IpAddress postgres.ColumnString+ Type postgres.ColumnString+ Prefix postgres.ColumnInteger+ IsActive postgres.ColumnBool+ Comment postgres.ColumnString+ ProjectId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type TrustedIpsTable struct {+ trustedIpsTable++ EXCLUDED trustedIpsTable+}++// AS creates new TrustedIpsTable with assigned alias+func (a TrustedIpsTable) AS(alias string) *TrustedIpsTable {+ return newTrustedIpsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new TrustedIpsTable with assigned schema name+func (a TrustedIpsTable) FromSchema(schemaName string) *TrustedIpsTable {+ return newTrustedIpsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new TrustedIpsTable with assigned table prefix+func (a TrustedIpsTable) WithPrefix(prefix string) *TrustedIpsTable {+ return newTrustedIpsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new TrustedIpsTable with assigned table suffix+func (a TrustedIpsTable) WithSuffix(suffix string) *TrustedIpsTable {+ return newTrustedIpsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newTrustedIpsTable(schemaName, tableName, alias string) *TrustedIpsTable {+ return &TrustedIpsTable{+ trustedIpsTable: newTrustedIpsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newTrustedIpsTableImpl("", "excluded", ""),+ }+}++func newTrustedIpsTableImpl(schemaName, tableName, alias string) trustedIpsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ IpAddressColumn = postgres.StringColumn("ipAddress")+ TypeColumn = postgres.StringColumn("type")+ PrefixColumn = postgres.IntegerColumn("prefix")+ IsActiveColumn = postgres.BoolColumn("isActive")+ CommentColumn = postgres.StringColumn("comment")+ ProjectIdColumn = postgres.StringColumn("projectId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, IpAddressColumn, TypeColumn, PrefixColumn, IsActiveColumn, CommentColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{IpAddressColumn, TypeColumn, PrefixColumn, IsActiveColumn, CommentColumn, ProjectIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsActiveColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return trustedIpsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ IpAddress: IpAddressColumn,+ Type: TypeColumn,+ Prefix: PrefixColumn,+ IsActive: IsActiveColumn,+ Comment: CommentColumn,+ ProjectId: ProjectIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/user_actions.go b/backend-go/internal/database/pg/gen/table/user_actions.gonew file mode 100644index 0000000000..4e91f93999--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/user_actions.go@@ -0,0 +1,90 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var UserActions = newUserActionsTable("public", "user_actions", "")++type userActionsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Action postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ UserId postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type UserActionsTable struct {+ userActionsTable++ EXCLUDED userActionsTable+}++// AS creates new UserActionsTable with assigned alias+func (a UserActionsTable) AS(alias string) *UserActionsTable {+ return newUserActionsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new UserActionsTable with assigned schema name+func (a UserActionsTable) FromSchema(schemaName string) *UserActionsTable {+ return newUserActionsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new UserActionsTable with assigned table prefix+func (a UserActionsTable) WithPrefix(prefix string) *UserActionsTable {+ return newUserActionsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new UserActionsTable with assigned table suffix+func (a UserActionsTable) WithSuffix(suffix string) *UserActionsTable {+ return newUserActionsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newUserActionsTable(schemaName, tableName, alias string) *UserActionsTable {+ return &UserActionsTable{+ userActionsTable: newUserActionsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newUserActionsTableImpl("", "excluded", ""),+ }+}++func newUserActionsTableImpl(schemaName, tableName, alias string) userActionsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ActionColumn = postgres.StringColumn("action")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ UserIdColumn = postgres.StringColumn("userId")+ allColumns = postgres.ColumnList{IDColumn, ActionColumn, CreatedAtColumn, UpdatedAtColumn, UserIdColumn}+ mutableColumns = postgres.ColumnList{ActionColumn, CreatedAtColumn, UpdatedAtColumn, UserIdColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return userActionsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Action: ActionColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ UserId: UserIdColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/user_aliases.go b/backend-go/internal/database/pg/gen/table/user_aliases.gonew file mode 100644index 0000000000..742b51738c--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/user_aliases.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var UserAliases = newUserAliasesTable("public", "user_aliases", "")++type userAliasesTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ UserId postgres.ColumnString+ Username postgres.ColumnString+ AliasType postgres.ColumnString+ ExternalId postgres.ColumnString+ Emails postgres.ColumnStringArray+ OrgId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IsEmailVerified postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type UserAliasesTable struct {+ userAliasesTable++ EXCLUDED userAliasesTable+}++// AS creates new UserAliasesTable with assigned alias+func (a UserAliasesTable) AS(alias string) *UserAliasesTable {+ return newUserAliasesTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new UserAliasesTable with assigned schema name+func (a UserAliasesTable) FromSchema(schemaName string) *UserAliasesTable {+ return newUserAliasesTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new UserAliasesTable with assigned table prefix+func (a UserAliasesTable) WithPrefix(prefix string) *UserAliasesTable {+ return newUserAliasesTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new UserAliasesTable with assigned table suffix+func (a UserAliasesTable) WithSuffix(suffix string) *UserAliasesTable {+ return newUserAliasesTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newUserAliasesTable(schemaName, tableName, alias string) *UserAliasesTable {+ return &UserAliasesTable{+ userAliasesTable: newUserAliasesTableImpl(schemaName, tableName, alias),+ EXCLUDED: newUserAliasesTableImpl("", "excluded", ""),+ }+}++func newUserAliasesTableImpl(schemaName, tableName, alias string) userAliasesTable {+ var (+ IDColumn = postgres.StringColumn("id")+ UserIdColumn = postgres.StringColumn("userId")+ UsernameColumn = postgres.StringColumn("username")+ AliasTypeColumn = postgres.StringColumn("aliasType")+ ExternalIdColumn = postgres.StringColumn("externalId")+ EmailsColumn = postgres.StringArrayColumn("emails")+ OrgIdColumn = postgres.StringColumn("orgId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IsEmailVerifiedColumn = postgres.BoolColumn("isEmailVerified")+ allColumns = postgres.ColumnList{IDColumn, UserIdColumn, UsernameColumn, AliasTypeColumn, ExternalIdColumn, EmailsColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, IsEmailVerifiedColumn}+ mutableColumns = postgres.ColumnList{UserIdColumn, UsernameColumn, AliasTypeColumn, ExternalIdColumn, EmailsColumn, OrgIdColumn, CreatedAtColumn, UpdatedAtColumn, IsEmailVerifiedColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, IsEmailVerifiedColumn}+ )++ return userAliasesTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ UserId: UserIdColumn,+ Username: UsernameColumn,+ AliasType: AliasTypeColumn,+ ExternalId: ExternalIdColumn,+ Emails: EmailsColumn,+ OrgId: OrgIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IsEmailVerified: IsEmailVerifiedColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/user_encryption_keys.go b/backend-go/internal/database/pg/gen/table/user_encryption_keys.gonew file mode 100644index 0000000000..d5623a87c8--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/user_encryption_keys.go@@ -0,0 +1,132 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var UserEncryptionKeys = newUserEncryptionKeysTable("public", "user_encryption_keys", "")++type userEncryptionKeysTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ ClientPublicKey postgres.ColumnString+ ServerPrivateKey postgres.ColumnString+ EncryptionVersion postgres.ColumnInteger+ ProtectedKey postgres.ColumnString+ ProtectedKeyIV postgres.ColumnString+ ProtectedKeyTag postgres.ColumnString+ PublicKey postgres.ColumnString+ EncryptedPrivateKey postgres.ColumnString+ Iv postgres.ColumnString+ Tag postgres.ColumnString+ Salt postgres.ColumnString+ Verifier postgres.ColumnString+ UserId postgres.ColumnString+ HashedPassword postgres.ColumnString+ ServerEncryptedPrivateKey postgres.ColumnString+ ServerEncryptedPrivateKeyIV postgres.ColumnString+ ServerEncryptedPrivateKeyTag postgres.ColumnString+ ServerEncryptedPrivateKeyEncoding postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type UserEncryptionKeysTable struct {+ userEncryptionKeysTable++ EXCLUDED userEncryptionKeysTable+}++// AS creates new UserEncryptionKeysTable with assigned alias+func (a UserEncryptionKeysTable) AS(alias string) *UserEncryptionKeysTable {+ return newUserEncryptionKeysTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new UserEncryptionKeysTable with assigned schema name+func (a UserEncryptionKeysTable) FromSchema(schemaName string) *UserEncryptionKeysTable {+ return newUserEncryptionKeysTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new UserEncryptionKeysTable with assigned table prefix+func (a UserEncryptionKeysTable) WithPrefix(prefix string) *UserEncryptionKeysTable {+ return newUserEncryptionKeysTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new UserEncryptionKeysTable with assigned table suffix+func (a UserEncryptionKeysTable) WithSuffix(suffix string) *UserEncryptionKeysTable {+ return newUserEncryptionKeysTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newUserEncryptionKeysTable(schemaName, tableName, alias string) *UserEncryptionKeysTable {+ return &UserEncryptionKeysTable{+ userEncryptionKeysTable: newUserEncryptionKeysTableImpl(schemaName, tableName, alias),+ EXCLUDED: newUserEncryptionKeysTableImpl("", "excluded", ""),+ }+}++func newUserEncryptionKeysTableImpl(schemaName, tableName, alias string) userEncryptionKeysTable {+ var (+ IDColumn = postgres.StringColumn("id")+ ClientPublicKeyColumn = postgres.StringColumn("clientPublicKey")+ ServerPrivateKeyColumn = postgres.StringColumn("serverPrivateKey")+ EncryptionVersionColumn = postgres.IntegerColumn("encryptionVersion")+ ProtectedKeyColumn = postgres.StringColumn("protectedKey")+ ProtectedKeyIVColumn = postgres.StringColumn("protectedKeyIV")+ ProtectedKeyTagColumn = postgres.StringColumn("protectedKeyTag")+ PublicKeyColumn = postgres.StringColumn("publicKey")+ EncryptedPrivateKeyColumn = postgres.StringColumn("encryptedPrivateKey")+ IvColumn = postgres.StringColumn("iv")+ TagColumn = postgres.StringColumn("tag")+ SaltColumn = postgres.StringColumn("salt")+ VerifierColumn = postgres.StringColumn("verifier")+ UserIdColumn = postgres.StringColumn("userId")+ HashedPasswordColumn = postgres.StringColumn("hashedPassword")+ ServerEncryptedPrivateKeyColumn = postgres.StringColumn("serverEncryptedPrivateKey")+ ServerEncryptedPrivateKeyIVColumn = postgres.StringColumn("serverEncryptedPrivateKeyIV")+ ServerEncryptedPrivateKeyTagColumn = postgres.StringColumn("serverEncryptedPrivateKeyTag")+ ServerEncryptedPrivateKeyEncodingColumn = postgres.StringColumn("serverEncryptedPrivateKeyEncoding")+ allColumns = postgres.ColumnList{IDColumn, ClientPublicKeyColumn, ServerPrivateKeyColumn, EncryptionVersionColumn, ProtectedKeyColumn, ProtectedKeyIVColumn, ProtectedKeyTagColumn, PublicKeyColumn, EncryptedPrivateKeyColumn, IvColumn, TagColumn, SaltColumn, VerifierColumn, UserIdColumn, HashedPasswordColumn, ServerEncryptedPrivateKeyColumn, ServerEncryptedPrivateKeyIVColumn, ServerEncryptedPrivateKeyTagColumn, ServerEncryptedPrivateKeyEncodingColumn}+ mutableColumns = postgres.ColumnList{ClientPublicKeyColumn, ServerPrivateKeyColumn, EncryptionVersionColumn, ProtectedKeyColumn, ProtectedKeyIVColumn, ProtectedKeyTagColumn, PublicKeyColumn, EncryptedPrivateKeyColumn, IvColumn, TagColumn, SaltColumn, VerifierColumn, UserIdColumn, HashedPasswordColumn, ServerEncryptedPrivateKeyColumn, ServerEncryptedPrivateKeyIVColumn, ServerEncryptedPrivateKeyTagColumn, ServerEncryptedPrivateKeyEncodingColumn}+ defaultColumns = postgres.ColumnList{IDColumn, EncryptionVersionColumn}+ )++ return userEncryptionKeysTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ ClientPublicKey: ClientPublicKeyColumn,+ ServerPrivateKey: ServerPrivateKeyColumn,+ EncryptionVersion: EncryptionVersionColumn,+ ProtectedKey: ProtectedKeyColumn,+ ProtectedKeyIV: ProtectedKeyIVColumn,+ ProtectedKeyTag: ProtectedKeyTagColumn,+ PublicKey: PublicKeyColumn,+ EncryptedPrivateKey: EncryptedPrivateKeyColumn,+ Iv: IvColumn,+ Tag: TagColumn,+ Salt: SaltColumn,+ Verifier: VerifierColumn,+ UserId: UserIdColumn,+ HashedPassword: HashedPasswordColumn,+ ServerEncryptedPrivateKey: ServerEncryptedPrivateKeyColumn,+ ServerEncryptedPrivateKeyIV: ServerEncryptedPrivateKeyIVColumn,+ ServerEncryptedPrivateKeyTag: ServerEncryptedPrivateKeyTagColumn,+ ServerEncryptedPrivateKeyEncoding: ServerEncryptedPrivateKeyEncodingColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/user_group_membership.go b/backend-go/internal/database/pg/gen/table/user_group_membership.gonew file mode 100644index 0000000000..4254011571--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/user_group_membership.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var UserGroupMembership = newUserGroupMembershipTable("public", "user_group_membership", "")++type userGroupMembershipTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ UserId postgres.ColumnString+ GroupId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IsPending postgres.ColumnBool++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type UserGroupMembershipTable struct {+ userGroupMembershipTable++ EXCLUDED userGroupMembershipTable+}++// AS creates new UserGroupMembershipTable with assigned alias+func (a UserGroupMembershipTable) AS(alias string) *UserGroupMembershipTable {+ return newUserGroupMembershipTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new UserGroupMembershipTable with assigned schema name+func (a UserGroupMembershipTable) FromSchema(schemaName string) *UserGroupMembershipTable {+ return newUserGroupMembershipTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new UserGroupMembershipTable with assigned table prefix+func (a UserGroupMembershipTable) WithPrefix(prefix string) *UserGroupMembershipTable {+ return newUserGroupMembershipTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new UserGroupMembershipTable with assigned table suffix+func (a UserGroupMembershipTable) WithSuffix(suffix string) *UserGroupMembershipTable {+ return newUserGroupMembershipTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newUserGroupMembershipTable(schemaName, tableName, alias string) *UserGroupMembershipTable {+ return &UserGroupMembershipTable{+ userGroupMembershipTable: newUserGroupMembershipTableImpl(schemaName, tableName, alias),+ EXCLUDED: newUserGroupMembershipTableImpl("", "excluded", ""),+ }+}++func newUserGroupMembershipTableImpl(schemaName, tableName, alias string) userGroupMembershipTable {+ var (+ IDColumn = postgres.StringColumn("id")+ UserIdColumn = postgres.StringColumn("userId")+ GroupIdColumn = postgres.StringColumn("groupId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IsPendingColumn = postgres.BoolColumn("isPending")+ allColumns = postgres.ColumnList{IDColumn, UserIdColumn, GroupIdColumn, CreatedAtColumn, UpdatedAtColumn, IsPendingColumn}+ mutableColumns = postgres.ColumnList{UserIdColumn, GroupIdColumn, CreatedAtColumn, UpdatedAtColumn, IsPendingColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, IsPendingColumn}+ )++ return userGroupMembershipTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ UserId: UserIdColumn,+ GroupId: GroupIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IsPending: IsPendingColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/user_notifications.go b/backend-go/internal/database/pg/gen/table/user_notifications.gonew file mode 100644index 0000000000..1e2354ed80--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/user_notifications.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var UserNotifications = newUserNotificationsTable("public", "user_notifications", "")++type userNotificationsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ UserId postgres.ColumnString+ OrgId postgres.ColumnString+ Type postgres.ColumnString+ Title postgres.ColumnString+ Body postgres.ColumnString+ Link postgres.ColumnString+ IsRead postgres.ColumnBool+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type UserNotificationsTable struct {+ userNotificationsTable++ EXCLUDED userNotificationsTable+}++// AS creates new UserNotificationsTable with assigned alias+func (a UserNotificationsTable) AS(alias string) *UserNotificationsTable {+ return newUserNotificationsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new UserNotificationsTable with assigned schema name+func (a UserNotificationsTable) FromSchema(schemaName string) *UserNotificationsTable {+ return newUserNotificationsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new UserNotificationsTable with assigned table prefix+func (a UserNotificationsTable) WithPrefix(prefix string) *UserNotificationsTable {+ return newUserNotificationsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new UserNotificationsTable with assigned table suffix+func (a UserNotificationsTable) WithSuffix(suffix string) *UserNotificationsTable {+ return newUserNotificationsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newUserNotificationsTable(schemaName, tableName, alias string) *UserNotificationsTable {+ return &UserNotificationsTable{+ userNotificationsTable: newUserNotificationsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newUserNotificationsTableImpl("", "excluded", ""),+ }+}++func newUserNotificationsTableImpl(schemaName, tableName, alias string) userNotificationsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ UserIdColumn = postgres.StringColumn("userId")+ OrgIdColumn = postgres.StringColumn("orgId")+ TypeColumn = postgres.StringColumn("type")+ TitleColumn = postgres.StringColumn("title")+ BodyColumn = postgres.StringColumn("body")+ LinkColumn = postgres.StringColumn("link")+ IsReadColumn = postgres.BoolColumn("isRead")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, UserIdColumn, OrgIdColumn, TypeColumn, TitleColumn, BodyColumn, LinkColumn, IsReadColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{UserIdColumn, OrgIdColumn, TypeColumn, TitleColumn, BodyColumn, LinkColumn, IsReadColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, IsReadColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return userNotificationsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ UserId: UserIdColumn,+ OrgId: OrgIdColumn,+ Type: TypeColumn,+ Title: TitleColumn,+ Body: BodyColumn,+ Link: LinkColumn,+ IsRead: IsReadColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/users.go b/backend-go/internal/database/pg/gen/table/users.gonew file mode 100644index 0000000000..d8169192db--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/users.go@@ -0,0 +1,135 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var Users = newUsersTable("public", "users", "")++type usersTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Email postgres.ColumnString+ AuthMethods postgres.ColumnStringArray+ SuperAdmin postgres.ColumnBool+ FirstName postgres.ColumnString+ LastName postgres.ColumnString+ IsAccepted postgres.ColumnBool+ IsMfaEnabled postgres.ColumnBool+ MfaMethods postgres.ColumnStringArray+ Devices postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ IsGhost postgres.ColumnBool+ Username postgres.ColumnString+ IsEmailVerified postgres.ColumnBool+ ConsecutiveFailedMfaAttempts postgres.ColumnInteger+ IsLocked postgres.ColumnBool+ TemporaryLockDateEnd postgres.ColumnTimestampz+ ConsecutiveFailedPasswordAttempts postgres.ColumnInteger+ SelectedMfaMethod postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type UsersTable struct {+ usersTable++ EXCLUDED usersTable+}++// AS creates new UsersTable with assigned alias+func (a UsersTable) AS(alias string) *UsersTable {+ return newUsersTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new UsersTable with assigned schema name+func (a UsersTable) FromSchema(schemaName string) *UsersTable {+ return newUsersTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new UsersTable with assigned table prefix+func (a UsersTable) WithPrefix(prefix string) *UsersTable {+ return newUsersTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new UsersTable with assigned table suffix+func (a UsersTable) WithSuffix(suffix string) *UsersTable {+ return newUsersTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newUsersTable(schemaName, tableName, alias string) *UsersTable {+ return &UsersTable{+ usersTable: newUsersTableImpl(schemaName, tableName, alias),+ EXCLUDED: newUsersTableImpl("", "excluded", ""),+ }+}++func newUsersTableImpl(schemaName, tableName, alias string) usersTable {+ var (+ IDColumn = postgres.StringColumn("id")+ EmailColumn = postgres.StringColumn("email")+ AuthMethodsColumn = postgres.StringArrayColumn("authMethods")+ SuperAdminColumn = postgres.BoolColumn("superAdmin")+ FirstNameColumn = postgres.StringColumn("firstName")+ LastNameColumn = postgres.StringColumn("lastName")+ IsAcceptedColumn = postgres.BoolColumn("isAccepted")+ IsMfaEnabledColumn = postgres.BoolColumn("isMfaEnabled")+ MfaMethodsColumn = postgres.StringArrayColumn("mfaMethods")+ DevicesColumn = postgres.StringColumn("devices")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ IsGhostColumn = postgres.BoolColumn("isGhost")+ UsernameColumn = postgres.StringColumn("username")+ IsEmailVerifiedColumn = postgres.BoolColumn("isEmailVerified")+ ConsecutiveFailedMfaAttemptsColumn = postgres.IntegerColumn("consecutiveFailedMfaAttempts")+ IsLockedColumn = postgres.BoolColumn("isLocked")+ TemporaryLockDateEndColumn = postgres.TimestampzColumn("temporaryLockDateEnd")+ ConsecutiveFailedPasswordAttemptsColumn = postgres.IntegerColumn("consecutiveFailedPasswordAttempts")+ SelectedMfaMethodColumn = postgres.StringColumn("selectedMfaMethod")+ allColumns = postgres.ColumnList{IDColumn, EmailColumn, AuthMethodsColumn, SuperAdminColumn, FirstNameColumn, LastNameColumn, IsAcceptedColumn, IsMfaEnabledColumn, MfaMethodsColumn, DevicesColumn, CreatedAtColumn, UpdatedAtColumn, IsGhostColumn, UsernameColumn, IsEmailVerifiedColumn, ConsecutiveFailedMfaAttemptsColumn, IsLockedColumn, TemporaryLockDateEndColumn, ConsecutiveFailedPasswordAttemptsColumn, SelectedMfaMethodColumn}+ mutableColumns = postgres.ColumnList{EmailColumn, AuthMethodsColumn, SuperAdminColumn, FirstNameColumn, LastNameColumn, IsAcceptedColumn, IsMfaEnabledColumn, MfaMethodsColumn, DevicesColumn, CreatedAtColumn, UpdatedAtColumn, IsGhostColumn, UsernameColumn, IsEmailVerifiedColumn, ConsecutiveFailedMfaAttemptsColumn, IsLockedColumn, TemporaryLockDateEndColumn, ConsecutiveFailedPasswordAttemptsColumn, SelectedMfaMethodColumn}+ defaultColumns = postgres.ColumnList{IDColumn, SuperAdminColumn, IsAcceptedColumn, IsMfaEnabledColumn, CreatedAtColumn, UpdatedAtColumn, IsGhostColumn, IsEmailVerifiedColumn, ConsecutiveFailedMfaAttemptsColumn, IsLockedColumn, ConsecutiveFailedPasswordAttemptsColumn}+ )++ return usersTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Email: EmailColumn,+ AuthMethods: AuthMethodsColumn,+ SuperAdmin: SuperAdminColumn,+ FirstName: FirstNameColumn,+ LastName: LastNameColumn,+ IsAccepted: IsAcceptedColumn,+ IsMfaEnabled: IsMfaEnabledColumn,+ MfaMethods: MfaMethodsColumn,+ Devices: DevicesColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ IsGhost: IsGhostColumn,+ Username: UsernameColumn,+ IsEmailVerified: IsEmailVerifiedColumn,+ ConsecutiveFailedMfaAttempts: ConsecutiveFailedMfaAttemptsColumn,+ IsLocked: IsLockedColumn,+ TemporaryLockDateEnd: TemporaryLockDateEndColumn,+ ConsecutiveFailedPasswordAttempts: ConsecutiveFailedPasswordAttemptsColumn,+ SelectedMfaMethod: SelectedMfaMethodColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/vault_external_migration_configs.go b/backend-go/internal/database/pg/gen/table/vault_external_migration_configs.gonew file mode 100644index 0000000000..3e19ffd4f2--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/vault_external_migration_configs.go@@ -0,0 +1,93 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var VaultExternalMigrationConfigs = newVaultExternalMigrationConfigsTable("public", "vault_external_migration_configs", "")++type vaultExternalMigrationConfigsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ OrgId postgres.ColumnString+ Namespace postgres.ColumnString+ ConnectionId postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type VaultExternalMigrationConfigsTable struct {+ vaultExternalMigrationConfigsTable++ EXCLUDED vaultExternalMigrationConfigsTable+}++// AS creates new VaultExternalMigrationConfigsTable with assigned alias+func (a VaultExternalMigrationConfigsTable) AS(alias string) *VaultExternalMigrationConfigsTable {+ return newVaultExternalMigrationConfigsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new VaultExternalMigrationConfigsTable with assigned schema name+func (a VaultExternalMigrationConfigsTable) FromSchema(schemaName string) *VaultExternalMigrationConfigsTable {+ return newVaultExternalMigrationConfigsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new VaultExternalMigrationConfigsTable with assigned table prefix+func (a VaultExternalMigrationConfigsTable) WithPrefix(prefix string) *VaultExternalMigrationConfigsTable {+ return newVaultExternalMigrationConfigsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new VaultExternalMigrationConfigsTable with assigned table suffix+func (a VaultExternalMigrationConfigsTable) WithSuffix(suffix string) *VaultExternalMigrationConfigsTable {+ return newVaultExternalMigrationConfigsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newVaultExternalMigrationConfigsTable(schemaName, tableName, alias string) *VaultExternalMigrationConfigsTable {+ return &VaultExternalMigrationConfigsTable{+ vaultExternalMigrationConfigsTable: newVaultExternalMigrationConfigsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newVaultExternalMigrationConfigsTableImpl("", "excluded", ""),+ }+}++func newVaultExternalMigrationConfigsTableImpl(schemaName, tableName, alias string) vaultExternalMigrationConfigsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ OrgIdColumn = postgres.StringColumn("orgId")+ NamespaceColumn = postgres.StringColumn("namespace")+ ConnectionIdColumn = postgres.StringColumn("connectionId")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, OrgIdColumn, NamespaceColumn, ConnectionIdColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{OrgIdColumn, NamespaceColumn, ConnectionIdColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return vaultExternalMigrationConfigsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ OrgId: OrgIdColumn,+ Namespace: NamespaceColumn,+ ConnectionId: ConnectionIdColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/webauthn_credentials.go b/backend-go/internal/database/pg/gen/table/webauthn_credentials.gonew file mode 100644index 0000000000..2023b2ca15--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/webauthn_credentials.go@@ -0,0 +1,105 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var WebauthnCredentials = newWebauthnCredentialsTable("public", "webauthn_credentials", "")++type webauthnCredentialsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ UserId postgres.ColumnString+ CredentialId postgres.ColumnString+ PublicKey postgres.ColumnString+ Counter postgres.ColumnInteger+ Transports postgres.ColumnStringArray+ Name postgres.ColumnString+ LastUsedAt postgres.ColumnTimestampz+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type WebauthnCredentialsTable struct {+ webauthnCredentialsTable++ EXCLUDED webauthnCredentialsTable+}++// AS creates new WebauthnCredentialsTable with assigned alias+func (a WebauthnCredentialsTable) AS(alias string) *WebauthnCredentialsTable {+ return newWebauthnCredentialsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new WebauthnCredentialsTable with assigned schema name+func (a WebauthnCredentialsTable) FromSchema(schemaName string) *WebauthnCredentialsTable {+ return newWebauthnCredentialsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new WebauthnCredentialsTable with assigned table prefix+func (a WebauthnCredentialsTable) WithPrefix(prefix string) *WebauthnCredentialsTable {+ return newWebauthnCredentialsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new WebauthnCredentialsTable with assigned table suffix+func (a WebauthnCredentialsTable) WithSuffix(suffix string) *WebauthnCredentialsTable {+ return newWebauthnCredentialsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newWebauthnCredentialsTable(schemaName, tableName, alias string) *WebauthnCredentialsTable {+ return &WebauthnCredentialsTable{+ webauthnCredentialsTable: newWebauthnCredentialsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newWebauthnCredentialsTableImpl("", "excluded", ""),+ }+}++func newWebauthnCredentialsTableImpl(schemaName, tableName, alias string) webauthnCredentialsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ UserIdColumn = postgres.StringColumn("userId")+ CredentialIdColumn = postgres.StringColumn("credentialId")+ PublicKeyColumn = postgres.StringColumn("publicKey")+ CounterColumn = postgres.IntegerColumn("counter")+ TransportsColumn = postgres.StringArrayColumn("transports")+ NameColumn = postgres.StringColumn("name")+ LastUsedAtColumn = postgres.TimestampzColumn("lastUsedAt")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ allColumns = postgres.ColumnList{IDColumn, UserIdColumn, CredentialIdColumn, PublicKeyColumn, CounterColumn, TransportsColumn, NameColumn, LastUsedAtColumn, CreatedAtColumn, UpdatedAtColumn}+ mutableColumns = postgres.ColumnList{UserIdColumn, CredentialIdColumn, PublicKeyColumn, CounterColumn, TransportsColumn, NameColumn, LastUsedAtColumn, CreatedAtColumn, UpdatedAtColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CounterColumn, CreatedAtColumn, UpdatedAtColumn}+ )++ return webauthnCredentialsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ UserId: UserIdColumn,+ CredentialId: CredentialIdColumn,+ PublicKey: PublicKeyColumn,+ Counter: CounterColumn,+ Transports: TransportsColumn,+ Name: NameColumn,+ LastUsedAt: LastUsedAtColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/webhooks.go b/backend-go/internal/database/pg/gen/table/webhooks.gonew file mode 100644index 0000000000..fd43c31f09--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/webhooks.go@@ -0,0 +1,135 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var Webhooks = newWebhooksTable("public", "webhooks", "")++type webhooksTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ SecretPath postgres.ColumnString+ URL postgres.ColumnString+ LastStatus postgres.ColumnString+ LastRunErrorMessage postgres.ColumnString+ IsDisabled postgres.ColumnBool+ EncryptedSecretKey postgres.ColumnString+ Iv postgres.ColumnString+ Tag postgres.ColumnString+ Algorithm postgres.ColumnString+ KeyEncoding postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ EnvId postgres.ColumnString+ UrlCipherText postgres.ColumnString+ UrlIV postgres.ColumnString+ UrlTag postgres.ColumnString+ Type postgres.ColumnString+ EncryptedPassKey postgres.ColumnBytea+ EncryptedUrl postgres.ColumnBytea++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type WebhooksTable struct {+ webhooksTable++ EXCLUDED webhooksTable+}++// AS creates new WebhooksTable with assigned alias+func (a WebhooksTable) AS(alias string) *WebhooksTable {+ return newWebhooksTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new WebhooksTable with assigned schema name+func (a WebhooksTable) FromSchema(schemaName string) *WebhooksTable {+ return newWebhooksTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new WebhooksTable with assigned table prefix+func (a WebhooksTable) WithPrefix(prefix string) *WebhooksTable {+ return newWebhooksTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new WebhooksTable with assigned table suffix+func (a WebhooksTable) WithSuffix(suffix string) *WebhooksTable {+ return newWebhooksTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newWebhooksTable(schemaName, tableName, alias string) *WebhooksTable {+ return &WebhooksTable{+ webhooksTable: newWebhooksTableImpl(schemaName, tableName, alias),+ EXCLUDED: newWebhooksTableImpl("", "excluded", ""),+ }+}++func newWebhooksTableImpl(schemaName, tableName, alias string) webhooksTable {+ var (+ IDColumn = postgres.StringColumn("id")+ SecretPathColumn = postgres.StringColumn("secretPath")+ URLColumn = postgres.StringColumn("url")+ LastStatusColumn = postgres.StringColumn("lastStatus")+ LastRunErrorMessageColumn = postgres.StringColumn("lastRunErrorMessage")+ IsDisabledColumn = postgres.BoolColumn("isDisabled")+ EncryptedSecretKeyColumn = postgres.StringColumn("encryptedSecretKey")+ IvColumn = postgres.StringColumn("iv")+ TagColumn = postgres.StringColumn("tag")+ AlgorithmColumn = postgres.StringColumn("algorithm")+ KeyEncodingColumn = postgres.StringColumn("keyEncoding")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ EnvIdColumn = postgres.StringColumn("envId")+ UrlCipherTextColumn = postgres.StringColumn("urlCipherText")+ UrlIVColumn = postgres.StringColumn("urlIV")+ UrlTagColumn = postgres.StringColumn("urlTag")+ TypeColumn = postgres.StringColumn("type")+ EncryptedPassKeyColumn = postgres.ByteaColumn("encryptedPassKey")+ EncryptedUrlColumn = postgres.ByteaColumn("encryptedUrl")+ allColumns = postgres.ColumnList{IDColumn, SecretPathColumn, URLColumn, LastStatusColumn, LastRunErrorMessageColumn, IsDisabledColumn, EncryptedSecretKeyColumn, IvColumn, TagColumn, AlgorithmColumn, KeyEncodingColumn, CreatedAtColumn, UpdatedAtColumn, EnvIdColumn, UrlCipherTextColumn, UrlIVColumn, UrlTagColumn, TypeColumn, EncryptedPassKeyColumn, EncryptedUrlColumn}+ mutableColumns = postgres.ColumnList{SecretPathColumn, URLColumn, LastStatusColumn, LastRunErrorMessageColumn, IsDisabledColumn, EncryptedSecretKeyColumn, IvColumn, TagColumn, AlgorithmColumn, KeyEncodingColumn, CreatedAtColumn, UpdatedAtColumn, EnvIdColumn, UrlCipherTextColumn, UrlIVColumn, UrlTagColumn, TypeColumn, EncryptedPassKeyColumn, EncryptedUrlColumn}+ defaultColumns = postgres.ColumnList{IDColumn, SecretPathColumn, IsDisabledColumn, CreatedAtColumn, UpdatedAtColumn, TypeColumn}+ )++ return webhooksTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ SecretPath: SecretPathColumn,+ URL: URLColumn,+ LastStatus: LastStatusColumn,+ LastRunErrorMessage: LastRunErrorMessageColumn,+ IsDisabled: IsDisabledColumn,+ EncryptedSecretKey: EncryptedSecretKeyColumn,+ Iv: IvColumn,+ Tag: TagColumn,+ Algorithm: AlgorithmColumn,+ KeyEncoding: KeyEncodingColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ EnvId: EnvIdColumn,+ UrlCipherText: UrlCipherTextColumn,+ UrlIV: UrlIVColumn,+ UrlTag: UrlTagColumn,+ Type: TypeColumn,+ EncryptedPassKey: EncryptedPassKeyColumn,+ EncryptedUrl: EncryptedUrlColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/gen/table/workflow_integrations.go b/backend-go/internal/database/pg/gen/table/workflow_integrations.gonew file mode 100644index 0000000000..8ad5c2ea64--- /dev/null+++ b/backend-go/internal/database/pg/gen/table/workflow_integrations.go@@ -0,0 +1,99 @@+//+// Code generated by go-jet DO NOT EDIT.+//+// WARNING: Changes to this file may cause incorrect behavior+// and will be lost if the code is regenerated+//++package table++import (+ "github.com/go-jet/jet/v2/postgres"+)++var WorkflowIntegrations = newWorkflowIntegrationsTable("public", "workflow_integrations", "")++type workflowIntegrationsTable struct {+ postgres.Table++ // Columns+ ID postgres.ColumnString+ Integration postgres.ColumnString+ Slug postgres.ColumnString+ OrgId postgres.ColumnString+ Description postgres.ColumnString+ CreatedAt postgres.ColumnTimestampz+ UpdatedAt postgres.ColumnTimestampz+ Status postgres.ColumnString++ AllColumns postgres.ColumnList+ MutableColumns postgres.ColumnList+ DefaultColumns postgres.ColumnList+}++type WorkflowIntegrationsTable struct {+ workflowIntegrationsTable++ EXCLUDED workflowIntegrationsTable+}++// AS creates new WorkflowIntegrationsTable with assigned alias+func (a WorkflowIntegrationsTable) AS(alias string) *WorkflowIntegrationsTable {+ return newWorkflowIntegrationsTable(a.SchemaName(), a.TableName(), alias)+}++// Schema creates new WorkflowIntegrationsTable with assigned schema name+func (a WorkflowIntegrationsTable) FromSchema(schemaName string) *WorkflowIntegrationsTable {+ return newWorkflowIntegrationsTable(schemaName, a.TableName(), a.Alias())+}++// WithPrefix creates new WorkflowIntegrationsTable with assigned table prefix+func (a WorkflowIntegrationsTable) WithPrefix(prefix string) *WorkflowIntegrationsTable {+ return newWorkflowIntegrationsTable(a.SchemaName(), prefix+a.TableName(), a.TableName())+}++// WithSuffix creates new WorkflowIntegrationsTable with assigned table suffix+func (a WorkflowIntegrationsTable) WithSuffix(suffix string) *WorkflowIntegrationsTable {+ return newWorkflowIntegrationsTable(a.SchemaName(), a.TableName()+suffix, a.TableName())+}++func newWorkflowIntegrationsTable(schemaName, tableName, alias string) *WorkflowIntegrationsTable {+ return &WorkflowIntegrationsTable{+ workflowIntegrationsTable: newWorkflowIntegrationsTableImpl(schemaName, tableName, alias),+ EXCLUDED: newWorkflowIntegrationsTableImpl("", "excluded", ""),+ }+}++func newWorkflowIntegrationsTableImpl(schemaName, tableName, alias string) workflowIntegrationsTable {+ var (+ IDColumn = postgres.StringColumn("id")+ IntegrationColumn = postgres.StringColumn("integration")+ SlugColumn = postgres.StringColumn("slug")+ OrgIdColumn = postgres.StringColumn("orgId")+ DescriptionColumn = postgres.StringColumn("description")+ CreatedAtColumn = postgres.TimestampzColumn("createdAt")+ UpdatedAtColumn = postgres.TimestampzColumn("updatedAt")+ StatusColumn = postgres.StringColumn("status")+ allColumns = postgres.ColumnList{IDColumn, IntegrationColumn, SlugColumn, OrgIdColumn, DescriptionColumn, CreatedAtColumn, UpdatedAtColumn, StatusColumn}+ mutableColumns = postgres.ColumnList{IntegrationColumn, SlugColumn, OrgIdColumn, DescriptionColumn, CreatedAtColumn, UpdatedAtColumn, StatusColumn}+ defaultColumns = postgres.ColumnList{IDColumn, CreatedAtColumn, UpdatedAtColumn, StatusColumn}+ )++ return workflowIntegrationsTable{+ Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),++ //Columns+ ID: IDColumn,+ Integration: IntegrationColumn,+ Slug: SlugColumn,+ OrgId: OrgIdColumn,+ Description: DescriptionColumn,+ CreatedAt: CreatedAtColumn,+ UpdatedAt: UpdatedAtColumn,+ Status: StatusColumn,++ AllColumns: allColumns,+ MutableColumns: mutableColumns,+ DefaultColumns: defaultColumns,+ }+}diff --git a/backend-go/internal/database/pg/pg.go b/backend-go/internal/database/pg/pg.gonew file mode 100644index 0000000000..fb2acd24ca--- /dev/null+++ b/backend-go/internal/database/pg/pg.go@@ -0,0 +1,165 @@+package pg++import (+ "context"+ "crypto/tls"+ "crypto/x509"+ "encoding/base64"+ "fmt"+ "math/rand/v2"+ "net/url"+ "strings"++ "github.com/jackc/pgx/v5/pgxpool"+)++// DBReadReplica holds connection details for a single read replica.+type DBReadReplica struct {+ DBConnectionURI string+ DBRootCert string+}++// DB wraps a primary pgxpool and zero or more read-replica pools.+type DB struct {+ primary *pgxpool.Pool+ replicas []*pgxpool.Pool+}++// NewPostgresDB creates a connection pool for the primary database and optional read replicas.+// primaryRootCert is used as fallback for replicas that don't specify their own cert.+func NewPostgresDB(ctx context.Context, primaryURI, primaryRootCert string, readReplicas []DBReadReplica) (*DB, error) {+ primaryPool, err := openPool(ctx, primaryURI, primaryRootCert)+ if err != nil {+ return nil, fmt.Errorf("primary db: %w", err)+ }++ replicaPools := make([]*pgxpool.Pool, 0, len(readReplicas))+ for i, r := range readReplicas {+ // Fall back to primary root cert if replica doesn't have its own.+ rootCert := r.DBRootCert+ if rootCert == "" {+ rootCert = primaryRootCert+ }++ pool, err := openPool(ctx, r.DBConnectionURI, rootCert)+ if err != nil {+ // Close already-opened pools on failure.+ primaryPool.Close()+ for _, p := range replicaPools {+ p.Close()+ }+ return nil, fmt.Errorf("read replica %d: %w", i, err)+ }+ replicaPools = append(replicaPools, pool)+ }++ return &DB{primary: primaryPool, replicas: replicaPools}, nil+}++// Primary returns the primary connection pool.+func (db *DB) Primary() *pgxpool.Pool {+ return db.primary+}++// ReplicaNode returns a random read-replica pool, or the primary if no replicas are configured.+// Matches the Node.js behavior: Math.floor(Math.random() * readReplicaDbs.length).+func (db *DB) ReplicaNode() *pgxpool.Pool {+ if len(db.replicas) == 0 {+ return db.primary+ }+ return db.replicas[rand.IntN(len(db.replicas))]+}++// Close closes all connection pools (primary + replicas).+func (db *DB) Close() {+ db.primary.Close()+ for _, r := range db.replicas {+ r.Close()+ }+}++// openPool creates a pgxpool.Pool from a connection URI and optional base64-encoded root CA cert.+// It mirrors the Node.js parseSslConfig logic:+// - If dbRootCert is set, TLS is enabled with that CA.+// - If the URI contains sslmode=verify-ca or verify-full, rejectUnauthorized is true (InsecureSkipVerify = false).+// - Otherwise when a cert is provided but sslmode is something else (e.g. require), the CA is trusted+// but server identity is not strictly verified (InsecureSkipVerify = true).+// - The sslmode param is stripped from the URI before passing to pgx (pgx handles TLS via its own config).+func openPool(ctx context.Context, connURI, dbRootCert string) (*pgxpool.Pool, error) {+ modifiedURI, tlsCfg, err := parseSslConfig(connURI, dbRootCert)+ if err != nil {+ return nil, err+ }++ poolCfg, err := pgxpool.ParseConfig(modifiedURI)+ if err != nil {+ return nil, fmt.Errorf("parsing connection URI: %w", err)+ }++ poolCfg.MinConns = 0+ poolCfg.MaxConns = 10++ if tlsCfg != nil {+ poolCfg.ConnConfig.TLSConfig = tlsCfg+ }++ pool, err := pgxpool.NewWithConfig(ctx, poolCfg)+ if err != nil {+ return nil, fmt.Errorf("creating pool: %w", err)+ }++ if err := pool.Ping(ctx); err != nil {+ pool.Close()+ return nil, fmt.Errorf("pinging database: %w", err)+ }++ return pool, nil+}++// parseSslConfig mirrors the Node.js parseSslConfig function.+// It returns a potentially modified URI (sslmode stripped) and TLS config.+func parseSslConfig(connURI, dbRootCert string) (string, *tls.Config, error) {+ if dbRootCert == "" {+ return connURI, nil, nil+ }++ // Decode the base64-encoded CA certificate.+ caPEM, err := base64.StdEncoding.DecodeString(dbRootCert)+ if err != nil {+ return "", nil, fmt.Errorf("decoding DB_ROOT_CERT base64: %w", err)+ }++ certPool := x509.NewCertPool()+ if !certPool.AppendCertsFromPEM(caPEM) {+ return "", nil, fmt.Errorf("failed to parse DB root certificate PEM")+ }++ // Default: trust the CA but don't strictly verify server identity+ // (matches Node.js rejectUnauthorized: false with a CA present).+ tlsCfg := &tls.Config{+ RootCAs: certPool,+ InsecureSkipVerify: true,+ }++ modifiedURI := connURI++ // Check sslmode in the URI.+ parsed, err := url.Parse(connURI)+ if err == nil {+ sslMode := parsed.Query().Get("sslmode")+ if sslMode != "" && !strings.EqualFold(sslMode, "disable") {+ // Strip sslmode — we handle TLS ourselves via pgx TLSConfig.+ q := parsed.Query()+ q.Del("sslmode")+ parsed.RawQuery = q.Encode()+ modifiedURI = parsed.String()++ // verify-ca and verify-full → reject unauthorized (InsecureSkipVerify = false).+ if strings.EqualFold(sslMode, "verify-ca") || strings.EqualFold(sslMode, "verify-full") {+ tlsCfg.InsecureSkipVerify = false+ }+ }+ }++ return modifiedURI, tlsCfg, nil+}