Files
mtusi2026lab5/src/messenger/messaging/domain/events.py
T
ArtyomandClaude Opus 5.5 540fcb35ba Carry over the lab 4 solution
Bring the application, own tests, Dockerfile, toolchain, compose stack,
HAProxy, k6 and RustFS configuration, migrations, hooks, evidence and
scenario scripts and the CI job from the lab 4 solution commit d2744bc,
merge the lab 4 Makefile targets into the lab 5 skeleton Makefile
without touching its targets, and append the lab 4 solution variables
to the skeleton .env.example. The package and the application follow
the contract version 1.5.0, and the image and the throwaway test
containers are tagged lab5 so they do not collide with a lab 4 stand on
the same host.

This is the starting point of the lab 5 cycle: lint, own tests and the
offline skeleton check pass before any lab 5 change.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-29 00:34:03 +03:00

25 lines
600 B
Python

from dataclasses import dataclass, field
from datetime import datetime
from uuid import UUID
from messenger.shared.domain.events import DomainEvent
@dataclass(frozen=True, slots=True)
class ChatCreated(DomainEvent):
chat_id: UUID
creator_id: UUID
member_count: int
created_at: datetime
name: str = field(init=False, default="chat.created")
@dataclass(frozen=True, slots=True)
class MessagePosted(DomainEvent):
message_id: UUID
chat_id: UUID
sender_id: UUID
text_length: int
created_at: datetime
name: str = field(init=False, default="message.posted")