This repository has been archived on 2018-02-23. You can view files and clone it, but cannot push or open issues or pull requests.
|
package net.cismon.urlshortener.model
|
|
|
|
import javax.persistence.*
|
|
import javax.validation.constraints.NotNull
|
|
|
|
@Entity
|
|
@Table(name = "auth")
|
|
class AuthModel {
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
|
var id: Long? = null
|
|
|
|
@NotNull
|
|
var token: String? = null
|
|
} |