summaryrefslogtreecommitdiff
path: root/internal/gtsmodel/emojicategory.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/gtsmodel/emojicategory.go')
-rw-r--r--internal/gtsmodel/emojicategory.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/gtsmodel/emojicategory.go b/internal/gtsmodel/emojicategory.go
index ad17a8600..80a448f3c 100644
--- a/internal/gtsmodel/emojicategory.go
+++ b/internal/gtsmodel/emojicategory.go
@@ -21,8 +21,8 @@ import "time"
// EmojiCategory represents a grouping of custom emojis.
type EmojiCategory struct {
- ID string `validate:"required,ulid" bun:"type:CHAR(26),pk,nullzero,notnull,unique"` // id of this item in the database
- CreatedAt time.Time `validate:"-" bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"` // when was item created
- UpdatedAt time.Time `validate:"-" bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"` // when was item last updated
- Name string `validate:"required" bun:",nullzero,notnull,unique"` // name of this category
+ ID string `bun:"type:CHAR(26),pk,nullzero,notnull,unique"` // id of this item in the database
+ CreatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"` // when was item created
+ UpdatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"` // when was item last updated
+ Name string `bun:",nullzero,notnull,unique"` // name of this category
}