create intial db, models, websocket and architecture.

This commit is contained in:
emil28092005
2026-01-07 22:51:31 +03:00
commit df1a8f8040
8 changed files with 375 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
package models
import "time"
type Message struct {
ID int `json:"id"`
RoomID string `json:"room_id"`
User string `json:"user"`
Text string `json:"text"`
CreatedAt time.Time `json:"created_at"`
}
type Room struct {
ID string `json:"id"`
Name string `json:"name"`
}