Track guest createdBy
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 36s
This commit is contained in:
@@ -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(),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user