Refactor code structure for improved readability and maintainability
This commit is contained in:
42
diagrams/frontend/frontend1.puml
Normal file
42
diagrams/frontend/frontend1.puml
Normal file
@@ -0,0 +1,42 @@
|
||||
@startuml
|
||||
|
||||
class Project {
|
||||
id: number
|
||||
name: string
|
||||
description: string
|
||||
status: number
|
||||
start_date: date
|
||||
}
|
||||
|
||||
class Measurement {
|
||||
id: number
|
||||
project_id: number
|
||||
order_id: number
|
||||
timestamp: string
|
||||
temperature: number
|
||||
humidity: number
|
||||
}
|
||||
|
||||
class Video {
|
||||
id: number
|
||||
project_id: number
|
||||
name: string
|
||||
measurement_ids: string
|
||||
resolution: string
|
||||
duration: number
|
||||
status: number
|
||||
}
|
||||
|
||||
class CameraController {
|
||||
active_project_id: number
|
||||
start_timelapse(id, frequency, nbimages): void
|
||||
stopCamera(id): void
|
||||
manualUpload(imageFile, projectId, timestamp, temperature, humidity): void
|
||||
}
|
||||
|
||||
Project "1" *-- "n" Measurement : contient
|
||||
Project "1" *-- "n" Video : contient
|
||||
Measurement "n" o-- "n" Video : utilisées dans
|
||||
CameraController -- Video : génère
|
||||
|
||||
@enduml
|
||||
Reference in New Issue
Block a user