crud tags

This commit is contained in:
2025-03-03 17:30:31 +01:00
parent 4e296ca445
commit 07ee8a004c
6 changed files with 185 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ import (
type Tag struct {
gorm.Model
Name string `json:"name" binding:"required" gorm:"unique;not null"`
Name string `json:"name" binding:"required" gorm:"not null"`
ShopItems []ShopItem `gorm:"many2many:item_tags;"`
}