package model

import "time"

// Channel is a workspace-wide append-only group conversation.
type Channel struct {
	ID             string
	WorkspaceID    string
	Slug           string
	DisplayName    string
	Description    string
	NextTaskNumber int64
	CreatedAt      time.Time
}

// ChannelMembership links a member to a channel.
type ChannelMembership struct {
	ChannelID string
	MemberID  string
	CreatedAt time.Time
}

// DMThread stores the canonical unordered pair for a direct message thread.
type DMThread struct {
	ID          string
	WorkspaceID string
	MemberAID   string
	MemberBID   string
	CreatedAt   time.Time
}
