BE-MiniERP/modules/inventory/models/colour.go

13 lines
304 B
Go

package models
import "time"
type Colour struct {
ID uint `gorm:"primaryKey" json:"id"`
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
UpdatedAt time.Time
}