-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ref #10: add model POJOs for the backend
- Loading branch information
dkazakov
committed
Feb 22, 2024
1 parent
9f204c6
commit 1486ef2
Showing
4 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...nd/src/main/kotlin/io/github/gelassen/manufactory_knowledge_management/model/Breakdown.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.github.gelassen.manufactory_knowledge_management.model | ||
|
||
data class Breakdown( | ||
var id: Long, | ||
var failure: String, | ||
var solution: String, | ||
var dateTime: Long, | ||
var machineId: Long, | ||
var photofixations: Collection<Photofixation> | ||
) |
8 changes: 8 additions & 0 deletions
8
backend/src/main/kotlin/io/github/gelassen/manufactory_knowledge_management/model/Machine.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package io.github.gelassen.manufactory_knowledge_management.model | ||
|
||
data class Machine( | ||
var id: Long, | ||
var name: String, | ||
var manufacturer: String, | ||
var breakdowns: Collection<Breakdown> | ||
) |
7 changes: 7 additions & 0 deletions
7
...rc/main/kotlin/io/github/gelassen/manufactory_knowledge_management/model/Photofixation.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package io.github.gelassen.manufactory_knowledge_management.model | ||
|
||
data class Photofixation( | ||
var id: Long, | ||
var photo: String, /* Base64 string*/ | ||
var breakdownId: Long | ||
) |