♻️ Use the new dealer BaseUser and remove ExternalID

This commit is contained in:
2024-09-11 23:42:46 +08:00
parent aab0724653
commit a131a5bf86
20 changed files with 65 additions and 163 deletions

View File

@@ -1,7 +1,9 @@
package models
import "git.solsynth.dev/hydrogen/dealer/pkg/hyper"
type Tag struct {
BaseModel
hyper.BaseModel
Alias string `json:"alias" gorm:"uniqueIndex" validate:"lowercase"`
Name string `json:"name"`
@@ -10,7 +12,7 @@ type Tag struct {
}
type Category struct {
BaseModel
hyper.BaseModel
Alias string `json:"alias" gorm:"uniqueIndex" validate:"lowercase,alphanum"`
Name string `json:"name"`