getting started
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package com.android.trisolarisserver.models.property
|
||||
|
||||
import jakarta.persistence.*
|
||||
import java.time.OffsetDateTime
|
||||
import java.util.*
|
||||
|
||||
@Entity
|
||||
@Table(name = "organization")
|
||||
class Organization {
|
||||
@Id
|
||||
@GeneratedValue
|
||||
@Column(columnDefinition = "uuid")
|
||||
val id: UUID? = null
|
||||
@Column(nullable = false)
|
||||
var name: String? = null
|
||||
|
||||
@Column(name = "created_at", nullable = false, columnDefinition = "timestamptz")
|
||||
val createdAt: OffsetDateTime = OffsetDateTime.now() }
|
||||
Reference in New Issue
Block a user