fix(subscribe): update Id field tag to use primaryKey and improve model queries

This commit is contained in:
Chang lue Tsen
2025-08-18 02:33:17 -04:00
parent 41c51fbbff
commit 3a98616093
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import (
)
type SubscribeApplication struct {
Id int64 `gorm:"primary_key"`
Id int64 `gorm:"primaryKey"`
Name string `gorm:"type:varchar(255);default:'';not null;comment:Application Name"`
Icon string `gorm:"type:MEDIUMTEXT;default:null;comment:Application Icon"`
Description string `gorm:"type:varchar(255);default:null;comment:Application Description"`