initial commit

This commit is contained in:
2024-11-12 00:31:10 +00:00
commit a7933f8b06
99 changed files with 6836 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package workspace
import (
"github.com/google/uuid"
"github.com/uptrace/bun"
"regexp"
)
type workspace struct {
bun.BaseModel `bun:"table:workspaces,alias:workspace"`
ID uuid.UUID `bun:",type:uuid,pk"`
Name string `json:"name"`
// containerId is the ID of the docker container
ContainerID string `json:"containerId"`
ImageTag string `json:"imageTag"`
CreatedAt string `json:"createdAt"`
}
var workspaceNameRegex = regexp.MustCompile("^[\\w-]+$")