Initial cloud-services repo - gateway service + pkg modules
This commit is contained in:
20
pkg/common/car_version_log.go
Normal file
20
pkg/common/car_version_log.go
Normal file
@@ -0,0 +1,20 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user