package schema

import "time"

type ResourcePoolPauseOperation struct {
	ResourcePoolID uint64     `gorm:"primaryKey;not null"`
	OperationID    string     `gorm:"primaryKey;type:VARCHAR(128);not null"`
	OperationType  string     `gorm:"type:VARCHAR(16);not null;default:'pause'"`
	Status         string     `gorm:"type:VARCHAR(32);not null"`
	Stage          string     `gorm:"type:VARCHAR(32);not null"`
	ResultSummary  string     `gorm:"type:VARCHAR(1024);not null;default:''"`
	CreatedAt      time.Time  `gorm:"not null"`
	UpdatedAt      time.Time  `gorm:"not null"`
	DeadlineAt     time.Time  `gorm:"not null"`
	CompletedAt    *time.Time `gorm:"type:TIMESTAMP(3) NULL"`
}
