package com.loan.system.domain.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

@Getter
@Setter
@Entity
@Table(name = "roles", uniqueConstraints = {
        @UniqueConstraint(name = "role_name", columnNames = {"role_name"})
})
public class Role {
    @Id
    @Column(name = "id", nullable = false)
    private Long id;

    @Column(name = "role_name", length = 64)
    private String roleName;

    @Column(name = "description")
    private String description;

    @Column(name = "is_delete")
    private Boolean isDelete;

    @Column(name = "update_time")
    private String updateTime;

    @Column(name = "create_time")
    private String createTime;


}