Initial commit

This commit is contained in:
2022-08-26 21:10:50 +02:00
parent f5b7072065
commit 2bf97a0194
21 changed files with 1339 additions and 2 deletions

16
internal/db/models.go Normal file
View File

@ -0,0 +1,16 @@
package db
import "github.com/scylladb/gocqlx/v2/table"
var UrlTable = table.New(table.Metadata{
Name: "fivefeeteleven.urls",
Columns: []string{"id", "redirect_url", "secret"},
PartKey: []string{"id"},
SortKey: []string{},
})
type UrlModel struct {
Id string
RedirectUrl string
Secret *string
}