Track guest createdBy
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s

This commit is contained in:
androidlover5842
2026-01-29 05:12:01 +05:30
parent 3e984fdcb3
commit 5c6b14331d
2 changed files with 10 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
package com.android.trisolarisserver.models.booking
import com.android.trisolarisserver.models.property.Property
import com.android.trisolarisserver.models.property.AppUser
import jakarta.persistence.*
import java.time.OffsetDateTime
import java.util.UUID
@@ -35,6 +36,10 @@ class Guest(
@Column(name = "signature_updated_at", columnDefinition = "timestamptz")
var signatureUpdatedAt: OffsetDateTime? = null,
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "created_by")
var createdBy: AppUser? = null,
@Column(name = "created_at", columnDefinition = "timestamptz")
val createdAt: OffsetDateTime = OffsetDateTime.now(),