ЛР 3 — БВТ2303 — Брезгунова — на 5

This commit is contained in:
2026-10-22 14:21:19 +03:00
parent 0ab3a341aa
commit 59adbebe68
124 changed files with 125809 additions and 54 deletions
+27
View File
@@ -0,0 +1,27 @@
package models
import "time"
type UUID string
type User struct {
ID UUID `json:"id"`
Username string `json:"username"`
DisplayName string `json:"display_name"`
CreatedAt time.Time `json:"created_at"`
}
type Chat struct {
ID UUID `json:"id"`
Title string `json:"title"`
MemberIDs []UUID `json:"member_ids"`
CreatedAt time.Time `json:"created_at"`
}
type Message struct {
ID UUID `json:"id"`
ChatID UUID `json:"chat_id"`
SenderID UUID `json:"sender_id"`
Text string `json:"text"`
CreatedAt time.Time `json:"created_at"`
}