package common

import "time"

type VersionSource string

const (
	DBCVersionSource       VersionSource = "DBC"
	TREXVersionSource      VersionSource = "TREX"
	FlashpackVersionSource VersionSource = "Flashpack"
)

// CarVersionLogs is used for logging dbc version changes to DB.
type CarVersionLogs struct {
	ID            int64         `json:"id" pg:"id"`
	VIN           string        `json:"vin" pg:"vin"`
	VersionSource VersionSource `json:"version_source" pg:"version_source"`
	Version       string        `json:"version" pg:"version"`
	CreatedAt     *time.Time    `json:"created_at" pg:"created_at"`
}
