14 lines
370 B
Go
14 lines
370 B
Go
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
|
|
}
|