embed QRCodeTypeEntity to QRCodeEntity

This commit is contained in:
heyethereum
2024-07-19 00:45:44 +08:00
parent 2771ac4f73
commit 0af328977b
17 changed files with 40 additions and 48 deletions

View File

@@ -26,14 +26,14 @@ public class QRCodeEntity {
@Column(updatable = false, nullable = false)
private UUID id;
@JsonIgnore
@Column(name = "qr_code_type_id", nullable = false)
private Long qrCodeTypeId;
@JsonIgnore
private String userId;
private String contents;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "qr_code_type_id", nullable = false)
private QRCodeTypeEntity info;
@Column(name = "created_at", insertable = false, updatable = false)
private LocalDateTime createdAt;
}