This commit is contained in:
2025-06-16 15:48:55 +08:00
parent 346ade21f1
commit 90d1ef301d
47 changed files with 6233 additions and 112 deletions

View File

@@ -0,0 +1,10 @@
package system
type Category struct {
ID int32 `json:"id" gorm:"primaryKey;autoIncrement;not null"`
Name string `json:"name" gorm:"type:varchar(200);not null;uniqueIndex"`
}
func (Category) TableName() string {
return "categories"
}