Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
feat: add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
PhyToN-xD committed Apr 4, 2024
1 parent 8383acc commit 17d33c9
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/.vitepress/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,16 @@ function sidebarDevelopers(): DefaultTheme.SidebarItem[] {
link: "internationalization",
},
],
},
{
text: "Datenpersistenz",
collapsed: false,
items: [
{
text: "Datenbank",
link: "database",
},
],
}
]
}
Expand Down
10 changes: 10 additions & 0 deletions docs/.vitepress/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ function sidebarDevelopers(): DefaultTheme.SidebarItem[] {
link: "internationalization",
},
],
},
{
text: "Data Persistence",
collapsed: false,
items: [
{
text: "Database",
link: "database",
},
],
}
]
}
10 changes: 10 additions & 0 deletions docs/de/developers/database.md
Original file line number Diff line number Diff line change
@@ -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.
11 changes: 11 additions & 0 deletions docs/developers/database.md
Original file line number Diff line number Diff line change
@@ -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`.

Binary file added docs/public/er-diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 17d33c9

Please sign in to comment.