backend/pkg/notification/domain/entity/notification_cursor.go

19 lines
393 B
Go
Raw Normal View History

2025-11-17 09:31:58 +00:00
package entity
import (
"time"
"github.com/gocql/gocql"
)
// NotificationCursor tracks the last seen notification for a user.
type NotificationCursor struct {
UID string `db:"user_id" partition_key:"true"`
LastSeenTS gocql.UUID `db:"last_seen_ts"`
UpdatedAt time.Time `db:"updated_at"`
}
func (uc *NotificationCursor) TableName() string {
return "notification_cursor"
}