worktime/internal/database/models/session_pause.go
2025-11-07 13:40:22 +01:00

13 lines
366 B
Go

package models
import (
"time"
)
type SessionPause struct {
ID uint `gorm:"primaryKey" json:"id"`
ProjectID string `gorm:"column:session_id;<-:create;type:uuid" json:"session_id"`
Resumed bool `gorm:"<-" json:"resumed"`
PausedAt time.Time `gorm:"<-;autoCreateTime" json:"paused_at"`
ResumedAt time.Time `gorm:"<-" json:"resumed_at"`
}