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', 'artist',
'lore', 'lore',
'meta', 'meta',
'invalid' 'invalid',
'copyright'
); );
CREATE TABLE "Post" CREATE TABLE "Post"

View File

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