diff --git a/docs/.vitepress/de.ts b/docs/.vitepress/de.ts index 33ddef9..b551e4c 100644 --- a/docs/.vitepress/de.ts +++ b/docs/.vitepress/de.ts @@ -162,6 +162,16 @@ function sidebarDevelopers(): DefaultTheme.SidebarItem[] { link: "internationalization", }, ], + }, + { + text: "Datenpersistenz", + collapsed: false, + items: [ + { + text: "Datenbank", + link: "database", + }, + ], } ] } diff --git a/docs/.vitepress/en.ts b/docs/.vitepress/en.ts index e034f61..f903fa0 100644 --- a/docs/.vitepress/en.ts +++ b/docs/.vitepress/en.ts @@ -157,6 +157,16 @@ function sidebarDevelopers(): DefaultTheme.SidebarItem[] { link: "internationalization", }, ], + }, + { + text: "Data Persistence", + collapsed: false, + items: [ + { + text: "Database", + link: "database", + }, + ], } ] } diff --git a/docs/de/developers/database.md b/docs/de/developers/database.md new file mode 100644 index 0000000..ba7ac12 --- /dev/null +++ b/docs/de/developers/database.md @@ -0,0 +1,10 @@ +# Database + +## ER-Diagram +Das ER-Diagram wurde mit dem Webtool GenMyModel erstellt. + +![er-diagram.png](/er-diagram.png) + + +## Umsetzung in Symfony +Die Datenbank wurde mit Doctrine ORM in Symfony umgesetzt. Die Entitäten wurden mit dem Befehl `php bin/console make:entity` erstellt. Die Entitäten wurden dann mit dem Befehl `php bin/console make:migration` in eine Migration umgewandelt. Die Migration wurde dann mit dem Befehl `php bin/console doctrine:migrations:migrate` in die Datenbank übertragen. diff --git a/docs/developers/database.md b/docs/developers/database.md new file mode 100644 index 0000000..06c44bf --- /dev/null +++ b/docs/developers/database.md @@ -0,0 +1,11 @@ +# Database + +## ER-Diagram +The ER diagram was created with the web tool GenMyModel. + +![er-diagram.png](/er-diagram.png) + + +## Implementation in Symfony +The database was implemented with Doctrine ORM in Symfony. The entities were created with the command `php bin/console make:entity`. The entities were then converted into a migration using the command `php bin/console make:migration`. The migration was then transferred to the database using the command `php bin/console doctrine:migrations:migrate`. + diff --git a/docs/public/er-diagram.png b/docs/public/er-diagram.png new file mode 100644 index 0000000..8b67864 Binary files /dev/null and b/docs/public/er-diagram.png differ