Add complete database schema and ORM models (#4)

This commit was merged in pull request #4.
This commit is contained in:
2026-02-11 03:02:33 +01:00
parent 03cbc3cd1a
commit 95ccc1b2cd
13 changed files with 1457 additions and 47 deletions

View File

@@ -0,0 +1,20 @@
package models
import (
"time"
)
// Message represents a chat message (channel or DM).
type Message struct {
Base
ID string `json:"id"`
Timestamp time.Time `json:"ts"`
FromUserID string `json:"fromUserId"`
FromNick string `json:"from"`
Target string `json:"to"`
Type string `json:"type"`
Body string `json:"body"`
Meta string `json:"meta"`
CreatedAt time.Time `json:"createdAt"`
}