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