Files
Local_Perplexity/docs/diagrams/preview.html
2026-02-07 12:37:56 +03:00

37 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8" />
<title>ORM Template — User ERD</title>
<style>
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial; padding: 16px; }
h2 { margin-bottom: 4px; }
h3 { margin-top: 28px; }
.hint { color: #666; font-size: 0.9em; }
pre.mermaid { border: 1px solid #ddd; border-radius: 8px; padding: 12px; }
</style>
</head>
<body>
<h2>ORM Template — ER-диаграмма</h2>
<div class="hint">Единственная модель: User и ее атрибуты.</div>
<pre class="mermaid">
erDiagram
USER {
uuid id PK "первичный ключ пользователя"
text login "уникальный логин"
text password "хэш пароля"
text role "роль пользователя"
bool is_active "активность"
bool is_temporal "пароль временный, хранится в открытом виде"
timestamptz created_at "дата создания"
}
</pre>
<script type="module">
import mermaid from "https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs";
mermaid.initialize({ startOnLoad: true, theme: "neutral" });
</script>
</body>
</html>