Attach room type code and tags to room images
All checks were successful
build-and-deploy / build-deploy (push) Successful in 31s

This commit is contained in:
androidlover5842
2026-01-27 16:09:54 +05:30
parent 7934b7efd5
commit 083909938a
3 changed files with 19 additions and 1 deletions

View File

@@ -33,6 +33,17 @@ class RoomImage(
@Column(name = "size_bytes", nullable = false)
var sizeBytes: Long,
@Column(name = "room_type_code")
var roomTypeCode: String? = null,
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(
name = "room_image_tag",
joinColumns = [JoinColumn(name = "room_image_id")]
)
@Column(name = "tag", nullable = false)
var tags: MutableSet<String> = mutableSetOf(),
@Column(name = "sort_order")
var sortOrder: Int? = null,