Add tags to model

This commit is contained in:
William Bouzourène 2025-09-20 10:32:04 +02:00
parent 870ea05911
commit e29aab0b9d
Signed by: bouzoure
GPG key ID: 423440D735B56BE2
2 changed files with 19 additions and 0 deletions

17
models/tags.go Normal file
View file

@ -0,0 +1,17 @@
package models
import "gorm.io/gorm"
type Tag struct {
gorm.Model
Name string
Color string
}
type PersonTag struct {
gorm.Model
PersonID uint
Person Person
TagID uint
Tag Tag
}