package com.example.domain;

import java.sql.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnore;

import lombok.Getter;
import lombok.Setter;

//ログイン用のエンティティークラス
@Entity
@Table(name="users")
@Getter
@Setter
public class User {
	@Id
	@GeneratedValue
	private int id;
	private String name;
	private String postalCode;
	private String address;
	private String phoneNumber;
	private String email;
	@JsonIgnore
	private String password;
	private String roles;
	private Date createdAt;
	private Date updatedAt;
}
