Files
mtusi2026lab2/internal/model/message.go
T
Fedoroff c251f2cb7d
Skeleton contracts / contracts (pull_request) Canceled after 0s
Implement lab2 messenger API with PostgreSQL Redis and Docker
2026-10-13 21:12:44 +03:00

16 lines
273 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"`
}