model: gofmt VMRecord struct alignment

Stats and Workspace fields landed in 6b543cb with column alignment
that gofmt wants to pull tighter; rerun gofmt so the new pre-commit
hook's `gofmt -l` gate passes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Thales Maciel 2026-04-28 15:08:12 -03:00
parent 3e6d0cee89
commit 6b4e1922b0
No known key found for this signature in database
GPG key ID: 33112E6833C34679

View file

@ -139,17 +139,17 @@ type VMStats struct {
} }
type VMRecord struct { type VMRecord struct {
ID string `json:"id"` ID string `json:"id"`
Name string `json:"name"` Name string `json:"name"`
ImageID string `json:"image_id"` ImageID string `json:"image_id"`
State VMState `json:"state"` State VMState `json:"state"`
CreatedAt time.Time `json:"created_at"` CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"` UpdatedAt time.Time `json:"updated_at"`
LastTouchedAt time.Time `json:"last_touched_at"` LastTouchedAt time.Time `json:"last_touched_at"`
Spec VMSpec `json:"spec"` Spec VMSpec `json:"spec"`
Runtime VMRuntime `json:"runtime"` Runtime VMRuntime `json:"runtime"`
Stats VMStats `json:"stats"` Stats VMStats `json:"stats"`
Workspace VMWorkspace `json:"workspace"` Workspace VMWorkspace `json:"workspace"`
} }
type VMCreateRequest struct { type VMCreateRequest struct {
@ -177,10 +177,10 @@ type VMSetRequest struct {
// repo. Stored as workspace_json in the vms table; zero value means // repo. Stored as workspace_json in the vms table; zero value means
// no workspace has been prepared on this VM yet. // no workspace has been prepared on this VM yet.
type VMWorkspace struct { type VMWorkspace struct {
GuestPath string `json:"guest_path,omitempty"` GuestPath string `json:"guest_path,omitempty"`
SourcePath string `json:"source_path,omitempty"` SourcePath string `json:"source_path,omitempty"`
HeadCommit string `json:"head_commit,omitempty"` HeadCommit string `json:"head_commit,omitempty"`
PreparedAt time.Time `json:"prepared_at,omitempty"` PreparedAt time.Time `json:"prepared_at,omitempty"`
} }
type WorkspacePrepareMode string type WorkspacePrepareMode string