mirror of
https://github.com/hay-kot/homebox.git
synced 2025-08-05 09:10:26 +00:00
change /content/ -> /homebox/
This commit is contained in:
parent
852d312ba7
commit
d103151620
131 changed files with 369 additions and 369 deletions
|
@ -3,12 +3,12 @@ package main
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hay-kot/content/backend/ent"
|
"github.com/hay-kot/homebox/backend/ent"
|
||||||
"github.com/hay-kot/content/backend/internal/config"
|
"github.com/hay-kot/homebox/backend/internal/config"
|
||||||
"github.com/hay-kot/content/backend/internal/repo"
|
"github.com/hay-kot/homebox/backend/internal/repo"
|
||||||
"github.com/hay-kot/content/backend/internal/services"
|
"github.com/hay-kot/homebox/backend/internal/services"
|
||||||
"github.com/hay-kot/content/backend/pkgs/mailer"
|
"github.com/hay-kot/homebox/backend/pkgs/mailer"
|
||||||
"github.com/hay-kot/content/backend/pkgs/server"
|
"github.com/hay-kot/homebox/backend/pkgs/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
type app struct {
|
type app struct {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/hay-kot/content/backend/internal/config"
|
"github.com/hay-kot/homebox/backend/internal/config"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,12 +5,12 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hay-kot/content/backend/app/api/docs"
|
"github.com/hay-kot/homebox/backend/app/api/docs"
|
||||||
"github.com/hay-kot/content/backend/ent"
|
"github.com/hay-kot/homebox/backend/ent"
|
||||||
"github.com/hay-kot/content/backend/internal/config"
|
"github.com/hay-kot/homebox/backend/internal/config"
|
||||||
"github.com/hay-kot/content/backend/internal/repo"
|
"github.com/hay-kot/homebox/backend/internal/repo"
|
||||||
"github.com/hay-kot/content/backend/internal/services"
|
"github.com/hay-kot/homebox/backend/internal/services"
|
||||||
"github.com/hay-kot/content/backend/pkgs/server"
|
"github.com/hay-kot/homebox/backend/pkgs/server"
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
|
@ -8,9 +8,9 @@ import (
|
||||||
|
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
"github.com/go-chi/chi/v5/middleware"
|
"github.com/go-chi/chi/v5/middleware"
|
||||||
"github.com/hay-kot/content/backend/internal/config"
|
"github.com/hay-kot/homebox/backend/internal/config"
|
||||||
"github.com/hay-kot/content/backend/internal/services"
|
"github.com/hay-kot/homebox/backend/internal/services"
|
||||||
"github.com/hay-kot/content/backend/pkgs/server"
|
"github.com/hay-kot/homebox/backend/pkgs/server"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,10 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
_ "github.com/hay-kot/content/backend/app/api/docs"
|
_ "github.com/hay-kot/homebox/backend/app/api/docs"
|
||||||
v1 "github.com/hay-kot/content/backend/app/api/v1"
|
v1 "github.com/hay-kot/homebox/backend/app/api/v1"
|
||||||
"github.com/hay-kot/content/backend/internal/repo"
|
"github.com/hay-kot/homebox/backend/internal/repo"
|
||||||
"github.com/hay-kot/content/backend/internal/types"
|
"github.com/hay-kot/homebox/backend/internal/types"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
httpSwagger "github.com/swaggo/http-swagger" // http-swagger middleware
|
httpSwagger "github.com/swaggo/http-swagger" // http-swagger middleware
|
||||||
)
|
)
|
||||||
|
|
|
@ -3,9 +3,9 @@ package v1
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/hay-kot/content/backend/internal/services"
|
"github.com/hay-kot/homebox/backend/internal/services"
|
||||||
"github.com/hay-kot/content/backend/internal/types"
|
"github.com/hay-kot/homebox/backend/internal/types"
|
||||||
"github.com/hay-kot/content/backend/pkgs/server"
|
"github.com/hay-kot/homebox/backend/pkgs/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
type V1Controller struct {
|
type V1Controller struct {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hay-kot/content/backend/internal/types"
|
"github.com/hay-kot/homebox/backend/internal/types"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hay-kot/content/backend/ent"
|
"github.com/hay-kot/homebox/backend/ent"
|
||||||
"github.com/hay-kot/content/backend/internal/mocks"
|
"github.com/hay-kot/homebox/backend/internal/mocks"
|
||||||
"github.com/hay-kot/content/backend/internal/mocks/factories"
|
"github.com/hay-kot/homebox/backend/internal/mocks/factories"
|
||||||
"github.com/hay-kot/content/backend/internal/types"
|
"github.com/hay-kot/homebox/backend/internal/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var mockHandler = &V1Controller{}
|
var mockHandler = &V1Controller{}
|
||||||
|
|
|
@ -5,9 +5,9 @@ import (
|
||||||
|
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/internal/services"
|
"github.com/hay-kot/homebox/backend/internal/services"
|
||||||
"github.com/hay-kot/content/backend/internal/types"
|
"github.com/hay-kot/homebox/backend/internal/types"
|
||||||
"github.com/hay-kot/content/backend/pkgs/server"
|
"github.com/hay-kot/homebox/backend/pkgs/server"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/hay-kot/content/backend/internal/services"
|
"github.com/hay-kot/homebox/backend/internal/services"
|
||||||
"github.com/hay-kot/content/backend/internal/types"
|
"github.com/hay-kot/homebox/backend/internal/types"
|
||||||
"github.com/hay-kot/content/backend/pkgs/server"
|
"github.com/hay-kot/homebox/backend/pkgs/server"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"encoding/csv"
|
"encoding/csv"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/hay-kot/content/backend/internal/services"
|
"github.com/hay-kot/homebox/backend/internal/services"
|
||||||
"github.com/hay-kot/content/backend/internal/types"
|
"github.com/hay-kot/homebox/backend/internal/types"
|
||||||
"github.com/hay-kot/content/backend/pkgs/server"
|
"github.com/hay-kot/homebox/backend/pkgs/server"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,10 @@ package v1
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/hay-kot/content/backend/ent"
|
"github.com/hay-kot/homebox/backend/ent"
|
||||||
"github.com/hay-kot/content/backend/internal/services"
|
"github.com/hay-kot/homebox/backend/internal/services"
|
||||||
"github.com/hay-kot/content/backend/internal/types"
|
"github.com/hay-kot/homebox/backend/internal/types"
|
||||||
"github.com/hay-kot/content/backend/pkgs/server"
|
"github.com/hay-kot/homebox/backend/pkgs/server"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,10 @@ package v1
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/hay-kot/content/backend/ent"
|
"github.com/hay-kot/homebox/backend/ent"
|
||||||
"github.com/hay-kot/content/backend/internal/services"
|
"github.com/hay-kot/homebox/backend/internal/services"
|
||||||
"github.com/hay-kot/content/backend/internal/types"
|
"github.com/hay-kot/homebox/backend/internal/types"
|
||||||
"github.com/hay-kot/content/backend/pkgs/server"
|
"github.com/hay-kot/homebox/backend/pkgs/server"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/internal/services"
|
"github.com/hay-kot/homebox/backend/internal/services"
|
||||||
"github.com/hay-kot/content/backend/internal/types"
|
"github.com/hay-kot/homebox/backend/internal/types"
|
||||||
"github.com/hay-kot/content/backend/pkgs/server"
|
"github.com/hay-kot/homebox/backend/pkgs/server"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/attachment"
|
"github.com/hay-kot/homebox/backend/ent/attachment"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Attachment is the model entity for the Attachment schema.
|
// Attachment is the model entity for the Attachment schema.
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ID filters vertices based on their ID field.
|
// ID filters vertices based on their ID field.
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/attachment"
|
"github.com/hay-kot/homebox/backend/ent/attachment"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AttachmentCreate is the builder for creating a Attachment entity.
|
// AttachmentCreate is the builder for creating a Attachment entity.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/attachment"
|
"github.com/hay-kot/homebox/backend/ent/attachment"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AttachmentDelete is the builder for deleting a Attachment entity.
|
// AttachmentDelete is the builder for deleting a Attachment entity.
|
||||||
|
|
|
@ -11,10 +11,10 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/attachment"
|
"github.com/hay-kot/homebox/backend/ent/attachment"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AttachmentQuery is the builder for querying Attachment entities.
|
// AttachmentQuery is the builder for querying Attachment entities.
|
||||||
|
|
|
@ -12,10 +12,10 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/attachment"
|
"github.com/hay-kot/homebox/backend/ent/attachment"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AttachmentUpdate is the builder for updating Attachment entities.
|
// AttachmentUpdate is the builder for updating Attachment entities.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/authtokens"
|
"github.com/hay-kot/homebox/backend/ent/authtokens"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AuthTokens is the model entity for the AuthTokens schema.
|
// AuthTokens is the model entity for the AuthTokens schema.
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ID filters vertices based on their ID field.
|
// ID filters vertices based on their ID field.
|
||||||
|
|
|
@ -11,8 +11,8 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/authtokens"
|
"github.com/hay-kot/homebox/backend/ent/authtokens"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AuthTokensCreate is the builder for creating a AuthTokens entity.
|
// AuthTokensCreate is the builder for creating a AuthTokens entity.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/authtokens"
|
"github.com/hay-kot/homebox/backend/ent/authtokens"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AuthTokensDelete is the builder for deleting a AuthTokens entity.
|
// AuthTokensDelete is the builder for deleting a AuthTokens entity.
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/authtokens"
|
"github.com/hay-kot/homebox/backend/ent/authtokens"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AuthTokensQuery is the builder for querying AuthTokens entities.
|
// AuthTokensQuery is the builder for querying AuthTokens entities.
|
||||||
|
|
|
@ -12,9 +12,9 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/authtokens"
|
"github.com/hay-kot/homebox/backend/ent/authtokens"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AuthTokensUpdate is the builder for updating AuthTokens entities.
|
// AuthTokensUpdate is the builder for updating AuthTokens entities.
|
||||||
|
|
|
@ -9,18 +9,18 @@ import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/migrate"
|
"github.com/hay-kot/homebox/backend/ent/migrate"
|
||||||
|
|
||||||
"github.com/hay-kot/content/backend/ent/attachment"
|
"github.com/hay-kot/homebox/backend/ent/attachment"
|
||||||
"github.com/hay-kot/content/backend/ent/authtokens"
|
"github.com/hay-kot/homebox/backend/ent/authtokens"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/documenttoken"
|
"github.com/hay-kot/homebox/backend/ent/documenttoken"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/itemfield"
|
"github.com/hay-kot/homebox/backend/ent/itemfield"
|
||||||
"github.com/hay-kot/content/backend/ent/label"
|
"github.com/hay-kot/homebox/backend/ent/label"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
|
|
||||||
"entgo.io/ent/dialect"
|
"entgo.io/ent/dialect"
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Document is the model entity for the Document schema.
|
// Document is the model entity for the Document schema.
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ID filters vertices based on their ID field.
|
// ID filters vertices based on their ID field.
|
||||||
|
|
|
@ -11,10 +11,10 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/attachment"
|
"github.com/hay-kot/homebox/backend/ent/attachment"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/documenttoken"
|
"github.com/hay-kot/homebox/backend/ent/documenttoken"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DocumentCreate is the builder for creating a Document entity.
|
// DocumentCreate is the builder for creating a Document entity.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DocumentDelete is the builder for deleting a Document entity.
|
// DocumentDelete is the builder for deleting a Document entity.
|
||||||
|
|
|
@ -12,11 +12,11 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/attachment"
|
"github.com/hay-kot/homebox/backend/ent/attachment"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/documenttoken"
|
"github.com/hay-kot/homebox/backend/ent/documenttoken"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DocumentQuery is the builder for querying Document entities.
|
// DocumentQuery is the builder for querying Document entities.
|
||||||
|
|
|
@ -12,11 +12,11 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/attachment"
|
"github.com/hay-kot/homebox/backend/ent/attachment"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/documenttoken"
|
"github.com/hay-kot/homebox/backend/ent/documenttoken"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DocumentUpdate is the builder for updating Document entities.
|
// DocumentUpdate is the builder for updating Document entities.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/documenttoken"
|
"github.com/hay-kot/homebox/backend/ent/documenttoken"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DocumentToken is the model entity for the DocumentToken schema.
|
// DocumentToken is the model entity for the DocumentToken schema.
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ID filters vertices based on their ID field.
|
// ID filters vertices based on their ID field.
|
||||||
|
|
|
@ -11,8 +11,8 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/documenttoken"
|
"github.com/hay-kot/homebox/backend/ent/documenttoken"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DocumentTokenCreate is the builder for creating a DocumentToken entity.
|
// DocumentTokenCreate is the builder for creating a DocumentToken entity.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/documenttoken"
|
"github.com/hay-kot/homebox/backend/ent/documenttoken"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DocumentTokenDelete is the builder for deleting a DocumentToken entity.
|
// DocumentTokenDelete is the builder for deleting a DocumentToken entity.
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/documenttoken"
|
"github.com/hay-kot/homebox/backend/ent/documenttoken"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DocumentTokenQuery is the builder for querying DocumentToken entities.
|
// DocumentTokenQuery is the builder for querying DocumentToken entities.
|
||||||
|
|
|
@ -12,9 +12,9 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/documenttoken"
|
"github.com/hay-kot/homebox/backend/ent/documenttoken"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DocumentTokenUpdate is the builder for updating DocumentToken entities.
|
// DocumentTokenUpdate is the builder for updating DocumentToken entities.
|
||||||
|
|
|
@ -10,16 +10,16 @@ import (
|
||||||
"entgo.io/ent"
|
"entgo.io/ent"
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"github.com/hay-kot/content/backend/ent/attachment"
|
"github.com/hay-kot/homebox/backend/ent/attachment"
|
||||||
"github.com/hay-kot/content/backend/ent/authtokens"
|
"github.com/hay-kot/homebox/backend/ent/authtokens"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/documenttoken"
|
"github.com/hay-kot/homebox/backend/ent/documenttoken"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/itemfield"
|
"github.com/hay-kot/homebox/backend/ent/itemfield"
|
||||||
"github.com/hay-kot/content/backend/ent/label"
|
"github.com/hay-kot/homebox/backend/ent/label"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ent aliases to avoid import conflicts in user's code.
|
// ent aliases to avoid import conflicts in user's code.
|
||||||
|
|
|
@ -5,12 +5,12 @@ package enttest
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/hay-kot/content/backend/ent"
|
"github.com/hay-kot/homebox/backend/ent"
|
||||||
// required by schema hooks.
|
// required by schema hooks.
|
||||||
_ "github.com/hay-kot/content/backend/ent/runtime"
|
_ "github.com/hay-kot/homebox/backend/ent/runtime"
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql/schema"
|
"entgo.io/ent/dialect/sql/schema"
|
||||||
"github.com/hay-kot/content/backend/ent/migrate"
|
"github.com/hay-kot/homebox/backend/ent/migrate"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Group is the model entity for the Group schema.
|
// Group is the model entity for the Group schema.
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ID filters vertices based on their ID field.
|
// ID filters vertices based on their ID field.
|
||||||
|
|
|
@ -11,12 +11,12 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/label"
|
"github.com/hay-kot/homebox/backend/ent/label"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GroupCreate is the builder for creating a Group entity.
|
// GroupCreate is the builder for creating a Group entity.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GroupDelete is the builder for deleting a Group entity.
|
// GroupDelete is the builder for deleting a Group entity.
|
||||||
|
|
|
@ -12,13 +12,13 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/label"
|
"github.com/hay-kot/homebox/backend/ent/label"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GroupQuery is the builder for querying Group entities.
|
// GroupQuery is the builder for querying Group entities.
|
||||||
|
|
|
@ -12,13 +12,13 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/label"
|
"github.com/hay-kot/homebox/backend/ent/label"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GroupUpdate is the builder for updating Group entities.
|
// GroupUpdate is the builder for updating Group entities.
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/hay-kot/content/backend/ent"
|
"github.com/hay-kot/homebox/backend/ent"
|
||||||
)
|
)
|
||||||
|
|
||||||
// The AttachmentFunc type is an adapter to allow the use of ordinary
|
// The AttachmentFunc type is an adapter to allow the use of ordinary
|
||||||
|
|
|
@ -9,9 +9,9 @@ import (
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Item is the model entity for the Item schema.
|
// Item is the model entity for the Item schema.
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ID filters vertices based on their ID field.
|
// ID filters vertices based on their ID field.
|
||||||
|
|
|
@ -11,12 +11,12 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/attachment"
|
"github.com/hay-kot/homebox/backend/ent/attachment"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/itemfield"
|
"github.com/hay-kot/homebox/backend/ent/itemfield"
|
||||||
"github.com/hay-kot/content/backend/ent/label"
|
"github.com/hay-kot/homebox/backend/ent/label"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ItemCreate is the builder for creating a Item entity.
|
// ItemCreate is the builder for creating a Item entity.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ItemDelete is the builder for deleting a Item entity.
|
// ItemDelete is the builder for deleting a Item entity.
|
||||||
|
|
|
@ -12,13 +12,13 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/attachment"
|
"github.com/hay-kot/homebox/backend/ent/attachment"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/itemfield"
|
"github.com/hay-kot/homebox/backend/ent/itemfield"
|
||||||
"github.com/hay-kot/content/backend/ent/label"
|
"github.com/hay-kot/homebox/backend/ent/label"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ItemQuery is the builder for querying Item entities.
|
// ItemQuery is the builder for querying Item entities.
|
||||||
|
|
|
@ -12,13 +12,13 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/attachment"
|
"github.com/hay-kot/homebox/backend/ent/attachment"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/itemfield"
|
"github.com/hay-kot/homebox/backend/ent/itemfield"
|
||||||
"github.com/hay-kot/content/backend/ent/label"
|
"github.com/hay-kot/homebox/backend/ent/label"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ItemUpdate is the builder for updating Item entities.
|
// ItemUpdate is the builder for updating Item entities.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/itemfield"
|
"github.com/hay-kot/homebox/backend/ent/itemfield"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ItemField is the model entity for the ItemField schema.
|
// ItemField is the model entity for the ItemField schema.
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ID filters vertices based on their ID field.
|
// ID filters vertices based on their ID field.
|
||||||
|
|
|
@ -11,8 +11,8 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/itemfield"
|
"github.com/hay-kot/homebox/backend/ent/itemfield"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ItemFieldCreate is the builder for creating a ItemField entity.
|
// ItemFieldCreate is the builder for creating a ItemField entity.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/itemfield"
|
"github.com/hay-kot/homebox/backend/ent/itemfield"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ItemFieldDelete is the builder for deleting a ItemField entity.
|
// ItemFieldDelete is the builder for deleting a ItemField entity.
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/itemfield"
|
"github.com/hay-kot/homebox/backend/ent/itemfield"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ItemFieldQuery is the builder for querying ItemField entities.
|
// ItemFieldQuery is the builder for querying ItemField entities.
|
||||||
|
|
|
@ -12,9 +12,9 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/itemfield"
|
"github.com/hay-kot/homebox/backend/ent/itemfield"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ItemFieldUpdate is the builder for updating ItemField entities.
|
// ItemFieldUpdate is the builder for updating ItemField entities.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/label"
|
"github.com/hay-kot/homebox/backend/ent/label"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Label is the model entity for the Label schema.
|
// Label is the model entity for the Label schema.
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ID filters vertices based on their ID field.
|
// ID filters vertices based on their ID field.
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/label"
|
"github.com/hay-kot/homebox/backend/ent/label"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LabelCreate is the builder for creating a Label entity.
|
// LabelCreate is the builder for creating a Label entity.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/label"
|
"github.com/hay-kot/homebox/backend/ent/label"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LabelDelete is the builder for deleting a Label entity.
|
// LabelDelete is the builder for deleting a Label entity.
|
||||||
|
|
|
@ -12,10 +12,10 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/label"
|
"github.com/hay-kot/homebox/backend/ent/label"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LabelQuery is the builder for querying Label entities.
|
// LabelQuery is the builder for querying Label entities.
|
||||||
|
|
|
@ -12,10 +12,10 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/label"
|
"github.com/hay-kot/homebox/backend/ent/label"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LabelUpdate is the builder for updating Label entities.
|
// LabelUpdate is the builder for updating Label entities.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Location is the model entity for the Location schema.
|
// Location is the model entity for the Location schema.
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ID filters vertices based on their ID field.
|
// ID filters vertices based on their ID field.
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LocationCreate is the builder for creating a Location entity.
|
// LocationCreate is the builder for creating a Location entity.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LocationDelete is the builder for deleting a Location entity.
|
// LocationDelete is the builder for deleting a Location entity.
|
||||||
|
|
|
@ -12,10 +12,10 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LocationQuery is the builder for querying Location entities.
|
// LocationQuery is the builder for querying Location entities.
|
||||||
|
|
|
@ -12,10 +12,10 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LocationUpdate is the builder for updating Location entities.
|
// LocationUpdate is the builder for updating Location entities.
|
||||||
|
|
|
@ -10,17 +10,17 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/attachment"
|
"github.com/hay-kot/homebox/backend/ent/attachment"
|
||||||
"github.com/hay-kot/content/backend/ent/authtokens"
|
"github.com/hay-kot/homebox/backend/ent/authtokens"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/documenttoken"
|
"github.com/hay-kot/homebox/backend/ent/documenttoken"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/itemfield"
|
"github.com/hay-kot/homebox/backend/ent/itemfield"
|
||||||
"github.com/hay-kot/content/backend/ent/label"
|
"github.com/hay-kot/homebox/backend/ent/label"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
|
|
||||||
"entgo.io/ent"
|
"entgo.io/ent"
|
||||||
)
|
)
|
||||||
|
|
|
@ -6,17 +6,17 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/attachment"
|
"github.com/hay-kot/homebox/backend/ent/attachment"
|
||||||
"github.com/hay-kot/content/backend/ent/authtokens"
|
"github.com/hay-kot/homebox/backend/ent/authtokens"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/documenttoken"
|
"github.com/hay-kot/homebox/backend/ent/documenttoken"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/item"
|
"github.com/hay-kot/homebox/backend/ent/item"
|
||||||
"github.com/hay-kot/content/backend/ent/itemfield"
|
"github.com/hay-kot/homebox/backend/ent/itemfield"
|
||||||
"github.com/hay-kot/content/backend/ent/label"
|
"github.com/hay-kot/homebox/backend/ent/label"
|
||||||
"github.com/hay-kot/content/backend/ent/location"
|
"github.com/hay-kot/homebox/backend/ent/location"
|
||||||
"github.com/hay-kot/content/backend/ent/schema"
|
"github.com/hay-kot/homebox/backend/ent/schema"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// The init function reads all schema descriptors with runtime code
|
// The init function reads all schema descriptors with runtime code
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
package runtime
|
package runtime
|
||||||
|
|
||||||
// The schema-stitching logic is generated in github.com/hay-kot/content/backend/ent/runtime.go
|
// The schema-stitching logic is generated in github.com/hay-kot/homebox/backend/ent/runtime.go
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Version = "v0.11.2" // Version of ent codegen.
|
Version = "v0.11.2" // Version of ent codegen.
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"entgo.io/ent"
|
"entgo.io/ent"
|
||||||
"entgo.io/ent/schema/edge"
|
"entgo.io/ent/schema/edge"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/schema/mixins"
|
"github.com/hay-kot/homebox/backend/ent/schema/mixins"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Attachment holds the schema definition for the Attachment entity.
|
// Attachment holds the schema definition for the Attachment entity.
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"entgo.io/ent/schema/edge"
|
"entgo.io/ent/schema/edge"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"entgo.io/ent/schema/index"
|
"entgo.io/ent/schema/index"
|
||||||
"github.com/hay-kot/content/backend/ent/schema/mixins"
|
"github.com/hay-kot/homebox/backend/ent/schema/mixins"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AuthTokens holds the schema definition for the AuthTokens entity.
|
// AuthTokens holds the schema definition for the AuthTokens entity.
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"entgo.io/ent/dialect/entsql"
|
"entgo.io/ent/dialect/entsql"
|
||||||
"entgo.io/ent/schema/edge"
|
"entgo.io/ent/schema/edge"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/schema/mixins"
|
"github.com/hay-kot/homebox/backend/ent/schema/mixins"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Document holds the schema definition for the Document entity.
|
// Document holds the schema definition for the Document entity.
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"entgo.io/ent/schema/edge"
|
"entgo.io/ent/schema/edge"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"entgo.io/ent/schema/index"
|
"entgo.io/ent/schema/index"
|
||||||
"github.com/hay-kot/content/backend/ent/schema/mixins"
|
"github.com/hay-kot/homebox/backend/ent/schema/mixins"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DocumentToken holds the schema definition for the DocumentToken entity.
|
// DocumentToken holds the schema definition for the DocumentToken entity.
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"entgo.io/ent/dialect/entsql"
|
"entgo.io/ent/dialect/entsql"
|
||||||
"entgo.io/ent/schema/edge"
|
"entgo.io/ent/schema/edge"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/schema/mixins"
|
"github.com/hay-kot/homebox/backend/ent/schema/mixins"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Group holds the schema definition for the Group entity.
|
// Group holds the schema definition for the Group entity.
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"entgo.io/ent/schema/edge"
|
"entgo.io/ent/schema/edge"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"entgo.io/ent/schema/index"
|
"entgo.io/ent/schema/index"
|
||||||
"github.com/hay-kot/content/backend/ent/schema/mixins"
|
"github.com/hay-kot/homebox/backend/ent/schema/mixins"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Item holds the schema definition for the Item entity.
|
// Item holds the schema definition for the Item entity.
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"entgo.io/ent"
|
"entgo.io/ent"
|
||||||
"entgo.io/ent/schema/edge"
|
"entgo.io/ent/schema/edge"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/schema/mixins"
|
"github.com/hay-kot/homebox/backend/ent/schema/mixins"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ItemField holds the schema definition for the ItemField entity.
|
// ItemField holds the schema definition for the ItemField entity.
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"entgo.io/ent/dialect/entsql"
|
"entgo.io/ent/dialect/entsql"
|
||||||
"entgo.io/ent/schema/edge"
|
"entgo.io/ent/schema/edge"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/schema/mixins"
|
"github.com/hay-kot/homebox/backend/ent/schema/mixins"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Label holds the schema definition for the Label entity.
|
// Label holds the schema definition for the Label entity.
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"entgo.io/ent"
|
"entgo.io/ent"
|
||||||
"entgo.io/ent/dialect/entsql"
|
"entgo.io/ent/dialect/entsql"
|
||||||
"entgo.io/ent/schema/edge"
|
"entgo.io/ent/schema/edge"
|
||||||
"github.com/hay-kot/content/backend/ent/schema/mixins"
|
"github.com/hay-kot/homebox/backend/ent/schema/mixins"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Location holds the schema definition for the Location entity.
|
// Location holds the schema definition for the Location entity.
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"entgo.io/ent/dialect/entsql"
|
"entgo.io/ent/dialect/entsql"
|
||||||
"entgo.io/ent/schema/edge"
|
"entgo.io/ent/schema/edge"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/schema/mixins"
|
"github.com/hay-kot/homebox/backend/ent/schema/mixins"
|
||||||
)
|
)
|
||||||
|
|
||||||
// User holds the schema definition for the User entity.
|
// User holds the schema definition for the User entity.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
|
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// User is the model entity for the User schema.
|
// User is the model entity for the User schema.
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ID filters vertices based on their ID field.
|
// ID filters vertices based on their ID field.
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/authtokens"
|
"github.com/hay-kot/homebox/backend/ent/authtokens"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// UserCreate is the builder for creating a User entity.
|
// UserCreate is the builder for creating a User entity.
|
||||||
|
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"entgo.io/ent/dialect/sql"
|
"entgo.io/ent/dialect/sql"
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// UserDelete is the builder for deleting a User entity.
|
// UserDelete is the builder for deleting a User entity.
|
||||||
|
|
|
@ -12,10 +12,10 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/authtokens"
|
"github.com/hay-kot/homebox/backend/ent/authtokens"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// UserQuery is the builder for querying User entities.
|
// UserQuery is the builder for querying User entities.
|
||||||
|
|
|
@ -12,10 +12,10 @@ import (
|
||||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||||
"entgo.io/ent/schema/field"
|
"entgo.io/ent/schema/field"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent/authtokens"
|
"github.com/hay-kot/homebox/backend/ent/authtokens"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/ent/predicate"
|
"github.com/hay-kot/homebox/backend/ent/predicate"
|
||||||
"github.com/hay-kot/content/backend/ent/user"
|
"github.com/hay-kot/homebox/backend/ent/user"
|
||||||
)
|
)
|
||||||
|
|
||||||
// UserUpdate is the builder for updating User entities.
|
// UserUpdate is the builder for updating User entities.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
module github.com/hay-kot/content/backend
|
module github.com/hay-kot/homebox/backend
|
||||||
|
|
||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package factories
|
package factories
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/hay-kot/content/backend/internal/types"
|
"github.com/hay-kot/homebox/backend/internal/types"
|
||||||
"github.com/hay-kot/content/backend/pkgs/faker"
|
"github.com/hay-kot/homebox/backend/pkgs/faker"
|
||||||
)
|
)
|
||||||
|
|
||||||
func UserFactory() types.UserCreate {
|
func UserFactory() types.UserCreate {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package mocks
|
package mocks
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/hay-kot/content/backend/internal/repo"
|
"github.com/hay-kot/homebox/backend/internal/repo"
|
||||||
"github.com/hay-kot/content/backend/internal/services"
|
"github.com/hay-kot/homebox/backend/internal/services"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetMockServices(repos *repo.AllRepos) *services.AllServices {
|
func GetMockServices(repos *repo.AllRepos) *services.AllServices {
|
||||||
|
|
|
@ -3,8 +3,8 @@ package mocks
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/hay-kot/content/backend/ent"
|
"github.com/hay-kot/homebox/backend/ent"
|
||||||
"github.com/hay-kot/content/backend/internal/repo"
|
"github.com/hay-kot/homebox/backend/internal/repo"
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/hay-kot/content/backend/ent"
|
"github.com/hay-kot/homebox/backend/ent"
|
||||||
"github.com/hay-kot/content/backend/pkgs/faker"
|
"github.com/hay-kot/homebox/backend/pkgs/faker"
|
||||||
_ "github.com/mattn/go-sqlite3"
|
_ "github.com/mattn/go-sqlite3"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent"
|
"github.com/hay-kot/homebox/backend/ent"
|
||||||
"github.com/hay-kot/content/backend/ent/document"
|
"github.com/hay-kot/homebox/backend/ent/document"
|
||||||
"github.com/hay-kot/content/backend/ent/group"
|
"github.com/hay-kot/homebox/backend/ent/group"
|
||||||
"github.com/hay-kot/content/backend/internal/types"
|
"github.com/hay-kot/homebox/backend/internal/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DocumentRepository is a repository for Document entity
|
// DocumentRepository is a repository for Document entity
|
||||||
|
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent"
|
"github.com/hay-kot/homebox/backend/ent"
|
||||||
"github.com/hay-kot/content/backend/internal/types"
|
"github.com/hay-kot/homebox/backend/internal/types"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent"
|
"github.com/hay-kot/homebox/backend/ent"
|
||||||
"github.com/hay-kot/content/backend/ent/documenttoken"
|
"github.com/hay-kot/homebox/backend/ent/documenttoken"
|
||||||
"github.com/hay-kot/content/backend/internal/types"
|
"github.com/hay-kot/homebox/backend/internal/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DocumentTokensRepository is a repository for Document entity
|
// DocumentTokensRepository is a repository for Document entity
|
||||||
|
|
|
@ -6,9 +6,9 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/hay-kot/content/backend/ent"
|
"github.com/hay-kot/homebox/backend/ent"
|
||||||
"github.com/hay-kot/content/backend/ent/documenttoken"
|
"github.com/hay-kot/homebox/backend/ent/documenttoken"
|
||||||
"github.com/hay-kot/content/backend/internal/types"
|
"github.com/hay-kot/homebox/backend/internal/types"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue