Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

429 B
Raw Blame
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
}