diff --git a/patches/character-patch/character-patch.go b/patches/character-patch/character-patch.go new file mode 100644 index 00000000..7002f3fe --- /dev/null +++ b/patches/character-patch/character-patch.go @@ -0,0 +1,23 @@ +package main + +import ( + "github.com/animenotifier/arn" +) + +// Character ... +type Character struct { + ID string `json:"id"` + Name string `json:"name"` + Image string `json:"image"` + Description string `json:"description"` + Attributes []*arn.CharacterAttribute `json:"attributes"` +} + +func main() { + defer arn.Node.Close() + + // Overwrite existing type + arn.DB.RegisterTypes((*Character)(nil)) + + // characters := arn.AllCharacters() +}