package cn.quantgroup.xyqb.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by Miraculous on 15/10/29.
 */
@Entity
@Table(name = "uuid_phone_mapping", uniqueConstraints = @UniqueConstraint(columnNames = "uuid"))
@Getter
@Setter
@ToString
public class UuidPhoneMapping implements Serializable {

    private static final long serialVersionUID = -1L;

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

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

    @Column(name = "phone_no")
    private String phoneNo;


}
