docs/merise #20

Merged
GauthierWebDev merged 15 commits from docs/merise into main 2025-04-22 17:25:33 +00:00
2 changed files with 17 additions and 20 deletions
Showing only changes of commit 4e8ed64937 - Show all commits

View File

@ -298,37 +298,34 @@ export default function DictionnaryTable(props: DictionnaryTableProps) {
</For>
</tbody>
<tfoot>
<tr>
<td class="text-left">
<strong>{props.isTechnical ? "Table" : "Document"}</strong>
</td>
<td colSpan={3} class="text-left">
{props.isTechnical ? table.tableName : table.documentName}
</td>
</tr>
{props.isTechnical && (
<>
<tr>
{table.primaryKeys && table.primaryKeys.length > 0 && (
<tr>
<>
<td class="text-left">
<strong>Clé primaire</strong>
</td>
<td colSpan={3} class="text-left">
({table.primaryKeys.join(", ")})
</td>
</tr>
<td class="text-left">({table.primaryKeys.join(", ")})</td>
</>
)}
{table.foreignKeys && table.foreignKeys.length > 0 && (
<tr>
<>
<td class="text-left">
<strong>Clé(s) étrangère(s)</strong>
</td>
<td colSpan={3} class="text-left">
{table.foreignKeys.join(", ")}
</td>
</tr>
<td class="text-left">{table.foreignKeys.join(", ")}</td>
</>
)}
</>
</tr>
)}
<tr>
<td colSpan={4} class="text-left font-bold">
{props.isTechnical
? `Table : ${table.tableName}`
: `Document : ${table.documentName}`}
</td>
</tr>
</tfoot>
</table>
)}

View File

@ -4,7 +4,7 @@ description: Apprenez à créer le MPD dans Merise, la dernière étape pour con
tags: [Backend, Merise, BDD, MCD, MLD, MPD, SQL]
---
import DictionnaryTable from "../mcd/DictionnaryTable";
import DictionnaryTable from "../dictionnaire-de-donnees/DictionnaryTable";
import tabs from "./tabs";
Prêt·e pour la dernière étape de la méthodologie Merise ? 🎉