RRHHUser.java 676 Bytes
Newer Older
1 2
package com.roshka.modelo;

3 4
import lombok.Data;

5 6
import javax.persistence.*;

7
@Entity @Data
8 9 10
@Table(name = "recursos_humanos_user")
public class RRHHUser {
    @Id
11
    @GeneratedValue(strategy = GenerationType.IDENTITY)
12 13 14 15 16 17 18 19 20 21 22 23 24 25
    private Long id;

    @Column(nullable = false, unique = true, length = 45)
    private String email;

    @Column(nullable = false, length = 64)
    private String password;

    @Column(name = "first_name", nullable = false, length = 20)
    private String firstName;

    @Column(name = "last_name", nullable = false, length = 20)
    private String lastName;

26 27 28
    @Column(name = "reset_password_token")
    private String resetPasswordToken;

29
   
30
}