A continuation of HomeBox the inventory and organization system built for the Home User
chore: finish merge
Matthew Kilgoref54e2e857179
diff --git a/backend/go.mod b/backend/go.modindex 6e1cf8bb..1cf4c03e 100644--- a/backend/go.mod+++ b/backend/go.mod@@ -19,7 +19,7 @@ require (github.com/google/uuid v1.6.0github.com/gorilla/schema v1.4.1github.com/hay-kot/httpkit v0.0.11- github.com/jackc/pgx/v5 v5.8.0+ github.com/jackc/pgx/v5 v5.9.1github.com/olahol/melody v1.4.0github.com/pkg/errors v0.9.1github.com/pressly/goose/v3 v3.27.0@@ -38,11 +38,11 @@ require (gocloud.dev/pubsub/kafkapubsub v0.45.0gocloud.dev/pubsub/natspubsub v0.45.0gocloud.dev/pubsub/rabbitpubsub v0.45.0- golang.org/x/crypto v0.48.0- golang.org/x/image v0.36.0+ golang.org/x/crypto v0.49.0+ golang.org/x/image v0.37.0golang.org/x/oauth2 v0.36.0- golang.org/x/text v0.34.0- modernc.org/sqlite v1.46.1+ golang.org/x/text v0.35.0+ modernc.org/sqlite v1.47.0)require (@@ -106,7 +106,7 @@ require (github.com/ebitengine/purego v0.10.0 // indirectgithub.com/envoyproxy/go-control-plane/envoy v1.36.0 // indirectgithub.com/envoyproxy/protoc-gen-validate v1.3.0 // indirect- github.com/fatih/color v1.18.0 // indirect+ github.com/fatih/color v1.19.0 // indirectgithub.com/felixge/httpsnoop v1.0.4 // indirectgithub.com/fogleman/gg v1.3.0 // indirectgithub.com/gabriel-vasile/mimetype v1.4.13 // indirect@@ -132,7 +132,7 @@ require (github.com/google/s2a-go v0.1.9 // indirectgithub.com/google/wire v0.7.0 // indirectgithub.com/googleapis/enterprise-certificate-proxy v0.3.14 // indirect- github.com/googleapis/gax-go/v2 v2.18.0 // indirect+ github.com/googleapis/gax-go/v2 v2.19.0 // indirectgithub.com/gorilla/websocket v1.5.3 // indirectgithub.com/hashicorp/go-uuid v1.0.3 // indirectgithub.com/hashicorp/hcl/v2 v2.18.1 // indirect@@ -144,7 +144,7 @@ require (github.com/jcmturner/gofork v1.7.6 // indirectgithub.com/jcmturner/gokrb5/v8 v8.4.4 // indirectgithub.com/jcmturner/rpc/v2 v2.0.3 // indirect- github.com/klauspost/compress v1.18.4 // indirect+ github.com/klauspost/compress v1.18.5 // indirectgithub.com/klauspost/cpuid/v2 v2.3.0 // indirectgithub.com/kylelemons/godebug v1.1.0 // indirectgithub.com/leodido/go-urn v1.4.0 // indirect@@ -189,18 +189,18 @@ require (go.opentelemetry.io/otel/trace v1.42.0 // indirectgo.uber.org/multierr v1.11.0 // indirectgo.yaml.in/yaml/v3 v3.0.4 // indirect- golang.org/x/mod v0.33.0 // indirect- golang.org/x/net v0.51.0 // indirect+ golang.org/x/mod v0.34.0 // indirect+ golang.org/x/net v0.52.0 // indirectgolang.org/x/sync v0.20.0 // indirectgolang.org/x/sys v0.42.0 // indirectgolang.org/x/time v0.15.0 // indirect- golang.org/x/tools v0.42.0 // indirect+ golang.org/x/tools v0.43.0 // indirectgolang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da // indirect- google.golang.org/api v0.271.0 // indirect- google.golang.org/genproto v0.0.0-20260217215200-42d3e9bedb6d // indirect- google.golang.org/genproto/googleapis/api v0.0.0-20260217215200-42d3e9bedb6d // indirect- google.golang.org/genproto/googleapis/rpc v0.0.0-20260226221140-a57be14db171 // indirect- google.golang.org/grpc v1.79.2 // indirect+ google.golang.org/api v0.272.0 // indirect+ google.golang.org/genproto v0.0.0-20260316180232-0b37fe3546d5 // indirect+ google.golang.org/genproto/googleapis/api v0.0.0-20260316180232-0b37fe3546d5 // indirect+ google.golang.org/genproto/googleapis/rpc v0.0.0-20260319201613-d00831a3d3e7 // indirect+ google.golang.org/grpc v1.79.3 // indirectgoogle.golang.org/protobuf v1.36.11 // indirectgopkg.in/yaml.v3 v3.0.1 // indirectmodernc.org/libc v1.70.0 // indirectdiff --git a/backend/go.sum b/backend/go.sumindex 9708f244..873cdeba 100644--- a/backend/go.sum+++ b/backend/go.sum@@ -165,6 +165,8 @@ github.com/evanoberholster/imagemeta v0.3.1 h1:E4GUjXcvlVMjP9joN25+bBNf3Al3MTTfMgithub.com/evanoberholster/imagemeta v0.3.1/go.mod h1:V0vtDJmjTqvwAYO8r+u33NRVIMXQb0qSqEfImoKEiXM=github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=+github.com/fatih/color v1.19.0 h1:Zp3PiM21/9Ld6FzSKyL5c/BULoe/ONr9KlbYVOfG8+w=+github.com/fatih/color v1.19.0/go.mod h1:zNk67I0ZUT1bEGsSGyCZYZNrHuTkJJB+r6Q9VuMi0LE=github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=github.com/fogleman/gg v1.3.0 h1:/7zJX8F6AaYQc57WQCyN9cAIz+4bCJGO9B+dyW29am8=@@ -269,6 +271,8 @@ github.com/googleapis/enterprise-certificate-proxy v0.3.14 h1:yh8ncqsbUY4shRD5dAgithub.com/googleapis/enterprise-certificate-proxy v0.3.14/go.mod h1:vqVt9yG9480NtzREnTlmGSBmFrA+bzb0yl0TxoBQXOg=github.com/googleapis/gax-go/v2 v2.18.0 h1:jxP5Uuo3bxm3M6gGtV94P4lliVetoCB4Wk2x8QA86LI=github.com/googleapis/gax-go/v2 v2.18.0/go.mod h1:uSzZN4a356eRG985CzJ3WfbFSpqkLTjsnhWGJR6EwrE=+github.com/googleapis/gax-go/v2 v2.19.0 h1:fYQaUOiGwll0cGj7jmHT/0nPlcrZDFPrZRhTsoCr8hE=+github.com/googleapis/gax-go/v2 v2.19.0/go.mod h1:w2ROXVdfGEVFXzmlciUU4EdjHgWvB5h2n6x/8XSTTJA=github.com/gorilla/schema v1.4.1 h1:jUg5hUjCSDZpNGLuXQOgIWGdlgrIdYvgQ0wZtdK1M3E=github.com/gorilla/schema v1.4.1/go.mod h1:Dg5SSm5PV60mhF2NFaTV1xuYYj8tV8NOPRo4FggUMnM=github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4=@@ -290,6 +294,8 @@ github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 h1:iCEnooe7Ulwgithub.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM=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/pgx/v5 v5.9.1 h1:uwrxJXBnx76nyISkhr33kQLlUqjv7et7b9FjCen/tdc=+github.com/jackc/pgx/v5 v5.9.1/go.mod h1:mal1tBGAFfLHvZzaYh77YS/eC6IX9OWbRV1QIIM0Jn4=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/jarcoal/httpmock v1.3.0 h1:2RJ8GP0IIaWwcC9Fp2BmVi8Kog3v2Hn7VXM3fTd+nuc=@@ -312,6 +318,8 @@ github.com/keybase/go-keychain v0.0.1 h1:way+bWYa6lDppZoZcgMbYsvC7GxljxrskdNInRtgithub.com/keybase/go-keychain v0.0.1/go.mod h1:PdEILRW3i9D8JcdM+FmY6RwkHGnhHxXwkPPMeUgOK1k=github.com/klauspost/compress v1.18.4 h1:RPhnKRAQ4Fh8zU2FY/6ZFDwTVTxgJ/EMydqSTzE9a2c=github.com/klauspost/compress v1.18.4/go.mod h1:R0h/fSBs8DE4ENlcrlib3PsXS61voFxhIs2DeRhCvJ4=+github.com/klauspost/compress v1.18.5 h1:/h1gH5Ce+VWNLSWqPzOVn6XBO+vJbCNGvjoaGBFW2IE=+github.com/klauspost/compress v1.18.5/go.mod h1:cwPg85FWrGar70rWktvGQj8/hthj3wpl0PGDogxkrSQ=github.com/klauspost/cpuid/v2 v2.3.0 h1:S4CRMLnYUhGeDFDqkGriYKdfoFlDnMtqTiI/sFzhA9Y=github.com/klauspost/cpuid/v2 v2.3.0/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=@@ -484,11 +492,17 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ygolang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58=golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts=golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos=+golang.org/x/crypto v0.49.0 h1:+Ng2ULVvLHnJ/ZFEq4KdcDd/cfjrrjjNSXNzxg0Y4U4=+golang.org/x/crypto v0.49.0/go.mod h1:ErX4dUh2UM+CFYiXZRTcMpEcN8b/1gxEuv3nODoYtCA=golang.org/x/image v0.36.0 h1:Iknbfm1afbgtwPTmHnS2gTM/6PPZfH+z2EFuOkSbqwc=golang.org/x/image v0.36.0/go.mod h1:YsWD2TyyGKiIX1kZlu9QfKIsQ4nAAK9bdgdrIsE7xy4=+golang.org/x/image v0.37.0 h1:ZiRjArKI8GwxZOoEtUfhrBtaCN+4b/7709dlT6SSnQA=+golang.org/x/image v0.37.0/go.mod h1:/3f6vaXC+6CEanU4KJxbcUZyEePbyKbaLoDOe4ehFYY=golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=golang.org/x/mod v0.33.0 h1:tHFzIWbBifEmbwtGz65eaWyGiGZatSrT9prnU8DbVL8=golang.org/x/mod v0.33.0/go.mod h1:swjeQEj+6r7fODbD2cqrnje9PnziFuw4bmLbBZFrQ5w=+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-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-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=@@ -498,6 +512,8 @@ golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=golang.org/x/net v0.51.0 h1:94R/GTO7mt3/4wIKpcR5gkGmRLOuE/2hNGeWq/GBIFo=golang.org/x/net v0.51.0/go.mod h1:aamm+2QF5ogm02fjy5Bb7CQ0WMt1/WVM7FtyaTLlA9Y=+golang.org/x/net v0.52.0 h1:He/TN1l0e4mmR3QqHMT2Xab3Aj3L9qjbhRm78/6jrW0=+golang.org/x/net v0.52.0/go.mod h1:R1MAz7uMZxVMualyPXb+VaqGSa3LIaUqk0eEt3w36Sw=golang.org/x/oauth2 v0.36.0 h1:peZ/1z27fi9hUOFCAZaHyrpWG5lwe0RJEEEeH0ThlIs=golang.org/x/oauth2 v0.36.0/go.mod h1:YDBUJMTkDnJS+A4BP4eZBjCqtokkg1hODuPjwiGPO7Q=golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=@@ -528,6 +544,8 @@ 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.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk=golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA=+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/time v0.15.0 h1:bbrp8t3bGUeFOx08pvsMYRTCVSMk89u4tKbNOZbp88U=golang.org/x/time v0.15.0/go.mod h1:Y4YMaQmXwGQZoFaVFk4YpCt4FLQMYKZe9oeV/f4MSno=golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=@@ -535,6 +553,8 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtngolang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=golang.org/x/tools v0.42.0 h1:uNgphsn75Tdz5Ji2q36v/nsFSfR/9BRFvqhGBaJGd5k=golang.org/x/tools v0.42.0/go.mod h1:Ma6lCIwGZvHK6XtgbswSoWroEkhugApmsXyrUmBhfr0=+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-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da h1:noIWHXmPHxILtqtCOPIhSt0ABwskkZKjD3bXGnZGpNY=@@ -543,14 +563,24 @@ gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk=gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E=google.golang.org/api v0.271.0 h1:cIPN4qcUc61jlh7oXu6pwOQqbJW2GqYh5PS6rB2C/JY=google.golang.org/api v0.271.0/go.mod h1:CGT29bhwkbF+i11qkRUJb2KMKqcJ1hdFceEIRd9u64Q=+google.golang.org/api v0.272.0 h1:eLUQZGnAS3OHn31URRf9sAmRk3w2JjMx37d2k8AjJmA=+google.golang.org/api v0.272.0/go.mod h1:wKjowi5LNJc5qarNvDCvNQBn3rVK8nSy6jg2SwRwzIA=google.golang.org/genproto v0.0.0-20260217215200-42d3e9bedb6d h1:vsOm753cOAMkt76efriTCDKjpCbK18XGHMJHo0JUKhc=google.golang.org/genproto v0.0.0-20260217215200-42d3e9bedb6d/go.mod h1:0oz9d7g9QLSdv9/lgbIjowW1JoxMbxmBVNe8i6tORJI=+google.golang.org/genproto v0.0.0-20260316180232-0b37fe3546d5 h1:JNfk58HZ8lfmXbYK2vx/UvsqIL59TzByCxPIX4TDmsE=+google.golang.org/genproto v0.0.0-20260316180232-0b37fe3546d5/go.mod h1:x5julN69+ED4PcFk/XWayw35O0lf/nGa4aNgODCmNmw=google.golang.org/genproto/googleapis/api v0.0.0-20260217215200-42d3e9bedb6d h1:EocjzKLywydp5uZ5tJ79iP6Q0UjDnyiHkGRWxuPBP8s=google.golang.org/genproto/googleapis/api v0.0.0-20260217215200-42d3e9bedb6d/go.mod h1:48U2I+QQUYhsFrg2SY6r+nJzeOtjey7j//WBESw+qyQ=+google.golang.org/genproto/googleapis/api v0.0.0-20260316180232-0b37fe3546d5 h1:CogIeEXn4qWYzzQU0QqvYBM8yDF9cFYzDq9ojSpv0Js=+google.golang.org/genproto/googleapis/api v0.0.0-20260316180232-0b37fe3546d5/go.mod h1:EIQZ5bFCfRQDV4MhRle7+OgjNtZ6P1PiZBgAKuxXu/Y=google.golang.org/genproto/googleapis/rpc v0.0.0-20260226221140-a57be14db171 h1:ggcbiqK8WWh6l1dnltU4BgWGIGo+EVYxCaAPih/zQXQ=google.golang.org/genproto/googleapis/rpc v0.0.0-20260226221140-a57be14db171/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8=+google.golang.org/genproto/googleapis/rpc v0.0.0-20260319201613-d00831a3d3e7 h1:ndE4FoJqsIceKP2oYSnUZqhTdYufCYYkqwtFzfrhI7w=+google.golang.org/genproto/googleapis/rpc v0.0.0-20260319201613-d00831a3d3e7/go.mod h1:4Hqkh8ycfw05ld/3BWL7rJOSfebL2Q+DVDeRgYgxUU8=google.golang.org/grpc v1.79.2 h1:fRMD94s2tITpyJGtBBn7MkMseNpOZU8ZxgC3MMBaXRU=google.golang.org/grpc v1.79.2/go.mod h1:KmT0Kjez+0dde/v2j9vzwoAScgEPx/Bw1CYChhHLrHQ=+google.golang.org/grpc v1.79.3 h1:sybAEdRIEtvcD68Gx7dmnwjZKlyfuc61Dyo9pGXXkKE=+google.golang.org/grpc v1.79.3/go.mod h1:KmT0Kjez+0dde/v2j9vzwoAScgEPx/Bw1CYChhHLrHQ=google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE=google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco=gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=@@ -584,6 +614,8 @@ modernc.org/sortutil v1.2.1 h1:+xyoGf15mM3NMlPDnFqrteY07klSFxLElE2PVuWIJ7w=modernc.org/sortutil v1.2.1/go.mod h1:7ZI3a3REbai7gzCLcotuw9AC4VZVpYMjDzETGsSMqJE=modernc.org/sqlite v1.46.1 h1:eFJ2ShBLIEnUWlLy12raN0Z1plqmFX9Qe3rjQTKt6sU=modernc.org/sqlite v1.46.1/go.mod h1:CzbrU2lSB1DKUusvwGz7rqEKIq+NUd8GWuBBZDs9/nA=+modernc.org/sqlite v1.47.0 h1:R1XyaNpoW4Et9yly+I2EeX7pBza/w+pmYee/0HJDyKk=+modernc.org/sqlite v1.47.0/go.mod h1:hWjRO6Tj/5Ik8ieqxQybiEOUXy0NJFNp2tpvVpKlvig=modernc.org/strutil v1.2.1 h1:UneZBkQA+DX2Rp35KcM69cSsNES9ly8mQWD71HKlOA0=modernc.org/strutil v1.2.1/go.mod h1:EHkiggD70koQxjVdSBM3JKM7k6L0FbGE5eymy9i3B9A=modernc.org/token v1.1.0 h1:Xl7Ap9dKaEs5kLoOQeQmPWevfnk/DM5qcLcYlA8ys6Y=diff --git a/backend/internal/data/ent/mutation.go b/backend/internal/data/ent/mutation.goindex 1d5d3768..a2bdde31 100644--- a/backend/internal/data/ent/mutation.go+++ b/backend/internal/data/ent/mutation.go@@ -12802,6 +12802,7 @@ type UserMutation struct {oidc_issuer *stringoidc_subject *stringdefault_group_id *uuid.UUID+ settings *map[string]interface{}clearedFields map[string]struct{}groups map[uuid.UUID]struct{}removedgroups map[uuid.UUID]struct{}@@ -13418,6 +13419,55 @@ func (m *UserMutation) ResetDefaultGroupID() {delete(m.clearedFields, user.FieldDefaultGroupID)}+// SetSettings sets the "settings" field.+func (m *UserMutation) SetSettings(value map[string]interface{}) {+ m.settings = &value+}++// Settings returns the value of the "settings" field in the mutation.+func (m *UserMutation) Settings() (r map[string]interface{}, exists bool) {+ v := m.settings+ if v == nil {+ return+ }+ return *v, true+}++// OldSettings returns the old "settings" field's value of the User entity.+// If the User object wasn't provided to the builder, the object is fetched from the database.+// An error is returned if the mutation operation is not UpdateOne, or the database query fails.+func (m *UserMutation) OldSettings(ctx context.Context) (v map[string]interface{}, err error) {+ if !m.op.Is(OpUpdateOne) {+ return v, errors.New("OldSettings is only allowed on UpdateOne operations")+ }+ if m.id == nil || m.oldValue == nil {+ return v, errors.New("OldSettings requires an ID field in the mutation")+ }+ oldValue, err := m.oldValue(ctx)+ if err != nil {+ return v, fmt.Errorf("querying old value for OldSettings: %w", err)+ }+ return oldValue.Settings, nil+}++// ClearSettings clears the value of the "settings" field.+func (m *UserMutation) ClearSettings() {+ m.settings = nil+ m.clearedFields[user.FieldSettings] = struct{}{}+}++// SettingsCleared returns if the "settings" field was cleared in this mutation.+func (m *UserMutation) SettingsCleared() bool {+ _, ok := m.clearedFields[user.FieldSettings]+ return ok+}++// ResetSettings resets all changes to the "settings" field.+func (m *UserMutation) ResetSettings() {+ m.settings = nil+ delete(m.clearedFields, user.FieldSettings)+}+// AddGroupIDs adds the "groups" edge to the Group entity by ids.func (m *UserMutation) AddGroupIDs(ids ...uuid.UUID) {if m.groups == nil {@@ -13614,7 +13664,7 @@ func (m *UserMutation) Type() string {// order to get all numeric fields that were incremented/decremented, call// AddedFields().func (m *UserMutation) Fields() []string {- fields := make([]string, 0, 12)+ fields := make([]string, 0, 13)if m.created_at != nil {fields = append(fields, user.FieldCreatedAt)}@@ -13651,6 +13701,9 @@ func (m *UserMutation) Fields() []string {if m.default_group_id != nil {fields = append(fields, user.FieldDefaultGroupID)}+ if m.settings != nil {+ fields = append(fields, user.FieldSettings)+ }return fields}@@ -13683,6 +13736,8 @@ func (m *UserMutation) Field(name string) (ent.Value, bool) {return m.OidcSubject()case user.FieldDefaultGroupID:return m.DefaultGroupID()+ case user.FieldSettings:+ return m.Settings()}return nil, false}@@ -13716,6 +13771,8 @@ func (m *UserMutation) OldField(ctx context.Context, name string) (ent.Value, erreturn m.OldOidcSubject(ctx)case user.FieldDefaultGroupID:return m.OldDefaultGroupID(ctx)+ case user.FieldSettings:+ return m.OldSettings(ctx)}return nil, fmt.Errorf("unknown User field %s", name)}@@ -13809,6 +13866,13 @@ func (m *UserMutation) SetField(name string, value ent.Value) error {}m.SetDefaultGroupID(v)return nil+ case user.FieldSettings:+ v, ok := value.(map[string]interface{})+ if !ok {+ return fmt.Errorf("unexpected type %T for field %s", value, name)+ }+ m.SetSettings(v)+ return nil}return fmt.Errorf("unknown User field %s", name)}@@ -13854,6 +13918,9 @@ func (m *UserMutation) ClearedFields() []string {if m.FieldCleared(user.FieldDefaultGroupID) {fields = append(fields, user.FieldDefaultGroupID)}+ if m.FieldCleared(user.FieldSettings) {+ fields = append(fields, user.FieldSettings)+ }return fields}@@ -13883,6 +13950,9 @@ func (m *UserMutation) ClearField(name string) error {case user.FieldDefaultGroupID:m.ClearDefaultGroupID()return nil+ case user.FieldSettings:+ m.ClearSettings()+ return nil}return fmt.Errorf("unknown User nullable field %s", name)}@@ -13927,6 +13997,9 @@ func (m *UserMutation) ResetField(name string) error {case user.FieldDefaultGroupID:m.ResetDefaultGroupID()return nil+ case user.FieldSettings:+ m.ResetSettings()+ return nil}return fmt.Errorf("unknown User field %s", name)}diff --git a/backend/internal/data/ent/user.go b/backend/internal/data/ent/user.goindex 8adaf794..d2ea0069 100644--- a/backend/internal/data/ent/user.go+++ b/backend/internal/data/ent/user.go@@ -3,6 +3,7 @@package entimport (+ "encoding/json""fmt""strings""time"@@ -42,6 +43,8 @@ type User struct {OidcSubject *string `json:"oidc_subject,omitempty"`// DefaultGroupID holds the value of the "default_group_id" field.DefaultGroupID *uuid.UUID `json:"default_group_id,omitempty"`+ // Settings holds the value of the "settings" field.+ Settings map[string]interface{} `json:"settings,omitempty"`// Edges holds the relations/edges for other nodes in the graph.// The values are being populated by the UserQuery when eager-loading is set.Edges UserEdges `json:"edges"`@@ -95,6 +98,8 @@ func (*User) scanValues(columns []string) ([]any, error) {switch columns[i] {case user.FieldDefaultGroupID:values[i] = &sql.NullScanner{S: new(uuid.UUID)}+ case user.FieldSettings:+ values[i] = new([]byte)case user.FieldIsSuperuser, user.FieldSuperuser:values[i] = new(sql.NullBool)case user.FieldName, user.FieldEmail, user.FieldPassword, user.FieldRole, user.FieldOidcIssuer, user.FieldOidcSubject:@@ -200,6 +205,14 @@ func (_m *User) assignValues(columns []string, values []any) error {_m.DefaultGroupID = new(uuid.UUID)*_m.DefaultGroupID = *value.S.(*uuid.UUID)}+ case user.FieldSettings:+ if value, ok := values[i].(*[]byte); !ok {+ return fmt.Errorf("unexpected type %T for field settings", values[i])+ } else if value != nil && len(*value) > 0 {+ if err := json.Unmarshal(*value, &_m.Settings); err != nil {+ return fmt.Errorf("unmarshal field settings: %w", err)+ }+ }default:_m.selectValues.Set(columns[i], values[i])}@@ -291,6 +304,9 @@ func (_m *User) String() string {builder.WriteString("default_group_id=")builder.WriteString(fmt.Sprintf("%v", *v))}+ builder.WriteString(", ")+ builder.WriteString("settings=")+ builder.WriteString(fmt.Sprintf("%v", _m.Settings))builder.WriteByte(')')return builder.String()}diff --git a/backend/internal/data/ent/user/user.go b/backend/internal/data/ent/user/user.goindex 3b06d8b8..53eb866f 100644--- a/backend/internal/data/ent/user/user.go+++ b/backend/internal/data/ent/user/user.go@@ -40,10 +40,10 @@ const (FieldOidcSubject = "oidc_subject"// FieldDefaultGroupID holds the string denoting the default_group_id field in the database.FieldDefaultGroupID = "default_group_id"- // EdgeGroups holds the string denoting the groups edge name in mutations.- EdgeGroups = "groups"// FieldSettings holds the string denoting the settings field in the database.FieldSettings = "settings"+ // EdgeGroups holds the string denoting the groups edge name in mutations.+ EdgeGroups = "groups"// EdgeAuthTokens holds the string denoting the auth_tokens edge name in mutations.EdgeAuthTokens = "auth_tokens"// EdgeNotifiers holds the string denoting the notifiers edge name in mutations.diff --git a/backend/internal/data/ent/user/where.go b/backend/internal/data/ent/user/where.goindex f7b552a5..fb31d18b 100644--- a/backend/internal/data/ent/user/where.go+++ b/backend/internal/data/ent/user/where.go@@ -636,18 +636,6 @@ func OidcSubjectContainsFold(v string) predicate.User {return predicate.User(sql.FieldContainsFold(FieldOidcSubject, v))}-// SettingsIsNil applies the IsNil predicate on the "settings" field.-func SettingsIsNil() predicate.User {- return predicate.User(sql.FieldIsNull(FieldSettings))-}--// SettingsNotNil applies the NotNil predicate on the "settings" field.-func SettingsNotNil() predicate.User {- return predicate.User(sql.FieldNotNull(FieldSettings))-}--// HasGroup applies the HasEdge predicate on the "group" edge.-func HasGroup() predicate.User {// DefaultGroupIDEQ applies the EQ predicate on the "default_group_id" field.func DefaultGroupIDEQ(v uuid.UUID) predicate.User {return predicate.User(sql.FieldEQ(FieldDefaultGroupID, v))@@ -698,6 +686,16 @@ func DefaultGroupIDNotNil() predicate.User {return predicate.User(sql.FieldNotNull(FieldDefaultGroupID))}+// SettingsIsNil applies the IsNil predicate on the "settings" field.+func SettingsIsNil() predicate.User {+ return predicate.User(sql.FieldIsNull(FieldSettings))+}++// SettingsNotNil applies the NotNil predicate on the "settings" field.+func SettingsNotNil() predicate.User {+ return predicate.User(sql.FieldNotNull(FieldSettings))+}+// HasGroups applies the HasEdge predicate on the "groups" edge.func HasGroups() predicate.User {return predicate.User(func(s *sql.Selector) {diff --git a/backend/internal/data/ent/user_create.go b/backend/internal/data/ent/user_create.goindex 597cf7f1..0248479e 100644--- a/backend/internal/data/ent/user_create.go+++ b/backend/internal/data/ent/user_create.go@@ -176,6 +176,12 @@ func (_c *UserCreate) SetNillableDefaultGroupID(v *uuid.UUID) *UserCreate {return _c}+// SetSettings sets the "settings" field.+func (_c *UserCreate) SetSettings(v map[string]interface{}) *UserCreate {+ _c.mutation.SetSettings(v)+ return _c+}+// SetID sets the "id" field.func (_c *UserCreate) SetID(v uuid.UUID) *UserCreate {_c.mutation.SetID(v)@@ -422,6 +428,10 @@ func (_c *UserCreate) createSpec() (*User, *sqlgraph.CreateSpec) {_spec.SetField(user.FieldDefaultGroupID, field.TypeUUID, value)_node.DefaultGroupID = &value}+ if value, ok := _c.mutation.Settings(); ok {+ _spec.SetField(user.FieldSettings, field.TypeJSON, value)+ _node.Settings = value+ }if nodes := _c.mutation.GroupsIDs(); len(nodes) > 0 {edge := &sqlgraph.EdgeSpec{Rel: sqlgraph.M2M,diff --git a/backend/internal/data/ent/user_update.go b/backend/internal/data/ent/user_update.goindex cbfb3eba..8b3361ff 100644--- a/backend/internal/data/ent/user_update.go+++ b/backend/internal/data/ent/user_update.go@@ -208,6 +208,18 @@ func (_u *UserUpdate) ClearDefaultGroupID() *UserUpdate {return _u}+// SetSettings sets the "settings" field.+func (_u *UserUpdate) SetSettings(v map[string]interface{}) *UserUpdate {+ _u.mutation.SetSettings(v)+ return _u+}++// ClearSettings clears the value of the "settings" field.+func (_u *UserUpdate) ClearSettings() *UserUpdate {+ _u.mutation.ClearSettings()+ return _u+}+// AddGroupIDs adds the "groups" edge to the Group entity by IDs.func (_u *UserUpdate) AddGroupIDs(ids ...uuid.UUID) *UserUpdate {_u.mutation.AddGroupIDs(ids...)@@ -442,6 +454,12 @@ func (_u *UserUpdate) sqlSave(ctx context.Context) (_node int, err error) {if _u.mutation.DefaultGroupIDCleared() {_spec.ClearField(user.FieldDefaultGroupID, field.TypeUUID)}+ if value, ok := _u.mutation.Settings(); ok {+ _spec.SetField(user.FieldSettings, field.TypeJSON, value)+ }+ if _u.mutation.SettingsCleared() {+ _spec.ClearField(user.FieldSettings, field.TypeJSON)+ }if _u.mutation.GroupsCleared() {edge := &sqlgraph.EdgeSpec{Rel: sqlgraph.M2M,@@ -773,6 +791,18 @@ func (_u *UserUpdateOne) ClearDefaultGroupID() *UserUpdateOne {return _u}+// SetSettings sets the "settings" field.+func (_u *UserUpdateOne) SetSettings(v map[string]interface{}) *UserUpdateOne {+ _u.mutation.SetSettings(v)+ return _u+}++// ClearSettings clears the value of the "settings" field.+func (_u *UserUpdateOne) ClearSettings() *UserUpdateOne {+ _u.mutation.ClearSettings()+ return _u+}+// AddGroupIDs adds the "groups" edge to the Group entity by IDs.func (_u *UserUpdateOne) AddGroupIDs(ids ...uuid.UUID) *UserUpdateOne {_u.mutation.AddGroupIDs(ids...)@@ -1037,6 +1067,12 @@ func (_u *UserUpdateOne) sqlSave(ctx context.Context) (_node *User, err error) {if _u.mutation.DefaultGroupIDCleared() {_spec.ClearField(user.FieldDefaultGroupID, field.TypeUUID)}+ if value, ok := _u.mutation.Settings(); ok {+ _spec.SetField(user.FieldSettings, field.TypeJSON, value)+ }+ if _u.mutation.SettingsCleared() {+ _spec.ClearField(user.FieldSettings, field.TypeJSON)+ }if _u.mutation.GroupsCleared() {edge := &sqlgraph.EdgeSpec{Rel: sqlgraph.M2M,