heating-monitor/internal/bot/model.go

14 lines
370 B
Go
Raw Permalink Normal View History

2024-11-28 13:52:58 +01:00
package bot
import (
"time"
)
// HeatingEvent representa un evento de calefacción (ON/OFF)
type HeatingEvent struct {
ID uint `gorm:"primaryKey" json:"id" form:"id"`
EventType string `gorm:"type:varchar(3);not null" json:"event_type" form:"event_type"`
Timestamp time.Time `gorm:"not null" json:"timestamp" form:"timestamp"`
CreatedAt time.Time
}