Update Auto Generate SKU

This commit is contained in:
2025-06-27 13:34:54 +07:00
parent f8798a53a4
commit 9b1f58d783
5 changed files with 62 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import "time"
type Colour struct {
ID uint `gorm:"primaryKey" json:"id"`
Code string `json:"code"`
Code string `gorm:"not null;unique" json:"code"`
Name string `gorm:"not null" json:"name"`
Hex string `json:"hex"` // Hexadecimal color code
CreatedAt time.Time