Skip to content

Commit

Permalink
Ref #10: add model POJOs for the backend
Browse files Browse the repository at this point in the history
  • Loading branch information
dkazakov committed Feb 22, 2024
1 parent 9f204c6 commit 1486ef2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/.idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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>
)
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>
)
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
)

0 comments on commit 1486ef2

Please sign in to comment.