forked from mtusi2026/mtusi2026lab4
17 lines
354 B
Go
17 lines
354 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type Message struct {
|
|
ID uuid.UUID `json:"id"`
|
|
ChatID uuid.UUID `json:"chat_id"`
|
|
SenderID uuid.UUID `json:"sender_id"`
|
|
Text string `json:"text"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
AttachmentIDs []uuid.UUID `json:"attachment_ids"`
|
|
}
|