Commit 7cc6f2ce authored by M3156's avatar M3156
Browse files

Update README.md

parent c3afb315
......@@ -173,8 +173,89 @@ laitetaan joko jäähylle tai jäädytetään kokonaan.
User --> ProfileWindow
Tool --|> User
User --> DB
@enduml
```
# Luokkamalli
```plantuml
@startuml
class User {
+userID
+userEmail
#userPassword
+userFirstName
+userLastName
+userMobile
+userPicture
+userLocation
+userPaymentMethod
+addTool()
+deleteTool()
+rentTool()
+returnTool()
+comment()
#editEmail()
#editPassword()
+login()
+logout()
}
class Tool {
+toolID
+toolName
+toolCategory
+toolDescription
+toolImage
}
class MainWindow {
Opne()
Close()
Show()
}
class RegisterWindow {
Opne()
Close()
Show()
}
class MainPage {
Opne()
Close()
Show()
}
class ProfileWindow {
Opne()
Close()
Show()
}
class CommentWindow {
Opne()
Close()
Show()
}
class DB {
GetConnectionString()
GetUsersFromMysql()
GetToolOwnerFromMysql()
EmailChecker()
GetToolsFromMysql()
GetOwnedToolsFromMysql()
AddTransactionToMysql()
}
CommentWindow --|> MainPage
RegisterWindow --|> MainWindow
MainWindow --> MainPage
MainPage --> ProfileWindow
User --> MainPage
User --> ProfileWindow
Tool --|> User
User --> DB
@enduml
```
\ No newline at end of file
```
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment