Files
license/internal/subject/model.go
2026-07-31 16:59:55 +08:00

30 lines
535 B
Go

package subject
import (
"errors"
"time"
"github.com/google/uuid"
)
type Subject struct {
ID uuid.UUID
PlatformName string
Workspace string
CreatedAt time.Time
UpdatedAt time.Time
LicenceCount int64
}
type UpsertInput struct {
PlatformName string
Workspace string
}
var (
ErrNotFound = errors.New("subject not found")
ErrDuplicate = errors.New("subject already exists")
ErrHasLicences = errors.New("subject has licence records")
ErrInvalidInput = errors.New("invalid subject input")
)