feat(back-end): add ClamAV service remember to add env and compose.deploy on server

This commit is contained in:
2026-02-20 10:32:07 +01:00
parent 0d23521cac
commit 8e12b3bcdf
7 changed files with 238 additions and 76 deletions

View File

@@ -67,6 +67,16 @@ public class OrderItem {
@Column(name = "created_at", nullable = false)
private OffsetDateTime createdAt;
@PrePersist
private void onCreate() {
if (createdAt == null) {
createdAt = OffsetDateTime.now();
}
if (quantity == null) {
quantity = 1;
}
}
public UUID getId() {
return id;
}
@@ -195,4 +205,4 @@ public class OrderItem {
this.createdAt = createdAt;
}
}
}