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

24
ent/schema/blocklist.go Normal file
View File

@@ -0,0 +1,24 @@
package schema
import (
"entgo.io/ent"
"entgo.io/ent/schema/field"
)
// Blocklist holds the schema definition for the Blocklist entity.
type Blocklist struct {
ent.Schema
}
// Fields of the Blocklist.
func (Blocklist) Fields() []ent.Field {
return []ent.Field{
field.Enum("type").Values("media", "torrent"),
field.String("value"),
}
}
// Edges of the Blocklist.
func (Blocklist) Edges() []ent.Edge {
return nil
}