PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
package workspaces_models
import (
"time"
"github.com/google/uuid"
)
type Workspace struct {
ID uuid.UUID `json:"id" gorm:"column:id"`
Name string `json:"name" gorm:"column:name"`
CreatedAt time.Time `json:"createdAt" gorm:"column:created_at"`
}
func (Workspace) TableName() string {
return "workspaces"
}
func (p *Workspace) UpdateFromDTO(updateDTO *Workspace) {
p.Name = updateDTO.Name
}