feat(postgres): added copyright as enum

Signed-off-by: soxx <soxx@fenpa.ws>
This commit is contained in:
SoXX 2024-06-21 15:18:40 +02:00
parent 4690ce135d
commit e09d39dd02
2 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,8 @@ CREATE TYPE TagType AS ENUM (
'artist',
'lore',
'meta',
'invalid'
'invalid',
'copyright'
);
CREATE TABLE "Post"

View File

@ -20,6 +20,7 @@ const (
Lore TagType = "lore"
Meta TagType = "meta"
Invalid TagType = "invalid"
Copyright TagType = "copyright"
)
func (r *Rating) Convert(e621Rating string) {