Skip to content

Modern Docker Management, Designed for Everyone

406 B
Raw Blame
package kv

import "time"

// KVEntry stores lightweight application state as arbitrary key/value pairs.
type KVEntry struct {
	Key       string     `gorm:"column:key;primaryKey"`
	Value     string     `gorm:"column:value"`
	CreatedAt time.Time  `gorm:"column:created_at;autoCreateTime"`
	UpdatedAt *time.Time `gorm:"column:updated_at;autoUpdateTime"`
}

func (KVEntry) TableName() string {
	return "kv"
}