cleaning_template.go 822 B

123456789101112131415161718
  1. package models
  2. import (
  3. "github.com/google/uuid"
  4. "gorm.io/datatypes"
  5. )
  6. // EquipmentCleaningFormulaTemplate 设备导入清洗公式模板
  7. type EquipmentCleaningFormulaTemplate struct {
  8. ID uuid.UUID `gorm:"type:uuid;primary_key;default:gen_random_uuid()" json:"id"`
  9. Name string `gorm:"type:varchar(100);not null" json:"name"`
  10. EquipmentType string `gorm:"type:varchar(100);not null" json:"equipmentType"` // e.g. "PowerEquipment", "HVAC"
  11. Formula datatypes.JSON `gorm:"type:jsonb" json:"formula"` // The cleaning formula configuration
  12. Description string `gorm:"type:text" json:"description"`
  13. CreatedAt int64 `gorm:"autoCreateTime" json:"createdAt"`
  14. UpdatedAt int64 `gorm:"autoUpdateTime" json:"updatedAt"`
  15. }