package group

import "github.com/google/uuid"

type Member struct {
	ID          uuid.UUID `json:"id"`
	Username    string    `json:"username"`
	DisplayName string    `json:"display_name"`
}

type Group struct {
	ID          uuid.UUID `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	Members     []Member  `json:"members"`
	UserIDs     []uuid.UUID `json:"user_ids,omitempty"`
}

type CreateRequest struct {
	Name        string      `json:"name"`
	Description string      `json:"description"`
	UserIDs     []uuid.UUID `json:"user_ids"`
}

type UpdateRequest struct {
	Name        *string     `json:"name"`
	Description *string     `json:"description"`
	UserIDs     []uuid.UUID `json:"user_ids"`
}
