feat: add goreleaser

This commit is contained in:
Simon Ding
2024-09-29 14:27:01 +08:00
parent ce25c090f5
commit 5d726dbcf1
25 changed files with 2192 additions and 48 deletions

View File

@@ -8,6 +8,18 @@ import (
)
var (
// BlocklistsColumns holds the columns for the "blocklists" table.
BlocklistsColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt, Increment: true},
{Name: "type", Type: field.TypeEnum, Enums: []string{"media", "torrent"}},
{Name: "value", Type: field.TypeString},
}
// BlocklistsTable holds the schema information for the "blocklists" table.
BlocklistsTable = &schema.Table{
Name: "blocklists",
Columns: BlocklistsColumns,
PrimaryKey: []*schema.Column{BlocklistsColumns[0]},
}
// DownloadClientsColumns holds the columns for the "download_clients" table.
DownloadClientsColumns = []*schema.Column{
{Name: "id", Type: field.TypeInt, Increment: true},
@@ -179,6 +191,7 @@ var (
}
// Tables holds all the tables in the schema.
Tables = []*schema.Table{
BlocklistsTable,
DownloadClientsTable,
EpisodesTable,
HistoriesTable,