feat(attachments): add attachment metadata and message links

This commit is contained in:
kk10
2026-11-01 23:04:45 +03:00
parent 27af30c903
commit 0c772ebf40
8 changed files with 479 additions and 37 deletions
+21
View File
@@ -10,6 +10,21 @@ import (
"github.com/google/uuid"
)
type Attachment struct {
ID uuid.UUID
ChatID uuid.UUID
OwnerID uuid.UUID
S3Key string
Filename string
ContentType string
SizeBytes int64
Sha256 string
Status string
ErrorCode *string
CreatedAt time.Time
UpdatedAt time.Time
}
type Chat struct {
ID uuid.UUID
Title string
@@ -39,6 +54,12 @@ type Message struct {
CreatedAt time.Time
}
type MessageAttachment struct {
MessageID uuid.UUID
AttachmentID uuid.UUID
Position int32
}
type Session struct {
TokenHash string
UserID uuid.UUID