wms-be/database/entities/m_location_entity.go

19 lines
705 B
Go

package entities
import (
"github.com/google/uuid"
)
type M_Location struct {
ID uuid.UUID `gorm:"type:uuid;primary_key;default:uuid_generate_v4()" json:"id"`
Name string `gorm:"type:varchar(100);not null" json:"name"`
Description string `gorm:"type:text" json:"description"`
ClientID uuid.UUID `gorm:"type:uuid;not null" json:"client_id"`
SiteID uuid.UUID `gorm:"type:uuid;not null" json:"site_id"`
CategoryID uuid.UUID `gorm:"type:uuid;not null" json:"category_id"`
PatchCode string `gorm:"type:varchar(50)" json:"patch_code"`
DisposalLocation bool `gorm:"default:false" json:"disposal_location"`
FullAuditTrail
}