add a random id

This commit is contained in:
gowthaman 2024-04-30 16:38:36 +05:30
parent f2b05b229d
commit 9fb657a0fb

View File

@ -9,6 +9,7 @@ import io.ebean.annotation.*
import io.ebean.annotation.Index
import java.time.LocalDate
import java.time.LocalDateTime
import java.util.UUID
import javax.persistence.*
data class Comments(val text: String = "", val by: String = "", val at: LocalDateTime = LocalDateTime.now())
@ -255,7 +256,9 @@ enum class AddressType {
BILLING, SHIPPING
}
data class ContactPerson(val name: String = "", val email: String = "", val mobile: String = "")
data class ContactPerson(
val id : String = UUID.randomUUID().toString(),
val name: String = "", val email: String = "", val mobile: String = "")
data class Address(
val type: AddressType = AddressType.BILLING,
val address: String = "",