package entity

import "time"

// InstanceCapacityCheckpoint stores the last metered hour timestamp across all orgs.
type InstanceCapacityCheckpoint struct {
	ID         ID         `gorm:"primary_key;not null"`
	Checkpoint int64      `gorm:"not null"` // unix timestamp of the last metered hour
	CreatedAt  time.Time  `gorm:"created_at;type:TIMESTAMP;not null;<-:create"`
	UpdatedAt  *time.Time `gorm:"updated_at;type:TIMESTAMP"`
}
