use proper alias

This commit is contained in:
androidlover5842
2026-01-24 19:28:26 +05:30
parent ac79d6d1c0
commit 9300a85bd3
7 changed files with 38 additions and 13 deletions

View File

@@ -34,13 +34,16 @@ class Property(
@Column(name = "is_active", nullable = false)
var active: Boolean = true,
@Column(name = "address_text")
var addressText: String? = null,
@ElementCollection(fetch = FetchType.EAGER)
@CollectionTable(
name = "property_email_alias",
joinColumns = [JoinColumn(name = "property_id")]
)
@Column(name = "alias", nullable = false)
var emailAliases: MutableSet<String> = mutableSetOf(),
var otaAliases: MutableSet<String> = mutableSetOf(),
@Column(name = "created_at", nullable = false, columnDefinition = "timestamptz")
val createdAt: OffsetDateTime = OffsetDateTime.now()