BE-MiniERP/modules/inventory/models/size.go
2025-06-23 11:27:43 +07:00

13 lines
403 B
Go

package models
import "time"
type Size struct {
ID uint `gorm:"primaryKey" json:"id"`
Code string `gorm:"not null;unique" json:"code"` // contoh: S, M, L, XL
Name string `gorm:"not null" json:"name"` // contoh: S, M, L, XL
Description string `json:"description"` // opsional, seperti "Small", "Large"
CreatedAt time.Time
UpdatedAt time.Time
}