initial commit
This commit is contained in:
36
internal/domain/asset/asset.go
Normal file
36
internal/domain/asset/asset.go
Normal file
@@ -0,0 +1,36 @@
|
||||
package asset
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
//go:generate stringer -type=Status
|
||||
type Status int
|
||||
|
||||
const (
|
||||
StatusPublished Status = iota
|
||||
StatusDisabled
|
||||
StatusPending
|
||||
StatusDeleted
|
||||
)
|
||||
|
||||
type Asset struct {
|
||||
ID uuid.UUID
|
||||
ProfileID uuid.UUID
|
||||
Status Status
|
||||
AssetCategoryID uuid.UUID
|
||||
AssetCategory Category
|
||||
Title string
|
||||
Description string
|
||||
Link string
|
||||
Analytics json.RawMessage
|
||||
Reports []Report
|
||||
AssetArtifacts []Artifact
|
||||
Comments []Comment
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user