﻿# test-persistence (Windows: scripts\restart.cmd = same commands as scripts/restart.sh)
date: 2026-10-16T10:05:33

## containers BEFORE
/mtusi-lab2-api-1  id=4dcf421abd1d  started=2026-10-16T07:04:52.820712243Z  status=running
/mtusi-lab2-postgres-1  id=64cc9db56db3  started=2026-10-16T07:04:41.833181321Z  status=running

## test output (exit 0, 22.3s)
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.

## containers AFTER (new StartedAt = really restarted)
/mtusi-lab2-api-1  id=4dcf421abd1d  started=2026-10-16T07:05:25.634228444Z  status=running
/mtusi-lab2-postgres-1  id=64cc9db56db3  started=2026-10-16T07:05:15.448515673Z  status=running

## volume (same, not recreated)
mtusi-lab2_postgres_data created=2026-10-15T14:23:31Z

## rows in PostgreSQL after restart
users=15 chats=5 messages=9 active_sessions=8
