package com.sikey.wa04.business.domain.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.Instant;

/**
 * 用户实体
 *
 * @author luoyangwei
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ToString
public class User {

    /**
     * 用户ID
     */
    private UserId id;

    /**
     * 手机号
     */
    private PhoneNumber phoneNumber;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 密码
     */
    private String password;

    /**
     * 是否注册
     */
    private Boolean isRegistered;

    private Instant createAt;
    private Instant updateAt;
}
