package models

import (
	"github.com/google/uuid"
	"gorm.io/datatypes"
)

// EquipmentCleaningFormulaTemplate 设备导入清洗公式模板
type EquipmentCleaningFormulaTemplate struct {
	ID            uuid.UUID      `gorm:"type:uuid;primary_key;default:gen_random_uuid()" json:"id"`
	Name          string         `gorm:"type:varchar(100);not null" json:"name"`
	EquipmentType string         `gorm:"type:varchar(100);not null" json:"equipmentType"` // e.g. "PowerEquipment", "HVAC"
	Formula       datatypes.JSON `gorm:"type:jsonb" json:"formula"`                       // The cleaning formula configuration
	Description   string         `gorm:"type:text" json:"description"`
	CreatedAt     int64          `gorm:"autoCreateTime" json:"createdAt"`
	UpdatedAt     int64          `gorm:"autoUpdateTime" json:"updatedAt"`
}

