feat(coderd): add last_seen_at and version to provisioner_daemons table (#11033)

Related to #10676

- Adds columns last_seen_at and version to provisioner_daemons table
- Adds the above to codersdk.ProvisionerDaemons struct
This commit is contained in:
Cian Johnston
2023-12-05 13:54:38 +00:00
committed by GitHub
parent dd1f8331de
commit 5fad611020
14 changed files with 57 additions and 11 deletions

View File

@ -40,7 +40,9 @@ type ProvisionerDaemon struct {
ID uuid.UUID `json:"id" format:"uuid"`
CreatedAt time.Time `json:"created_at" format:"date-time"`
UpdatedAt sql.NullTime `json:"updated_at" format:"date-time"`
LastSeenAt NullTime `json:"last_seen_at,omitempty" format:"date-time"`
Name string `json:"name"`
Version string `json:"version"`
Provisioners []ProvisionerType `json:"provisioners"`
Tags map[string]string `json:"tags"`
}