13 lines
366 B
Go
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"`
|
|
}
|