initial commit
This commit is contained in:
22
internal/domain/asset/comment.go
Normal file
22
internal/domain/asset/comment.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package asset
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type Comment struct {
|
||||
ID uuid.UUID
|
||||
AssetID uuid.UUID
|
||||
Content string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
WriterID uuid.UUID
|
||||
WriterType string
|
||||
ParentID *uuid.UUID
|
||||
Replies []Comment
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user