madipo2611 6f5298d420 v0.0.3
2025-05-03 02:37:08 +03:00

21 lines
529 B
Go

package domain
import "time"
type Chat struct {
ID int `json:"id"`
User1ID int `json:"user1Id"`
User2ID int `json:"user2Id"`
CreatedAt time.Time `json:"createdAt"`
}
type Message struct {
ID int `json:"id"`
ChatID int `json:"chatId"`
SenderID int `json:"senderId"`
ReceiverID int `json:"receiverId"`
Content string `json:"content"`
Status string `json:"status"` // "sent", "delivered", "read"
CreatedAt time.Time `json:"createdAt"`
}