Bring back index model generation (#328)

This commit is contained in:
Daniel Bershatsky
2025-06-11 18:56:33 +03:00
committed by GitHub
parent b0b3ded8da
commit 58d72b0e05
5 changed files with 245 additions and 65 deletions

View File

@@ -47,29 +47,14 @@ var (
})
)
// Materialized view models.
var (
ComposersByName = table.New(table.Metadata{
Name: "composers_by_name",
Columns: []string{
"id",
"name",
},
PartKey: []string{
"id",
},
SortKey: []string{
"name",
},
})
)
// User-defined types (UDT) structs.
type AlbumUserType struct {
gocqlx.UDT
Name string
Songwriters []string
}
// Table structs.
type PlaylistsStruct struct {
Album AlbumUserType
Artist string
@@ -86,8 +71,3 @@ type SongsStruct struct {
Tags []string
Title string
}
type ComposersByNameStruct struct {
Id [16]byte
Name string
}