package common

import (
	"github.com/fiskerinc/cloud-services/pkg/common/dbbasemodel"
)

// CarUpdateStatus database model for logging history of car updates
// If this model is changed for the database, please update LogStatusIfNotARepeat
// cloud/modules_go/db/queries/carupdates.go:194
type CarUpdateStatus struct {
	ID          int64  `json:"id" pg:",pk"`
	CarUpdateID int64  `json:"carupdate_id"`
	Status      string `json:"status" validate:"max=100"`
	ErrorCode   int    `json:"error_code"`
	Info        string `json:"info,omitempty" pg:"info" validate:"max=1000"`
	dbbasemodel.DBModelBase
}
